0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-12-13 09:23:25 +01:00
synapse/tests/events
Eric Eastwood 8c58eb7f17
Add event.internal_metadata.instance_name (#17300)
Add `event.internal_metadata.instance_name` (the worker instance that persisted the event) to go alongside the existing `event.internal_metadata.stream_ordering`.

`instance_name` is useful to properly compare and query for events with a token since you need to compare both the `stream_ordering` and `instance_name` against the vector clock/`instance_map` in the `RoomStreamToken`.

This is pre-requisite work and may be used in https://github.com/element-hq/synapse/pull/17293

Adding `event.internal_metadata.instance_name` was first mentioned in the initial Sliding Sync PR while pairing with @erikjohnston, see 09609cb0db (diff-5cd773fb307aa754bd3948871ba118b1ef0303f4d72d42a2d21e38242bf4e096R405-R410)
2024-06-13 11:32:50 -05:00
..
__init__.py Add some unit tests of prune_events() 2015-10-16 19:56:46 +01:00
test_auto_accept_invites.py Bring auto-accept invite logic into Synapse (#17147) 2024-05-21 20:09:17 +00:00
test_presence_router.py Removed request_key from the SyncConfig (moved outside as its own function parameter) (#17201) 2024-05-16 11:54:46 -05:00
test_snapshot.py Correctly mention previous copyright (#16820) 2024-01-23 11:26:48 +00:00
test_utils.py Add event.internal_metadata.instance_name (#17300) 2024-06-13 11:32:50 -05:00