Commit graph

2032 commits

Author SHA1 Message Date
Hazelnoot
bc80fd7c49 fix cherry-pick errors 2025-11-07 00:22:32 -05:00
Hazelnoot
332805b051 remove legacy MK code from CacheService 2025-11-07 00:09:27 -05:00
Hazelnoot
1eb7159173 add CacheService.findLocalUserByNativeToken and findOptionalLocalUserByNativeToken 2025-11-07 00:09:27 -05:00
Hazelnoot
8bf15a7fc2 add comments to CacheService caches 2025-11-07 00:09:27 -05:00
Hazelnoot
6f0893a319 rename cacheService.getUsers to findUsers to match naming scheme 2025-11-07 00:09:26 -05:00
Hazelnoot
125c43299c add findOptional overloads for all findUser methods in CacheService 2025-11-07 00:08:58 -05:00
Hazelnoot
0556d403e6 move uriPersonCache to ApPersonService 2025-11-07 00:08:57 -05:00
Hazelnoot
0047396cf2 remove null option from uriPersonCache 2025-11-07 00:04:55 -05:00
Hazelnoot
00e7473f1c remove localUserByNativeTokenCache, add userByAcctCache, and convert userByIdCache/nativeTokenCache/uriPersonCache to quantum caches 2025-11-07 00:04:55 -05:00
Hazelnoot
ab6d3ee4a2 fix async of GlobalEventService.publishXStream methods 2025-11-06 22:25:02 -05:00
Hazelnoot
4fc762958c use TimeService in CacheService 2025-11-06 22:17:52 -05:00
Hazelnoot
abaf580d8d exclude expired mutes from userMutingsCache and muserMutedCache 2025-11-06 22:15:03 -05:00
Hazelnoot
88da09bcf7 implement CacheService.userMutedCache 2025-11-06 22:15:02 -05:00
Hazelnoot
3e1668348e implement QuantumKVCache.reset 2025-11-06 22:11:21 -05:00
Hazelnoot
64b415c469 mark localUserUpdate and remoteUserUpdated as deprecated 2025-11-06 22:10:16 -05:00
Hazelnoot
b2df31118d simplify bulk updateUsers event to reduce code duplication 2025-11-06 22:08:39 -05:00
Hazelnoot
cdf1a5de8f simplify bulk updateUsers event to reduce code duplication 2025-11-06 22:04:48 -05:00
Hazelnoot
01bb4dc541 add global event "usersUpdated" for bulk user updates 2025-11-06 21:59:31 -05:00
Hazelnoot
83134775f0 fix rebase errors 2025-11-05 19:51:56 -05:00
Hazelnoot
8271dc199e normalize cache constructors and detect duplicate cache names 2025-11-05 19:42:31 -05:00
Hazelnoot
4336a5d214 extract QuantumKVCache custom errors to their own files to reduce the chance of future circular dependencies 2025-11-05 19:42:31 -05:00
Hazelnoot
73cc50fe90 fix user list API schema, access checks, and caching 2025-11-05 19:42:31 -05:00
Hazelnoot
2a948b7710 fix job ID for poll end jobs 2025-11-05 19:42:31 -05:00
Hazelnoot
4d98a8fddc fix broken fetchers in userListMembershipsCache/listUserMembershipsCache 2025-11-05 19:42:31 -05:00
Hazelnoot
3baebd82db add missing await in EmojiEntityService.packSimpleMany 2025-11-05 19:42:30 -05:00
Hazelnoot
edf9a44d8b fix typo in "Updating emoji" log 2025-11-05 19:42:30 -05:00
Hazelnoot
d59e16244e fix module imports 2025-11-05 19:42:30 -05:00
Hazelnoot
9b99e8eba8 add new Console global DI to abstract the node.js console 2025-11-05 19:42:30 -05:00
Hazelnoot
a55649e89a move global services to "global" directory 2025-11-05 19:42:28 -05:00
Hazelnoot
00b216c83c remove InternalEventService from CoreModule 2025-11-05 19:41:09 -05:00
Hazelnoot
f83a403106 implement EnvService.getDependencyVersion 2025-11-05 19:41:09 -05:00
Hazelnoot
2b3fb2ef9f fix crash caused by wrong property name in SystemAccountService.ts 2025-11-05 19:41:08 -05:00
Hazelnoot
05be2596ea update backend to the new templates 2025-11-05 19:41:08 -05:00
Hazelnoot
3fc17fd0ee use cache in NotificationEntityService 2025-11-05 19:40:10 -05:00
Hazelnoot
23594d7373 fix AppLockService and redis-lock library 2025-11-05 19:35:41 -05:00
Hazelnoot
3702729f26 update all dependencies 2025-11-05 19:29:50 -05:00
Hazelnoot
681afb2d9f fix type errors caused by dependency updates 2025-11-05 19:25:53 -05:00
Hazelnoot
2f4270b8f7 manage GC timers in CacheManagementService 2025-11-05 19:21:51 -05:00
Hazelnoot
deff0c0f49 fix lint errors about use of console and new() cache 2025-11-05 19:21:51 -05:00
Hazelnoot
dd7545e105 move LoggerService to GlobalModule 2025-11-05 19:21:51 -05:00
Hazelnoot
723ba56840 Revert "fix test errors caused by AppLockService opening Redis connections in the constructor"
This reverts commit 04cd2e03c038cf1fb74869295c8ed3c32e20e3ee.
2025-11-05 19:21:50 -05:00
Hazelnoot
3a92471b68 convert all remaining backend code to TimeService 2025-11-05 19:21:50 -05:00
Hazelnoot
6cceca90f9 use TimeService everywhere in the backend 2025-11-05 19:21:46 -05:00
Hazelnoot
ed750fd990 support promise timers in TimeService 2025-11-05 19:20:25 -05:00
Hazelnoot
64745a41e5 use TimeService in charts 2025-11-05 19:20:25 -05:00
Hazelnoot
2dfc878445 add GodOfTimeService.tick() to easily increment time 2025-11-05 19:20:25 -05:00
Hazelnoot
36205cc496 fix merge errors 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