Skip to content

LG-10617 Consolidate in_person_enrollment methods#9052

Merged
kbighorse merged 35 commits intomainfrom
abrad-lg-10617-consolidate-ipp
Aug 30, 2023
Merged

LG-10617 Consolidate in_person_enrollment methods#9052
kbighorse merged 35 commits intomainfrom
abrad-lg-10617-consolidate-ipp

Conversation

@theabrad
Copy link
Contributor

🎫 Ticket

LG-10617

🛠 Summary of changes

Throughout the IdV flow we had many in_person_enrollment? type methods which were all checking a form of proofing_component.document_check == Idp::Constants::Vendors::USPS. This PR consolidates the methods onto the user class. Also instead of checking for the proofing component it checks to see if a user has an in person enrollment and if the selected_address is present.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Create an account and begin IdV
  • Upload error yml to access in person proofing
  • Ensure that IPP flow works as intended.

@theabrad theabrad requested review from a team and tomas-nava August 22, 2023 15:18
@theabrad theabrad requested a review from tomas-nava August 24, 2023 15:44
Copy link
Contributor

@kbighorse kbighorse left a comment

Choose a reason for hiding this comment

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

Already a big improvement, my comments here are basically to continue to consolidate more aggressively.

The one wrinkle is to capture the distinction between establishing v. pending enrollments and do it in one place for all client callers to rely on rather than have to keep track of it themselves, which they don't really care about anyway. Maybe something like outstanding which resolves to establishing || pending or something like that?

Great work!

Copy link
Contributor

@NavaTim NavaTim left a comment

Choose a reason for hiding this comment

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

It looks like the new logic should work out alright, but I would like to see how this affects the analytics (pending_in_person_enrollment field) before proceeding.

…fyForm#submit`

There is a possibility that `User` has inconsistent enrollment data, so we trust the enrollment associated with its `pending_profile` object instead for safety. We capture this scenario in a new user spec.

This can be re-implemented once enrollment data is consistent.
@kbighorse kbighorse merged commit 9d5698a into main Aug 30, 2023
@kbighorse kbighorse deleted the abrad-lg-10617-consolidate-ipp branch August 30, 2023 21:28
@mdiarra3 mdiarra3 mentioned this pull request Aug 31, 2023
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.

5 participants