-
Notifications
You must be signed in to change notification settings - Fork 13k
regression(federation): mongo url, dms etc #37653
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
Co-authored-by: Guilherme Gazzo <guilherme@gazzo.xyz>
|
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 |
|
|
Caution Review failedThe pull request is closed. WalkthroughThis PR consolidates federation regression fixes and test enhancements per issue FB-121. Updates Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro Disabled knowledge base sources:
⛔ Files ignored due to path filters (4)
📒 Files selected for processing (19)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
… manual URL parsing (#37571)
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## release-7.13.0 #37653 +/- ##
=================================================
Coverage ? 68.91%
=================================================
Files ? 3360
Lines ? 114278
Branches ? 20562
=================================================
Hits ? 78752
Misses ? 33431
Partials ? 2095
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Pull request overview
This pull request addresses regressions in federation functionality by updating the federation SDK, fixing MongoDB configuration issues, adding comprehensive media file upload tests, and integrating Qase test reporting.
Key changes:
- Updates
@rocket.chat/federation-sdkfrom 0.3.0 to 0.3.2 and related event handler signatures - Fixes MongoDB URL handling in federation setup by removing unnecessary intermediate variables
- Adds comprehensive media file upload tests for federated rooms (images, PDFs, videos, audio, text files)
- Integrates Qase test reporting infrastructure for better test management
- Implements DM federation detection based on Matrix-style user IDs
Reviewed changes
Copilot reviewed 19 out of 24 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Updates federation-sdk and adds jest-qase-reporter dependencies |
| package.json (root) | Adds jest-qase-reporter dev dependency |
| packages/core-services/package.json | Updates federation-sdk to 0.3.2 |
| ee/packages/federation-matrix/package.json | Updates federation-sdk to 0.3.2 |
| apps/meteor/package.json | Updates federation-sdk to 0.3.2 |
| ee/packages/federation-matrix/src/setup.ts | Simplifies MongoDB URL handling |
| ee/packages/federation-matrix/src/helpers/message.parsers.ts | Updates type path for event content |
| ee/packages/federation-matrix/src/events/room.ts | Updates event handler to use new SDK signature |
| ee/packages/federation-matrix/src/FederationMatrix.ts | Fixes variable reference bug (userId → matrixId) |
| apps/meteor/server/methods/createDirectMessage.ts | Adds federation detection for DMs |
| apps/meteor/app/lib/server/functions/createRoom.ts | Adds complexity eslint disable comment |
| ee/packages/federation-matrix/tests/setup-qase.ts | Adds Qase test reporter setup |
| ee/packages/federation-matrix/tests/helper/synapse-client.ts | Adds file upload/download methods |
| ee/packages/federation-matrix/tests/helper/ddp-listener.ts | Removes debug console.log statements |
| ee/packages/federation-matrix/tests/end-to-end/room.spec.ts | Adds DM creation tests |
| ee/packages/federation-matrix/tests/end-to-end/messaging.spec.ts | Adds comprehensive media upload tests |
| ee/packages/federation-matrix/tests/resources/* | Adds test media files |
| ee/packages/federation-matrix/jest.config.federation.ts | Configures Qase reporter |
| .github/workflows/ci.yml | Adds QASE_TESTOPS_JEST_API_TOKEN secret |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Proposed changes (including videos or screenshots)
Issue(s)
FB-121
Steps to test or reproduce
Further comments
Summary by CodeRabbit
Bug Fixes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.