Skip to content
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

[NEW] Matrix federation events coverage expansion + bug fixes #27763

Merged
merged 41 commits into from
Feb 16, 2023

Conversation

MarcosSpessatto
Copy link
Member

@MarcosSpessatto MarcosSpessatto commented Jan 16, 2023

Proposed changes (including videos or screenshots)

FED-81

Issue(s)

Steps to test or reproduce

Further comments

* fix: disabling not supported features on federation channels

* fix: fixing display users on autocomplete

* fix: small tweaks

* fix: disabling OTR in federated rooms

* fix: apply suggestions from review

* fix review

Co-authored-by: yash-rajpal <rajpal.yash03@gmail.com>
@codecov
Copy link

codecov bot commented Jan 16, 2023

Codecov Report

Merging #27763 (e7590fa) into develop (364a153) will increase coverage by 0.05%.
The diff coverage is 38.62%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #27763      +/-   ##
===========================================
+ Coverage    43.71%   43.76%   +0.05%     
===========================================
  Files          790      791       +1     
  Lines        15258    15392     +134     
  Branches      2084     2131      +47     
===========================================
+ Hits          6670     6737      +67     
- Misses        8310     8370      +60     
- Partials       278      285       +7     
Flag Coverage Δ
e2e 43.76% <38.62%> (+0.05%) ⬆️

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

* fix: partial message parser for federated rooms fix (WIP)

* fix: small fix on edit message to prevent loop

* fix: edit quoted messages from RC

* fix: fix lint

* test: partial fix broken unit tests

* fix: small tweaks on parsing messages from RC to Matrix

* test: test for message text converter for Matrix flavour

* test: add test cases to cover message parser issues
* fix: allow rooms with the same name for different servers (WIP)

* fix: display origin server name in room header

* fix: small tweaks

* fix: generate canonical alias from name when private

* fix: use externalRoomId instead of canonical alias

* test: adding tests + final tweaks

* fix: fix spotlight to support changes with federation

* chore: debugging

* fix: make it compatible with latest synapse

* fix: adding a qa tag

* fix: fixing admin rooms list as well

* fix: fixing admin rooms edit when federated

* fix: final tweaks on room list everywhere

* fix: fixing also teh popup channels to support federated rooms

* test: fixing federated rooms message popup

* fix: disabling federated rooms mentions for now

* fix: apply suggestions from review

* chore: lint fix
… was not working (#27327)

* fix: join the room on proxy server when the invitee is from the proxy server

* chore: adding debug

* chore: fix lint

* chore: trying to debug error on latest synapse version

* debug: trying stuff until it works

* chore: skip test

* chore: trying to confirm race condition diagnosis

* fix: trying to fix DM multiple

* chore: skipping test for now

* chore: making sure every local user auto join the room

* fix: removing timeout

* fix: trying to fix invites

* fix: trying to reapply room state from start

* fix: lint

* test: skipping

* test: debugging

* fix: trying to change the callback place

* refactor: clean up the code

* test: adding unit test cases

* fix: add the old event back to the listeners

* test: fix broken tests
* chore: adding e2e tests for federation (WIP)

* style: fix lint

* test: adding basic structure + known tests cases specs

* test: adding first test case + configuration

* test: adding more tests cases + config tweaks

* test: finishing test for public channels

* test: tests for private groups

* chore: ignoring federation tests

* test: tests for DM (WIP)

* test: dm tests (WIP)

* test: removing useless var

* test: removing after each

* test: fix lint

* test: dm tests tweaks

* test: owner rights for channel

* test: visual elements for rooms

* test: tests from remove users/leave from room

* test: ensure the removed from channel sys message shows up in public channels

* chore: trying to fix build

* refactor: clean up the code a little bit

* style: fix lint

* refactor: move to another folder

* fix: fix paths

* fix: addressing this problem in another PR
* chore: adding e2e tests for federation (WIP)

* style: fix lint

* test: adding basic structure + known tests cases specs

* test: adding first test case + configuration

* test: adding more tests cases + config tweaks

* test: finishing test for public channels

* test: tests for private groups

* chore: ignoring federation tests

* test: tests for DM (WIP)

* test: dm tests (WIP)

* test: removing useless var

* test: removing after each

* test: fix lint

* test: dm tests tweaks

* test: owner rights for channel

* test: visual elements for rooms

* test: tests from remove users/leave from room

* test: ensure the removed from channel sys message shows up in public channels

* chore: trying to fix build

* refactor: clean up the code a little bit

* style: fix lint

* refactor: move to another folder

* fix: fix paths

* test: e2e tests for messaging

* test: finishing tests

* chore: disable eslint rule for files

* test: final tweaks

* test: unskip test

* fix: addressing this problem in another PR

* test: small tweaks

* test: more test cases + unskipping some tests

* test: several tweaks

* chore: fix lint

* test: unskip test

* test: final tweaks

* chore: fix lint

* test: small tweaks

* test: unskipping tests

* test: adding tests cases for CE forbidden actions

* test: removing only

* test: adapt to the new message composer

* test: remove and replace waitForTimeout wherever possible

* test: fix stuff from merge
… name per servers (#27578)

* chore: adding e2e tests for federation (WIP)

* style: fix lint

* test: adding basic structure + known tests cases specs

* test: adding first test case + configuration

* test: adding more tests cases + config tweaks

* test: finishing test for public channels

* test: tests for private groups

* chore: ignoring federation tests

* test: tests for DM (WIP)

* test: dm tests (WIP)

* test: removing useless var

* test: removing after each

* test: fix lint

* test: dm tests tweaks

* test: owner rights for channel

* test: visual elements for rooms

* test: tests from remove users/leave from room

* test: ensure the removed from channel sys message shows up in public channels

* chore: trying to fix build

* refactor: clean up the code a little bit

* style: fix lint

* refactor: move to another folder

* fix: fix paths

* test: e2e tests for messaging

* test: finishing tests

* chore: disable eslint rule for files

* test: final tweaks

* test: unskip test

* fix: addressing this problem in another PR

* test: small tweaks

* test: more test cases + unskipping some tests

* test: several tweaks

* chore: fix lint

* test: unskip test

* test: final tweaks

* chore: fix lint

* test: small tweaks

* test: unskipping tests

* test: adding tests cases for CE forbidden actions

* test: removing only

* test: test to ensure the room with the same names per servers

* test: adding more tests cases

* test: adding more tests cases

* test: adapt to the new message composer

* test: remove and replace waitForTimeout wherever possible

* test: remove and replace waitForTimeout wherever possible

* test: final tweaks

* chore: fix lint
* refactor: better structuring folders

* feat: endpoints to search and join public rooms (WIP)

* feat: federation public rooms search (WIP)

* fix: make it possible with  synapse as well (dendrite and synapse behaves different)

* test: adding unit tests for search public rooms feature

* feat: adding support to save federation server names search by user

* feat: small tweaks

* test: fix broken test

* fix: fixing bad typing

* feat: allow users auto-join user the RC auto-join button

* fix: reverting last change + unit tests

* fix: do not set room topic if its empty

* fix: do not show join button on federated rooms if CE

* fix: prefer use rest to avoid collision after merge with other PRs

* chore: fix lint

* test: adding unit test cases

* fix: do not wait to publish it to directory

* fix: add back the auto join feature after refactoring

* fix: missing files

* fix: add the auto-join feature back using method call

* fix: final tweaks when user join the public room by himself

* fix: change errors strings

* fix: prevent to the user join the room twice

* fix: fix wrong condition

* test: fix tests broken due to merge

* fix: fix wrong stuff from merging

* fix: fix wrong stuff from merging(parsing)

* fix: final tweaks

* fix: final tweaks
* fix: disabling admin actions + do not count only federated and remote users as seat cap

* fix: consider as federated users only remote users

* chore: fix lint

* fix: make sure everything is being validated on BE as well

* fix: removing forgotten log

* fix: apply suggestions from review

* fix: apply suggestions from review (WIP)

* fix: apply suggestions from review
* feat: adding the ability to set roles on federated rooms (WIP)

* feat: changing room roles logic (WIP)

* feat: changing room roles logic (WIP)

* refactor: remove all logs

* refactor: remove dead code

* refactor: small improvements

* test: add unit tests(WIP)

* test: add more unit tests

* refactor: code improvement

* fix: change hardcoded error to i18n

* test: fix test

* fix: DM issue

* fix: suggestions from review
@MarcosSpessatto MarcosSpessatto marked this pull request as ready for review February 13, 2023 16:25
@MarcosSpessatto MarcosSpessatto requested review from a team as code owners February 13, 2023 16:25
@dionisio-bot dionisio-bot bot added the stat: ready to merge PR tested and approved waiting for merge label Feb 15, 2023
@kodiakhq kodiakhq bot removed the stat: ready to merge PR tested and approved waiting for merge label Feb 15, 2023
@kodiakhq
Copy link
Contributor

kodiakhq bot commented Feb 15, 2023

This PR currently has a merge conflict. Please resolve this and then re-add the ['stat: ready to merge', 'automerge'] label.

@dionisio-bot dionisio-bot bot added stat: ready to merge PR tested and approved waiting for merge and removed stat: conflict labels Feb 15, 2023
@kodiakhq kodiakhq bot merged commit 43988ab into develop Feb 16, 2023
@kodiakhq kodiakhq bot deleted the feat/federation-feat-2 branch February 16, 2023 21:42
@sampaiodiego sampaiodiego mentioned this pull request Feb 17, 2023
@sampaiodiego sampaiodiego mentioned this pull request Mar 9, 2023
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
squad: federation stat: QA tested stat: ready to merge PR tested and approved waiting for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants