Skip to content

LG-9494 capture complete checks if previous step is done#8309

Merged
soniaconnolly merged 5 commits intomainfrom
sonia-lg-9494-capture-complete-checks-if-prevous-step-is-done
May 1, 2023
Merged

LG-9494 capture complete checks if previous step is done#8309
soniaconnolly merged 5 commits intomainfrom
sonia-lg-9494-capture-complete-checks-if-prevous-step-is-done

Conversation

@soniaconnolly
Copy link
Contributor

@soniaconnolly soniaconnolly commented Apr 28, 2023

LG-9494

🛠 Summary of changes

Add before action to CaptureCompleteController to redirect if DocumentCapture step was not successful, in the hybrid flow. Also in DocumentCapture#show, redirect to CaptureComplete if document capture is already done.

Set aysnc to false in hybrid flow feature specs.

Note: Do we want/need to check if document capture was successful before leaving DocumentCaptureController#update, or do we rely on the following controller (CaptureComplete or Ssn) to redirect backwards when needed?

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Create account
  • Start IdV, choose hybrid mobile flow
  • Visit /verify/hybrid_mobile/capture_complete before uploading documents
  • Expect to stay on document capture step.
  • Upload docs, submit
  • Visit /verify/hybrid_mobile/document_capture
  • Expect to stay on capture complete step

soniaconnolly and others added 4 commits April 28, 2023 14:35
Check that DocumentCapture completed successfully.

Co-authored-by: John Maxwell <john.maxwell@gsa.gov>
Co-authored-by: Matt Hinz <matt.hinz@gsa.gov>
Check result before redirecting in DocumentCaptureController
We're not using async, and it causes failures due to missing data in DocumentCaptureControllers
@soniaconnolly soniaconnolly requested review from a team, jmhooper and matthinz April 28, 2023 22:18
changelog: Internal, Flow State Machine replacement, redirect as needed within document capture hybrid flow
@soniaconnolly soniaconnolly changed the title LG-9494 capture complete checks if prevous step is done LG-9494 capture complete checks if previous step is done Apr 28, 2023
@soniaconnolly soniaconnolly requested a review from a team April 28, 2023 23:23
@soniaconnolly soniaconnolly merged commit 3a4b4bd into main May 1, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-9494-capture-complete-checks-if-prevous-step-is-done branch May 1, 2023 16:44
@mdiarra3 mdiarra3 mentioned this pull request May 2, 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