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

🐛(db) fix users duplicate #316

Merged
merged 1 commit into from
Oct 10, 2024
Merged

🐛(db) fix users duplicate #316

merged 1 commit into from
Oct 10, 2024

Conversation

AntoLC
Copy link
Contributor

@AntoLC AntoLC commented Oct 10, 2024

Purpose

Some OIDC identity providers provide a random value in the "sub" field instead of an identifying ID.
It created duplicate users in the database.

Proposal

This migration fixes the issue by removing the duplicate users after having updated all the references to the old users.

@AntoLC AntoLC added bug Something isn't working backend labels Oct 10, 2024
@AntoLC AntoLC requested review from sampaccoud and qbey October 10, 2024 12:01
@AntoLC AntoLC self-assigned this Oct 10, 2024
Some OIDC identity providers provide a random
value in the "sub" field instead of an
identifying ID.
It created duplicate users in the database.
This migration fixes the issue by removing the
duplicate users after having updated all
the references to the old users.
@AntoLC AntoLC force-pushed the fix/duplicate_users branch from d6ee4a2 to 831dfe3 Compare October 10, 2024 13:41
@AntoLC AntoLC marked this pull request as ready for review October 10, 2024 13:42
@AntoLC AntoLC merged commit 0d5b238 into main Oct 10, 2024
16 of 17 checks passed
@AntoLC AntoLC deleted the fix/duplicate_users branch October 10, 2024 14:23
@AntoLC AntoLC mentioned this pull request Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants