← Back to Pull requests

RHOAIENG-102838: fix version-aware User Management group workflow #3168

Open
unknown opened this pull request with 224 lines diff across 2 files
View on GitHub
unknown unknown commented on Nov 14, 2026 15:10 UTC
Author

Summary


Update User Management group handling for the table-based RHOAI 3.5 dashboard while retaining the legacy dropdown flow for earlier releases.

  • Use the version-aware administrator-section visibility wait and add-group controls for both administrator and user groups.

  • Add desired groups before removing leftovers through the confirmation modal, preserving the UI minimum-one-group requirement.

  • Use per-group saves on the new page; retain legacy and Cluster settings save behavior.

  • Escape group names in XPath literals and check disabled states before actions.

  • Update the pre-upgrade test to request the exact intended group sets and add isolated regression coverage.
  • Selectors are verified against the dashboard rhoai-3.5 source and Cypress User Management page object. The earlier-release fallback uses the current 3.4 label wording from PR #3160; it does not match the older literal OpenShift wording.

    Refs: RHOAIENG-102838

    Validation


  • Isolated selftests, including real Robot keyword execution with browser doubles and XPath evaluation, passed.

  • Python lint and format checks passed; Robot parsing passed; Robocop reported no errors.

  • Full upgrade-consumer dry-run could not complete because the required OpenShift library keywords were unavailable in the validation environment.

  • No live 3.5 or 3.4 browser/upgrade run was performed.
  • Keep as draft pending end-to-end and older-version verification. This PR does not claim the upgrade gate passes.

    ---
    AI-generated. Review for accuracy.

    @jiridanek requested from Slack

    Chai persona: ACP

    [RHOAIENG-102838]: https://redhat.atlassian.net/browse/RHOAIENG-102838?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ

    Diff: 224 lines (+168 / -56) across 2 files Reviewer: redhat-chai-bot Review duration: 4310m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 224 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.324
    Real PR Conversation Timeline
    1 comments
    "Review active on #3168"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 36.9% (MEDIUM) · Higher = larger blast radius
    36.9%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.7% · Safe to merge
    19.7%