Commit graph

32592 commits

Author SHA1 Message Date
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
df5aff9d91 document new QuantumKVCache restrictions in CONTRIBUTING.Sharkey.md 2025-11-05 19:20:05 -05:00
Hazelnoot
2d0b3cd325 remove NestJS instance from UtilityService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
5805426bdf remove NestJS instance from ReactionService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
7c6f46a3e0 remove NestJS instance from NoteCreateService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
c413896a21 remove NestJS instance from MfmService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
bbdc62992a await DB cleanup in chart.ts unit test 2025-11-05 19:20:05 -05:00
Hazelnoot
d3ac7598b7 remove NestJS instance from ApMfmService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
1e04b20b6b fix activitypub.ts unit tests 2025-11-05 19:20:05 -05:00
Hazelnoot
a3e969625d remove inline providers from unit tests 2025-11-05 19:20:05 -05:00
Hazelnoot
92892338f3 call app.init, app.enableShutdownHooks, and app.close in more tests 2025-11-05 19:20:05 -05:00
Hazelnoot
7d6732bf96 commit missed changes in UserEntityService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
31ce0f7cd2 use CacheManagementService in CheckModeratorsActivityProcessorService.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
5db84dfc9b disconnect redis after running e2e/timelines.ts tests 2025-11-05 19:20:05 -05:00
Hazelnoot
3f950e398b remove NoOpCaches in favor of CacheManagementService 2025-11-05 19:20:05 -05:00
Hazelnoot
c8976fef94 update unit tests for QuantumKVCache 2025-11-05 19:20:05 -05:00
Hazelnoot
e222516fce update unit tests for is-retryable-error 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
338dad9a87 add unit tests for CacheManagementService 2025-11-05 19:20:05 -05:00
Hazelnoot
ff76371057 add MockApResolverService testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
ac0d261190 add FakeSkRateLimiterService testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
d2e902f5b7 rename FakeInternalEventService to MockInternalEventService and fix DI errors 2025-11-05 19:20:05 -05:00
Hazelnoot
dac1a3d20f add FakeCacheManagementService testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
4142788989 add MockRedis testing utility 2025-11-05 19:20:05 -05:00
Hazelnoot
1d5bc6928f add FakeRedis testing utility 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