n8n/packages
Arvin Ansari 9bd83fa52d
refactor(core): Narrow the activity event repository to its write path (no-changelog)
Review follow-ups on the activity event table.

- `record` no longer accepts an `EntityManager`. Handing a driver handle to
  callers is the leak `BaseRepository` and `TransactionRunner` exist to
  prevent, and no caller wanted it: an entry describes something that already
  happened, so it must not roll back with the operation that produced it.
- Drop `findById` and `findProjectIdForResource`. Both are reader work, both
  arrived with no caller and no test.
- `projectIds` is required on a feed query. It is the access boundary, and an
  omitted scope read every project on the instance. A comment saying "required"
  is not an access check.
- A zero retention cap deletes everything instead of asking the driver for a
  negative offset.

Two comments described mechanisms that do not hold. Pruning deletes the oldest
rows, so it never frees the highest SQLite rowid; only emptying the table does.
And a project deletion cannot be recorded against the project, because the
resource vocabulary has no entry for one.
2026-09-01 18:35:51 +02:00
..
@n8n refactor(core): Narrow the activity event repository to its write path (no-changelog) 2026-09-01 18:35:51 +02:00
cli feat(core): Add the activity event table and its migrations (no-changelog) 2026-09-01 18:35:50 +02:00
core refactor(core): Extract task data assembly from the execution loop (no-changelog) (#37386) 2026-08-31 12:31:35 +00:00
extensions/insights 🚀 Release 2.37.0 (#36986) 2026-08-25 07:32:14 +00:00
frontend chore(editor): Tidy Storybook for Figma import (no-changelog) (#35734) 2026-09-01 14:33:33 +00:00
modules refactor(editor): Extract the frontend test helpers into @n8n/frontend-test-utils (no-changelog) (#37304) 2026-08-28 15:50:23 +00:00
node-dev
nodes-base refactor(API): Migrate GET and DELETE /executions/{id} to the decorator pattern (no-changelog) (#37086) 2026-09-01 15:12:16 +00:00
testing test: Use the hosted sandbox service when it is configured (#37297) 2026-09-01 13:12:23 +00:00
workflow refactor: Centralize MCP registry control surface (#37219) 2026-09-01 10:55:57 +00:00