-
Notifications
You must be signed in to change notification settings - Fork 10.7k
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: disable deletion for federated users #32852
Conversation
Looks like this PR is ready to merge! 🎉 |
🦋 Changeset detectedLatest commit: e968252 The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #32852 +/- ##
========================================
Coverage 59.40% 59.40%
========================================
Files 2541 2541
Lines 63181 63181
Branches 14222 14222
========================================
Hits 37531 37531
Misses 22935 22935
Partials 2715 2715
Flags with carried forward coverage won't be shown. Click here to find out more. |
Could you add API tests to assure the fix?? |
Co-authored-by: Marcos Spessatto Defendi <[email protected]>
@Gustrb I don't think we can. a federated user ( Rocket.Chat/apps/meteor/server/services/federation/domain/FederatedUser.ts Lines 45 to 56 in 7b7b8a3
example event, before a dm is created - Line 47 in 7aa0d96
If user is "external", then - Lines 20 to 26 in c317739
Right now, we could trigger for this user to be created. Problem is, we are blocking this in another pr until all of federation configuration is correct. |
Similar is for a user who participated in federation, i.e. have a mapped user in synapse. |
I see, thanks for such a great explanation :) |
Proposed changes (including videos or screenshots)
This PR disables the possibility of delete federated users.
Issue(s)
Steps to test or reproduce
Further comments
CORE-519