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

Assign groups when creating user on the Admin screen #997

Closed
8 tasks done
Tracked by #1206
vinayvenu opened this issue Jul 5, 2023 · 7 comments
Closed
8 tasks done
Tracked by #1206

Assign groups when creating user on the Admin screen #997

vinayvenu opened this issue Jul 5, 2023 · 7 comments
Assignees

Comments

@vinayvenu
Copy link
Member

vinayvenu commented Jul 5, 2023

Acceptance criteria

  • When creating or editing a user, there is an option to choose the groups that the user will be part of
  • Saving a user will automatically add users to the marked groups
  • Removing a group from a user will automatically remove the user from the unmarked groups
  • Users will by default be assigned to Everyone group during User creation even if he's not assigned to it by AdminUser on the admin-app
  • The Everyone group will be visible on this screen and is assignable and removable, but users will always be part of this group even if user attempts to remove it. This is due to inability to hide it in ReactAdmin code.
  • Show chips for view of Groups
  • User listing will have a new column "User Groups", which will show all group memberships of the user
  • Add translations for webapp for userGroups
@himeshr himeshr assigned himeshr and unassigned himeshr Jul 21, 2023
himeshr added a commit that referenced this issue Jul 25, 2023
himeshr added a commit to avniproject/avni-server that referenced this issue Jul 25, 2023
…er Groups", which will show all group memberships of the user
himeshr added a commit that referenced this issue Jul 26, 2023
…ch will show all group memberships of the user"

This reverts commit 3638f2e.
himeshr added a commit that referenced this issue Jul 26, 2023
… will show all group memberships of the user
himeshr added a commit to avniproject/avni-server that referenced this issue Jul 26, 2023
…lumn "User Groups", which will show all group memberships of the user"

This reverts commit 5372018.
himeshr added a commit to avniproject/avni-server that referenced this issue Jul 26, 2023
himeshr added a commit to avniproject/avni-server that referenced this issue Jul 27, 2023
…d UserGroups in Groups edit and Users edit screens
himeshr added a commit to avniproject/avni-server that referenced this issue Jul 27, 2023
himeshr added a commit that referenced this issue Jul 27, 2023
himeshr added a commit that referenced this issue Jul 27, 2023
himeshr added a commit that referenced this issue Jul 27, 2023
@himeshr
Copy link
Contributor

himeshr commented Jul 27, 2023

Sample screen-recording:

UserScreenGroupUn-assignment.mov

himeshr added a commit to avniproject/avni-server that referenced this issue Jul 28, 2023
@vinayvenu
Copy link
Member Author

himeshr added a commit to avniproject/avni-server that referenced this issue Jul 28, 2023
himeshr added a commit to avniproject/avni-server that referenced this issue Jul 28, 2023
@himeshr
Copy link
Contributor

himeshr commented Jul 28, 2023

@vinayvenu Added unit tests and abosrbed all code-review comments

@AchalaBelokar
Copy link

AchalaBelokar commented Jul 31, 2023

  1. User group is showing me mandatory option but when I am not fill anything it is allow me to save.
Screen.Recording.2023-07-31.at.3.14.16.PM.mov

himeshr added a commit to avniproject/avni-server that referenced this issue Jul 31, 2023
@himeshr
Copy link
Contributor

himeshr commented Jul 31, 2023

Behaviour changes done:

  • Everyone group is removed from the UserGroups select, during create.
  • During edit, it'll be shown, and user can remove it, but, the group will be retained no matter what action user does.
  • UserGroups is no longer mandatory during edit or create.

@AchalaBelokar
Copy link

AchalaBelokar commented Jul 31, 2023

  • I am not able to create a user and I got password before creating the user this issue is fixed by suhas earlier
Screen.Recording.2023-07-31.at.10.59.26.PM.mov

himeshr added a commit to avniproject/avni-server that referenced this issue Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

4 participants