Skip to content

Conversation

@ddey2
Copy link
Member

@ddey2 ddey2 commented Oct 25, 2023

To test

  1. you can use Postman or
  2. delete all users from mongodb and keycloak, then register. Please check mongodb, the user should be set as admin (admin=true)

To test that one user can set another as admin, please use POSTMAN. Refer to the attached ss for details.
Screenshot 2023-10-25 at 1 36 18 PM

@ddey2 ddey2 requested a review from max-zilla as a code owner October 25, 2023 18:42
@ddey2 ddey2 linked an issue Oct 25, 2023 that may be closed by this pull request
3 tasks
ddey2 added 4 commits October 25, 2023 14:09
black formatting

adding codegen file

removing redundant print statement

fixing pytest failure

fixing pytest failure

ran black
@ddey2 ddey2 force-pushed the 803-basic-implementation-for-admin branch from a3ff621 to 795c825 Compare October 31, 2023 18:16
@ddey2 ddey2 linked an issue Nov 1, 2023 that may be closed by this pull request
Copy link
Contributor

@tcnichol tcnichol left a comment

Choose a reason for hiding this comment

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

This one works, checked and I can make other users admin.

Copy link
Contributor

@max-zilla max-zilla left a comment

Choose a reason for hiding this comment

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

PR looks good aside from the note to use Mongo's built-in counting for efficiency.

@ddey2 ddey2 requested a review from max-zilla November 6, 2023 17:11
@longshuicy longshuicy merged commit 881ec0f into main Nov 8, 2023
@longshuicy longshuicy deleted the 803-basic-implementation-for-admin branch November 8, 2023 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

Create depends for user admin Basic implementation for admin

5 participants