← Back to Pull requests

fix(RHINENG-33451): distinguish missing systems from access denied #3823

Closed
unknown closed this pull request without merging on Nov 23, 2026 02:06 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 15:46 UTC
Author

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


  • Check the inventory lookup result before rendering Kessel’s access-denied state, distinguishing missing systems from existing systems the user cannot view.

  • Make the detail header navigate to the inventory app root after successful deletion when no custom back-to-list callback is provided.

  • Add route tests for missing and inaccessible systems, plus a delete navigation regression test.
  • Testing


  • npm test -- --runTestsByPath src/components/InventoryDetail/TopBar.test.js — 7 passed.

  • npm run test:ct -- --spec src/routes/InventoryDetail.cy.js — 10 passed.

  • ESLint on changed files — no errors; existing warnings remain.

  • git diff --check — passed.

  • Cypress webpack reports six existing TypeScript errors in unrelated SystemsView filter files.
  • 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:

  • Distinguish deleted or missing systems from existing systems that the user cannot access when rendering inventory details with Kessel enabled.

  • Return to the inventory systems list after a successful deletion when no custom navigation callback is provided.

  • Prevent stale or delayed system lookups from overriding the currently viewed system.
  • Tests:

  • Add coverage for missing, inaccessible, failed, delayed, and deleted-system detail flows.
  • [RHINENG-33451]: https://redhat.atlassian.net/browse/RHINENG-33451?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 285 lines (+213 / -72) across 3 files Reviewer: h-kataria Review duration: 4940m
    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
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.8% (MEDIUM) · Higher = larger blast radius
    39.8%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.7% · Safe to merge
    15.7%