Triggers are identified by name instead of an ID #2126

Closed
opened 2026-11-23 13:13:55 +00:00 by sam · 1 comment
Owner

events.triggers has no ID column: its primary key is (org_id, name). events.dispatches.trigger stores the trigger's name, the API addresses a trigger as /api/triggers/{name}, and access policies refer to it by name. A trigger can't be renamed without rewriting every dispatch. A deleted trigger's name can be reused, and the new trigger then shows the old one's dispatches.

Done when

events.triggers has a UUID primary key. Dispatches and access policies reference that ID, the API addresses a trigger by ID, and the name is an editable label.

`events.triggers` has no ID column: its primary key is `(org_id, name)`. `events.dispatches.trigger` stores the trigger's name, the API addresses a trigger as `/api/triggers/{name}`, and access policies refer to it by name. A trigger can't be renamed without rewriting every dispatch. A deleted trigger's name can be reused, and the new trigger then shows the old one's dispatches. ## Done when `events.triggers` has a UUID primary key. Dispatches and access policies reference that ID, the API addresses a trigger by ID, and the name is an editable label.
sam added the bughigh labels 2026-11-23 13:13:55 +00:00
Author
Owner

Landed in efe7069bc; task check passed.

Landed in efe7069bc; task check passed.
sam closed this issue 2026-11-23 18:38:13 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#2126