fix(RHINENG-33451): distinguish missing systems from access denied #3823
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 285 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.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3823"
general
weight: 0.35
h-kataria
Jira
RHINENG-33451
What
Show the existing “System not found” state when a deleted system is opened through an old or bookmarked details URL. After a successful delete, return to the inventory systems list when no custom callback is provided.
Why
With Kessel enabled, a deleted system can receive a denied access check, which was shown as “No access” even though the system no longer exists. The delete flow also defaulted to a no-op callback, preventing its navigation fallback from running.
How
Testing
npm test -- --runTestsByPath src/components/InventoryDetail/TopBar.test.js— 7 passed.npm run test:ct -- --spec src/routes/InventoryDetail.cy.js— 10 passed.git diff --check— passed.Screenshots/Videos (if applicable)
https://github.com/user-attachments/assets/ab6ffdeb-c4bd-48e9-95b3-884b5006f849
https://github.com/user-attachments/assets/c201df6e-eaee-4b2d-8a23-e5793c5959ee
Summary by Sourcery
Show the correct missing-system state for deleted inventory systems and restore reliable navigation after deletion.
Bug Fixes:
Tests:
[RHINENG-33451]: https://redhat.atlassian.net/browse/RHINENG-33451?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ