Repository navigation
FIX: Show newest scenario executions while relationships load or fail - #3968
Merged
Roman Lutz (romanlutz) merged 1 commit intoNov 9, 2026
Conversation
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues block the scenario-group execution ordering change.
No open issues 🎉
What changed in this PR
Fixes #3967 by ensuring scenario groups show the globally newest executions in the latest-100 fallback while saved-result relationships load or fail.
Changes:
- Sorts attempts across member groups newest-first before applying the 100-row cap.
- Adds regression tests for interleaved ordering and loading/error cutoff behavior.
- Adds controls for single-member groups and the uncapped ready hierarchy.
| File | Description |
|---|---|
frontend/src/components/Scenarios/ScenarioRunPage.tsx |
Sorts merged member attempts by timestamp before truncation. |
frontend/src/components/Scenarios/ScenarioRunPage.test.tsx |
Tests fallback ordering, cutoff behavior, and preservation of the ready hierarchy. |
Review effort: Balanced
Roman Lutz (romanlutz)
approved these changes
Nov 9, 2026
Roman Lutz (romanlutz)
removed this pull request from the merge queue due to a manual request
Nov 9, 2026
Jay (jay23606)
deleted the
pr-go/3967-bug-scenario-hierarchy-fallback-hides-ne
branch
November 13, 2026 21:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bug
While a scenario display group's saved result relationships are loading or have failed to load, the group shows a flat-row fallback. That fallback merged member atomic-group lists in per-member order rather than global newest-first order before applying the 100-row cap. As a result it could drop a group's newest execution while the table still said it was showing the latest 100.
Change
The component merges member attempts newest-first before the cap (
frontend/src/components/Scenarios/ScenarioRunPage.tsx, already in the fix commit). This revision adds regression cases toScenarioRunPage.test.tsxfor the flat-row fallback while relationships load or fail:4, 3, 2, 1, while loadingThe successful hierarchy view, the request parameters, and persisted data are unchanged.
Testing
npm --prefix frontend test -- ScenarioRunPage.test.tsx: 40 passed, 40 total, with the fix in place.npm --prefix frontend run lint -- src/components/Scenarios/ScenarioRunPage.test.tsx: exit 0.npm --prefix frontend run type-check: exit 0.npm --prefix frontend test -- ScenarioRunPage.test.tsx -t "keeps the newest execution in the latest-100 fallback"fails withUnable to find an accessible element with the role "button": 1 failed, 39 skipped. The component was restored afterwards.Regression test: fails on base twice (/Unable to find an accessible element with the role/), passes on fix twice (
npm --prefix frontend test -- ScenarioRunPage.test.tsx -t "keeps the newest execution in the latest-100 fallback")Fixes #3967