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(scim): no-op when member on team doesn't exist #29217

Merged
merged 1 commit into from
Oct 8, 2021

Conversation

JoshFerge
Copy link
Member

If a Sentry org admin manually removes a user from a team, there is a chance azure doesn't sync with this change and will try to remove the user from the team. This throws an error because we pass instead of return.

The RFC doesn't provide guidance in this case, but in the opposite one (member is already in team and you try to add), they simply say to let it go as a no-op, so we do the same here.

@JoshFerge JoshFerge requested a review from a team as a code owner October 8, 2021 19:58
@JoshFerge JoshFerge changed the title fix(scim): fix error when member on team doesnt exist fix(scim): no-op when member on team doesn't exist Oct 8, 2021
@JoshFerge JoshFerge merged commit ba67cf3 into master Oct 8, 2021
@JoshFerge JoshFerge deleted the joshferge/scim-fix-remove branch October 8, 2021 20:20
@sentry-io
Copy link

sentry-io bot commented Oct 8, 2021

Sentry issue: SENTRY-SCP

@github-actions github-actions bot locked and limited conversation to collaborators Oct 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants