Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

scim: Fix user updates when SCIM was previously enabled#63135

Merged
eseliger merged 1 commit into
mainfrom
es/06-06-scimfixuserupdateswhenscimwaspreviouslyenabled
Jun 6, 2024
Merged

scim: Fix user updates when SCIM was previously enabled#63135
eseliger merged 1 commit into
mainfrom
es/06-06-scimfixuserupdateswhenscimwaspreviouslyenabled

Conversation

@eseliger

@eseliger eseliger commented Jun 6, 2024

Copy link
Copy Markdown
Member

When the user external account entry for SCIM has been deleted in the past, updating the user again fails as the deleted record is found and then the insertion fails.

This PR fixes that by adjusting the unique index to only consider non-soft-deleted external accounts.

Closes SRC-383

Test plan:

Added a test suite for the DB method - it was untested before :(

When the user external account entry for SCIM has been deleted in the past, updating the user again fails as the deleted record is found and then the insertion fails.

This PR fixes that by adjusting the unique index to only consider non-soft-deleted external accounts.

Test plan:

Added a test suite for the DB method - it was untested before :(
@cla-bot cla-bot Bot added the cla-signed label Jun 6, 2024
@github-actions github-actions Bot added team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all labels Jun 6, 2024

eseliger commented Jun 6, 2024

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @eseliger and the rest of your teammates on Graphite Graphite

@eseliger eseliger marked this pull request as ready for review June 6, 2024 19:32
@eseliger eseliger requested review from a team and vdavid June 6, 2024 19:32

@vdavid vdavid left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice, looks good, and thanks for the test! :)

@eseliger eseliger merged commit 7ed7c48 into main Jun 6, 2024
@eseliger eseliger deleted the es/06-06-scimfixuserupdateswhenscimwaspreviouslyenabled branch June 6, 2024 20:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/product-platform team/source Tickets under the purview of Source - the one Source to graph it all

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants