Skip to content

LG-9099 LG-9100 Redirects to and from document capture controller#8090

Merged
soniaconnolly merged 12 commits intomainfrom
sonia-lg-9099-redirects-to-and-from-document-capture-controller
Mar 31, 2023
Merged

LG-9099 LG-9100 Redirects to and from document capture controller#8090
soniaconnolly merged 12 commits intomainfrom
sonia-lg-9099-redirects-to-and-from-document-capture-controller

Conversation

@soniaconnolly
Copy link
Contributor

@soniaconnolly soniaconnolly commented Mar 28, 2023

🎫 Ticket

LG-9099
LG-9100

🛠 Summary of changes

When feature flag is enabled, in desktop flow only, automatically redirect to and from the new DocumentCaptureController for the Document Capture step. Added a test that confirms that mobile-only flow also works.

Notes:

  • Redirect from SSN step when PII is missing from the session goes directly to DocumentCapture if the user had previously chosen standard flow. Once the hybrid step is included we may want to go back to the Upload step instead so the user can choose which flow to use.
  • This doesn't include RedoDocumentCapture (triggered by barcode read error).

📜 Testing Plan

  • Set doc_auth_document_capture_controller_enabled feature flag to true in local application.yml
  • Create account
  • Go to /verify and start identity verification process
  • At upload step, choose "Upload from computer"
  • Check that you are now on /verify/document_capture (not /verify/doc_auth/document_capture)
  • Navigate to /verify/ssn and expect to land back on /verify/document_capture
  • Navigate to verify/address and expect to land back on /verify/document_capture
  • Upload images or yml files and click Submit
  • Navigate to /verify/document_capture and expect to land back on /verify/ssn
  • Expect to successfully complete verification

soniaconnolly and others added 5 commits March 28, 2023 16:21
If feature flag is set, redirect back to new controller instead of doc_auth_url.
Note: not checking for desktop/mobile/hybrid flow

Co-authored-by: Doug Price <douglas.price>
Co-authored-by: Eric Gade <eric.gade@gsa.gov>
…m ssn step

changelog: Internal, Flow State Machine replacement, redirect to and from DocumentCaptureController (feature flagged)
@soniaconnolly soniaconnolly requested review from a team and eric-gade March 28, 2023 23:51
kbighorse and others added 3 commits March 29, 2023 10:00
… early or late

And check if the VerifyInfo step is complete in confirm_document_capture_needed before action

Check in feature specs for ignoring redirects to completed steps
@soniaconnolly soniaconnolly force-pushed the sonia-lg-9099-redirects-to-and-from-document-capture-controller branch from 11d3731 to 0103dce Compare March 29, 2023 22:46
Copy link
Contributor

@theabrad theabrad left a comment

Choose a reason for hiding this comment

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

LGTM. Followed the steps outlined and got the same results

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

LGTM


flow_session&.delete('Idv::Steps::DocumentCaptureStep')
redirect_to idv_doc_auth_url
if (IdentityConfig.store.doc_auth_document_capture_controller_enabled &&
Copy link
Contributor

Choose a reason for hiding this comment

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

Could we pull out flow_path as a variable like we did in the other controller to shorten the line? Also drop the outer parens

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I can pull out flow_path. Planning to make more changes to that in a followup PR. Found an indentation that rubocop will accept that distinguishes between the 2-line condition and 1-line block, so removed parens.

soniaconnolly and others added 2 commits March 31, 2023 09:08
Capitalization change in spec.

Co-authored-by: Zach Margolis <zachmargolis@users.noreply.github.com>
@soniaconnolly soniaconnolly merged commit 4a3a0c9 into main Mar 31, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-9099-redirects-to-and-from-document-capture-controller branch March 31, 2023 17:08
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.

4 participants