Repository navigation
FIX: Keep QUEUED in scenario history status filters (#3744) - #3815
Merged
Roman Lutz (romanlutz) merged 3 commits intoNov 6, 2026
Merged
Roman Lutz (romanlutz) merged 3 commits into
Roman Lutz (romanlutz) merged 3 commits into
Conversation
SCENARIO_RUN_STATES omitted the persisted QUEUED state, so the History status filter never offered it and a QUEUED-only shared URL lost its status filter. Build the list from a map checked against ScenarioRunState so the union and the list cannot drift again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
Author
|
@microsoft-github-policy-service agree |
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the queued-status filtering change.
No open issues 🎉
What changed in this PR
Fixes #3744 by including QUEUED in scenario history status filters, so queued runs can be selected and shared URL filters retain the intended API request scope.
Changes:
- Adds
QUEUEDin lifecycle order and checks the status map againstScenarioRunState. - Updates filter tests to cover all six states and preserve
QUEUED-only URLs. - Adds a component regression test verifying
run_statuses: ['QUEUED']reacheslistRuns.
| File | Description |
|---|---|
frontend/src/components/History/scenarioHistoryFilters.ts |
Adds QUEUED and a type-checked status map. |
frontend/src/components/History/scenarioHistoryFilters.test.ts |
Verifies valid statuses, full round-tripping, and QUEUED-only URL parsing. |
frontend/src/components/History/ScenarioHistory.test.tsx |
Verifies the queued-only API request and reorganizes imports. |
Review effort: Balanced
Roman Lutz (romanlutz)
approved these changes
Nov 6, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 6, 2026
This was referenced Nov 6, 2026
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.
Description
Fixes #3744.
SCENARIO_RUN_STATESinscenarioHistoryFilters.tslisted every persisted run state exceptQUEUED. As a result:QUEUED, andstatus=QUEUEDlost its status filter, so the history request went out withoutrun_statuses.The list is now built from a map checked with
satisfies Record<ScenarioRunState, ScenarioRunState>, so TypeScript fails if theScenarioRunStateunion and the list drift apart again.QUEUEDsits betweenCREATEDandIN_PROGRESSto follow the run lifecycle; the other states keep their order.Tests and Documentation
scenarioHistoryFilters.test.ts: the test that treatedQUEUEDas invalid now expects it to be kept (UNKNOWNis still dropped); the round-trip test lists all six states explicitly; new test: aQUEUED-only URL keepsstatuses: ['QUEUED'].ScenarioHistory.test.tsx: new test: aQUEUED-only URL filter sendsrun_statuses: ['QUEUED']tolistRuns.frontend/:npx jest --runInBand History(8 suites, 140 tests passed),npm run type-checkandnpm run lint(clean).🤖 Generated with Claude Code