Skip to content

Return a Pii::StateId object from idv_session.pii_from_doc#10523

Merged
jmhooper merged 1 commit intomainfrom
jmhooper-pii-from-doc-setter
May 1, 2024
Merged

Return a Pii::StateId object from idv_session.pii_from_doc#10523
jmhooper merged 1 commit intomainfrom
jmhooper-pii-from-doc-setter

Conversation

@jmhooper
Copy link
Contributor

Previous commits added the Pii::StateId data class. This is intended to hold the data that is read from the state ID. This has several advantages over the old approach (holding this data in a Hash):

  1. It is immutable so it will error if you try to add data not from the state ID
  2. It has defined attributes that are all required so you know what data will be present

This commit takes the next step in integrating this tool which is modifying idv_session#pii_from_doc to serialize the PII before it is written to the session and then deserialize it into Pii::StateId on read.

Previous commits added the `Pii::StateId` data class. This is intended to hold the data that is read from the state ID. This has several advantages over the old approach (holding this data in a Hash):

1. It is immutable so it will error if you try to add data not from the state ID
2. It has defined attributes that are all required so you know what data will be present

This commit takes the next step in integrating this tool which is modifying `idv_session#pii_from_doc` to serialize the PII before it is written to the session and then dersialize it into `Pii::StateId` on read.

[skip changelog]
@jmhooper jmhooper force-pushed the jmhooper-pii-from-doc-setter branch from 5d8d249 to 6cf3dd5 Compare May 1, 2024 18:16
@jmhooper jmhooper merged commit 1df22f7 into main May 1, 2024
@jmhooper jmhooper deleted the jmhooper-pii-from-doc-setter branch May 1, 2024 19:04
samathad2023 pushed a commit that referenced this pull request May 11, 2024
Previous commits added the `Pii::StateId` data class. This is intended to hold the data that is read from the state ID. This has several advantages over the old approach (holding this data in a Hash):

1. It is immutable so it will error if you try to add data not from the state ID
2. It has defined attributes that are all required so you know what data will be present

This commit takes the next step in integrating this tool which is modifying `idv_session#pii_from_doc` to serialize the PII before it is written to the session and then deserialize it into `Pii::StateId` on read.

[skip changelog]
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