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

Implemented User-Groups integration for mcs #62

Merged
merged 1 commit into from
Apr 9, 2020
Merged

Implemented User-Groups integration for mcs #62

merged 1 commit into from
Apr 9, 2020

Conversation

bexsoft
Copy link
Collaborator

@bexsoft bexsoft commented Apr 9, 2020

What does this do?

This PR connects the add user-groups API to the add user modal box

How to Test

  1. Create a new user using the add user module on mcs, keep the Inspetor opened in the network tab
  2. Fill the information and save the user (remember the groups that you selected)
  3. Check the network request & verify that the new user has the groups assigned in the groups request
  4. Go to Groups tab & check each of the groups that you added to the user, the user must be selected in all of them

@bexsoft bexsoft self-assigned this Apr 9, 2020
@cesnietor cesnietor self-requested a review April 9, 2020 22:33
dvaldivia
dvaldivia previously approved these changes Apr 9, 2020
return nil, err
}

userElem := &models.User{
AccessKey: *accessKey,
userElem, errUG := updateUserGroups(ctx, client, *accessKey, groups)
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should probably just call this function if groups is not empty, else all the code inside will be run .

Implemented user-groups integration for mcs, this allows to store the user groups during the user creation.
@dvaldivia dvaldivia merged commit 5c5e84b into minio:master Apr 9, 2020
@bexsoft bexsoft deleted the user-groups-add-clean branch April 10, 2020 00:04
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.

3 participants