-
Notifications
You must be signed in to change notification settings - Fork 929
chore: handle deleted organizations in idp sync #17405
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
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
6046b56
test: add unit test to excercise bug when idp sync hits deleted orgs
Emyrk c1cc257
feat: remove users from deleted organizations in idp org sync
Emyrk c267137
add some test noise
Emyrk a9a9cfa
gen + lint
Emyrk 349cec2
update test with more cases
Emyrk 47e76f1
add test to go to zero orgs
Emyrk 764b944
test: add deleted organization noise to existing enterprise idp sync …
Emyrk 92744cf
linting
Emyrk 6ddd69e
more comments
Emyrk 909c895
fix dbmem test case
Emyrk 0dab7bb
Update coderd/idpsync/organization.go
Emyrk 3b49f6c
spacing for formatting
Emyrk 3f9ebcb
Merge remote-tracking branch 'origin/main' into stevenmasley/org_idp_…
Emyrk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
add test to go to zero orgs
- Loading branch information
commit 47e76f13f97a7eeba84a00f4690c000cb0033332
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A dbmem bug I found
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh this is nasty, took me a minute to realize what the bug was. 💀
if you want, rather than track
deleted
yourself, you could do something likeThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had thought about that as well. That felt a bit less direct and less intuitive to me though, so I went with the crude and simple lol