Repository navigation
ref(automations): Address Automations by ID alone in URLs - #2186
Merged
Merged
Conversation
Automation IDs are unique in the shared table, so the API and dashboard routes no longer carry kind. The server reads the kind from the stored row. Old /:kind/:id URLs stop working. PATCH still rejects a body kind that differs from the stored kind. Preview on an event Automation now returns a 400 edit error instead of a 404. Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
approved these changes
Oct 18, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 412ef94. Configure here.
This comment has been minimized.
This comment has been minimized.
Contributor
|
9 screenshot changes — 9 changed · 0 added · 0 removed Review screenshots in Frameshift |
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Follow-up to #2185. Automation IDs are unique in
junior_automations, so the API and dashboard URLs do not needkind. The server now reads the kind from the stored row.URL changes (hard cutover, old URLs return 404):
/api/automations/:kind/:id{,/edit,/executions,/versions,/versions/:version/activate,/lifecycle}→/api/automations/:id/....PATCHandDELETEuse/api/automations/:id./api/automations/scheduled/:id/preview→/api/automations/:id/preview./automations/:kind/:automationId/{executions,versions,edit}→/automations/:automationId/....Server:
resolveViewerTaskCandidate(user, id)reads the row once and parses it by its stored kind.readViewerAutomationSummaryno longer tries scheduled and then event.PATCHstill rejects a bodykindthat differs from the stored kind (400 onkind).Not in this PR: the two ownership rules, the two lock schemes, the different handling of invalid rows, and the run-write split. Each of these changes behavior, so each needs its own PR.
Checks:
pnpm typecheckandpnpm lintpass. The automation API, automation edit, conversation detail and Slack automation-details tests pass, and so does the dashboard vitest suite (334 tests). I updated the dashboard E2E fixtures, but I could not run them locally because the sandbox has no Chrome. CI must run them.via David Cramer.
--
View Junior Session [Sentry]