Commit graph

58 commits

Author SHA1 Message Date
Hazelnoot
8b3ea577da limit unbounded parallel async maps 2025-11-15 14:08:35 -05:00
Hazelnoot
79289f1a87 separate get into get and getMaybe 2025-11-12 01:00:16 -05:00
Hazelnoot
a2ddeb28c3 separate get into get and getMaybe 2025-11-12 00:53:39 -05:00
Hazelnoot
a1265f4c45 implement refreshMaybe 2025-11-12 00:44:38 -05:00
Hazelnoot
ca2de630b9 fix fetchMaybe tests 2025-11-12 00:44:24 -05:00
Hazelnoot
ece03bef61 QuantumKVCache upgrades:
* Implement optionalFetcher callback
* Allow rate limits for all fetcher types
* De-duplicate concurrent fetch operations
* Stricter type checks for cache value types
* Add abort-on-dispose support for all fetcher types
* Dispose terminates and awaits all in-progress fetches
* Throw on attempts to use a disposed cache
* Unit test cleanup
* Reduced overhead for async operations
* More normalized exception handling
2025-11-11 23:59:03 -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
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
acf29ff40b rename MockInternalEventService methods to match other utilities 2025-11-05 19:21:51 -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
5a28c4e110 implement kvp-array.ts utility 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
Hazelnoot
fa68751a19 normalize userFollowingsCache / userFollowersCache and add hibernatedUserCache to reduce the number of cache-clears and allow use of caching in many more places 2025-06-09 11:02:51 -04:00
Hazelnoot
0c84d73294 move QuantumKVCache to a separate file 2025-06-09 11:02:36 -04:00
Hazelnoot
b7624666d6 implement QuantumKVCache.add and QuantumKVCache.addMany 2025-06-09 11:02:36 -04:00
Hazelnoot
207abaff88 implement QuantumKVCache.setMany and QuantumKVCache.seleteMany 2025-06-09 11:02:36 -04:00
Hazelnoot
f446d77cb5 implement QuantumKVCache 2025-06-09 11:02:36 -04:00
Hazelnoot
2cba0ada3c more use of identifiable errors, improvements to inner error rendering, and more heuristics for is-retryable-error 2025-06-06 22:20:17 -04:00
Hazelnoot
35dfde838b add function diffArraysSimple for more efficient change detection 2025-05-28 21:31:40 -04:00
Hazelnoot
8a2ed3bc86 minor optimization to diff-arrays 2025-05-28 21:31:40 -04:00
Hazelnoot
788e59f046 fix type errors caused by new User, Note, and Instance fields 2025-05-28 21:31:40 -04:00
Hazelnoot
373c60b521 add diff-arrays utility for efficient array diffs 2025-05-28 21:31:40 -04:00
Hazelnoot
a568333ecd remove assertActivityMatchesUrls in favor of three-way same-authority checks 2025-03-02 11:06:29 -05:00
Hazelnoot
bb0bc68927 cover more retryable errors for quote resolution 2025-02-20 09:58:22 -05:00
Hazelnoot
784290186f fix type errors in is-renote unit tests 2025-02-20 09:58:06 -05:00
Hazelnoot
563e32316f factor out common append-content-warning routine for use in both frontend and backend 2025-02-16 19:20:41 -05:00
Hazelnoot
2bcac80092 use fraction seconds for rate limit headers 2024-12-08 11:56:26 -05:00
Hazelnoot
1fb1875ac3 normalize AP IDs during verification 2024-11-23 20:23:05 -05:00
Hazelnoot
de9b99c937 merge: Add filter options to following feed (resolves #726) (!671)
View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/671

Closes #726

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Marie <github@yuugi.dev>
2024-10-15 21:50:26 +00:00
Hazelnoot
fa687ecb33 fix is-renote tests 2024-10-15 14:16:46 -04:00
Hazel K
463b9ac59d add filters for following feed 2024-10-15 14:16:46 -04:00
Hazelnoot
86a693b182 factor out tuple logic into from-tuple.ts 2024-10-15 14:03:57 -04:00
Hazel K
39214431f4 check for host 2024-10-07 11:45:58 -04:00
Hazel K
a790fef261 prevent deletion or suspension of system accounts 2024-10-07 10:02:55 -04:00
dakkar
1c2bb90ac5 fix types in my test 2024-05-31 12:59:32 +01:00
dakkar
7b630b48b5 Merge branch 'develop' into future 2024-05-31 11:43:09 +01:00
dakkar
c05cc63e24 look inside url when checking activity origin - #512
The previous assertion that:

> if it's a complicated thing and the `activity.id` doesn't match, I
> think we're fine rejecting the activity

was wrong: at least peertube sends activities that have `url` as an
array of objects.

Notice that this does *not*, in fact, fix #512: the peertube activity
does not contain its short URL (`https://example.com/w/someid`), so
there's no way to confirm that it is the activity we requested.
2024-05-18 16:48:10 +01:00
dakkar
ce8d0e45e9 fix backend tests 2024-04-25 11:56:19 +01:00
zyoshoka
8c5d9a6295
fix(backend): incorrect logic for determining whether Quote or not (#13700)
* fix(backend): incorrect logic for determining whether Quote or not

* Update CHANGELOG.md

---------

Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
2024-04-14 10:23:48 +09:00
zyoshoka
29f6ba6310
chore: add missing SPDX ID and workflow check (#13570)
* chore: add workflow which checks if SPDX ID exists

* chore: add missing SPDX ID in some files

* chore: change trigger condition

* chore: trigger on push

* lint
2024-03-13 22:37:18 +09:00
tamaina
c1514ce91d (re) update SPDX-FileCopyrightText
Fix  #13290
2024-02-13 15:59:27 +00:00
tamaina
311c2172d7 Revert "update SPDX-FileCopyrightText"
This reverts commit 9b5aeb76d8.
2024-02-13 15:50:11 +00:00
syuilo
9b5aeb76d8 update SPDX-FileCopyrightText 2024-02-12 11:37:45 +09:00
おさむのひと
35ec41fc1e
enhance(backend): テストの高速化 (#12939)
* enhance(backend): テストの高速化

* add ls

* 自動的にマージされるようなので不要

* 起動方法を揃える

* fix test
2024-01-08 17:43:52 +09:00
syuilo
34d1b463a4 fix tests 2023-10-16 12:58:17 +09:00
syuilo
2859cbab91 perf(backend): WebSocket接続が多い場合のパフォーマンスを向上
https: //github.com/MisskeyIO/misskey/pull/176
Co-Authored-By: KOBA789 <kobahide789@gmail.com>
2023-10-08 08:10:28 +09:00