Hazelnoot
39f291cdeb
move CacheManagementServiceTests to correct location
2025-11-11 22:45:17 -05:00
Hazelnoot
6387b36dc3
implement callAllAsync and callAllOnAsync utilities
2025-11-11 22:40:26 -05:00
Hazelnoot
e54b8c4b72
fix typo in QuantumKVCache unit tests
2025-11-06 22:12:23 -05:00
Hazelnoot
3e1668348e
implement QuantumKVCache.reset
2025-11-06 22:11:21 -05:00
Hazelnoot
3e90b211ba
fix "duplicate cache" errors in SkRateLimiterServiceTests
2025-11-05 22:33:57 -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
151550602c
handle errors from cache management callbacks
2025-11-05 19:42:31 -05:00
Hazelnoot
86ca3921c9
use platform services in startup routines
2025-11-05 19:42:30 -05:00
Hazelnoot
effdea5658
update unit tests and mocks
2025-11-05 19:42:30 -05:00
Hazelnoot
6e36462c80
update SkRateLimiterServiceTests.ts to use standard mocks and fakes
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
8e000ae313
implement MockEnvService and fix tests
2025-11-05 19:41:09 -05:00
Hazelnoot
1b98ed0e06
fix sporraddic test failures due to Postgres deadlock
2025-11-05 19:40:48 -05:00
Hazelnoot
2bbd5be646
fix type errors (again)
2025-11-05 19:40:48 -05:00
Hazelnoot
542b99244a
fix backend unit tests: migrate delete({}) to deleteAll()
2025-11-05 19:40:48 -05:00
Hazelnoot
8cc3b8dd1e
fix TypeORM error "Empty criteria(s) are not allowed for the delete method."
...
- https://github.com/typeorm/typeorm/issues/11455
- https://github.com/typeorm/typeorm/pull/11459
2025-11-05 19:38:06 -05:00
Hazelnoot
3702729f26
update all dependencies
2025-11-05 19:29:50 -05:00
Hazelnoot
2f4270b8f7
manage GC timers in CacheManagementService
2025-11-05 19:21:51 -05:00
Hazelnoot
acf29ff40b
rename MockInternalEventService methods to match other utilities
2025-11-05 19:21:51 -05:00
Hazelnoot
598c43945a
use GlobalModule in chart tests
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
64745a41e5
use TimeService in charts
2025-11-05 19:20:25 -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
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
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
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
b8e3f545c0
add missing shutdown hooks in unit tests
2025-11-05 19:20:04 -05:00
Hazelnoot
92750240eb
implement mandatory CW for notes ( resolves #910 )
2025-09-13 11:34:35 -04:00
наб
f3b5c3f447
Allow restricting announcement to a set of roles. Fix MkRoleSelectDialog only respecting publicOnly half the time
...
Closes #682
2025-08-11 23:53:05 +02:00
dakkar
9b164003d4
more robust "delivery suspend software"
...
upstream's code doesn't allow any way to match a version that `semver`
can't parse, not even with `*`:
```
> semver.satisfies('1-2-3','*');
false
> semver.satisfies('1.3','*');
false
> semver.satisfies('1.2.3','*');
true
```
while I was there, I added support for regexp in both name and
version, and added unit tests
2025-08-03 12:40:17 +01:00
Hazelnoot
1cf5988885
merge: Improve URL validation ( !1155 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1155
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 14:21:20 +00:00
Hazelnoot
ef2d5757eb
merge: Fix factor scaling in rate limit ( !1182 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1182
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2025-07-27 14:13:32 +00:00
Hazelnoot
88231c61af
merge: Change profile field value to not include <p> ( !1141 )
...
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1141
Closes #1123
Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
2025-07-26 22:49:40 +00:00
Hazelnoot
53c7db3d1d
fix DI error in HttpRequestService.ts
2025-07-25 16:33:15 -04:00
Hazelnoot
05bc6f5d86
resolve domain names when checking for private URLs
2025-07-25 16:28:53 -04:00