← Back to Pull requests

refactor(maas-portal): switch browser routing to /maas-portal #10185

Closed
unknown closed this pull request without merging on Oct 13, 2026 10:40 UTC
View on GitHub
unknown unknown commented on Oct 09, 2026 17:18 UTC
Author

https://redhat.atlassian.net/browse/RHOAIENG-99077

Problem

Browser routing still uses the previous portal name, leaving the MaaS Portal rename incomplete.

Solution

Completes the upstream MaaS Portal rename by switching browser routing to /maas-portal/.

  • Updates the frontend router, asset URLs, development proxies, operator status URL, and Gateway HTTPRoute. /maas-portal redirects to /maas-portal/ with HTTP 302.

  • Retires the previous browser prefix without a compatibility redirect, while preserving CR compatibility and upgrade cleanup.

  • Updates routing and migration assertions to match the merged resource and condition renames.

  • Updates K8sSdkProvider.spec.tsx and operatorSubscriptionStatus.spec.ts to cover /maas-portal. All seven observability specs use a generic /custom-base prefix while retaining existing behavior coverage, keeping shared tests independent of the portal mount path and verifying configurable prefix handling.

  • Adds E2E checks for portal assets, deep links, and retired paths with the core dashboard both Managed and Removed, including observability.

  • Updates documentation for deploying the HTTPRoute together with a Core-BFF image containing a frontend built for /maas-portal/, served from /static/maas-portal.
  • Evidence

    Passing local validation:

  • pnpm run lint and pnpm run type-check, using pnpm_config_verify_deps_before_run=warn with the installed dependencies.

  • pnpm --dir distributions/maas-portal run test-unit --runInBand — 55 tests pass, covering SPA fallback, proxy rewrites, WebSockets, redirects, and logout.

  • go test ./internal/controller from dashboard-operator/ — operator unit tests pass.

  • make -C dashboard-operator lint — zero issues.

  • go test -tags=integration -count=1 -run 'TestIntegration_.MaaSPortal' ./internal/controller from dashboard-operator/, with KUBEBUILDER_ASSETS pointing to local Kubernetes 1.31 envtest binaries — portal lifecycle, condition migration, URL compatibility, and resource migration checks pass.

  • git diff --check.
  • Plus manual cluster verification: Validation passed for /maas-portal slash normalization, root redirect, deep-link refresh, entry-script loading, MaaS/GenAI navigation, API request prefixes, subscription status, and Kubernetes requests. Retired paths neither serve nor redirect to the portal, and portal and sibling catalog routing assertions passed.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Summary

    Changes
    The MaaS Portal now uses /maas-portal/ as its browser URL. Visiting /maas-portal redirects to the trailing-slash URL, and deep links and static assets are served from the new path.
    The former /maas-consumer-portal path no longer serves the portal. Route updates are coordinated with portal rollout so the new URL is published after updated replicas are available.
    * Update the portal frontend and routing configuration together to use the matching path.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 389 lines (+291 / -98) across 4 files Reviewer: lucferbux Review duration: 5362m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 389 lines diff across 4 files
    0.43
    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.357
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10185"
    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: 43.1% (MEDIUM) · Higher = larger blast radius
    43.1%
    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: 17% · Safe to merge
    17%