Branch
tickets/DM-55470
Type
AFK
Jira Key
DM-55470
Jira URL
https://rubinobs.atlassian.net/browse/DM-55470
Blocked by
Parent PRD
#620
Task Order
9
Parallel with
Scope
Make the failure → re-run flow exercisable in dev mode. In apps/squareone/src/app/api/dev/times-square/v1/pages/[page]/:
- Extend
htmlstatus/route.dev.ts and htmlevents/route.dev.ts with a failure example driven by the existing ?a= magic-param convention (e.g. a=3 → available: false, html_hash: null, and an execution_error object with a realistic code/title/message such as the timeout case). Existing magic values keep their current behavior.
- Add a
DELETE handler to html/route.dev.ts returning the spec's DeleteHtmlResponse shape (html_url, html_events_url) so the Re-run button no longer 405s in dev. Model the handler on the existing gafaelfawr token DELETE route (apps/squareone/src/app/api/dev/gafaelfawr/v1/users/[username]/tokens/[key]/route.dev.ts).
See PRD #620 §Scope (apps/squareone third bullet).
Acceptance criteria
Branch
tickets/DM-55470
Type
AFK
Jira Key
DM-55470
Jira URL
https://rubinobs.atlassian.net/browse/DM-55470
Blocked by
Parent PRD
#620
Task Order
9
Parallel with
Scope
Make the failure → re-run flow exercisable in dev mode. In
apps/squareone/src/app/api/dev/times-square/v1/pages/[page]/:htmlstatus/route.dev.tsandhtmlevents/route.dev.tswith a failure example driven by the existing?a=magic-param convention (e.g.a=3→available: false,html_hash: null, and anexecution_errorobject with a realisticcode/title/messagesuch as thetimeoutcase). Existing magic values keep their current behavior.DELETEhandler tohtml/route.dev.tsreturning the spec'sDeleteHtmlResponseshape (html_url,html_events_url) so the Re-run button no longer 405s in dev. Model the handler on the existing gafaelfawr token DELETE route (apps/squareone/src/app/api/dev/gafaelfawr/v1/users/[username]/tokens/[key]/route.dev.ts).See PRD #620 §Scope (
apps/squareonethird bullet).Acceptance criteria
?a=value yieldsexecution_errorresponses from both the htmlstatus route and the SSE events route.DELETEon the dev html route returns a successfulDeleteHtmlResponse(no 405).