Skip to content

fix(rca): view-report link uses canonical observability_url (correct TFA sub-tab on load) - #374

Open
Dave3130 wants to merge 2 commits into
TRA_TFAfrom
fix-tfa-report-url-normalized
Open

fix(rca): view-report link uses canonical observability_url (correct TFA sub-tab on load)#374
Dave3130 wants to merge 2 commits into
TRA_TFAfrom
fix-tfa-report-url-normalized

Conversation

@Dave3130

Copy link
Copy Markdown
Collaborator

Problem (QA)

The TFA report link shown in the terminal used the build-UUID form:
…/builds/<buildUuid>?tab=ai_report&subTab=tfa. That URL 302-redirects to the canonical dashboard path, and the redirect drops the query string — so the dashboard loads its default sub-tab instead of the TFA report, and the user has to manually switch tabs on the UI.

Fix

Resolve viewReport to the build's canonical observability_url (…/projects/<name>/builds/<name>/<n>) + ?tab=ai_report&subTab=tfa. The canonical URL doesn't redirect, so the query sticks and the TFA sub-tab loads directly.

  • trigger-report.tsresolveViewReport() reads observability_url via one GET /ext/v1/builds/{uuid} (the release-readiness trigger response is a lean ack — {state, buildUuid, triggeredAt} — with no URL, confirmed live). Falls back to the UUID deep-link only if that read fails.
  • constants.ts — added AI_REPORT_TFA_QUERY + BUILD_DETAILS_PATH; aligned subTab to tfa (confirmed correct) on the UUID fallback + the RESOLVED-turn guidance.
  • Tests: happy path asserts the normalized URL; added a fallback-to-UUID case. Full suite green (303).

Targets TRA_TFA. (Needs a ticket link — QA report-URL feedback.)

QA: the terminal report URL used the build-UUID form (/builds/<uuid>?tab=ai_report&subTab=tfa),
which 302-redirects to the canonical dashboard path and the redirect drops the query
string — so the dashboard loads the default sub-tab, not TFA, forcing a manual switch.
Resolve viewReport to the build's canonical observability_url (projects/<name>/builds/<name>/<n>)
+ tab=ai_report&subTab=tfa via one GET /ext/v1/builds/{uuid} (trigger response is a lean
ack with no URL); fall back to the UUID form only if that read fails. Also align subTab
to tfa across the UUID fallback + RESOLVED-turn guidance.
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