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

Adapt field permissions in 'Identity settings' #124

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

carma12
Copy link
Collaborator

@carma12 carma12 commented Jun 30, 2023

Description

Field permissions have been provided to the fields of the 'Identity settings' section.

This has been implemented by defining a new endpoint in the rpc.ts file. The data has been retrieved from a custom hook
that is used in the ActiveUsersTabs, StageUsersTabs, and PreservedUsersTabs components.

Finally, the user data in the UserSettings components has been replaced by the new userData from the API call.

Signed-off-by: Carla Martinez [email protected]

@carma12 carma12 requested a review from pvoborni June 30, 2023 14:45
@carma12
Copy link
Collaborator Author

carma12 commented Jun 30, 2023

This PR depends on this one to be merged: #122

@carma12 carma12 force-pushed the identity-settings-field-permissions branch 2 times, most recently from e18540a to 62340d2 Compare July 3, 2023 11:44
@carma12 carma12 force-pushed the identity-settings-field-permissions branch from 62340d2 to 2c57fc4 Compare July 5, 2023 07:09
@carma12 carma12 force-pushed the identity-settings-field-permissions branch from 2c57fc4 to 22d94cf Compare July 17, 2023 08:16
@pvoborni pvoborni self-assigned this Jul 17, 2023
src/hooks/useUserSettingsData.tsx Outdated Show resolved Hide resolved
@carma12 carma12 force-pushed the identity-settings-field-permissions branch from 22d94cf to 584b0b9 Compare July 17, 2023 13:23
@carma12
Copy link
Collaborator Author

carma12 commented Jul 17, 2023

The proposed solution has been already adapted (and squashed) in the existing code.

@carma12 carma12 force-pushed the identity-settings-field-permissions branch from 584b0b9 to 508f52c Compare July 17, 2023 13:25
@carma12
Copy link
Collaborator Author

carma12 commented Jul 17, 2023

This has also been rebased with the last changes merged on main.

Field permissions have been provided to the
fields of the 'Identity settings' section.

This has been implemented by defining a
new endpoint in the `rpc.ts` file. The
data has been retrieved from a custom hook
that is used in the `ActiveUsersTabs`,
`StageUsersTabs`, and `PreservedUsersTabs`
components.

Finally, the `user` data in the `UserSettings`
components has been replaced by the new
`userData` from the API call.

To hide internal details (that it is using a
batch command) so that it returns the data as
expected.

Also, the batch command has been moved to the
RPC wrapper. This way it is part of API end
point and is using RTK Query build-in caching.

Signed-off-by: Carla Martinez <[email protected]>
Signed-off-by: Petr Vobornik <[email protected]>
@carma12 carma12 force-pushed the identity-settings-field-permissions branch from 508f52c to b5662f9 Compare July 18, 2023 13:51
Copy link
Member

@pvoborni pvoborni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@carma12 carma12 merged commit 67e1355 into freeipa:main Jul 18, 2023
2 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
Development

Successfully merging this pull request may close these issues.

2 participants