-
Notifications
You must be signed in to change notification settings - Fork 190
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
Sliding Sync: Update filters to be robust against remote invite rooms #17450
Merged
MadLittleMods
merged 51 commits into
develop
from
madlittlemods/robust-remote-invite-filters
Jul 30, 2024
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
3a6eec1
Make `filters.is_encrypted` robust to remote invites
MadLittleMods 7f72d80
Try share work
MadLittleMods 18ec437
More robust
MadLittleMods a67157e
Fix lints
MadLittleMods ffb61cf
Return bool from db
MadLittleMods 9b77c97
Add tests
MadLittleMods d609205
Standardize
MadLittleMods 8ca8ae5
Add TODO for more tests
MadLittleMods 4f50054
Add changelog
MadLittleMods 7ae2425
Invalidate caches
MadLittleMods b35a2da
Use `ROOM_UNKNOWN_SENTINEL`
MadLittleMods 4bb34d3
Iterate on sentinels
MadLittleMods a07ee22
Simply sentinel for now
MadLittleMods 2c9ec61
Merge branch 'develop' into madlittlemods/robust-remote-invite-filters
MadLittleMods 27a97a0
fetch -> get
MadLittleMods 517bfc4
Update comments
MadLittleMods d22bae4
Fix typo
MadLittleMods 8624fb0
Better docstring
MadLittleMods a77b70e
Use constants
MadLittleMods df5093b
Prefer not implementing if not used
MadLittleMods 7c33c83
Separate to its own function (`_bulk_get_stripped_state_for_rooms` ->…
MadLittleMods 474b480
Use `StateMap`
MadLittleMods 82fa037
Fix function name in assertion message
MadLittleMods 6f05bb3
Add tests for when the server leaves the room
MadLittleMods d4c4de1
Ideally, not just current state
MadLittleMods 0ace82d
Add `test_filter_encrypted_after_we_left`
MadLittleMods 8c97eaa
Try get server left rooms (not working)
MadLittleMods 8dd5a47
Implement `is_local_host_in_rooms(...)`
MadLittleMods 5267b03
Start of join room_stats_current
MadLittleMods 329bf09
Working `room_stats_state` joined by `room_stats_current.local_users_…
MadLittleMods d7dcbfd
Add corresponding tests for `filter.room_types`
MadLittleMods 60ec4e3
Fix some lints
MadLittleMods affee22
Fix lints
MadLittleMods 8ee1708
Explain why we join tables
MadLittleMods fe2d84b
Use `StrippedStateEvent` type in tests
MadLittleMods 4ae3079
Prefer f-string
MadLittleMods 05bbcb0
Add `_bulk_get_partial_current_state_content_for_rooms_from_sync_room…
MadLittleMods 376d900
Simplify and share
MadLittleMods 28a36e8
Remove unused methods
MadLittleMods ac7ca67
Maybe current state in the future
MadLittleMods 15e157e
Fix cache busting
MadLittleMods 19968e1
Fix lints
MadLittleMods 8f5e4bf
Shorten name
MadLittleMods 3c144b3
Reconsider all stripped events
MadLittleMods f3b4c9f
Merge branch 'develop' into madlittlemods/robust-remote-invite-filters
MadLittleMods 1732b02
Prefer cache invalidation helper
MadLittleMods 20902e6
Merge branch 'develop' into madlittlemods/robust-remote-invite-filters
MadLittleMods e9b76cc
Go back to dedicated `room_stats_state` lookups
MadLittleMods 484007e
Update cache busting
MadLittleMods 7acb1ad
Prefer `assert_never`
MadLittleMods 45ed4ce
Merge branch 'develop' into madlittlemods/robust-remote-invite-filters
MadLittleMods File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Update experimental [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575) Sliding Sync `/sync` endpoint to handle invite/knock rooms when filtering. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
The
is_encrypted
filter androom_types
filter both share the same challenges in fetching room state so solving one isn't more work than the other.We will also need to apply these patterns for the other filters like
room_name_like
so figuring out how to share the work between filters also makes sense.We're going to implement these other filters at some point anyway.