-
Notifications
You must be signed in to change notification settings - Fork 13k
fix(federation): add missing federation fields #37015
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(federation): add missing federation fields #37015
Conversation
|
Looks like this PR is not ready to merge, because of the following issues:
Please fix the issues and try again If you have any trouble, please check the PR guidelines |
🦋 Changeset detectedLatest commit: 482eab6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 41 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 |
WalkthroughAdds federation metadata to room and user creation paths, removes federation readiness checks in utilities, and adjusts message hook gating to depend on room federation state and global enablement. Changes
Sequence Diagram(s)sequenceDiagram
participant Client
participant Server
participant FederationUtils as Federation Utils
participant MsgHook as BeforeFederationActions
Client->>Server: Message pre-action hook
Server->>MsgHook: shouldPerformAction(_message, room)
MsgHook->>FederationUtils: isFederationEnabled()
alt Federation enabled AND room federated/native-federated
MsgHook-->>Server: true
else Not enabled or not federated
MsgHook-->>Server: false
end
sequenceDiagram
participant Caller as Any Caller
participant Utils as throwIfFederationNotEnabledOrNotReady
Note over Caller,Utils: Old flow
Caller->>Utils: check()
Utils-->>Caller: throws if disabled OR not ready
Note over Caller,Utils: New flow
Caller->>Utils: check()
Utils-->>Caller: throws only if disabled (no readiness check)
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
🧰 Additional context used🧠 Learnings (2)📓 Common learnings📚 Learning: 2025-09-19T15:15:04.642ZApplied to files:
🧬 Code graph analysis (1)apps/meteor/server/services/messages/hooks/BeforeFederationActions.ts (2)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (6)
Comment |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## chore/federation-backup #37015 +/- ##
===========================================================
+ Coverage 67.32% 67.33% +0.01%
===========================================================
Files 3342 3342
Lines 113403 113401 -2
Branches 20705 20724 +19
===========================================================
+ Hits 76350 76360 +10
+ Misses 34449 34437 -12
Partials 2604 2604
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
1106f8e to
7a338e4
Compare
7a338e4 to
482eab6
Compare
Proposed changes (including videos or screenshots)
Issue(s)
Steps to test or reproduce
Further comments
Summary by CodeRabbit
New Features
Bug Fixes