summary refs log tree commit diff
path: root/tests/storage/test_stream.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add `stream_ordering` sort to Sliding Sync `/sync` (#17293)Eric Eastwood2024-06-171-23/+33
| | | Sort is no longer configurable and we always sort rooms by the `stream_ordering` of the last event in the room or the point where the user can see up to in cases of leave/ban/invite/knock.
* Fix `get_last_event_in_room_before_stream_ordering(...)` finding the wrong ↵Eric Eastwood2024-06-131-2/+267
| | | | | | | | | | | last event (#17295) PR where this was introduced: https://github.com/matrix-org/synapse/pull/14817 ### What does this affect? `get_last_event_in_room_before_stream_ordering(...)` is used in Sync v2 in a lot of different state calculations. `get_last_event_in_room_before_stream_ordering(...)` is also used in `/rooms/{roomId}/members`
* Correctly mention previous copyright (#16820)Erik Johnston2024-01-231-0/+1
| | | | | During the migration the automated script to update the copyright headers accidentally got rid of some of the existing copyright lines. Reinstate them.
* Update license headersPatrick Cloke2023-11-211-10/+16
|
* Add final type hint to tests.unittest. (#15072)Patrick Cloke2023-02-141-2/+2
| | | | Adds a return type to HomeServerTestCase.make_homeserver and deal with any variables which are no longer Any.
* Require types in tests.storage. (#14646)Patrick Cloke2022-12-091-6/+12
| | | | Adds missing type hints to `tests.storage` package and does not allow untyped definitions.
* Support filtering the /messages API by relation type (MSC3874). (#14148)Patrick Cloke2022-10-171-33/+85
| | | Gated behind an experimental configuration flag.
* Generate historic pagination token for `/messages` when no `?from` token ↵Eric Eastwood2022-04-061-1/+3
| | | | provided (#12370)
* Remove redundant `get_success` calls in test code (#12346)Richard van der Hoff2022-04-011-3/+1
| | | There are a bunch of places we call get_success on an immediate value, which is unnecessary. Let's rip them out, and remove the redundant functionality in get_success and friends.
* Support stable identifiers for MSC3440: Threading (#12151)Patrick Cloke2022-03-101-11/+9
| | | | The unstable identifiers are still supported if the experimental configuration flag is enabled. The unstable identifiers will be removed in a future release.
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Support filtering by relations per MSC3440 (#11236)Patrick Cloke2021-11-091-0/+207
| | | | Adds experimental support for `relation_types` and `relation_senders` fields for filters.
* Remove some unused functions (#711)Mark Haines2016-04-081-185/+0
| | | | | | | | * Remove some unused functions * get_room_events_stream is only used in tests * is_exclusive_room might actually be something we want
* Fix flake8 warnings for testsMark Haines2016-02-191-2/+2
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Remove more unused parametersDaniel Wagner-Hall2015-11-021-4/+0
|
* Implement configurable stats reportingDaniel Wagner-Hall2015-09-221-53/+15
| | | | | | | | | | SYN-287 This requires that HS owners either opt in or out of stats reporting. When --generate-config is passed, --report-stats must be specified If an already-generated config is used, and doesn't have the report_stats key, it is requested to be set.
* Factor out some of the common homeserver setup code into aMark Haines2015-02-111-12/+2
| | | | setup_test_homeserver function in utils.
* Replace hs.parse_roomid with RoomID.from_stringMark Haines2015-01-231-3/+3
|
* Replace hs.parse_userid with UserID.from_stringMark Haines2015-01-231-2/+3
|
* Kill off synapse.api.events.*Erik Johnston2014-12-161-6/+5
|
* Fix prev_contentErik Johnston2014-12-111-3/+2
|
* Fix some testsErik Johnston2014-12-101-39/+34
|
* Fix stream test.Erik Johnston2014-11-101-5/+12
|
* Fix a couple more storage testsErik Johnston2014-11-051-7/+17
|
* Test that prev_content get's added if there is a prev_state key (in the ↵Erik Johnston2014-09-191-17/+70
| | | | event stream).
* SYN-47: Fix bug where we still returned events for rooms we had left.Erik Johnston2014-09-191-0/+173
SYN-47 #resolve