Skip to content

LG-10657 Add idv_session.pii_from_doc to replace flow_session[:pii_from_doc]#9195

Merged
soniaconnolly merged 8 commits intomainfrom
sonia-lg-10657-start-moving-pii-from-doc-to-idv-session
Sep 20, 2023
Merged

LG-10657 Add idv_session.pii_from_doc to replace flow_session[:pii_from_doc]#9195
soniaconnolly merged 8 commits intomainfrom
sonia-lg-10657-start-moving-pii-from-doc-to-idv-session

Conversation

@soniaconnolly
Copy link
Contributor

@soniaconnolly soniaconnolly commented Sep 12, 2023

🎫 Ticket

LG-10657

🛠 Summary of changes

Merge this after #9182 (remove ssn from flow_session) is deployed.

Now that we are not using the Flow State Machine, we can stop using flow_session. This is the last attribute to move out in the remote flow.

Add pii_from_doc to idv_session as step 1 of moving it out of flow_session. Make sure both are written everywhere a change is made. (Except right before calling the proofing job in VerifyInfoConcern, since the one that's written is the one that's passed in to the job on the same instance.)

A followup PR will delete instances of flow_session[:pii_from_doc], and also remove references to flow_session where possible.

Note that VerifyInfoConcern is also used by the InPerson::VerifyInfoController, which uses pii_from_user, not pii_from_doc, and still has steps in the Flow State Machine which don't have access to idv_session. (Maybe we could give the two remaining FSM steps access to idv_session?)

📜 Testing Plan

  • Start from SP, create user, complete IdV remote standard flow
  • Expect that pii is correct at the end of the flow
  • Start from SP, create user, complete IdV remote hybrid flow
  • Expect that pii is correct at the end of the flow
  • Start from SP, create user, complete IdV in person flow
  • Expect that pii is correct at the end of the flow

Now that we are not using the Flow State Machine, we can stop using flow_session.
This is the last attribute to move out in the remote flow.

changelog: Internal, Identity Verification, start moving pii_from_doc to idv_session
Copy link
Contributor

@matthinz matthinz left a comment

Choose a reason for hiding this comment

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

👍 LGTM, tested and it works

@soniaconnolly soniaconnolly merged commit 4ba6266 into main Sep 20, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-10657-start-moving-pii-from-doc-to-idv-session branch September 20, 2023 18:20
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.

3 participants