OSAC-3372: refactor role model from DemoShellRole to UserRole - #109
Conversation
|
@rawagner: This pull request references OSAC-3372 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
Warning Review limit reached
Next review available in: 13 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository: osac-project/coderabbit/.coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (12)
WalkthroughThe frontend replaces legacy shell role literals with ChangesUser role migration
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant OIDC
participant useOIDCLogin
participant SessionContext
participant Shell
participant Catalog
OIDC->>useOIDCLogin: provide roles and groups
useOIDCLogin->>SessionContext: store UserRole
SessionContext->>Shell: expose role
Shell->>Catalog: allow admin catalog routes
Catalog->>Catalog: select scope and public/private data by role
Possibly related PRs
Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
c383bf3 to
1aa4a22
Compare
Rename DemoShellRole to UserRole ('admin' | 'tenant-idp-manager' |
'tenant-admin' | 'tenant-user') and update roleFromRoles to resolve
in priority order: admin (group 'admins') > tenant-admin >
tenant-idp-manager > tenant-user (default).
Update all consumers across shell navigation, routing, labels, catalog
display, catalog management panels, session context, and test files.
Add unit tests for roleFromRoles priority logic.
Assisted-by: Claude Code <noreply@anthropic.com>
Signed-off-by: rawagner <rawagner@redhat.com>
1aa4a22 to
738f835
Compare
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: batzionb, rawagner The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Rename DemoShellRole to UserRole ('admin' | 'tenant-idp-manager' | 'tenant-admin' | 'tenant-user') and update roleFromRoles to resolve
in priority order: admin (group 'admins') > tenant-admin >
tenant-idp-manager > tenant-user (default).
Update all consumers across shell navigation, routing, labels, catalog display, catalog management panels, session context, and test files. Add unit tests for roleFromRoles priority logic.
Assisted-by: Claude Code noreply@anthropic.com
Summary by CodeRabbit
New Features
Bug Fixes
Tests