Sharkey/packages/backend/src
dakkar c927c30567 mark grouped notifs by oldest id - sort-of fix 1139
Misskey's code does the same, but our groups behave differently enough
that this may be not the best choice

for example, let's say we have:

- notifications 1-5 for reaction to note A
- notifications 6-8 for reaction to note B
- notifications 9-12 for reaction to note A
- notification 13-19 for non-groupable events
- notification 20 for reaction to note A

and that events happened one every minute (so the last notification is
from 20 minutes ago)

client requests the most recent 10 notifications; we fetch
notifications 1-10, and reply:

- grouped id 6 for reactions 6-8 to note B
- grouped id 10 for reactions 1-5, 9-10 to note A

then the client requests 10 more notifications, untilId=10; we fetch
notifications 11-20, and reply:

- non-grouped notifications 13-19
- grouped id 20 for reactions 11,12,20 to note A

because we sort by id, and also the `createdAt` marks the _newest_
event in each group, the client will then show:

  6 reactions to note B, 6 minutes ago
  4 reactions to note A, 1 minute ago
  notifications 13-19, 13 minutes to 19 minutes ago
  3 reactions to note A, 11 minutes ago

I don't know how to make this work better ☹
2025-07-03 14:16:20 +01:00
..
@types revert 5f88d56d96 2024-07-20 21:33:20 +09:00
boot add additional process exit loggers 2025-06-12 21:37:28 -04:00
core merge: fix(backend): Send Abuse Reports To Set Maintainer E-Mail (!1127) 2025-06-19 15:54:55 +00:00
daemons add missing await in ApLogCleanupService 2025-02-16 19:25:24 -05:00
misc use pnpm package alias for @transfem-org/sfm-js 2025-06-12 21:11:16 -04:00
models show signup reason in user admin screen 2025-06-13 20:01:06 -04:00
queue merge: Emit log messages with correct level (!1097) 2025-06-12 19:06:43 +00:00
server mark grouped notifs by oldest id - sort-of fix 1139 2025-07-03 14:16:20 +01:00
config.ts add slowQueryThreshold setting to configure slow query warning 2025-05-30 12:27:59 -04:00
const.ts convert Authorized Fetch to a setting and add support for hybrid mode (essential metadata only) 2025-03-16 10:07:57 -04:00
decorators.ts refactor(backend): use Reflet for autobind deco (#14482) 2024-09-15 17:43:24 +09:00
di-symbols.ts merge upstream 2025-03-25 16:14:53 -04:00
env.ts add MK_HIDE_WORKER_ID to exclude worker ID from logs 2025-05-30 09:38:33 -04:00
global.d.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
GlobalModule.ts lint and type fixes 2025-04-01 20:47:04 -04:00
logger.ts output log messages with correct level 2025-06-09 11:03:48 -04:00
MainModule.ts (re) update SPDX-FileCopyrightText 2024-02-13 15:59:27 +00:00
NestLogger.ts lint fixes 2024-06-06 11:40:11 +09:00
postgres.ts improve query/parameter logging 2025-06-02 15:25:53 -04:00
types.ts Merge branch 'misskey-develop' into merge/2025-03-24 2025-03-25 16:17:34 -04:00