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

Johanna/6163 site admin update user access tab #6499

Merged
merged 36 commits into from
Sep 22, 2023

Conversation

johanna-skylight
Copy link
Contributor

@johanna-skylight johanna-skylight commented Sep 7, 2023

FRONTEND PULL REQUEST

Related Issue

Changes Proposed

Implement the organization access tab to allow a site admin make updates of organization, role and facility access on any SimpleReport user.

Additional Information

Some refactor on components have been made so they can be reused in the new user form as well as the organization access form.

Testing

Code is available in dev4

Verify that the site admin can make any privilege update to a SimpleReport user.

Screenshots / Demos

Support.admin._.SimpleReport.5.webm

@johanna-skylight johanna-skylight temporarily deployed to Dev September 7, 2023 16:22 — with GitHub Actions Inactive
@johanna-skylight johanna-skylight temporarily deployed to Dev September 7, 2023 16:53 — with GitHub Actions Inactive
@johanna-skylight johanna-skylight temporarily deployed to Dev4 September 18, 2023 14:19 — with GitHub Actions Inactive
@johanna-skylight johanna-skylight temporarily deployed to Dev4 September 18, 2023 18:04 — with GitHub Actions Inactive
onChange={onChange}
ref={ref}
assistiveHint={describeText(error?.message)}
disabled={loadingOrgs || disabled}

Check warning

Code scanning / CodeQL

Useless conditional

This use of variable 'loadingOrgs' always evaluates to false.
@johanna-skylight johanna-skylight marked this pull request as ready for review September 18, 2023 18:43
@mehansen
Copy link
Collaborator

I've reproduced something similar to what @BobanL noticed with the radio buttons in dev4.
Steps to reproduce:

  1. Locate user, set their role to Admin
  2. Search for an invalid username and get "User not found" screen
  3. Search for user again, set their role to Testing only. Now I see the radio button isn't populated. If I reload the user it still doesn't show the button is populated but the page otherwise behaves like they are Testing only, as in the save button is disabled if I select Testing only again
  4. Search for invalid username and get "User not found" screen
  5. Search for our user again and get "User not found" screen instead of showing the user

Screen Recording 2023-09-20 at 2.00.55 PM.zip

@johanna-skylight johanna-skylight force-pushed the johanna/6163_site_admin_update_user_access_tab branch from 808dc90 to a2d514a Compare September 21, 2023 13:28
@johanna-skylight johanna-skylight temporarily deployed to Dev4 September 21, 2023 13:49 — with GitHub Actions Inactive
@johanna-skylight johanna-skylight temporarily deployed to Dev4 September 21, 2023 14:25 — with GitHub Actions Inactive
@johanna-skylight
Copy link
Contributor Author

I've reproduced something similar to what @BobanL noticed with the radio buttons in dev4. Steps to reproduce:

  1. Locate user, set their role to Admin
  2. Search for an invalid username and get "User not found" screen
  3. Search for user again, set their role to Testing only. Now I see the radio button isn't populated. If I reload the user it still doesn't show the button is populated but the page otherwise behaves like they are Testing only, as in the save button is disabled if I select Testing only again
  4. Search for invalid username and get "User not found" screen
  5. Search for our user again and get "User not found" screen instead of showing the user

Screen Recording 2023-09-20 at 2.00.55 PM.zip

@mehansen @BobanL I have deployed a change that hopefully fixes the issue completely. Please clear the cache of your browser before reloading the latest code in dev4. LMK how it goes!

BobanL
BobanL previously approved these changes Sep 21, 2023
Copy link
Contributor

@BobanL BobanL left a comment

Choose a reason for hiding this comment

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

Changes look great! Thanks for all your hard work and fixing those bugs!

…in_update_user_access_tab

Integrated cypress fix
fzhao99
fzhao99 previously approved these changes Sep 21, 2023
Copy link
Contributor

@fzhao99 fzhao99 left a comment

Choose a reason for hiding this comment

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

ty so much for the hard work on this Johanna! lgtm :)

emyl3
emyl3 previously approved these changes Sep 21, 2023
Copy link
Collaborator

@emyl3 emyl3 left a comment

Choose a reason for hiding this comment

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

Tested on dev4 -- LGTM! Thank you for all your work on this!!

@johanna-skylight johanna-skylight dismissed stale reviews from emyl3, fzhao99, and BobanL via 929415c September 22, 2023 12:45
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

81.3% 81.3% Coverage
0.0% 0.0% Duplication

@johanna-skylight
Copy link
Contributor Author

I had to fix some merge conflicts after the jes-dom upgrade got to main. I need approvals thanks!!!

@johanna-skylight johanna-skylight added this pull request to the merge queue Sep 22, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 22, 2023
@johanna-skylight johanna-skylight added this pull request to the merge queue Sep 22, 2023
Merged via the queue into main with commit 90c1a38 Sep 22, 2023
@johanna-skylight johanna-skylight deleted the johanna/6163_site_admin_update_user_access_tab branch September 22, 2023 15:47
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.

[Move user] Org access tab on Manage User page
5 participants