-
Notifications
You must be signed in to change notification settings - Fork 187
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: Only send rooms with updates down sliding sync #17479
Merged
Merged
Changes from all commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
30263b4
Add SlidingSyncStreamToken
erikjohnston 1ad1cce
Pass throught SlidingSyncStreamToken
erikjohnston e8df0d7
Don't create tokens manually in SSS tests
erikjohnston f3030af
Fix to use new token format
erikjohnston f3a4cfb
Newsfile
erikjohnston d44f7e1
WIP/PoC of storing whether we have sent rooms down to clients
erikjohnston 53273db
Add conn_id field
erikjohnston e2a88e4
Use new room store to track if we've sent a room down
erikjohnston 1858317
Handle initial flag correctly
erikjohnston de6e3bd
Handle state deltas in non-initial rooms
erikjohnston e2c47bf
Fix tests
erikjohnston a90c408
Newsfile
erikjohnston 2968f2e
Bump typing-extensions for 'assert_never'
erikjohnston 2784881
Add tests
erikjohnston d689204
Add docstring
erikjohnston 560087b
Remove '_token' prefix
erikjohnston 40d9587
Apply suggestions from code review
erikjohnston 14eb781
Reword doc
erikjohnston 9ae2551
Keyword args
erikjohnston 51f7602
Rename bounds
erikjohnston eab092b
Add context to conn_id
erikjohnston 605b358
Refactor to avoid SyncConfig.connection_id()
erikjohnston 37c4463
Add some unit tests for 'get_room_sync_data'
erikjohnston 7f26fc4
Merge remote-tracking branch 'origin/develop' into erikj/ss_room_store
erikjohnston 532594e
Fix linting in tests
erikjohnston 1230a51
Merge remote-tracking branch 'origin/develop' into erikj/ss_tokens
erikjohnston 01f1dca
Merge branch 'erikj/ss_tokens' into erikj/ss_room_store
erikjohnston 6f738a4
Apply suggestions from code review
erikjohnston 588dfb8
Merge remote-tracking branch 'origin/develop' into erikj/ss_tokens
erikjohnston 0c4e633
Fix tests
erikjohnston 60790d6
Change token names again
erikjohnston 4ce3e51
Ensure there is only one SlidingSyncHandler
erikjohnston 602b6c8
Add test for cache being cleared
erikjohnston e2f3d48
Merge branch 'erikj/ss_tokens' into erikj/ss_room_store
erikjohnston 81b2162
Merge remote-tracking branch 'origin/develop' into erikj/ss_room_store
erikjohnston 75f7c01
Only send rooms with updates down sliding sync
erikjohnston b36cada
Newsfile
erikjohnston 0812894
Update comments
erikjohnston 66f80cc
Merge remote-tracking branch 'origin/develop' into erikj/ss_room_store
erikjohnston 2c48784
Use do_sync in tests
erikjohnston abd7a5b
Move to integration tests
erikjohnston 470c5d3
Review comments
erikjohnston 90f2184
Previously state test
erikjohnston e7a6c19
Add never test
erikjohnston b9facaf
Review comments
erikjohnston b396450
Add test that empty room comes down initial sync
erikjohnston c56a745
Make it clear we only filter out rooms in incremental sync
erikjohnston c53e83d
Don't send down rooms if nothing has happened
erikjohnston 1740f11
Merge remote-tracking branch 'origin/erikj/ss_room_store' into erikj/…
erikjohnston fd61672
Add dedicated function 'get_rooms_that_might_have_updates'
erikjohnston 7ae5f78
Apply suggestions from code review
erikjohnston 76c69e6
Add clarifying comments
erikjohnston d043009
Merge remote-tracking branch 'origin/develop' into erikj/ss_noop_rooms
erikjohnston 4646edb
Fix comment
erikjohnston 7088cb0
Apply suggestions from code review
erikjohnston 07c0561
Change comment and andd assertion
erikjohnston 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 @@ | ||
Do not send down empty room entries down experimental sliding sync endpoint. |
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
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.
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.
Reading the Sliding Sync MSC3575, I don't see this as allowed. In the spec, the
delta_tokens
only applied totimeline
/required_state
.I'm assuming this is another "Simplified" Sliding Sync change we're making.
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.
From discussion elsewhere: the proxy won't send down rooms where there haven't been changes. I think the confusion is that the list ops that the proxy will use in that case is not
sync
but adelete / insert
.Since we're getting rid of list ops then this distinction doesn't matter, and its ok for us to filter stuff out.