-
Notifications
You must be signed in to change notification settings - Fork 4
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
Create an Admin view for UserGroups #391
base: main
Are you sure you want to change the base?
Conversation
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
---|---|---|---|
🔴 | Statements | 59.25% (-2.84% 🔻) |
1249/2108 |
🔴 | Branches | 52.6% (-3.74% 🔻) |
354/673 |
🔴 | Functions | 58.18% (-4.82% 🔻) |
249/428 |
🔴 | Lines | 59.42% (-2.75% 🔻) |
1176/1979 |
Show new covered files 🐣
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🟡 | ... / UserGroupsTable.tsx |
68% | 46.67% | 71.43% | 66.67% |
🟢 | ... / utils.ts |
100% | 100% | 100% | 100% |
🟢 | ... / test-utils.tsx |
72.73% | 100% | 100% | 100% |
🔴 | ... / userPermissionsTable.tsx |
40.63% | 0% | 0% | 38.71% |
🟡 | ... / RoleDropdown.tsx |
54.55% | 100% | 0% | 60% |
Show files with reduced coverage 🔻
St.❔ |
File | Statements | Branches | Functions | Lines |
---|---|---|---|---|---|
🟡 | ... / user-management.ts |
70.34% (-8.29% 🔻) |
43.9% (-11.65% 🔻) |
86.67% (-13.33% 🔻) |
69.72% (-8.35% 🔻) |
🟢 | ... / Toast.tsx |
91.67% | 53.85% (-23.08% 🔻) |
50% (-50% 🔻) |
100% |
🟢 | ... / Drawer.tsx |
87.5% (-12.5% 🔻) |
100% | 75% (-25% 🔻) |
86.67% (-13.33% 🔻) |
🔴 | ... / UserManagementProvider.tsx |
21.88% (-70.43% 🔻) |
0% (-100% 🔻) |
0% (-46.15% 🔻) |
20% (-71.67% 🔻) |
Test suite run failed
Failed tests: 0/96. Failed suites: 2/14.
● Test suite failed to run
Cannot find module '../../../../ui/designSystem/tabGroup/tabGroup' from 'src/app/(pages)/userManagement/components/usersTable/usersTable.tsx'
Require stack:
src/app/(pages)/userManagement/components/usersTable/usersTable.tsx
src/app/(pages)/userManagement/components/usersTable/usersTable.test.tsx
at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
at Object.<anonymous> (/home/runner/work/dibbs-query-connector/dibbs-query-connector/query-connector/src/app/(pages)../../../../../../userManagement/components/usersTable/usersTable.tsx:1346:65)
at Object.<anonymous> (/home/runner/work/dibbs-query-connector/dibbs-query-connector/query-connector/src/app/(pages)../../../../../../userManagement/components/usersTable/usersTable.test.tsx:24:60)
● Test suite failed to run
Cannot find module '../../../../ui/designSystem/tabGroup/tabGroup' from 'src/app/(pages)/userManagement/components/usersTable/usersTable.tsx'
Require stack:
src/app/(pages)/userManagement/components/usersTable/usersTable.tsx
src/app/(pages)/userManagement/components/userPermissions/UserPermissionsTable.test.tsx
at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:427:11)
at Object.<anonymous> (/home/runner/work/dibbs-query-connector/dibbs-query-connector/query-connector/src/app/(pages)../../../../../../userManagement/components/usersTable/usersTable.tsx:1346:65)
at Object.<anonymous> (/home/runner/work/dibbs-query-connector/dibbs-query-connector/query-connector/src/app/(pages)../../../../../../userManagement/components/userPermissions/UserPermissionsTable.test.tsx:25:60)
Report generated by 🧪jest coverage report action from 3fe7110
@katyasoup do you know if there is a specific ticket to integrate the drawer with all admin roles(Super Admin and Admin)? I just started to review this PR and noticed that super admins cannot modify teams members (the link that opens the drawers shows disabled). If there is no ticket to cover that functionality we should bring it up during stand up. |
@johanna-skylight I added this ticket yesterday, which should cover all the outstanding interactions for Admins and Super Admins. But the basic drawer functionality should be working on this branch - is the |
@katyasoup yeah! I have one group setup but the members link displays disabled for the super admin. Even if the team has 0 members it should still open the drawer for the super admin so then super admin user can proceed to add members. I have added an image below. ![]() |
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 work 🎉 😎 . I have left some comments/questions and a few nits. Thanks @katyasoup !
...connector/src/app/(pages)/userManagement/components/userPermissions/userPermissionsTable.tsx
Outdated
Show resolved
Hide resolved
query-connector/src/app/(pages)/userManagement/components/userGroups/UserGroupsTable.tsx
Outdated
Show resolved
Hide resolved
query-connector/src/app/(pages)/userManagement/components/usersTable/usersTable.tsx
Outdated
Show resolved
Hide resolved
query-connector/src/app/(pages)/userManagement/components/usersTable/usersTable.tsx
Outdated
Show resolved
Hide resolved
@johanna-skylight Ah OK good catch! I had only been testing empty groups when logged in as an admin, so I'll fix that now. Thx! |
03b37d8
to
1004755
Compare
…ins and super admins; display group, group member, and query info (no drawer interaction)
45a81fe
to
71ef288
Compare
Initialize backend add/delete for usergroup_to_users (#389) Co-authored-by: fzhao99 <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> update integration tests
dc12eb1
to
f8538dd
Compare
fc2a214
to
6bd8df4
Compare
PULL REQUEST
Summary
Adds logic for a restricted Admin view of the User Management page:
Related Issue
Fixes #276
Additional Information
How to test:
qc-admin
; it should default to Standard User, so you should not see the "User Management" link in the gear menu dropdown"Admin"
in the databasetk: video walkthrough
tk: tests
Checklist