Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Fix spaces over federation #3347

Merged
merged 6 commits into from
Mar 28, 2024
Merged

Fix spaces over federation #3347

merged 6 commits into from
Mar 28, 2024

Conversation

S7evinK
Copy link
Contributor

@S7evinK S7evinK commented Mar 26, 2024

Fixes #2504

A few issues with the previous iteration:

  • We never returned inaccessible_children, which (if I read the code correctly), made Synapse raise an error and thus not returning the requested rooms
  • For restricted rooms, we didn't return the list of allowed rooms

@S7evinK S7evinK requested a review from a team as a code owner March 26, 2024 18:42
Copy link

codecov bot commented Mar 26, 2024

Codecov Report

Attention: Patch coverage is 0% with 49 lines in your changes are missing coverage. Please review.

Project coverage is 67.35%. Comparing base (ad0a7d0) to head (3d18878).

Files Patch % Lines
roomserver/internal/query/query_room_hierarchy.go 0.00% 41 Missing ⚠️
federationapi/routing/query.go 0.00% 4 Missing ⚠️
roomserver/api/wrapper.go 0.00% 3 Missing ⚠️
clientapi/routing/room_hierarchy.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3347      +/-   ##
==========================================
- Coverage   67.43%   67.35%   -0.08%     
==========================================
  Files         521      521              
  Lines       47348    47364      +16     
==========================================
- Hits        31928    31904      -24     
- Misses      11418    11460      +42     
+ Partials     4002     4000       -2     
Flag Coverage Δ
unittests 52.75% <0.00%> (-0.02%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bones-was-here
Copy link

When running 3d18878 I can no longer reproduce issues with spaces over federation in Element Web. I tested:

  • Synapse joining a space whose children contain no Synapses and whose m.space.child events list only Dendrite
  • Dendrite joining a space whose children contain no Synapses and whose m.space.child events list only a different Dendrite
  • Spaces containing a mix of public and invite-only rooms, using Dendrite and Synapse accounts that aren't members of the invite-only rooms (to make sure they didn't get listed)
  • Spaces containing a mix of public and invite-only rooms, using Dendrite and Synapse accounts that are members of the invite-only rooms

@S7evinK
Copy link
Contributor Author

S7evinK commented Mar 28, 2024

Thanks a lot for testing confirming what I saw :)

@S7evinK S7evinK merged commit b732eed into main Mar 28, 2024
19 of 20 checks passed
@S7evinK S7evinK deleted the s7evink/fed-space-summaries branch March 28, 2024 19:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spaces Summary not working properly over federation
2 participants