Skip to content

LG-9098 DocumentCaptureController#update, desktop flow, feature flagged#8074

Merged
soniaconnolly merged 10 commits intomainfrom
sonia-lg-9098-document-capture-update
Mar 27, 2023
Merged

LG-9098 DocumentCaptureController#update, desktop flow, feature flagged#8074
soniaconnolly merged 10 commits intomainfrom
sonia-lg-9098-document-capture-update

Conversation

@soniaconnolly
Copy link
Contributor

🎫 Ticket

LG-9098

🛠 Summary of changes

Add code from existing DocumentCapture step to handle #update method in new DocumentCaptureController, for desktop flow only. The bulk of the document capture work is still done on the front end. Bring over feature tests and make them pass.

📜 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"
  • Navigate to /verify/document_capture (going there automatically is a separate PR)
  • Upload images or yml files and click Submit
  • Expect to successfully complete verification

👀 Screenshots

After:

DocumentCapture#update

soniaconnolly and others added 10 commits March 22, 2023 16:03
Co-authored-by: Eric Gade <eric.gade@gsa.gov>
Co-authored-by: Eric Gade <eric.gade@gsa.gov>
Co-authored-by: Kimball Bighorse <kimball.bighorse@gsa.gov>
Check for the step in flow_session. Later we can add a property and methods to Idv::Session.

changelog: Internal, Flow State Machine replacement, Add update method to DocumentCapture step
changelog: Internal, document capture, Add document capture update functionality outside flow state machine (feature flagged)
Add a method on Idv::Session to delete the applicant
Reference current_user.id instead of user_id
Include DocumentCaptureConcern to set Acuant Content Security Policy
@soniaconnolly soniaconnolly requested review from a team and jmhooper March 24, 2023 23:25
@eric-gade
Copy link
Contributor

lgtm! I can also confirm that on a mobile device -- even with the feature flag set -- we are entering the FSM step instead as intended with this PR.

Copy link
Contributor

@jmhooper jmhooper left a comment

Choose a reason for hiding this comment

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

This looks good to me. Always nice to have a short, easily reviewable diff!

@soniaconnolly
Copy link
Contributor Author

This looks good to me. Always nice to have a short, easily reviewable diff!

I'm appreciating the way you split up the tickets!

@soniaconnolly soniaconnolly merged commit 0e55f6b into main Mar 27, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-9098-document-capture-update branch March 27, 2023 16:17
@aduth aduth mentioned this pull request Mar 27, 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.

3 participants