Uploaded image for project: 'OCMUI - OpenShift Cluster Manager UI'
  1. OCMUI - OpenShift Cluster Manager UI
  2. OCMUI-3371

Register disconnected cluster form submit should be disabled according to permissions

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Center-UI-Team
    • Quality / Stability / Reliability
    • True
    • Hide

      We need to refine the epic first.

      Show
      We need to refine the epic first.
    • False

      UI should not allow users without permission to submit the register disconnected cluster form. If they try to submit it, they will get an error from backend, but this is not great UX and we should disable the button according to permission.

      The permissions UI should check using the `self_acceess_review` endpoint is -
      1. CREATE action on subscription resource
      2. UPDATE action on subscription resource, with the ID returned upon registration.  Needs discussion

      Steps to reproduce -

      1. Login to OCM UI with a user who doesn't have the permission described above ^
        (For example, a user that is configured with non Red Hat email address. If you choose this method you should test with prod API)
      2. Go to https://console.redhat.com/openshift/register
      3. Fill the form and submit it.

      Actual Results:

      There is an error message.

      Expected results:

      The button to submit the form should be disabled according to permission.

       

      Open question -

      Should we also disable the "Register cluster" button in https://console.redhat.com/openshift/cluster-list

       

       

              Unassigned Unassigned
              rh-ee-egilman Liza Gilman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: