Skip to content

LG-2599 Drop SSN uniqueness constraint#3647

Merged
zachmargolis merged 12 commits intomasterfrom
jmhooper-retire-ssn-uniqueness
Mar 26, 2020
Merged

LG-2599 Drop SSN uniqueness constraint#3647
zachmargolis merged 12 commits intomasterfrom
jmhooper-retire-ssn-uniqueness

Conversation

@jmhooper
Copy link
Contributor

Why: Some people have the same SSN. The SSN uniqueness constraint also means that if someone proofs and loses their password and access to their email they cannot create another proofed account.

**Why**: Some people have the same SSN. The SSN uniqueness constraint also means that if someone proofs and loses their password and access to their email they cannot create another proofed account.
@jmhooper jmhooper marked this pull request as ready for review March 22, 2020 15:04
@jmhooper jmhooper requested a review from stevegsa March 22, 2020 15:04
@zachmargolis
Copy link
Contributor

@jmhooper @stevegsa I think this is ready to be reviewed again, I brought back the SSN uniqueness searching so we can keep the analytics bits around

there is already an index on ssn_fingerprint (that's not unique) so no need to add a new one


attr_accessor :ssn

validates :ssn, presence: true
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 profile step actually is not part of the doc auth flow (long story). We'll actually want the SSN unique bit in the extra attributes of the form response coming out of this form.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think I got that in 9a1b1b4

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like it, yeah

@jmhooper
Copy link
Contributor Author

✅ Approved! (I can't approve since this was originally my PR)

Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

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

Approving in lieu of @jmhooper:

✅ Approved! (I can't approve since this was originally my PR)

@zachmargolis zachmargolis merged commit 4cdafbf into master Mar 26, 2020
@zachmargolis zachmargolis deleted the jmhooper-retire-ssn-uniqueness branch March 26, 2020 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants