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

[Is a member of] User groups sync data #289

Closed
wants to merge 7 commits into from

Conversation

carma12
Copy link
Collaborator

@carma12 carma12 commented Feb 19, 2024

The 'User groups' dummy data has been synchronized using the real data from the API.

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

@carma12 carma12 added the WIP Work in Progress (do not merge) label Feb 19, 2024
@carma12 carma12 changed the title [Is a member of] User groups sync data WIP: [Is a member of] User groups sync data Feb 19, 2024
@carma12 carma12 force-pushed the user-groups-sync-data branch 2 times, most recently from 0602a5c to a7e209f Compare February 19, 2024 15:11
@carma12 carma12 removed the WIP Work in Progress (do not merge) label Feb 19, 2024
@carma12 carma12 changed the title WIP: [Is a member of] User groups sync data [Is a member of] User groups sync data Feb 19, 2024
The functionality of `MemberOfAddModal` is
going to change but there are some components
that depends on the current functionality.
That's why it needs to be renamed.

Signed-off-by: Carla Martinez <[email protected]>
Same as the `MemberOfAddModal`.

Signed-off-by: Carla Martinez <[email protected]>
The new 'Add' modal should be
adapted to the User groups data.

Signed-off-by: Carla Martinez <[email protected]>
The 'Delete' modal functionality
must be adapted to work with the
User groups data.

Signed-off-by: Carla Martinez <[email protected]>
Previous preparation of some
elements is needed:
- The `User` data type needs the following
parameters that will be managed in the
'Is a member of' section:
  - `memberof_group`
  - `memberof_netgroup`
  - `memberof_role`
  - `memberof_hbacrule`
  - `memberof_sudorule`
  - `memberof_subid`
- The `useGettingGroupsQuery` endpoint
wrapper to make the API call
- The original `UserGroup` data type has been
replaced by the `UserGroupOld` one. All the
files that use that type have been adapted
- The new `UserGroup` type will contain
the new data structure.
- The `useUserMemberOfData` hook to
retrieve and parse the data
- The `normalizeString` helper function
to normalize string LDAP values

Signed-off-by: Carla Martinez <[email protected]>
The dummy data must be replaced by the
data from the API for the 'User groups'
only.

Signed-off-by: Carla Martinez <[email protected]>
The Redux functionality won't be used
in this context, so it can be safely
removed.

Signed-off-by: Carla Martinez <[email protected]>
@carma12
Copy link
Collaborator Author

carma12 commented Feb 27, 2024

Closing this PR in favor of this one: #293

@carma12 carma12 closed this Feb 27, 2024
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.

1 participant