Skip to content

Consolidate in person Proofing reads and writes into methods.#8856

Merged
kbighorse merged 26 commits intomainfrom
LG-10381-Consolidate-in-person-Proofing-reads-and-writes
Jul 28, 2023
Merged

Consolidate in person Proofing reads and writes into methods.#8856
kbighorse merged 26 commits intomainfrom
LG-10381-Consolidate-in-person-Proofing-reads-and-writes

Conversation

@kbighorse
Copy link
Contributor

@kbighorse kbighorse commented Jul 25, 2023

🎫 Ticket

LG-10381 Consolidate in person Proofing reads and writes into methods.

🛠 Summary of changes

Write a brief description of what you changed.

📜 Testing Plan

Provide a checklist of steps to confirm the changes.

  • rspec ./spec/features/idv/in_person_spec.rb:114 # In Person Proofing works for a happy path
  • rspec ./spec/features/idv/in_person_spec.rb:324 # In Person Proofing with hybrid document capture resumes desktop session with in-person proofing
  • rspec ./spec/features/idv/in_person_spec.rb:940 # In Person Proofing when manual address entry is enabled for post office search allows the user to search by full address
  • rspec './spec/features/idv/in_person_spec.rb[1:5:1:1]' # In Person Proofing after in-person proofing is completed and passed for a partner using oidc sends a survey when they share information with that partner
  • rspec './spec/features/idv/in_person_spec.rb[1:5:2:1]' # In Person Proofing after in-person proofing is completed and passed for a partner using saml sends a survey when they share information with that partner
  • rspec ./spec/features/idv/in_person_spec.rb:23 # In Person Proofing ThreatMetrix review pending allows the user to continue down the happy path
  • rspec ./spec/features/idv/in_person_spec.rb:378 # In Person Proofing verify address by mail (GPO letter) requires address verification before showing instructions
  • rspec ./spec/features/idv/in_person_spec.rb:413 # In Person Proofing verify address by mail (GPO letter) lets the user clear and start over from gpo confirmation
  • rspec ./spec/controllers/idv/review_controller_spec.rb:226 # Idv::ReviewController#new redirects to the verify info controller if the user has not completed it
  • rspec ./spec/models/profile_spec.rb
  • rspec ./spec/services/idv/profile_maker_spec.rb
  • rspec ./spec/forms/gpo_verify_form_spec.rb
  • rspec spec/services/idv/session_spec.rb

@kbighorse kbighorse changed the title Mark call to be extracted Consolidate in person Proofing reads and writes into methods. Jul 25, 2023
changelog: Internal, In-person proofing, refactor in-proofing reads and writes

def in_person_enrollment?
ProofingComponent.find_by(user: current_user)&.document_check == Idp::Constants::Vendors::USPS
current_user.proofing_component&.document_check == Idp::Constants::Vendors::USPS
Copy link
Contributor Author

Choose a reason for hiding this comment

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

do this here rather in User class for the time being

@kbighorse kbighorse marked this pull request as ready for review July 27, 2023 19:21
transaction do
UspsInPersonProofing::EnrollmentHelper.schedule_in_person_enrollment(user, pii)
deactivate(:in_person_verification_pending)
end
Copy link
Contributor Author

Choose a reason for hiding this comment

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

make sure these both succeed or fail together

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

@kbighorse kbighorse merged commit f5d1267 into main Jul 28, 2023
@kbighorse kbighorse deleted the LG-10381-Consolidate-in-person-Proofing-reads-and-writes branch July 28, 2023 21:36
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