Skip to content

LG 11352 Remove double address verification entirely - deploy second#9857

Merged
JackRyan1989 merged 19 commits intomainfrom
jryan/lg-11352-remove-dav-entirely
Jan 22, 2024
Merged

LG 11352 Remove double address verification entirely - deploy second#9857
JackRyan1989 merged 19 commits intomainfrom
jryan/lg-11352-remove-dav-entirely

Conversation

@JackRyan1989
Copy link
Contributor

🎫 Ticket

Link to the relevant ticket

🛠 Summary of changes

Fulfills step three of: https://handbook.login.gov/articles/manage-50-50-state.html#remove-an-argument-from-a-job-perform-method

Deploy 3: Remove the argument

Note: #9854 needs to be deployed first and past the 50/50 state for this code to be ready to merge, hence the status.

📜 Testing Plan

All tests should pass as normal. When running through IPP and Remote Proofing there should be no changes to the proofing or user flow.

return false unless should_proof_state_id
# If the user is in double-address-verification and they have changed their address then
# If the user is in in-person-proofing and they have changed their address then
# they are not eligible for get-to-yes
Copy link
Contributor

Choose a reason for hiding this comment

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

this question isn't about any update you've made but more about clarifying what this means. I wonder what is meant by "changed their address"? Did we mean if same_address_as_id is false that they aren't eligible for get to yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think John Hooper left this comment. I'm thinking it's not actually relevant anymore since we do user_can_pass_after_state_id_check? under the if check? Can't user_can_pass_after_state_id_check? help get to yes?

@JackRyan1989 JackRyan1989 marked this pull request as ready for review January 10, 2024 16:58
@svalexander
Copy link
Contributor

one thing i would want to check is that the pii isn't updated just to confirm that everything is as expected

@JackRyan1989
Copy link
Contributor Author

one thing i would want to check is that the pii isn't updated just to confirm that everything is as expected

Just checking, but I assume you mean the pii doesn't change when ipp_enrollment_in_progress is false, but that with_state_id_address is called on applicant pii when ipp_enrollment_in_progress is true?

JackRyan1989 added 3 commits January 12, 2024 11:23
@JackRyan1989 JackRyan1989 requested a review from a team January 17, 2024 17:55
let(:should_proof_state_id) { true }
let(:ipp_enrollment_in_progress) { true }
let(:double_address_verification) { true }
let(:ipp_enrollment_in_progress) { false }
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting this to false initially will allow us to test the remote flow from the get go.


it 'returns a ResultAdjudicator' do
proofing_result = proof
context 'remote proofing' do
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason this diff is so huge is that I restructured the test a bit. I placed all the initial tests that pertain to remote stuff into a new context block, and then placed all of the existing IPP related tests into an IPP centered context block.

and_return(true)
allow(result_that_failed_instant_verify).to receive(:success?).
and_return(false)
allow(instance).to receive(:with_state_id_address).and_return(transformed_pii)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Mocking the method that does the PII transforming for IPP flow.

Copy link
Contributor

@svalexander svalexander left a comment

Choose a reason for hiding this comment

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

My last suggestion is to change the mock applicant used in the "false" case for prog. proofer but it's not blocking. Going to approve but do we want to get another set of eyes to be safe?

@JackRyan1989
Copy link
Contributor Author

My last suggestion is to change the mock applicant used in the "false" case for prog. proofer but it's not blocking. Going to approve but do we want to get another set of eyes to be safe?

Yeah let's grab one more set of 👀. I really want to make sure the 50/50 state is covered as described in the handbook.

Copy link
Contributor

@n1zyy n1zyy left a comment

Choose a reason for hiding this comment

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

Overall this looks awesome.

I have a couple suggestions/mumblings, but none blocking, so calling this Approved.

jack-ryan-nava-pbc and others added 3 commits January 22, 2024 10:10
Stop disabling rubocop

Co-authored-by: Matt Wagner <mattwagner@navapbc.com>
@JackRyan1989 JackRyan1989 merged commit 87c03c4 into main Jan 22, 2024
@JackRyan1989 JackRyan1989 deleted the jryan/lg-11352-remove-dav-entirely branch January 22, 2024 16:17
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.

4 participants