Skip to content

LG-9611 Remove async document capture code#8377

Merged
soniaconnolly merged 12 commits intomainfrom
sonia-lg-9611-delete-async-code
May 11, 2023
Merged

LG-9611 Remove async document capture code#8377
soniaconnolly merged 12 commits intomainfrom
sonia-lg-9611-delete-async-code

Conversation

@soniaconnolly
Copy link
Contributor

@soniaconnolly soniaconnolly commented May 10, 2023

🎫 Ticket

LG-9611

🛠 Summary of changes

Remove all the code and specs associated with Async Document Capture. This is a followup to #8292, cleanup after removing DocumentCapture from the FSM.

Note: In the preceding PR, a comment from @jskinne3 suggested getting rid of the status_endpoint argument in _document_capture.html.erb. There are references to StatusEndpoint in frontend code, so it's not clear to me if status_endpoint is used, or if there is frontend code that can also be deleted.

The feature flag has been off in production, so this shouldn't cause any issues in the 50/50 state.

📜 Testing Plan

  • Create account, start IdV
  • Test document capture standard flow
  • Continue through submitting VerifyInfo step
  • Cancel and test document capture hybrid_mobile flow
  • Continue through submitting VerifyInfo step

@soniaconnolly soniaconnolly requested review from a team, aduth and jmhooper May 10, 2023 23:50
Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Sad to see it go, but certainly a boon for maintainability!

Comment on lines -7 to -8
front_image_upload_url: front_image_upload_url,
back_image_upload_url: back_image_upload_url,
Copy link
Contributor

@aduth aduth May 11, 2023

Choose a reason for hiding this comment

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

These control a cascading set of behaviors in the JavaScript that should now be safe to remove as well. I'm to blame for some (bad) "clever" code which made it hard to search for. All of the JavaScript's "async" behaviors are tied to this (isAsyncForm, withBackgroundEncryptedUpload, etc.).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added ticket LG-9794 for this.

@zachmargolis
Copy link
Contributor

zachmargolis commented May 11, 2023

Related, we should probably update https://handbook.login.gov/articles/appdev-proofing-ruby-worker-jobs.html to note what has been removed? (obviously a separate codebase so don't let that block this PR)

jmax 5/11/23 - Opened https://cm-jira.usa.gov/browse/LG-9795 to take care of this

@soniaconnolly soniaconnolly changed the title LG-9611 Remove document capture code LG-9611 Remove async document capture code May 11, 2023
@soniaconnolly
Copy link
Contributor Author

Sad to see it go, but certainly a boon for maintainability!

Yeah, it looks like a ton of work went into this.

@soniaconnolly soniaconnolly merged commit 981a84e into main May 11, 2023
@soniaconnolly soniaconnolly deleted the sonia-lg-9611-delete-async-code branch May 11, 2023 22:54
matthinz added a commit that referenced this pull request Jun 6, 2023
Looks like this endpoint was removed in #8377, and I'm seeing 404s in our logs from users still making this API call.

[skip changelog]
matthinz added a commit that referenced this pull request Jun 6, 2023
Looks like this endpoint was removed in #8377, and I'm seeing 404s in our logs from users still making this API call.

[skip changelog]
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