fix(RHINENG-25441): ignore stale workspace name validation #3816
All Vouch review confidence checks passed
Residual risk 0.15 = Change Risk (0.39) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 249 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.330
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3816"
general
weight: 0.35
h-kataria
Jira
RHINENG-25441
What
Ignore stale workspace-name validation results when the user has already changed the input.
Why
An asynchronous duplicate-name check can finish after the user edits the field and leave a validation error for an older value on the current value.
How
Wrap the debounced create-workspace validator so only the most recent input can update field validation. Add a regression test for an older duplicate-name rejection arriving after a newer value was checked.
Testing
npm run test:local -- --runInBand src/components/InventoryGroups/Modals/CreateGroupModal.test.js— 9 tests passed.npx eslint src/components/InventoryGroups/Modals/CreateGroupModal.js src/components/InventoryGroups/Modals/CreateGroupModal.test.js— no errors; one existing exhaustive-deps warning inCreateGroupModal.js.git diff --check— passed.UI verification was not performed; browser validation remains a manual check.
[RHINENG-25441]: https://redhat.atlassian.net/browse/RHINENG-25441?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
Summary by Sourcery
Prevent outdated workspace-name validation responses from overriding the result for the latest edited value.
Bug Fixes:
Enhancements:
Tests:
Fix recording:
https://github.com/user-attachments/assets/2d5cb8f0-2826-4010-86dc-361f1e1b2c75