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: only delete SSO-synced group membership where membership was added by SSO sync #4929

Merged
merged 2 commits into from
Oct 5, 2023

Conversation

daveleek
Copy link
Contributor

@daveleek daveleek commented Oct 5, 2023

About the changes

Fixes an issue where SSO group sync would delete a syncable group that a user was manually added to

Discussion points

Is this the longterm fix for this? Or would we want another column in the mapping table for future-proofing this?

@vercel
Copy link

vercel bot commented Oct 5, 2023

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

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Oct 5, 2023 9:19am
unleash-monorepo-frontend ⬜️ Ignored (Inspect) Visit Preview Oct 5, 2023 9:19am

Copy link
Contributor

@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.

Is the group already tagged with created_by: SSO ?

@daveleek
Copy link
Contributor Author

daveleek commented Oct 5, 2023

Is the group already tagged with created_by: SSO ?

@chriswk Yeah it has been that way for over 10 months. created_by on group_users gets set as SSO during sync, just that the unit tests didn't so had to update them too

@daveleek daveleek merged commit 40ebb7e into main Oct 5, 2023
8 checks passed
@daveleek daveleek deleted the fix/sso-group-sync-keep-manual-groups branch October 5, 2023 11:22
daveleek added a commit that referenced this pull request Oct 9, 2023
…ed by SSO sync (#4929)

Fixes an issue where SSO group sync would delete a syncable group that a
user was manually added to

## Discussion points

Is this the longterm fix for this? Or would we want another column in
the mapping table for future-proofing this?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants