1
0
Fork 0
mirror of https://github.com/element-hq/synapse.git synced 2025-03-05 15:37:02 +00:00
synapse/tests/rest
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
..
admin Add the ability to filter by state event type on admin room state endpoint (#18035) 2025-01-08 15:38:26 +00:00
client Bust _membership_stream_cache cache when current state changes (#17732) 2025-01-08 10:11:09 -06:00
key Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
media Enable authenticated media by default (#17889) 2024-11-20 14:48:22 +00:00
synapse An federation whitelist query endpoint extension (#16848) 2024-05-13 19:38:45 +00:00
__init__.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_health.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_well_known.py Format files with Ruff (#17643) 2024-09-02 12:39:04 +01:00