-
Notifications
You must be signed in to change notification settings - Fork 166
LG-11352: Remove Double Address Verification from job arguments #9829
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
Changes from all commits
5e90676
f28abde
b193d5a
6626899
f1c3735
f6f9199
28aa69a
7a2075d
6c32741
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,12 +13,8 @@ def initialize(instant_verify_ab_test_discriminator = nil) | |
| end | ||
|
|
||
| # @param [Hash] applicant_pii keys are symbols and values are strings, confidential user info | ||
| # @param [Boolean] double_address_verification flag that indicates if user will have | ||
| # both state id address and current residential address verified. Note this value is here as | ||
| # a placeholder until it can be replaced with ipp_enrollment_in_progress in ticket LG-353: | ||
| # https://cm-jira.usa.gov/browse/LG-11353 | ||
| # @param [Boolean] ipp_enrollment_in_progress flag that indicates if user will have | ||
|
Contributor
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. we should probably still keep this definition in addition to the newly added info that it's used in place of the dav flag
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. Is the DAV flag still in place? I thought it was removed from the config?
Contributor
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. it's removed - i was thinking the new comment should be more like: ~
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. I thought ipp_enrollment_in_progress indicates that an enrollment is either in the 'establishing' or 'in progress' statuses? Happy to be wrong though!
Contributor
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. yes but it was also meant as a replacement for |
||
| # both state id address and current residential address verified | ||
| # @param [Boolean] ipp_enrollment_in_progress flag is used in place of DAV flag because DAV is | ||
| # now always true | ||
| # @param [String] request_ip IP address for request | ||
| # @param [Boolean] should_proof_state_id based on state id jurisdiction, indicates if | ||
| # there should be a state id proofing request made to aamva | ||
|
|
@@ -33,8 +29,7 @@ def proof( | |
| should_proof_state_id:, | ||
| threatmetrix_session_id:, | ||
| timer:, | ||
| user_email:, | ||
| double_address_verification: false | ||
| user_email: | ||
|
Contributor
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 we not need
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. Soooo, my open question at the top is more along the lines of "do we need ipp_enrollment_in_progress at all, since I'm pretty sure it's always true? Except when an enrollment is failed or completed it's always in progress or establishing, right?" |
||
| ) | ||
| device_profiling_result = proof_with_threatmetrix_if_needed( | ||
| applicant_pii: applicant_pii, | ||
|
|
@@ -47,21 +42,16 @@ def proof( | |
| residential_instant_verify_result = proof_residential_address_if_needed( | ||
| applicant_pii: applicant_pii, | ||
| timer: timer, | ||
| double_address_verification: double_address_verification, | ||
| ipp_enrollment_in_progress: ipp_enrollment_in_progress, | ||
| ) | ||
|
|
||
| applicant_pii_transformed = applicant_pii.clone | ||
| if ipp_enrollment_in_progress || double_address_verification | ||
| applicant_pii_transformed = with_state_id_address(applicant_pii_transformed) | ||
| end | ||
| applicant_pii_transformed = with_state_id_address(applicant_pii_transformed) | ||
|
|
||
| instant_verify_result = proof_id_address_with_lexis_nexis_if_needed( | ||
| applicant_pii: applicant_pii_transformed, | ||
| timer: timer, | ||
| residential_instant_verify_result: residential_instant_verify_result, | ||
| double_address_verification: double_address_verification, | ||
| ipp_enrollment_in_progress: ipp_enrollment_in_progress, | ||
| ) | ||
|
|
||
| state_id_result = proof_id_with_aamva_if_needed( | ||
|
|
@@ -70,13 +60,11 @@ def proof( | |
| residential_instant_verify_result: residential_instant_verify_result, | ||
| instant_verify_result: instant_verify_result, | ||
| should_proof_state_id: should_proof_state_id, | ||
| double_address_verification: double_address_verification, | ||
| ipp_enrollment_in_progress: ipp_enrollment_in_progress, | ||
| ) | ||
|
|
||
| ResultAdjudicator.new( | ||
| device_profiling_result: device_profiling_result, | ||
| double_address_verification: double_address_verification, | ||
| ipp_enrollment_in_progress: ipp_enrollment_in_progress, | ||
| resolution_result: instant_verify_result, | ||
| should_proof_state_id: should_proof_state_id, | ||
|
|
@@ -118,11 +106,9 @@ def proof_with_threatmetrix_if_needed( | |
| def proof_residential_address_if_needed( | ||
| applicant_pii:, | ||
| timer:, | ||
| double_address_verification: false, | ||
| ipp_enrollment_in_progress: false | ||
| ipp_enrollment_in_progress: | ||
| ) | ||
| return residential_address_unnecessary_result unless | ||
| ipp_enrollment_in_progress || double_address_verification | ||
| return residential_address_unnecessary_result unless ipp_enrollment_in_progress | ||
|
|
||
| timer.time('residential address') do | ||
| resolution_proofer.proof(applicant_pii) | ||
|
|
@@ -142,11 +128,8 @@ def resolution_cannot_pass | |
| end | ||
|
|
||
| def proof_id_address_with_lexis_nexis_if_needed(applicant_pii:, timer:, | ||
| residential_instant_verify_result:, | ||
| double_address_verification:, | ||
| ipp_enrollment_in_progress:) | ||
| if applicant_pii[:same_address_as_id] == 'true' && | ||
| (ipp_enrollment_in_progress || double_address_verification) | ||
| residential_instant_verify_result:) | ||
| if applicant_pii[:same_address_as_id] == 'true' | ||
| return residential_instant_verify_result | ||
| end | ||
| return resolution_cannot_pass unless residential_instant_verify_result.success? | ||
|
|
@@ -158,14 +141,11 @@ def proof_id_address_with_lexis_nexis_if_needed(applicant_pii:, timer:, | |
|
|
||
| def should_proof_state_id_with_aamva?(ipp_enrollment_in_progress:, same_address_as_id:, | ||
| should_proof_state_id:, instant_verify_result:, | ||
| residential_instant_verify_result:, | ||
| double_address_verification:) | ||
| residential_instant_verify_result:) | ||
| return false unless should_proof_state_id | ||
| # If the user is in double-address-verification and they have changed their address then | ||
| # they are not eligible for get-to-yes | ||
| # rubocop:disable Layout/LineLength | ||
| if !(ipp_enrollment_in_progress || double_address_verification) || same_address_as_id == 'true' | ||
| # rubocop:enable Layout/LineLength | ||
| if !ipp_enrollment_in_progress || same_address_as_id == 'true' | ||
| user_can_pass_after_state_id_check?(instant_verify_result) | ||
| else | ||
| residential_instant_verify_result.success? | ||
|
|
@@ -177,12 +157,10 @@ def proof_id_with_aamva_if_needed( | |
| residential_instant_verify_result:, | ||
| instant_verify_result:, | ||
| should_proof_state_id:, | ||
| ipp_enrollment_in_progress:, | ||
| double_address_verification: | ||
| ipp_enrollment_in_progress: | ||
| ) | ||
| same_address_as_id = applicant_pii[:same_address_as_id] | ||
| should_proof_state_id_with_aamva = should_proof_state_id_with_aamva?( | ||
| double_address_verification:, | ||
| ipp_enrollment_in_progress:, | ||
| same_address_as_id:, | ||
| should_proof_state_id:, | ||
|
|
||
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.
Will we need to split this over several deploys to gracefully handle 50/50 states?
Ref: https://handbook.login.gov/articles/manage-50-50-state.html#jobs
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.
This pr is a follow up to this one where
ipp_enrollment_in_progresswas added in order to eventually replacedouble_address_verification. This should satisfy the 50/50 requirements correct?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.
It looks like this pull request includes both of Deploy 2 ("Remove the argument in calls to the job") and Deploy 3 ("Remove the argument") from under "Remove an argument from a job #perform method".
Remove the argument in calls to the job: https://github.com/18F/identity-idp/pull/9829/files#diff-b4c1fa063fe7add8eae466de029891f060102bf5c16e4e69e88fe76e5676332fL31
Remove the argument [in the job itself]: https://github.com/18F/identity-idp/pull/9829/files#diff-32ee3d7bfb2561fc0fdef096c00c6533d565fb019e842a72be42b16b9fdaa959L22
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.
Yeah thanks @aduth this PR should be broken into two. @svalexander I didn't quite get it right with the first PR you referenced. That one made sure the jobs are aware of
ipp_enrollment_in_progressand that the agent.rb file passes in the correct value to the jobs.