1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-09 01:16:50 +00:00
synapse/tests/rest/client/sliding_sync
Eric Eastwood aab3672037
Bust _membership_stream_cache cache when current state changes (#17732)
This is particularly a problem in a state reset scenario where the membership
might change without a corresponding event.

This PR is targeting a scenario where a state reset happens which causes
room membership to change. Previously, the cache would just hold onto
stale data and now we properly bust the cache in this scenario.

We have a few tests for these scenarios which you can see are now fixed
because we can remove the `FIXME` where we were previously manually
busting the cache in the test itself.

This is a general Synapse thing so by it's nature it helps out Sliding
Sync.

Fix https://github.com/element-hq/synapse/issues/17368

Prerequisite for https://github.com/element-hq/synapse/issues/17929

---

Match when are busting `_curr_state_delta_stream_cache`
2025-01-08 10:11:09 -06:00
..
__init__.py Sliding Sync: Split and move tests (#17504) 2024-07-31 12:20:46 -05:00
test_connection_tracking.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extension_account_data.py Sliding sync: Add connection tracking to the account_data extension (#17695) 2024-09-19 19:51:51 +01:00
test_extension_e2ee.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extension_receipts.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extension_to_device.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extension_typing.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_extensions.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_lists_filters.py Sliding Sync: No need to sort if the range is large enough to cover all of the rooms (#17731) 2024-09-19 09:33:34 +01:00
test_room_subscriptions.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_rooms_invites.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00
test_rooms_meta.py Sliding sync: omit bump stamp when it is unchanged (#17788) 2024-10-08 11:17:23 +01:00
test_rooms_required_state.py Merge branch 'master' into develop 2024-12-03 17:44:48 +01:00
test_rooms_timeline.py Sliding Sync: Retrieve fewer events from DB in sync (#17688) 2024-09-10 09:52:42 +01:00
test_sliding_sync.py Bust _membership_stream_cache cache when current state changes (#17732) 2025-01-08 10:11:09 -06:00