-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
3
-
False
-
-
False
-
XCMSTRAT-1005 - M2: htpasswd expanded UI
-
-
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).
- depends on
-
OCMUI-2966 View htpasswrd users on a htpassword details page
- In Progress
-
OCMUI-2970 Create feature gate to hide editing htpasswrd users
- Code Review