Skip to content
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

Fixes #24184: User management roles and permissions are intermingled in the UI #652

Conversation

clarktsiory
Copy link
Contributor

@clarktsiory clarktsiory commented Feb 9, 2024

https://issues.rudder.io/issues/24184

Basically we change the API format to separate roles and authorizations, and also to add some fields, now the meaning of the fields are :

  • permissions : roles only, without any authorizations
  • authz : all authorizations (or "rights" if you prefer) associated with the permissions
  • rolesCoverage : all inferred roles from all user authorizations, a superset of permissions
  • customRights : set of custom authorizations that were manually added (not related to any permissions)

In the UI we add a "readonly section" (below the "Delete" and "Save" buttons to edit the user), in which we display the authorizations and the inferred roles (the roles can still be edited in the same field as before) :

image

Now the UI is more consistent, we can remove only remove roles from the UI, and the related information will update accordingly.
But we still need to add/remove custom rights from the users file, it's the desired behavior because ideally they should be defined in custom roles.

@clarktsiory clarktsiory requested a review from fanf February 9, 2024 18:05
@clarktsiory clarktsiory marked this pull request as draft February 9, 2024 18:05
@clarktsiory clarktsiory force-pushed the bug_24184/user_management_roles_and_permissions_are_intermingled_in_the_ui branch from ae39e2c to 6cbd492 Compare February 13, 2024 16:11
@clarktsiory clarktsiory changed the base branch from 7.3-next to backports/7.3.12/24146 February 13, 2024 16:12
…ingled in the UI

Fixes #24184: User management roles and permissions are intermingled in the UI
@clarktsiory
Copy link
Contributor Author

PR updated with a new commit

@clarktsiory clarktsiory marked this pull request as ready for review February 13, 2024 16:35
@fanf
Copy link
Member

fanf commented Feb 14, 2024

So much clearer 👍

@fanf fanf merged commit b5b37e9 into Normation:backports/7.3.12/24146 Feb 14, 2024
2 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants