-
- Downloads
Sliding Sync: Move filters tests to rest layer (#17703)
Move filters tests to rest layer in order to test the new (with sliding sync tables) and fallback paths that Sliding Sync can use. Also found a bug in the new path because it's not being tested which is also fixed in this PR. We now take into account `has_known_state` when filtering. Spawning from https://github.com/element-hq/synapse/pull/17662#discussion_r1755574791. This should have been done when we started using the new sliding sync tables in https://github.com/element-hq/synapse/pull/17630
Showing
- changelog.d/17703.misc 1 addition, 0 deletionschangelog.d/17703.misc
- synapse/handlers/sliding_sync/room_lists.py 16 additions, 1 deletionsynapse/handlers/sliding_sync/room_lists.py
- synapse/rest/client/sync.py 1 addition, 1 deletionsynapse/rest/client/sync.py
- synapse/storage/databases/main/roommember.py 4 additions, 2 deletionssynapse/storage/databases/main/roommember.py
- synapse/storage/roommember.py 1 addition, 0 deletionssynapse/storage/roommember.py
- tests/handlers/test_sliding_sync.py 1 addition, 1384 deletionstests/handlers/test_sliding_sync.py
- tests/rest/client/sliding_sync/test_lists_filters.py 1681 additions, 0 deletionstests/rest/client/sliding_sync/test_lists_filters.py
- tests/rest/client/sliding_sync/test_rooms_meta.py 58 additions, 0 deletionstests/rest/client/sliding_sync/test_rooms_meta.py
- tests/rest/client/sliding_sync/test_sliding_sync.py 165 additions, 407 deletionstests/rest/client/sliding_sync/test_sliding_sync.py
Loading
Please register or sign in to comment