-
Story
-
Resolution: Unresolved
-
Undefined
-
None
-
None
-
3
-
False
-
-
False
-
XCMSTRAT-1005 - M2: htpasswd expanded UI
-
-
Description
When viewing a list of user for an existing htpasswrd IDP, the admin user that has the feature gate enabled will have an option to add a new user. When the user clicks on the "Add new user" button, a modal will open. The behavior on the modal will mimic adding a new user when creating a new htpasswrd IDP including validations and password autosuggest.
When the user clicks on "Add user" an API call will be made to add the user. While this API call is pending, a loading spinner is show in the modal. During this pending time, the modal cannot be closed and the "Add" button will be disabled. If the API call returns success, the modal window is closed and the user table is refreshed. If the API call returns an error, the returned error is shown in the modal
Screenshots
Technical notes
There is an API to add a new user to an existing IDP at
POST /api/clusters_mgmt/v1/clusters/{cluster_id}/identity_providers/{identity_provider_id}/htpasswd_users
The PatternFly patterns state that an inline confirmation alert is shown (see https://v5-archive.patternfly.org/patterns/actions#deletion for an example). 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 adding a machine pool) no additional notification will be given to the user that the update 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