refactor(maas-portal): switch browser routing to /maas-portal #10185
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
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.357
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #10185"
general
weight: 0.35
lucferbux
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/./maas-portalredirects to/maas-portal/with HTTP 302.K8sSdkProvider.spec.tsxandoperatorSubscriptionStatus.spec.tsto cover/maas-portal. All seven observability specs use a generic/custom-baseprefix while retaining existing behavior coverage, keeping shared tests independent of the portal mount path and verifying configurable prefix handling./maas-portal/, served from/static/maas-portal.Evidence
Passing local validation:
pnpm run lintandpnpm run type-check, usingpnpm_config_verify_deps_before_run=warnwith 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/controllerfromdashboard-operator/— operator unit tests pass.make -C dashboard-operator lint— zero issues.go test -tags=integration -count=1 -run 'TestIntegration_.MaaSPortal' ./internal/controllerfromdashboard-operator/, withKUBEBUILDER_ASSETSpointing 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-portalredirects to the trailing-slash URL, and deep links and static assets are served from the new path.The former
/maas-consumer-portalpath 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 -->