Iceshrimp.NET/Iceshrimp.Backend/Core/Services
kopper 7173373330
[backend/federation] Improved reply backfill
Instead of backfilling every note we come across that has a reply
collection, only schedule a backfill job if someone wants to see the
replies (on GET MastoAPI /context, or Iceshrimp API /descendants)

Reply backfilling is also done on a ThreadIdOrId basis as opposed to the
previous way of backfilling individual notes. This allows us finer
grained control over the recursion and frees up the job queue, alongside
allowing for easier implementation of context collection backfill in the
future (by mapping each context collection to a thread)

---

Currently, note threads are implicit based on the "threadId" column of a
note, which can be null (where it's the same as the note's "id")

This commit turns note threads into an actual entity, and as a part of
that, makes "threadId" non-nullable (by specifically setting it to "id"
for those cases)

This is done to attach extra metadata to the entire thread, currently
just the time of when it was last backfilled, but more may be added in
the future (the context collection associated with this thread, for example)

---

The data format for backfill jobs have backwards-incompatibly changed
since the introduction of the feature. We can drop all old jobs without
causing too much trouble as they will be re-scheduled on demand

---

Signed-off-by: Laura Hausmann <laura@hausmann.dev>
2024-10-24 21:18:57 +02:00
..
ImageProcessing [backend] Update dependencies 2024-10-18 19:50:02 +02:00
BiteService.cs [backend] Code cleanup 2024-10-24 01:41:49 +02:00
CacheService.cs [backend/core] Allow manual resetting of the home timeline heuristic 2024-10-24 16:48:06 +02:00
CronService.cs [backend/plugins] Migrate from Weikio.PluginFramework to Iceshrimp.AssemblyUtils 2024-07-15 01:02:41 +02:00
CustomHttpClient.cs [backend/drive] Switch to stream processing for remote media 2024-07-28 23:32:04 +02:00
DatabaseMaintenanceService.cs [backend/core] Denormalize like counts (ISH-110) 2024-03-04 02:42:35 +01:00
DriveService.cs [backend/drive] Fix drive file cleanup job for locally stored files 2024-10-21 22:10:08 +02:00
EmojiImportService.cs [sln] Code cleanup 2024-09-13 21:44:31 +02:00
EmojiService.cs [backend] Add sensitive field to emojis 2024-10-04 00:36:38 +02:00
EventService.cs [backend/masto-client] Add list streaming channel (ISH-332) 2024-05-23 17:10:36 +02:00
FollowupTaskService.cs [backend/core] Add request/job id to logs, improve log formatting 2024-08-13 20:47:06 +02:00
HttpRequestService.cs [backend/core] Correctly handle redirects for signed requests (ISH-228) 2024-03-25 18:48:15 +01:00
InstanceService.cs [backend/database] Canonicalize punycode host representations to lowercase 2024-10-02 01:16:25 +02:00
MetaService.cs [backend/razor] Add admin dashboard (Admin-FE) 2024-10-11 05:41:52 +02:00
NoteService.cs [backend/federation] Improved reply backfill 2024-10-24 21:18:57 +02:00
NotificationService.cs [backend] Fix note bite notifications 2024-10-23 05:04:55 +02:00
ObjectStorageService.cs [backend/drive] Improve media fixup algorithm performance (ISH-520) 2024-10-18 23:37:19 +02:00
PluginStore.cs [sln] Code cleanup 2024-09-13 21:44:31 +02:00
PolicyService.cs [backend/core] Add basic message rewrite policies (ISH-16) 2024-10-09 21:14:50 +02:00
PollService.cs [backend/core] Improve handling of voter counts in PollService (ISH-377) 2024-06-20 20:01:08 +02:00
PushService.cs [sln] Code cleanup 2024-09-13 21:44:31 +02:00
QueueService.cs [backend/federation] Improved reply backfill 2024-10-24 21:18:57 +02:00
RazorViewRenderService.cs [backend/asp] Return error responses as HTML/XML/JSON depending on accept header 2024-08-16 01:00:43 +02:00
RelayService.cs [backend/federation] Add relay support (ISH-266) 2024-09-28 00:32:43 +02:00
StorageMaintenanceService.cs [backend/drive] Report count of orphaned files removed by storage cleanup job on completion 2024-10-19 01:29:25 +02:00
StreamingService.cs [backend] Refactor SignalR namespace 2024-07-04 18:27:14 +02:00
SystemUserService.cs [backend/core] Disallow following of system users 2024-09-28 00:37:36 +02:00
UserProfileMentionsResolver.cs [backend/federation] Refactor UserResolver (ISH-548) 2024-10-24 01:48:09 +02:00
UserService.cs [backend/federation] Refactor UserResolver (ISH-548) 2024-10-24 01:48:09 +02:00