summary refs log tree commit diff
path: root/tests/test_state.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Store state groups separately from events (#2784)Erik Johnston2018-02-061-66/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Factor out resolve_state_groups to a separate handlerRichard van der Hoff2018-02-011-1/+3
| | | | | | We extract the storage-independent bits of the state group resolution out to a separate functiom, and stick it in a new handler, in preparation for its use from the storage layer.
* Fix typing testsErik Johnston2017-05-261-0/+2
|
* Correctly handle the difference between prev and current stateErik Johnston2016-08-311-23/+15
|
* Fix testsErik Johnston2016-08-261-5/+46
|
* Replace context.current_state with context.current_state_idsErik Johnston2016-08-251-47/+26
|
* Create log context in Measure if one doesn't existErik Johnston2016-04-181-2/+2
|
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Fix an issue with ignoring power_level changes on divergent graphsRichard van der Hoff2015-11-121-0/+93
| | | | | | | | Changes to m.room.power_levels events are supposed to be handled at a high priority; however a typo meant that the relevant bit of code was never executed, so they were handled just like any other state change - which meant that a bad person could cause room state changes by forking the graph from a point in history when they were allowed to do so.
* Merge branch 'erikj/check_room_exists' into erikj/unfederatableErik Johnston2015-09-011-8/+29
|\
| * Fix testsErik Johnston2015-09-011-8/+29
| |
* | Check against sender rather than event_idErik Johnston2015-09-011-1/+1
|/
* Use dictionary cache to do group -> state fetchingErik Johnston2015-08-051-1/+1
|
* Fix testsErik Johnston2015-02-091-1/+6
|
* Implement new state resolution algorithmErik Johnston2015-01-211-71/+357
|
* Construct the EventContext in the state handler rather than constructing one ↵Mark Haines2014-12-161-14/+8
| | | | and then immediately calling state_handler.annotate_context_with_state
* Remove annotate_event_with_state as nothing was using it. Update state tests ↵Mark Haines2014-12-161-69/+39
| | | | to call annotate_context_with_state
* Rename annotate_state_groups to annotate_event_with_stateErik Johnston2014-11-111-6/+6
|
* Fix state testsErik Johnston2014-11-111-517/+176
|
* SPEC-7: Rename 'ts' to 'origin_server_ts'Mark Haines2014-10-171-1/+1
|
* Fixed test.Kegan Dougal2014-10-091-1/+0
|
* Still broken.Kegan Dougal2014-10-091-1/+2
|
* Break a test.Kegan Dougal2014-10-091-1/+1
|
* Fix unit test.Kegan Dougal2014-10-081-1/+1
|
* Break unit test.Kegan Dougal2014-10-081-1/+1
|
* Have all unit tests import from our own subclass of trial's unittest ↵Paul "LeoNerd" Evans2014-09-121-2/+1
| | | | TestCase; set up logging in ONE PLACE ONLY
* Make the state resolution use actual power levels rather than taking them ↵Erik Johnston2014-09-121-45/+140
| | | | from a Pdu key.
* Handle the case where we don't have a common ancestorErik Johnston2014-09-081-0/+24
|
* Fix bug in state handling where we incorrectly identified a missing pdu. ↵Erik Johnston2014-09-081-15/+218
| | | | Update tests to catch this case.
* Fix state unit testErik Johnston2014-09-061-0/+1
|
* fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵Matthew Hodgson2014-09-031-1/+1
| | | | hasn't been incorporated in time for launch.
* Start updating state handling to use snapshotsMark Haines2014-08-271-7/+10
|
* Fix some of the tests to reflect changes in the storage layer.Erik Johnston2014-08-151-2/+2
|
* Add a check to make sure that during state conflict res we only request a ↵Erik Johnston2014-08-151-0/+3
| | | | PDU we don't have.
* add in copyrights to everything, not just the synapse subdir, and add a ↵Matthew Hodgson2014-08-131-0/+14
| | | | copyrighter.pl whilst we're at it
* Reference Matrix Home Servermatrix.org2014-08-121-0/+271