-
Notifications
You must be signed in to change notification settings - Fork 32
✨ web-api: admin views and actions for user accounts for the PO center #7560
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
✨ web-api: admin views and actions for user accounts for the PO center #7560
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7560 +/- ##
==========================================
+ Coverage 87.39% 88.87% +1.48%
==========================================
Files 1838 1465 -373
Lines 71160 60673 -10487
Branches 1201 474 -727
==========================================
- Hits 62187 53923 -8264
+ Misses 8643 6630 -2013
+ Partials 330 120 -210
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
998c81c to
de7bd73
Compare
…ion_details table
… and renaming variables
odeimaiz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the js part lgtm
2e9c48f to
14beb76
Compare
sanderegg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cool!
|



What do these changes do?
This PR adds new endpoints to the web API to support an admin view of user accounts and to allow approval or rejection of account requests.
These features will be implemented in separate PRs.
Admin Workflow Overview
The admin view provides visibility into:
PENDING,APPROVED,REJECTEDCONFIRMATION_PENDING,ACTIVE,DELETED,BANNEDpre_registrationexists)pre_registration)A user therefore can be in any of these states
stateDiagram-v2 [*] --> PENDING : PO submits registration form PENDING --> APPROVED : PO approves and invites(trial/permanent, credits) | sends invite PENDING --> REJECTED : PO rejects request APPROVED --> CONFIRMATION_PENDING : user clicks invitation link | sends registration link CONFIRMATION_PENDING --> ACTIVE: user agrees and clicks registration link ACTIVE --> DELETED: user request delete ACTIVE --> BANNED: PO banns BANNED --> ACTIVE: PO reactivates DELETED --> ACTIVE: PO reactivatesHighlights
_users_restimplementsGET /admin/user-accounts(pagination,account_request_status) ->Page[UserForAdminGet]POST /admin/user-accounts:approve(email) -> 204POST /admin/user-accounts:reject(email) -> 204_users_serviceimplmentslist_all_user_accounts: list admin-view of user accounts that includes merged pre- and registered users as well as all the products the user is.search_users_accounts: updates modelsapprove_user_account,reject_user_account_users_repositoryimplementspre-registrationcreate_user_pre_registrationlist_user_pre_registrationsreview_user_pre_registrationpre-registration+users(registered)list_merged_pre_and_registered_userssearch_merged_pre_and_registered_usersRelated issue/s
How to test
product.login_settings={"LOGIN_2FA_REQUIRED": false, "LOGIN_REGISTRATION_INVITATION_REQUIRED": true, "LOGIN_REGISTRATION_CONFIRMATION_REQUIRED": true}/dev/doc) entrypoint or view the PO center searchHere some views of the front-end prototype

Dev-ops
None