Skip to content

LG-10438: Start moving document_capture_session_uuid from flow_session to idv_session#8906

Merged
matthinz merged 10 commits intomainfrom
matthinz/10438-doc-capture-uuid
Aug 3, 2023
Merged

LG-10438: Start moving document_capture_session_uuid from flow_session to idv_session#8906
matthinz merged 10 commits intomainfrom
matthinz/10438-doc-capture-uuid

Conversation

@matthinz
Copy link
Contributor

🎫 Ticket

LG-10438

🛠 Summary of changes

This is part of an ongoing effort to move IdV data from flow_session and into idv_session now that we are moving away from the flow state machine.

This PR:

  • Starts writing idv_session.document_capture_session_uuid alongsideflow_session[:document_capture_session_uuid].
  • Prefers idv_session.document_capture_session_uuid when reading, but falls back to flow_session[:document_capture_session_uuid]

A future PR will remove references to flow_session[:document_capture_session_uuid], but that will have to wait until this is deployed to be merged.

Copy link
Contributor

@soniaconnolly soniaconnolly left a comment

Choose a reason for hiding this comment

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

LGTM! I did a search and didn't find any other instances of document_capture_session_uuid that need to change.

@matthinz matthinz force-pushed the matthinz/10438-doc-capture-uuid branch 2 times, most recently from 48b386b to e14d47f Compare August 3, 2023 21:36
matthinz added 10 commits August 3, 2023 14:55
- Don't inject a flow_session anymore (since we're not using it)
- Don't specifically test that uuid in SMS message is the doc capture session uuid (that assertion exists in the controller spec now)
Acuant vars are _not_ added if the document_capture_session_uuid is blank. Since we're storing it in idv_session rather than flow_session, it's now available during these tests, resulting in Acuant A/B test vars now being present on events.
@matthinz matthinz force-pushed the matthinz/10438-doc-capture-uuid branch from e14d47f to b076b44 Compare August 3, 2023 21:55
@matthinz matthinz merged commit a102eb1 into main Aug 3, 2023
@matthinz matthinz deleted the matthinz/10438-doc-capture-uuid branch August 3, 2023 23:25
matthinz added a commit that referenced this pull request Aug 4, 2023
Following up on #8906, remove references to the flow_session variable

[skip changelog]
matthinz added a commit that referenced this pull request Aug 9, 2023
* Remove references to flow_session[:document_capture_session_uuid]

Following up on #8906, remove references to the flow_session variable

[skip changelog]

* Remove flow_session from CaptureDocStatusController

Barcode attention stuff is stored in IdvSession now, so this should be ok?
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.

2 participants