summaryrefslogtreecommitdiff
path: root/packages/backend/src/core/FederatedInstanceService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add function diffArraysSimple for more efficient change detectionHazelnoot2025-05-281-12/+6
|
* clear federatedInstanceCache when meta host lists changeHazelnoot2025-05-281-25/+46
|
* avoid race conditions in meta / instance insertHazelnoot2025-05-281-17/+13
|
* populate block fields when registering a new instanceHazelnoot2025-05-281-21/+17
|
* fix import order in FederatedInstanceService.tsHazelnoot2025-02-041-1/+1
|
* Merge tag '2024.10.1' into feature/2024.10dakkar2024-11-081-1/+19
|\
| * feat: ↵syuilo2024-10-131-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | リモートサーバーのサーバー情報を収集しないオプション (#14634) * wip * wip * Update FetchInstanceMetadataService.ts * Update FetchInstanceMetadataService.ts * Update types.ts
* | try to avoid `insert` races in `FederatedInstanceService`dakkar2024-10-121-5/+20
|/ | | | | | | | | | | | | Despite the cache, different processes can race to insert a row for the same remote host. This is particularly apparent in our unit tests, with `test/unit/activitypub.ts` randomly failing. This is a (somewhat clumsy) attempt at working around that race: trap the "duplicate key value" error, and fetch the record. Tests pass, with or without values in the cache.
* parse `notRespondingSince` from redis instance cache (#14079)Gianni Ceccarelli2024-07-131-0/+1
| | | | if we don't do this, we'll get a string, and `DeliverProcessorService` will error out `i.notRespondingSince.getTime is not a function`
* fix(backend): use insertOne insteadof insert/findOneOrFail combination (#13908)Acid Chicken2024-06-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix(backend): use insertOne insteadof insert/findOneOrFail combination * fix: typo * fix(backend): inherit mainAlias? * refactor(backend): use extend * fix(backend): invalid entityTarget * fix(backend): fake where * chore: debug * chore: debug * test: log * fix(backend): column names * fix(backend): remove dummy from * revert: log * fix(backend): position * fix(backend): automatic aliasing * chore(backend): alias * chore(backend): remove from * fix(backend): type * fix(backend): avoid pure name * test(backend): fix type * chore(backend): use cte * fix(backend): avoid useless alias * fix(backend): fix typo * fix(backend): __disambiguation__ * fix(backend): quote * chore(backend): t * chore(backend): accessible * chore(backend): concrete returning * fix(backend): quote * chore: log more * chore: log metadata * chore(backend): use raw * fix(backend): returning column name * fix(backend): transform * build(backend): wanna logging * build(backend): transform empty * build(backend): build alias * build(backend): restore name * chore: return entity * fix: test case * test(backend): 204 * chore(backend): log sql * chore(backend): assert user joined * fix(backend): typo * chore(backend): log long sql * chore(backend): log join * chore(backend): log join depth null * chore(backend): joinAttributes * chore(backend): override createJoinExpression * chore: join log * fix(backend): escape * test(backend): log log * chore(backend): join gonna success? * chore(backend): relations * chore(backend): undefined * chore(backend): target * chore(backend): remove log * chore(backend): log chart update * chore(backend): log columns * chore(backend): check hasMetadata * chore(backend): unshift id when not included * chore(backend): missing select * chore(backend): remove debug code
* (re) update SPDX-FileCopyrightTexttamaina2024-02-131-1/+1
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-1/+1
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-121-1/+1
|
* perf(backend): createdAtをidから取得するように & ↵syuilo2023-10-161-1/+1
| | | | 無駄なDateインスタンスの生成を避けるように
* refactor(backend): update directory structure for modelssyuilo2023-09-201-1/+1
|
* update deps (#11820)syuilo2023-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * fix * wip * wip * wip * Update docker-compose.yml.example * Delete reviewer-lottery.yml * Update RepositoryModule.ts * wip * wip * clean up * update deps * wip * wip
* refactor: prefix Mi for all entities (#11719)syuilo2023-08-161-5/+5
| | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * Update RepositoryModule.ts * wip * wip * wip * Revert "wip" This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
* chore: ↵Shun Sakai2023-07-271-0/+5
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* cleanup: trim trailing whitespace (#11136)okayurisotto2023-07-081-5/+5
| | | | | | | | | * cleanup: trim trailing whitespace * update(`.editorconfig`) --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* fix(backend): キャッシュが溜まり続けないようにsyuilo2023-06-101-2/+12
| | | | Related #10984
* fix(backend): ↵syuilo2023-05-091-3/+1
| | | | | | リモートサーバーの情報が更新できない問題を修正 Fix #10787
* fix of 34492f3c9asyuilo2023-04-221-1/+9
|
* enhance(backend): tweak cache of federated instancesyuilo2023-04-221-11/+6
| | | | #10631
* fix typessyuilo2023-04-141-1/+1
|
* fix(backend): ↵syuilo2023-04-091-0/+1
| | | | 通知読み込みでエラーが発生する場合がある問題を修正
* fix(backend): restore date properly of federated instance cachesyuilo2023-04-071-1/+9
|
* perf(backend): improve cache of federated instancessyuilo2023-04-071-8/+18
|
* refactor(backend): rename Cache -> MemoryCachesyuilo2023-04-041-3/+3
|
* refactor(backend): rename cache classsyuilo2023-03-241-3/+3
|
* refactor: rename instance.caughtAt to instance.firstRetrievedAtsyuilo2023-01-161-1/+1
|
* :v:syuilo2023-01-031-1/+14
|
* drop lastCommunicatedAt of instancesyuilo2023-01-031-1/+0
|
* refactor: introduce bindThis decorator to bind this automaticalysyuilo2022-12-041-0/+2
|
* refactorsyuilo2022-12-041-1/+1
|
* fix import typesyuilo2022-09-211-1/+1
|
* testsyuilo2022-09-191-5/+5
|
* なんかもうめっちゃ変えたsyuilo2022-09-181-0/+46