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

Remove a single user from a htpasswrd IDP

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • Center-UI-Team

      Description

      An admin user that has the feature gate enabled will have an option to delete a single user from a given htpaswrd IDP. This is done on the htpasswrd details page in the actions menu in the row of the chosen user. 

      When a user selects "Delete user", a confirmation modal is shown listing the user to be deleted.  When the user clicks on the "Delete user in the modal" a loading "spinner" is shown while the API to delete the user is pending.  During its pending time, the modal cannot be closed and the "Delete user" button is disabled.  If the API returns success, the modal is closed and the user list is reloaded.  If the API returns an error, the returned error is shown in the modal window.

      Screenshots

      NOTE: Change password is not part of this story

       

      Technical

      There is an API endpoint to remove a single user:

       DELETE /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users/{htpasswd_user_id}

      The PatternFly patterns state that an inline confirmation alert is shown (see https://v5-archive.patternfly.org/patterns/actions#deletion). The problem with this is that it will cause the other items on the page to "jump" when the alert disappears. Following other like actions (for example deleting a machine pool) no additional notification will be given to the user that the deletion was successful (beyond the closing of the modal).

              Unassigned Unassigned
              kdoberst Kim Doberstein
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: