-
Notifications
You must be signed in to change notification settings - Fork 166
Consolidate in person Proofing reads and writes into methods. #8856
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
kbighorse
merged 26 commits into
main
from
LG-10381-Consolidate-in-person-Proofing-reads-and-writes
Jul 28, 2023
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
7f767bc
Mark call to be extracted
kbighorse 0d25ef2
Move `Idv::Session#in_person_enrollment?` to `User`
kbighorse 47a6c5d
Use multiple lines
kbighorse a937e97
Replace call from idv step concern
kbighorse 19476b1
Restore `#in_person_enrollment?` to `Idv::Session`
kbighorse ccb3a12
Merge branch 'main' into LG-10381-Consolidate-in-person-Proofing-read…
kbighorse a3f553f
Add in person verification pending to profile maker
kbighorse e7ad54d
Implement in_person_verification_pending on profile maker
kbighorse ffcb56d
Move in_person_verification deactivation_reason logic from session to…
kbighorse 8138953
Merge branch 'main' into LG-10381-Consolidate-in-person-Proofing-read…
kbighorse 3e43c70
Break up long line
kbighorse 2be0cc9
Implement `Profile#deactivate_for_in_person_verification_pending` and…
kbighorse e36068e
Remove empty line
kbighorse 63dfb3d
Remove debug statement
kbighorse 03d0c81
Merge branch 'main' into LG-10381-Consolidate-in-person-Proofing-read…
kbighorse c2a0008
Check in person enrollment on profile itself
kbighorse a536088
Restore new deactivate call
kbighorse b8a6db4
Mark changed field correctly in spec
kbighorse 325c6e5
Move enrollment to deactivate method
kbighorse a737185
Rename method
kbighorse 42e6dcb
Call new method
kbighorse 726f593
Merge branch 'main' into LG-10381-Consolidate-in-person-Proofing-read…
kbighorse c1c3923
Test `Profile#in_person_verification_pending?`
kbighorse 23fa6dd
Add explicit boolean in person method
kbighorse 45b98a4
Merge branch 'main' into LG-10381-Consolidate-in-person-Proofing-read…
kbighorse 849eee8
Merge branch 'main' into LG-10381-Consolidate-in-person-Proofing-read…
kbighorse File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,7 +50,6 @@ def respond_to_missing?(method_sym, include_private) | |
| def create_profile_from_applicant_with_password(user_password) | ||
| profile_maker = build_profile_maker(user_password) | ||
| profile = profile_maker.save_profile( | ||
| deactivation_reason: deactivation_reason, | ||
| fraud_pending_reason: threatmetrix_fraud_pending_reason, | ||
| gpo_verification_needed: gpo_verification_needed?, | ||
| ) | ||
|
|
@@ -76,10 +75,6 @@ def create_profile_from_applicant_with_password(user_password) | |
| end | ||
| end | ||
|
|
||
| def deactivation_reason | ||
| :in_person_verification_pending if in_person_enrollment? | ||
| end | ||
|
|
||
| def gpo_verification_needed? | ||
| !phone_confirmed? || address_verification_mechanism == 'gpo' | ||
| end | ||
|
|
@@ -139,7 +134,7 @@ def add_failed_phone_step_number(phone) | |
| end | ||
|
|
||
| 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 | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do this here rather in |
||
| end | ||
|
|
||
| def verify_info_step_complete? | ||
|
|
@@ -234,6 +229,7 @@ def build_profile_maker(user_password) | |
| user: current_user, | ||
| user_password: user_password, | ||
| initiating_service_provider: service_provider, | ||
| in_person_verification_pending: in_person_enrollment?, | ||
| ) | ||
| end | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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