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

B-20313: Prevent Role List Duplication #14087

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

TevinAdams
Copy link
Contributor

B-20313

INT PR

Summary

In Admin App when viewing an Office Users Roles the roles list would sometimes duplicate. It is very inconsistent when this happens and may not even happen for us locally. I remember during PI planning that this was being cause because the GET Office-users call would return duplicate roles. Although i could not reproduce locally I was able to work with Alex to reproduce in loadtest to make sure that what was happening with the API endpoint during PI planning is exactly what is causing the duplication on the Admin UI now. (See screenshot below)

Notice the roles are duplicated in the payload. The AdminAPI displays what it receives from this call.
RoleDuplicationIssue

this article explains more about the approach used.

Verification Steps for the Author

These are to be checked by the author.

  • Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
  • Have the Agility acceptance criteria been met for this change?

Verification Steps for Reviewers

These are to be checked by a reviewer.

  • Has the branch been pulled in and checked out?
  • Have the BL acceptance criteria been met for this change?
  • Was the CircleCI build successful?
  • Has the code been reviewed from a standards and best practices point of view?

Setup to Run the Code

How to test

  1. Access the Admin App
  2. Login as an admin user
  3. Go to view an Office user
  4. Make sure roles are not duplicating in the user roles list
    image

Frontend

  • There are no aXe warnings for UI.
  • This works in Supported Browsers and their phone views (Chrome, Firefox, Edge).
  • There are no new console errors in the browser devtools.
  • There are no new console errors in the test output.
  • If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.
  • This change meets the standards for Section 508 compliance.

Backend

Database

Any new migrations/schema changes:

  • Follows our guidelines for Zero-Downtime Deploys.
  • Have been communicated to #g-database.
  • Secure migrations have been tested following the instructions in our docs.

Screenshots

@TevinAdams TevinAdams added Mountain Movers Movin' Mountains 1 Sprint at a time MAIN labels Nov 1, 2024
@TevinAdams TevinAdams self-assigned this Nov 1, 2024
@TevinAdams TevinAdams requested a review from a team as a code owner November 1, 2024 15:17
@deandreJones deandreJones merged commit e694325 into main Nov 5, 2024
41 checks passed
@deandreJones deandreJones deleted the B-20313-Prevent-Role-List-Duplication-Main branch November 5, 2024 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MAIN Mountain Movers Movin' Mountains 1 Sprint at a time
Development

Successfully merging this pull request may close these issues.

5 participants