forked-synapse/tests
Erik Johnston 3d33eef6fc
Store state groups separately from events (#2784)
* Split state group persist into seperate storage func

* Add per database engine code for state group id gen

* Move store_state_group to StateReadStore

This allows other workers to use it, and so resolve state.

* Hook up store_state_group

* Fix tests

* Rename _store_mult_state_groups_txn

* Rename StateGroupReadStore

* Remove redundant _have_persisted_state_group_txn

* Update comments

* Comment compute_event_context

* Set start val for state_group_id_seq

... otherwise we try to recreate old state groups

* Update comments

* Don't store state for outliers

* Update comment

* Update docstring as state groups are ints
2018-02-06 14:31:24 +00:00
..
api use jsonschema.FormatChecker for RoomID and UserID strings 2017-03-23 11:42:41 -03:00
appservice Add extra space before inline comment 2017-11-16 18:22:40 +00:00
config Fix broken config UTs 2018-01-09 11:28:33 +00:00
crypto Create dbpool as normal in tests 2018-01-27 17:15:15 +00:00
events Optimise state resolution 2017-01-17 13:22:19 +00:00
handlers Remove spurious unittest.DEBUG 2018-01-26 00:34:27 +00:00
metrics report metrics on number of cache evictions 2018-02-05 15:34:01 +00:00
replication Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
rest Fix broken unit test for media storage 2018-02-05 12:44:03 +00:00
storage Add tests for user directory search 2018-01-27 17:21:57 +00:00
util Merge pull request #2804 from matrix-org/erikj/file_consumer 2018-01-18 16:31:33 +00:00
__init__.py Fix flake8 warnings for tests 2016-02-19 15:34:38 +00:00
test_distributor.py Fix flake8 warnings for tests 2016-02-19 15:34:38 +00:00
test_dns.py Do an AAAA lookup on SRV record targets (#2462) 2017-09-22 20:26:47 +01:00
test_preview.py Fix crash in url preview when html tag has no text 2016-12-14 22:38:18 +01:00
test_state.py Store state groups separately from events (#2784) 2018-02-06 14:31:24 +00:00
test_test_utils.py Fix flake8 warnings for tests 2016-02-19 15:34:38 +00:00
test_types.py Validate group ids when parsing 2017-10-21 00:30:39 +01:00
unittest.py enable twisted delayedcall debugging in UTs 2018-01-09 12:06:45 +00:00
utils.py Add tests for user directory search 2018-01-27 17:21:57 +00:00