-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Active users][Settings] Kebab options #195
Conversation
96339fe
to
b43f3cc
Compare
This PR containing the new 'User' parameters needs to be merged first before this one. |
83b6cf7
to
ba093d8
Compare
53928a5
to
939e172
Compare
939e172
to
7effe87
Compare
The 'Reset password' option should take the new password values associated to the user account. Signed-off-by: Carla Martinez <carlmart@redhat.com>
The 'Enable'/'Disable' option should change the status of a given user. For this solution, the `DisableEnableUsers` component has been adapted to perform the API calls needed. Signed-off-by: Carla Martinez <carlmart@redhat.com>
7effe87
to
c59bf3f
Compare
The 'Delete' option allows to remove a given user from its 'Settings' page. The solution has been adapted to the three user pages (Active, Stage, and Preserved). Signed-off-by: Carla Martinez <carlmart@redhat.com>
The 'Unlock' option should unlock a specific account when a user has exceeded the maximum amount of login attempts (6 according the global policy). Signed-off-by: Carla Martinez <carlmart@redhat.com>
After adding a new OTP Token, a QR code to configure the token must be generated. Thus, a React-compatible library to generate those QR codes need to be used in the project. The qrcode.react[1] library has been chosen by its effective way of create and customize QR codes. [1] - https://github.com/zpao/qrcode.react Signed-off-by: Carla Martinez <carlmart@redhat.com>
The 'Add OTP token' option creates a new OTP token associated to a specific user. The QR code has been generated using the qrcode.react[1] library. [1]- https://github.com/zpao/qrcode.react Signed-off-by: Carla Martinez <carlmart@redhat.com>
The 'Rebuild auto membership' option should apply any specified rule to a given user. Signed-off-by: Carla Martinez <carlmart@redhat.com>
The 'New certificate' option should create and associate a new certificate to a given user. Signed-off-by: Carla Martinez <carlmart@redhat.com>
The 'Auto assign subordinate ids' option should assign a range of IDs to a given user. Signed-off-by: Carla Martinez <carlmart@redhat.com>
c59bf3f
to
240fab0
Compare
The 'Activate' option enables the account of a given user, moving it from the 'Stage users' to the 'Active users' page. This option is only accessible form the 'Stage useres' page. The solution has adapted the API call made. Instead of using a generalistic batch endpoint a new specific endpoint has been created: `useActivateUserMutation`. This is being used from the main page and the kebab options located in the 'Settings' page. Signed-off-by: Carla Martinez <carlmart@redhat.com>
735973b
to
159dfac
Compare
The 'Stage' option allows to move a given user from 'Preserved' to 'Stage'. Signed-off-by: Carla Martinez <carlmart@redhat.com>
The 'Restore' options moves a given user from 'Preserved' to 'Active' state. The `RestorePreservedUsers` component has been optimized for simplification, removing the `ErrorModal` component and relying the output messages on the `Alert` one. Also, a new endpoint `useRestoreUserMutation` has been created to be used instead of the generalistic one (`useSimpleMutCommandMutation`). Signed-off-by: Carla Martinez <carlmart@redhat.com>
159dfac
to
295fa10
Compare
Hi, thank for the PR. Regrettably, I think I will not be able to review this PR with its current size. 12 commits with 2600+ lines change is too much for one PR. I'd borrow: https://google.github.io/eng-practices/review/developer/small-cls.html for the reasoning(cl == pr in this case). It's already nicely split into multiple commits, so e.g., each action can be in on PR. |
This PR will be split into several PRs to make it easier to review. Setting the 'WIP' tag. |
Closing this PR as it will be resolved in the newly created PRs. |
The options associated with the dropdown options (for each user) have been implemented. Those are:
For 'Active users':
For 'Stage users':
For 'Preserved users':