-
Story
-
Resolution: Unresolved
-
Normal
-
None
-
None
-
False
-
-
False
-
Unset
-
No
-
-
Follow up to https://issues.redhat.com/browse/RHCLOUD-28712 and https://issues.redhat.com/browse/RHCLOUD-31826.
See description and comments in Github here: https://github.com/RedHatInsights/insights-rbac-ui/pull/1615#pullrequestreview-1996293513
We recently added some updates to the role compound table views to display a link to add roles quickly to a group. I think we can improve the logic with a few strategic tweaks to what we've added already:
Acceptance criteria:
- Cache the newly added admin group request instead of requesting it every time we load the roles page (we only need the ID and it doesn't change often)
- Move the call to request it sooner in the page loading and stop the UI from rendering any further (since the admin group ID is needed to make comparisons to the group IDs).
Nice to haves:
- It seems like Redux may be a bit overkill for storing just an ID for an admin group. We could consider using something like Jotai{}