Skip to content

Fix handling of attempt ID in the apps - #97

Merged
daniel-thom merged 2 commits into
mainfrom
fix/attempt-id
Jan 12, 2026
Merged

Fix handling of attempt ID in the apps#97
daniel-thom merged 2 commits into
mainfrom
fix/attempt-id

Conversation

@daniel-thom

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes the handling of attempt ID throughout the application by adding attempt_id display to tables and updating log file path construction to include the attempt ID component.

Changes:

  • Added "Attempt" column to results tables in web dashboard and TUI to display attempt_id (defaulting to 1)
  • Updated log file path construction to include _a{attempt_id} component in the naming convention
  • Modified result sorting logic to consider both run_id and attempt_id when finding the latest result

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
torc-dash/static/js/app-tables.js Added "Attempt" column header and display in results table
torc-dash/static/js/app-job-details.js Added "Attempt" column, updated run selector display, and fixed log path construction to include attempt_id
torc-dash/static/js/app-details.js Added attempt_id display in results table body rows
tests/test_full_workflows.rs Updated result sorting to use (run_id, attempt_id) tuple for finding latest result
src/tui/ui.rs Added "Attempt" column to TUI results table with proper column width constraint
src/tui/app.rs Updated result sorting logic and added explanatory comment about sorting by (run_id, attempt_id)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@daniel-thom
daniel-thom merged commit e6d0595 into main Jan 12, 2026
2 of 3 checks passed
@daniel-thom
daniel-thom deleted the fix/attempt-id branch January 12, 2026 17:59
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.

2 participants