Skip to content
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

Fix: Remove unique constraint from sub field #494

Merged
merged 2 commits into from
Sep 10, 2024
Merged

Conversation

thekaveman
Copy link
Member

@thekaveman thekaveman commented Sep 10, 2024

Closes #493

We're seeing duplicate records in the output file. Since we don't have access to the source data, and a duplicate sub doesn't impact a user's ability to verify, we can ignore duplicates.

I also added the same small fix as cal-itp/benefits#2346

we're seeing duplicate records in the output file
since we don't have access to the source data, and
a duplicate sub doesn't impact a user's ability
to verify, we can ignore duplicates
@thekaveman thekaveman requested a review from a team as a code owner September 10, 2024 15:43
Copy link

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  eligibility_server/db
  models.py
Project Total  

This report was generated by python-coverage-comment-action

@thekaveman thekaveman self-assigned this Sep 10, 2024
Copy link
Member

@lalver1 lalver1 left a comment

Choose a reason for hiding this comment

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

This fix looks good to me! 👍

@thekaveman thekaveman merged commit ce0dafe into main Sep 10, 2024
7 checks passed
@thekaveman thekaveman deleted the fix/nonunique-sub branch September 10, 2024 16:08
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.

IntegrityError: UNIQUE constraint failed: user.sub
2 participants