Commit graph

33074 commits

Author SHA1 Message Date
Hazelnoot
2ca9416ea9 fix eslint checkGlobalObject syntax 2025-11-05 19:21:51 -05:00
Hazelnoot
c79023f329 ban calls to new() up a cache 2025-11-05 19:21:51 -05:00
Hazelnoot
959ea2b27e fix commas in eslint config 2025-11-05 19:21:51 -05:00
Hazelnoot
1494a282ce ban references to console 2025-11-05 19:21:51 -05:00
Hazelnoot
02274eb94f check for calls to global.setTimeout and global.setInterval 2025-11-05 19:21:51 -05:00
Hazelnoot
32a9a383d2 fix ESLint error when generating misskey-js 2025-11-05 19:21:51 -05:00
Hazelnoot
c85b8bf56a remove Queues from ClientServerService DI 2025-11-05 19:21:51 -05:00
Hazelnoot
598c43945a use GlobalModule in chart tests 2025-11-05 19:21:50 -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
b9cff02c54 fix import in admin/invite/create endpoint 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
9c96dca5a6 add ESLint rules to warn about native date/time functions 2025-11-05 19:21:50 -05:00
Hazelnoot
2b4b5fd32c fix ESLint errors when opening a configuration file in the IDE 2025-11-05 19:21:50 -05:00
Hazelnoot
01f90265ec document upstream merge requirements 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
539815b3e0 remove unused @sinonjs/fake-timers package 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
a21a53b9f4 add patchDate() utility 2025-11-05 19:20:25 -05:00
Hazelnoot
36205cc496 fix merge errors 2025-11-05 19:20:25 -05:00
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
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