-
Notifications
You must be signed in to change notification settings - Fork 112
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
LG-14390 No longer cancel pending enrollments on logout from cancel page #11211
Conversation
45dade6
to
54eea72
Compare
return if !IdentityConfig.store.in_person_proofing_enabled | ||
current_user.pending_in_person_enrollment&.update(status: :cancelled) | ||
UspsInPersonProofing::EnrollmentHelper. | ||
cancel_stale_establishing_enrollments_for_user(current_user) |
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.
It looks like you didn't need to check where the user came from (ie: Ready to Verify) after all because of this function. Before entering your password, the enrollment is establishing). Only after entering your password (before going to the PO) would the enrollment be pending. (All other's status- this function does not support ie: passed, failed, expired, and cancelled) so that is why you renamed it.
Also, method cancel_in_person_enrollment_if_exists is a dup - inside sessions_controller so further more I support this name change- each method is not exactly the same. Without testing it- I think the method in sessions_controller supports cancel your barcode. I will test on Monday to confirm.
after :build do |user| | ||
create(:in_person_enrollment, :establishing, user: user) | ||
end | ||
end |
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.
Nice! 💯
Your code changes look good! I have not manually tested this. I will do so next week. |
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 locally! Working as I'd expect
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.
Successfully completed test plan steps, code looks good! LGTM!
changelog: Internal, In-person proofing, The "Exit Login.gov" button on the cancel page from the barcode step will no longer cancel user's pending enrollments.
54eea72
to
3d01472
Compare
changelog: Internal, In-person proofing, The "Exit Login.gov" button on the cancel page from the barcode step will no longer cancel user's pending enrollments.
🎫 Ticket
Link to the relevant ticket:
LG-14390
🛠 Summary of changes
The "Exit Login.gov" button on the cancel page from the barcode step will no longer cancel user's pending enrollments.
📜 Testing Plan
Scenario: Barcode Page: "exit login.gov" button from cancel page
Scenario: During Identity Verification: "exit login.gov" button from cancel page
/verify/welcome