Commit graph

4300 commits

Author SHA1 Message Date
Hazelnoot
0684691993 fix crash if ServerService is disposed before being started 2025-11-05 19:20:25 -05:00
Hazelnoot
08fcb7f88c fix nodeinfo cache 2025-11-05 19:20:25 -05:00
Hazelnoot
79ea21fdc4 use CacheService in GetterService 2025-11-05 19:20:25 -05:00
Hazelnoot
8a2de1b9da use TimeService in CheckModeratorsActivityProcessorService 2025-11-05 19:20:25 -05:00
Hazelnoot
f77694d75a use TimeService in FetchInstanceMetadataService 2025-11-05 19:20:25 -05:00
Hazelnoot
ce77da52d0 fix lint warnings in ApNoteService.ts 2025-11-05 19:20:25 -05:00
Hazelnoot
f908b85e95 fix many circular dependencies (import, forwardRef, and use of methods that should be exported functions instead) 2025-11-05 19:20:25 -05:00
Hazelnoot
2681e53846 manage previews cache 2025-11-05 19:20:25 -05:00
Hazelnoot
c03d592256 manage app cache 2025-11-05 19:20:21 -05:00
Hazelnoot
34ea8dcbc2 manage user keypairs cache 2025-11-05 19:20:06 -05:00
Hazelnoot
b49ba4b00d commit missed change 2025-11-05 19:20:06 -05:00
Hazelnoot
46398b3dcd manage system accounts cache and fix sync issues 2025-11-05 19:20:06 -05:00
Hazelnoot
32ea83927f manage sponsors cache 2025-11-05 19:20:06 -05:00
Hazelnoot
0e516126f7 manage roles and role assignments caches 2025-11-05 19:20:06 -05:00
Hazelnoot
a4784eec9a manage relays cache 2025-11-05 19:20:06 -05:00
Hazelnoot
ad5443d2cc manage push subscriptions cache 2025-11-05 19:20:06 -05:00
Hazelnoot
2caec2f530 manage avatar decorations cache 2025-11-05 19:20:06 -05:00
Hazelnoot
6ff3d506b5 fix public key caching 2025-11-05 19:20:06 -05:00
Hazelnoot
57511f26d9 commit missed changes 2025-11-05 19:20:06 -05:00
Hazelnoot
ea80af9243 fix webhook caching 2025-11-05 19:20:06 -05:00
Hazelnoot
2daf5c16ec fix list and instance caching, manage all CacheService caches, and fix list "with replies" setting 2025-11-05 19:20:05 -05:00
Hazelnoot
bb0925224d fix emoji caching 2025-11-05 19:20:05 -05:00
Hazelnoot
97300774c0 add InstanceStatsService 2025-11-05 19:20:05 -05:00
Hazelnoot
b5f2c743b2 remove dependency on UserEntityService from CacheService 2025-11-05 19:20:05 -05:00
Hazelnoot
173105ae24 add constructor to MiEmoji 2025-11-05 19:20:05 -05:00
Hazelnoot
72da199f61 pass services into caches through constructor 2025-11-05 19:20:05 -05:00
Hazelnoot
4116c19e7e add fetchMaybe() method to QuantumKVCache 2025-11-05 19:20:05 -05:00
Hazelnoot
eda982882e fix incorrect event names in QuantumKVCache comments 2025-11-05 19:20:05 -05:00
Hazelnoot
8828f37b57 add clear() / dispose() methods to memory caches 2025-11-05 19:20:05 -05:00
Hazelnoot
b32f3b5019 manage caches in SkRateLimiterService 2025-11-05 19:20:05 -05:00
Hazelnoot
373456fa17 move TimeService, EnvService, CacheManagementService, and InternalEventService to GlobalModule 2025-11-05 19:20:05 -05:00
Hazelnoot
411df0c0bf fix DI errors when using TimeService 2025-11-05 19:20:05 -05:00
Hazelnoot
239cc3de6d implement CacheManagementService to provided centralized management of cache instances 2025-11-05 19:20:05 -05:00
Hazelnoot
920dd5893d add [isRetryableSymbol] to begin moving away from unreliable heuristic 2025-11-05 19:20:04 -05:00
Hazelnoot
37f00b9ca1 recurse to Error.cause in is-retryable-error.ts 2025-11-05 19:20:04 -05:00
Hazelnoot
ac0e3d9394 prevent crash if Redis cache has a negative lifetime 2025-11-05 19:20:04 -05:00
Hazelnoot
20b763c3c3 generate IDs based on TimeService 2025-11-05 19:20:04 -05:00
Hazelnoot
ab213f2146 make GlobalEventService depend on InternalEventService (instead of the other way around) so that they can eventually be separated 2025-11-05 19:20:04 -05:00
Hazelnoot
48cc7e21e3 make TimeService abstract and add support for managed timers 2025-11-05 19:20:04 -05:00
Hazelnoot
5f6578c8cd fix circular dependency caused by is-retryable-error, render-inline-error, and render-full-error 2025-11-05 19:20:04 -05:00
Hazelnoot
c2f6f54f50 make MiUser.isRemoteUser / MiUser.isLocalUser generic 2025-11-05 19:20:04 -05:00
Hazelnoot
7c8d09f1c9 add missing bindThis() to OnModuleInit / OnApplicationShutdown handlers 2025-11-05 19:20:04 -05:00
Hazelnoot
92466ed569 fix circular dependency in NoteEntityService.ts 2025-11-05 19:20:04 -05:00
Hazelnoot
697c897d94 fix circular dependency in DriveFileEntityService.ts 2025-11-05 19:20:04 -05:00
Hazelnoot
5b01ed54b9 implement MockApResolverService.ts testing utility 2025-11-05 19:20:04 -05:00
Hazelnoot
6f6ee0436e verify recursion limit in MockResolver 2025-11-05 19:20:04 -05:00
Hazelnoot
c45d6ea452 implement MockLoggerService.ts testing utility 2025-11-05 19:20:04 -05:00
Hazelnoot
5a28c4e110 implement kvp-array.ts utility 2025-11-05 19:20:04 -05:00
Hazelnoot
4d9317ad2b make sure S3 clients are properly disposed 2025-11-05 19:20:04 -05:00
Hazelnoot
db4661397b fix accidental "import type" in FederatedInstanceService 2025-11-05 19:20:04 -05:00