-
Notifications
You must be signed in to change notification settings - Fork 334
Make deletions via SCIM more stable #2637
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
Conversation
9ec4ca1 to
6f9e26f
Compare
elland
left a comment
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.
Looks good. I have a few nitpicky concerns about function names but that's not too important.
fisx
left a comment
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.
I've made two commits simplifying things, but I think there is more:
- can't we just modify the old
Deleteeffect instead of removing it and adding a different one? semantics is still the same, no? - similarly, can we modify the internal delete end-point in brig that was used before, rather than adding a new one?
while i was changing this, i found another instance where users are deleted on brig (namely when the idp is deleted and all the accounts in it are deleted with it). have you intentionally not updated that? why?
@fisx , yes, your two commits regarding this seem to be perfectly reasonable. 👍
This question follows from your changes in Speaking of synchronous vs. asynchronous: Haven you seen that the prior behavior was asynchronous (with an event) and this is now synchronous? Is that fine with you?
I think I wasn't brave enough and a bit overwhelmed by the implicit relationships of side-effects. So, I kept my change set non invasive. Next time, I should be braver... 😄 |
Co-authored-by: fisx <[email protected]>
Co-authored-by: fisx <[email protected]>
Co-authored-by: fisx <[email protected]>
Co-authored-by: fisx <[email protected]>
Co-authored-by: fisx <[email protected]>
Co-authored-by: fisx <[email protected]>
Co-authored-by: fisx <[email protected]>
Co-authored-by: fisx <[email protected]>
236a703 to
25d7236
Compare
This story gave me some headache: I tried to make things better without adding new fields/tables or expensive queries / indexes. And, had to keep in mind that data, e.g. email addresses or handles may be reused by another account.
Changes:
brigaccounts are now deleted in a synchronous call (/i/users/:uid/ensure-deleted). This way the SCIM caller should at least get an error when something inbrigwent wrong.spardepends on user data frombrig(veid) to delete it's user data. To ensure this is available when needed,spardata is deleted beforebrigdata.All this could have been much nicer without the query restrictions of Cassandra. 🤔
Checklist
If HTTP endpoint paths have been added or renamed, or feature configs have changed, the endpoint / config-flag checklist (see Wire-employee only backend wiki page) has been followed.(Discussed inBackendchannel.)changelog.d.