Uploaded image for project: 'Automation Hub'
  1. Automation Hub
  2. AAH-1600

Roles not showing on group access page.

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3
    • 2.3
    • UI
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Fixed an issue with roles not showing up on a group access page.
    • Release Note

      I have 30 groups with about 80 roles in my system. When I go to http://localhost:8002/ui/group/16 I only see one role on my group when I should see 8 or so.

      This seems to be happening because the UI is trying to fetch all roles in the system so that it can attach the permissions to display in the list: https://github.com/ansible/ansible-hub-ui/blob/feature/rbac-roles/src/containers/group-management/group-detail-role-management/group-detail-role-management.tsx#L97. If it can't cross reference the group's roles with the roles on the list, then it refuses to display the role.

      Attempting to fetch all the roles when the page loads is a terrible idea. The UI should either fetch the role permissions when the role is expanded, or prefetch just the role data for the roles that are being displayed.

              jjerabek@redhat.com Jiri Jerabek
              dnewswan David Newswanger (Inactive)
              Archiver:
              ranumula@redhat.com Raju Anumula

                Created:
                Updated:
                Resolved:
                Archived: