Fix(RHOAIENG-81200): Model Registry empty states and access messaging show wrong content for admin vs non-admin users - #9143
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (9)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited), Organization UI (inherited) Review profile: ASSERTIVE Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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 |
|
/early-gate-build |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #9143 +/- ##
==========================================
+ Coverage 59.50% 59.51% +0.01%
==========================================
Files 3101 3103 +2
Lines 96084 96108 +24
Branches 25198 25206 +8
==========================================
+ Hits 57176 57202 +26
+ Misses 38908 38906 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 17 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
…nt for admin vs non-admin users Signed-off-by: Philip Colares Carneiro <philip.colares@gmail.com>
8cefaaf to
56a2916
Compare
|
/early-gate-build |
|
/retest |
|
/early-gate-build |
|
/early-gate-build |
https://redhat.atlassian.net/browse/RHOAIENG-81200
Description
Model Registry empty states and disabled-action messaging did not correctly reflect the user's privilege level. Admin users saw "contact your administrator" messaging and non-admin "request access" copy in places where they should see role-appropriate guidance.
This PR fixes the remaining bug (BUG 3 from the ticket) by making two components admin-aware using the existing
AdminCheckextension pattern:Register button tooltip (ModelDetailsPage):
"Need another registry?" popover (AdminHelpAction):
How Has This Been Tested?
Test Impact
OdhModelDetailsPage.spec.tsx— 4 tests covering admin/non-admin register button renderingAdminHelpAction.spec.tsx— 5 tests covering admin/non-admin popover content, MUI theme fallbackOdhUnavailableModelRegistry.spec.tsxRequest review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main