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

chore: clear scim fields when deleting user + migration for existing cases #9217

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

daveleek
Copy link
Contributor

@daveleek daveleek commented Feb 5, 2025

users.scim_id is unique and will cause collision errors when reinserted.

PR adds a migration that clears scim_id and scim_external_id fields on deleted users, and clears scim_id and scim_external_id when deleting users through user store

Verified

This commit was signed with the committer’s verified signature.
daveleek David Leek
…cases
Copy link

vercel bot commented Feb 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2025 2:42pm
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2025 2:42pm

Copy link
Contributor

github-actions bot commented Feb 5, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

@chriswk
Copy link
Member

chriswk commented Feb 5, 2025

scim_id is our generated id though, so new insert === new scim_id. scim_external_id on the other hand, that comes from whatever system is trying to sync with us.

Copy link
Member

@chriswk chriswk left a comment

Choose a reason for hiding this comment

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

LGTM

Verified

This commit was signed with the committer’s verified signature.
daveleek David Leek
…ting
@daveleek daveleek merged commit 9a8607b into main Feb 5, 2025
8 checks passed
@daveleek daveleek deleted the chore/user-store-clear-scim-fields-when-deleting branch February 5, 2025 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants