Hotfix: SET Handler using subject_type instead of new-value#5824
Conversation
…w-value" field instead of the subject-type field - Added new tests around this bug
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## release/v4.18.0 #5824 +/- ##
===================================================
+ Coverage 93.98% 93.99% +0.01%
===================================================
Files 534 534
Lines 24115 24173 +58
Branches 620 620
===================================================
+ Hits 22664 22721 +57
- Misses 1338 1339 +1
Partials 113 113
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
subject_type instead of new-value
subject_type instead of new-valuesubject_type instead of new-value
… into hotfix/security-event-token-email-changed-bug
|
@jtimpe @raftmsohani & @mattcoleanderson could you guys test this out again now that the deployment blocker has been lifted? You will need to deploy this branch again I believe. |
|
Please hold on this |
… into hotfix/security-event-token-email-changed-bug
|
@elipe17 testing notes below. tested a few times but do not see my second email address (ap34) anywhere in the system.
qasp
signed in as gsa.alex user
added ap34 user
deleted gsa.alex user
signed in as ap34 user but only gsa.alex user is recognized. no evidence of ap34 user in backend. |
@ADPennington this can only be tested in the environments I listed. Login.gov does not allow us to supply multiple SET push urls unfortunately. |
…uce what user profile to update based on the given event data.
|
@raftmsohani @mattcoleanderson @jtimpe @ADPennington I made some fixes and realized I still had a misunderstanding with the shape of the SET; Specifically the identifier changed SET. I updated the code and tested with user accounts that didn't already exist in the DB. This is deployed to Raft, so please give it a try yourself. |
|
@elipe17 testing notes below. Please confirm that the final result is expected.
signed in as ap34 user
added gsa.alex user
deleted ap34 user
signed in as ap34 user and it didnt work. tried as gsa.alex user and it was recognized. no evidence of ap34 user in backend. i assume this is expected since these accounts are associated with the same login.gov uuid? |
Correct, all the references to ap34 would transition to gsa.alex. There is no way for us to preserve the old email references since they are tied to the same login.gov uuid. |
|
@ADPennington are we good to merge this? |
I think so. Could you briefly explain the last change since testing? @elipe17 I think it was based on Mo's feedback |
Absolutely! All we did was move the user email updating logic so that it happens after a user is confirmed to be |
Summary of Changes
How to Test
push_urlconfig. E.g.raft,staging,prodSee screenshot below for my test verification in
raft.Deliverables
More details on how deliverables herein are assessed included here.
Deliverable 1: Accepted Features
Checklist of ACs:
lfrohlichand/oradpenningtonconfirmed that ACs are met.Deliverable 2: Tested Code
CodeCov Reportcomment in PR)CodeCov Reportcomment in PR)Deliverable 3: Properly Styled Code
Deliverable 4: Accessible
iamjollyandttran-hubusing Accessibility Insights reveal any errors introduced in this PR?Deliverable 5: Deployed
Deliverable 6: Documented
Deliverable 7: Secure
Deliverable 8: User Research
Research product(s) clearly articulate(s):