Skip to content

feat(dashboard): expose bundle failureDetail on operator bundle endpoints#132

Merged
AquiGorka merged 2 commits into
mainfrom
fix/dashboard-bundle-failure-detail
Jul 7, 2026
Merged

feat(dashboard): expose bundle failureDetail on operator bundle endpoints#132
AquiGorka merged 2 commits into
mainfrom
fix/dashboard-bundle-failure-detail

Conversation

@AquiGorka

Copy link
Copy Markdown
Contributor

ClickUp 86cahd1d4 — anchor for the provider-console structured-errors follow-up (provider-console#40 consumes this).

What

The structured on-chain failure reason failureDetail { code, source, message, name } is already recorded on every FAILED bundle and returned on the entity endpoint (get.ts), but the operator-facing dashboard bundle endpoints omitted it — so provider-console could show that a bundle failed but never why.

This adds failureDetail to:

  • GET /api/v1/providers/:ppPublicKey/bundles/:id — detail response data.failureDetail (null unless FAILED).
  • GET /api/v1/providers/:ppPublicKey/bundles — each list item's failureDetail (added to the select + the mapped item).

Operator's own bundles (JWT + ownership check already applied), so there's no privacy reason to withhold the reason.

Notes

Pure passthrough of an existing column (operations_bundle.failure_detail) — no new imports, no logic change. deno check (2.8.2) green. Existing bundle-admin.test.ts is routing-only and unaffected.

deno.json 0.9.8 → 0.9.9.

AquiGorka added 2 commits July 6, 2026 13:32
Add the structured on-chain failure reason (failureDetail { code, source,
message, name }) — already recorded on the bundle and returned on the
entity endpoint — to the operator-facing dashboard bundle responses: the
detail handler (GET /providers/:pp/bundles/:id) and each list item (GET
/providers/:pp/bundles). It's the operator's own bundles, so there's no
privacy reason to withhold why a bundle failed on-chain. Lets
provider-console surface the reason to the operator (ClickUp 86cahd1d4).
@AquiGorka
AquiGorka requested a review from pselle July 6, 2026 17:26
@AquiGorka
AquiGorka merged commit 29baab7 into main Jul 7, 2026
7 checks passed
@AquiGorka
AquiGorka deleted the fix/dashboard-bundle-failure-detail branch July 7, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant