Skip to content

feat: adds Federation GET /events/{eventId} endpoint#36873

Merged
sampaiodiego merged 4 commits intofeat/federationfrom
feat/federation-get-eventid
Sep 12, 2025
Merged

feat: adds Federation GET /events/{eventId} endpoint#36873
sampaiodiego merged 4 commits intofeat/federationfrom
feat/federation-get-eventid

Conversation

@ricardogarim
Copy link
Copy Markdown
Member

@ricardogarim ricardogarim commented Sep 4, 2025

Previously tied to RocketChat/homeserver#161. We’ve decided to move forward by pushing only the route implementation, leaving out the ACL for now. This helps us isolate domain concerns and speed up the overall work.

Response example for GET /_matrix/federation/v1/event/$KMoGnWYWjaoKlZ0FrmYJjWcc8LGLGz-JoOuvM14gqKU
{
  "origin_server_ts": 1757538253737,
  "origin": "rc1",
  "pdus": [
    {
      "auth_events": [
        "$f9msK-kfJrGKleYgsqpLqSP-MchU4-7I_RIdIIA2J5Y",
        "$SWbOYtZ_1fdwE5V8rKQxx76oQgCEz_YnIfvIYDlwt-g",
        "$yWP9I1nqioBqgdeD6-lxPqh1j2qoUYf5Sxw7qY6syeI"
      ],
      "prev_events": [
        "$io6obrsV6Gnc9czkyEamVejsDWvUOEvRFHIhomai0KM"
      ],
      "type": "m.reaction",
      "room_id": "!CawYSGPh:rc1",
      "sender": "@admin:hs1",
      "content": {
        "m.relates_to": {
          "rel_type": "m.annotation",
          "event_id": "$1Na9fJixdb5fm6tr8moV1OIogFQyPKwJP19ZDIi0BIE",
          "key": "😍"
        }
      },
      "depth": 2,
      "origin": "hs1",
      "origin_server_ts": 1753919202258,
      "hashes": {
        "sha256": "LRr1OOmNP7K6w28uUtyeNhpa2uZSPE40G2WlszdElvo"
      },
      "signatures": {
        "hs1": {
          "ed25519:a_HDhg": "aKVRZDFfHmNY6Q1wvXKJ6pFpKr7BB/jwEs6dXyEpLIQrb+YZElD45Y66oqlw5H5mTfVLIlkxE9pgkhQG/dH8BA"
        }
      },
      "unsigned": {
        "age": 6848
      }
    }
  ]
}

@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot bot commented Sep 4, 2025

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 4, 2025

⚠️ No Changeset found

Latest commit: b342b58

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@ricardogarim ricardogarim force-pushed the feat/federation-get-eventid branch from f8d4acf to b120ccf Compare September 4, 2025 22:16
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Sep 10, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/federation-get-eventid

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 10, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.59%. Comparing base (a5c5e9e) to head (b342b58).
⚠️ Report is 2 commits behind head on feat/federation.

Additional details and impacted files

Impacted file tree graph

@@                 Coverage Diff                 @@
##           feat/federation   #36873      +/-   ##
===================================================
- Coverage            69.60%   69.59%   -0.02%     
===================================================
  Files                 3011     3010       -1     
  Lines                99946    99888      -58     
  Branches             18417    18413       -4     
===================================================
- Hits                 69568    69513      -55     
+ Misses               28402    28400       -2     
+ Partials              1976     1975       -1     
Flag Coverage Δ
e2e 57.64% <ø> (-0.03%) ⬇️
unit 71.62% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ricardogarim ricardogarim marked this pull request as ready for review September 10, 2025 21:10
@sampaiodiego sampaiodiego merged commit a1f650f into feat/federation Sep 12, 2025
92 of 94 checks passed
@sampaiodiego sampaiodiego deleted the feat/federation-get-eventid branch September 12, 2025 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants