Skip to content

LG-7386: Remove code and tests associated with FSMv2#7051

Merged
eric-gade merged 14 commits intomainfrom
aduth-rm-fsmv2
Oct 4, 2022
Merged

LG-7386: Remove code and tests associated with FSMv2#7051
eric-gade merged 14 commits intomainfrom
aduth-rm-fsmv2

Conversation

@eric-gade
Copy link
Contributor

@eric-gade eric-gade commented Sep 29, 2022

🎫 Ticket

LG-7386

🛠 Summary of changes

This PR removes all code and tests associated with FSMv2, which itself involved moving certain pieces of the flow to the frontend (specifically, password re-entry and personal key steps).

This code was hidden behind a feature flag and not active in either dev or prod, so ideally the change should be invisible from a use standpoint.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • Run full test suite
  • Go through idv flow in local / test environments and ensure that password re-entry and personal key steps work properly

🚀 Notes for Deployment

No special notes

aduth and others added 8 commits September 28, 2022 16:00
changelog: Internal, Code Removal, Removing FSMv2 React
changelog: Internal, Code Removal, Removing FSMv2 React
changelog: Internal, Code Cleanup, removing FSMv2 React code
changelog: Internal, Code Cleanup, removing FSMv2 React code
changelog: Internal, Code Cleanup, removing FSMv2 React code
eric-gade and others added 4 commits September 29, 2022 16:15
Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
@eric-gade eric-gade marked this pull request as ready for review September 29, 2022 21:11
@eric-gade
Copy link
Contributor Author

@aduth I've run through several of the idv flows in local testing and it seems to be working fine now. All tests are passing. I think I managed to scrape the last of the meat off the bone.

@aduth aduth changed the title Aduth rm fsmv2 Remove code and tests associated with FSMv2 Sep 30, 2022
@aduth aduth changed the title Remove code and tests associated with FSMv2 LG-7386: Remove code and tests associated with FSMv2 Sep 30, 2022
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.

:pour-one-out: That's a lot of red!

LGTM! 👍

Comment on lines 359 to 360
post '/verify/v2/document_capture' => 'verify/document_capture#create'
delete '/verify/v2/document_capture_errors' => 'verify/document_capture_errors#delete'
Copy link
Contributor

Choose a reason for hiding this comment

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

As a follow-up, I think we should consider removing the /v2 from these paths to remove any traces of "FSMv2" naming conventions.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doing so directly wouldn't pose any issues, because all routes in rails are referred to by symbols right?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah I think it should hopefully be a matter of updating these strings and nothing else.

eric-gade added 2 commits September 30, 2022 16:12
changelog: Internal, Code Cleanup, removing FSMv2 React code
changelog: Internal, Code Cleanup, removing FSMv2 React code
@eric-gade eric-gade merged commit 1eda13c into main Oct 4, 2022
@eric-gade eric-gade deleted the aduth-rm-fsmv2 branch October 4, 2022 13:06
jskinne3 pushed a commit that referenced this pull request Oct 12, 2022
* Work in progress

* Remove more

* Removing old spec

* Empty commit for changelog

changelog: Internal, Code Removal, Removing FSMv2 React

* Removing deprecated redirect check

changelog: Internal, Code Removal, Removing FSMv2 React

* Removing stale references to idv_app_path

changelog: Internal, Code Cleanup, removing FSMv2 React code

* Removing more outdated tests

changelog: Internal, Code Cleanup, removing FSMv2 React code

* Fixing lints

changelog: Internal, Code Cleanup, removing FSMv2 React code

* Update spec/features/idv/steps/review_step_spec.rb

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Update spec/features/accessibility/idv_pages_spec.rb

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Update spec/features/accessibility/idv_pages_spec.rb

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Update spec/features/accessibility/idv_pages_spec.rb

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>

* Removing stale dependencies from js verify-flow

changelog: Internal, Code Cleanup, removing FSMv2 React code

* Removing unused react components

changelog: Internal, Code Cleanup, removing FSMv2 React code

Co-authored-by: Andrew Duthie <andrew.duthie@gsa.gov>
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