Skip to content

Dev mock API failure states and DELETE handler #629

Description

@jonathansick

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=3available: 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

  • A magic ?a= value yields execution_error responses from both the htmlstatus route and the SSE events route.
  • DELETE on the dev html route returns a successful DeleteHtmlResponse (no 405).
  • The full failure → error panel → re-run → loading flow can be exercised in dev mode.

Metadata

Metadata

Assignees

Labels

prd-taskImplementation task from a PRD

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions