Skip to content

fix(dashboard): hide download button when no transcript, fix orphan grouping#250

Merged
Hyperkid123 merged 1 commit into
OpenShift-Fleet:masterfrom
Hyperkid123:feat/RHCLOUD-48541
Jun 17, 2026
Merged

fix(dashboard): hide download button when no transcript, fix orphan grouping#250
Hyperkid123 merged 1 commit into
OpenShift-Fleet:masterfrom
Hyperkid123:feat/RHCLOUD-48541

Conversation

@Hyperkid123

@Hyperkid123 Hyperkid123 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

Summary

Fixes two UX issues on the cycle runs dashboard page:

  1. Download button hidden when no transcript — The download arrow now only appears on cycle runs that actually have a stored transcript, preventing silent 404 errors when users click it.

  2. Orphan grouping fix — Cycle runs without a task_id but with a jira_key in their progress data are now grouped under their ticket instead of "Orphan cycles". Uses COALESCE(t.jira_key, cr.progress->>'jira_key') in the by-task grouping query.

  3. Bot agent extraction fix_extract_task_id_from_result() now also extracts task_id from progress_store cycle run results, preventing future orphan runs when the bot calls progress_store before transcript upload.

Closes RHCLOUD-48541

Changes

  • memory-server/bot_memory_server/api.py — Add has_transcript boolean to list columns, COALESCE fallback in by-task grouping
  • dashboard/src/types.ts — Add has_transcript to CycleRun interface
  • dashboard/src/components/CycleRunCard.tsx — Conditionally render download button
  • dashboard/src/pages/CycleRuns.tsx — Show "No transcript available" message in detail view
  • bot/agent.py — Extract task_id from progress_store results, extract jira_key from progress dict

Test plan

  • python -m pytest tests/ — 26 tests pass
  • npm run build — dashboard builds cleanly
  • Deploy to stage — verify download button hidden on transcript-less runs
  • Verify orphan runs with progress.jira_key group under their ticket

…rouping

RHCLOUD-48541

- Add has_transcript boolean to cycle run API list responses
- Conditionally render download button only when transcript exists
- Use progress.jira_key as fallback for by-task grouping when task_id is null
- Extract task_id from progress_store results in bot agent context

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Hyperkid123 Hyperkid123 merged commit f43d08d into OpenShift-Fleet:master Jun 17, 2026
6 checks passed
@Hyperkid123 Hyperkid123 deleted the feat/RHCLOUD-48541 branch June 17, 2026 09:52
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