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

Group role access does not display those with content_object assigned

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 2.4
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Description

      When navigating to https://hub.nas/ui/group/3/, access granted with content object does not display.

       

      Tested in both Current AAP 2.4 and Master branch of Galaxy_NG, same behavior.

      Key Dependency Versions

      UI

      Steps to Reproduce

      Using the API add a group role using
      endpoint
      {{ base_url }}/api/automation-hub/pulp/api/v3/groups/{{ _.group }}/roles/
      and json payload of a role and an applicable content object

      {   "role": "container.containerdistribution_owner",   "content_object": "/api/automation-hub/pulp/api/v3/distributions/container/container/018a13ab-b8fb-7395-ade5-3d5bec5158de/" }

      and it will not then show up in the GUI.

      Actual Behavior

      This is what is displayed

      Expected Behavior

      This is the api endpoint for listing roles
      {{ base_url }}/api/automation-hub/pulp/api/v3/groups/{{ _.group }}/roles/
      And this is the result, with 6 items, while only 2 show up in the GUi.

      {
          "count": 6,
          "next": null,
          "previous": null,
          "results": [
              {
                  "pulp_href": "/api/automation-hub/pulp/api/v3/groups/16/roles/018a184d-4853-7645-9125-8073207bdb94/",
                  "pulp_created": "2023-08-21T13:33:52.596015Z",
                  "role": "galaxy.collection_namespace_owner",
                  "content_object": "/api/automation-hub/pulp/api/v3/pulp_ansible/namespaces/1/",
                  "description": null,
                  "permissions": [
                      "galaxy.change_namespace",
                      "galaxy.upload_to_namespace"
                  ],
                  "domain": null
              },
              {
                  "pulp_href": "/api/automation-hub/pulp/api/v3/groups/16/roles/018a184d-4801-7ef4-b700-2c1eb33a0e4a/",
                  "pulp_created": "2023-08-21T13:33:52.513773Z",
                  "role": "galaxy.collection_remote_owner",
                  "content_object": "/api/automation-hub/pulp/api/v3/remotes/ansible/collection/018a05eb-28b1-7027-bbdb-afe1a3538f7f/",
                  "description": null,
                  "permissions": [
                      "ansible.add_collectionremote",
                      "ansible.change_collectionremote",
                      "ansible.delete_collectionremote",
                      "ansible.manage_roles_collectionremote",
                      "ansible.view_collectionremote"
                  ],
                  "domain": null
              },
              {
                  "pulp_href": "/api/automation-hub/pulp/api/v3/groups/16/roles/018a184d-4796-71b9-a879-71f6dc8fbaf0/",
                  "pulp_created": "2023-08-21T13:33:52.407107Z",
                  "role": "galaxy.ansible_repository_owner",
                  "content_object": "/api/automation-hub/pulp/api/v3/repositories/ansible/ansible/018a05eb-2e11-7309-8c73-08a2f2b33a56/",
                  "description": null,
                  "permissions": [
                      "ansible.add_ansiblerepository",
                      "ansible.change_ansiblerepository",
                      "ansible.delete_ansiblerepository",
                      "ansible.manage_roles_ansiblerepository",
                      "ansible.modify_ansible_repo_content",
                      "ansible.repair_ansiblerepository",
                      "ansible.sign_ansiblerepository",
                      "ansible.view_ansiblerepository"
                  ],
                  "domain": null
              },
              {
                  "pulp_href": "/api/automation-hub/pulp/api/v3/groups/16/roles/018a184d-473b-78b9-8809-bdeb83922532/",
                  "pulp_created": "2023-08-21T13:33:52.315678Z",
                  "role": "galaxy.container_remote",
                  "content_object": "/api/automation-hub/pulp/api/v3/galaxy_ng/registry-remote/018a1218-2257-74f7-a0c1-5e97d823be6d/",
                  "description": "container_remote",
                  "permissions": [
                      "galaxy.change_containerregistryremote"
                  ],
                  "domain": null
              },
              {
                  "pulp_href": "/api/automation-hub/pulp/api/v3/groups/16/roles/018a13ca-7b11-78c9-ba75-402f9a6b6b7b/",
                  "pulp_created": "2023-08-20T16:32:31.505655Z",
                  "role": "galaxy.group_admin",
                  "content_object": null,
                  "description": null,
                  "permissions": [
                      "galaxy.add_group",
                      "galaxy.change_group",
                      "galaxy.delete_group",
                      "galaxy.view_group"
                  ],
                  "domain": null
              },
              {
                  "pulp_href": "/api/automation-hub/pulp/api/v3/groups/16/roles/018a13ca-7ab7-7dff-b459-aa97de3b2541/",
                  "pulp_created": "2023-08-20T16:32:31.415693Z",
                  "role": "galaxy.user_admin",
                  "content_object": null,
                  "description": null,
                  "permissions": [
                      "galaxy.add_user",
                      "galaxy.change_user",
                      "galaxy.delete_user",
                      "galaxy.view_user"
                  ],
                  "domain": null
              }
          ]
      } 

            Unassigned Unassigned
            rhn-gps-ssulliva Sean Sullivan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: