-
Notifications
You must be signed in to change notification settings - Fork 30
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
Tbolt/4411 Fixes issue where PUTs against /states/:stateId/affiliations/:id could assign invalid roles #4412
Conversation
Codecov Report
@@ Coverage Diff @@
## main #4412 +/- ##
==========================================
- Coverage 95.05% 94.56% -0.50%
==========================================
Files 314 314
Lines 6978 6992 +14
Branches 1526 1526
==========================================
- Hits 6633 6612 -21
- Misses 339 369 +30
- Partials 6 11 +5
Continue to review full report at Codecov.
|
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.
great work! thanks for the speedy turn around. I just had a couple of optimization suggestions
See this pull request in action: https://ec2-3-215-45-51.compute-1.amazonaws.com |
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.
🚀
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.
Tested using Postman and everything looks good!
State Admins are only allowed to approve State Staff and Contractors
Fed Admins are only allowed to approve State Admins
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.
Did a quick check on the FedAdmin functionality. Confirmed I could not approve a user without a letter. Everything seems OK and functioning as normal.
Will defer to the Dev/QA to verify that the patch was made correctly otherwise.
Waiting for backend tests to be resolved before we put this in. |
Resolves #4411
Description
Adds a check to limit State Admins to only update affiliations to either
eAPD State Contractor
oreAPD State Staff
and that Fed Admins can only update affiliations toeAPD State Admin
Significant changes or possible side effects
Updating certifications uses the same logic as affiliations and was updated to support this new check
Automated test cases written
Steps to manually verify this change
PUT http://localhost:8081/states/ak/affiliations/1
)400
error is returned with an error messageThis pull request is ready to code review when
tests, refactor
screenreader, text scaling) OR an exemption is documented
This pull request is ready to test when
This pull request is ready to review when the QA has
This pull request can be merged when