Skip to content

Stop adding updated address to idv_session.pii_from_doc#10393

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-stop-writing-address-to-pii-from-doc
Apr 18, 2024
Merged

Stop adding updated address to idv_session.pii_from_doc#10393
jmhooper merged 1 commit intomainfrom
jmhooper-stop-writing-address-to-pii-from-doc

Conversation

@jmhooper
Copy link
Contributor

@jmhooper jmhooper commented Apr 9, 2024

In #10390 we started using the new idv_session.updated_user_address value to represent the user address if it is present. This allows us to stop overwriting the user address that was on the document in pii_from_doc. We were not able to actually take this step because of the 50/50 state issues related to session updates.

This commit stops overwriting the PII from the document in pii_from_doc when a new address is provided in Idv::AddressController

@jmhooper
Copy link
Contributor Author

jmhooper commented Apr 9, 2024

This cannot be merged until the changes in #10390 are merged

@jmhooper jmhooper force-pushed the jmhooper-read-address-data-from-session branch from e3d3054 to 8c6e8c1 Compare April 9, 2024 18:50
@jmhooper jmhooper force-pushed the jmhooper-stop-writing-address-to-pii-from-doc branch 2 times, most recently from 31127b0 to 8377a5a Compare April 9, 2024 18:53
@jmhooper jmhooper force-pushed the jmhooper-read-address-data-from-session branch 4 times, most recently from 77e8f30 to 38dc46c Compare April 16, 2024 13:49
Base automatically changed from jmhooper-read-address-data-from-session to main April 16, 2024 14:34
In #10390 we started using the new `idv_session.updated_user_address` value to represent the user address if it is present. This allows us to stop overwriting the user address that was on the document in `pii_from_doc`. We were not able to actually take this step because of the 50/50 state issues related to session updates.

This commit stops overwriting the PII from the document in `pii_from_doc` when a new address is provided in `Idv::AddressController`

[skip changelog]
@jmhooper jmhooper force-pushed the jmhooper-stop-writing-address-to-pii-from-doc branch from 8377a5a to 1748a5d Compare April 16, 2024 20:22
@jmhooper
Copy link
Contributor Author

The changes from #10390 were included in the latest release. This should be ready for review.

@jmhooper jmhooper marked this pull request as ready for review April 16, 2024 20:23
@jmhooper jmhooper requested a review from a team April 16, 2024 20:23
end.to change { subject.idv_session.address_edited }.from(nil).to eql(true)
end

it 'updates pii_from_doc in idv_session' do
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we should invert this test (assert that pii_from_doc is not modified?)

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 am a little resistant because I am hopeful we can make pii_from_doc immutable here. That should reduce the risk of a regression and render this test unnecessary.

Copy link
Contributor

Choose a reason for hiding this comment

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

Works for me!

@jmhooper jmhooper merged commit 0cf721b into main Apr 18, 2024
@jmhooper jmhooper deleted the jmhooper-stop-writing-address-to-pii-from-doc branch April 18, 2024 13:23
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