Skip to content

Chore: Convert Federation to internal service#28263

Merged
MarcosSpessatto merged 6 commits into
feat/federation-6.1from
chore/convert-federation-to-internal-service
Mar 7, 2023
Merged

Chore: Convert Federation to internal service#28263
MarcosSpessatto merged 6 commits into
feat/federation-6.1from
chore/convert-federation-to-internal-service

Conversation

@MarcosSpessatto

@MarcosSpessatto MarcosSpessatto commented Mar 3, 2023

Copy link
Copy Markdown
Contributor

Proposed changes (including videos or screenshots)

The goal of this PR is to move all the Matrix Federation bootstrap to a centralized place (Services). Today we have that in 2 different places, a portion of the bootstrap on the index file (inside /apps/meteor/app) and another portion inside a Service actually, which lead to confusion.

The idea is to create a new Federation Service for the EE stuff, the CE Service already exists, move everything to be bootstrapped inside of it, and finally kill both index(es) files from either CE and EE (apps/meteor/app).

We'll also leverage this movement in the future in case we want to migrate to MS architecture.

I didn't change anything on the code behavior itself, the changes were made only to achieve the main purpose of the PR. The only exception was to move 2 methods from a EE class to a CE one, created wrongly in the EE environment.

Part of Jira: FED-90

Issue(s)

Steps to test or reproduce

Further comments

@codecov

codecov Bot commented Mar 3, 2023

Copy link
Copy Markdown

Codecov Report

❗ No coverage uploaded for pull request base (feat/federation-6.1@bbc6185). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@                  Coverage Diff                   @@
##             feat/federation-6.1   #28263   +/-   ##
======================================================
  Coverage                       ?   44.95%           
======================================================
  Files                          ?      771           
  Lines                          ?    14984           
  Branches                       ?     2091           
======================================================
  Hits                           ?     6736           
  Misses                         ?     7951           
  Partials                       ?      297           
Flag Coverage Δ
e2e 44.91% <0.00%> (?)

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

@MarcosSpessatto MarcosSpessatto marked this pull request as ready for review March 6, 2023 18:50
@MarcosSpessatto MarcosSpessatto requested a review from a team as a code owner March 6, 2023 18:50
@MarcosSpessatto MarcosSpessatto merged commit 1b91838 into feat/federation-6.1 Mar 7, 2023
@MarcosSpessatto MarcosSpessatto deleted the chore/convert-federation-to-internal-service branch March 7, 2023 16:32
gabriellsh added a commit that referenced this pull request Mar 23, 2023
…ketChat/Rocket.Chat into matrixSearchTestBranch

* 'feat/federation-public-room-search-2' of github.com:RocketChat/Rocket.Chat:
  tests: fix e2e tests
  tests: fix e2e tests
  fix: small tweaks
  fix: create dm users before join the room
  tests: add unit tests + small tweaks
  fix: fix invite links button logic
  chore: fix lint
  feat: support to join public rooms(join, UI, invite link)
  feat: support for public room search (WIP)
  Chore: Improve Federation folder naming and file naming (#28295)
  Chore: Move Federation from app folder to server (#28267)
  Chore: Convert Federation to internal service (#28263)
  [FIX] Fix e2e tests based on selector changes made in the latest release (#28158)
@casalsgh casalsgh modified the milestones: 6.1.0, 6.2.0 Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants