Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix broken unit test | Richard van der Hoff | 2018-06-14 | 1 | -2/+14 |
| | | | | We need power levels for this test to do what it is supposed to do. | ||||
* | Store state groups separately from events (#2784) | Erik Johnston | 2018-02-06 | 1 | -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 handler | Richard van der Hoff | 2018-02-01 | 1 | -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 tests | Erik Johnston | 2017-05-26 | 1 | -0/+2 |
| | |||||
* | Correctly handle the difference between prev and current state | Erik Johnston | 2016-08-31 | 1 | -23/+15 |
| | |||||
* | Fix tests | Erik Johnston | 2016-08-26 | 1 | -5/+46 |
| | |||||
* | Replace context.current_state with context.current_state_ids | Erik Johnston | 2016-08-25 | 1 | -47/+26 |
| | |||||
* | Create log context in Measure if one doesn't exist | Erik Johnston | 2016-04-18 | 1 | -2/+2 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Fix an issue with ignoring power_level changes on divergent graphs | Richard van der Hoff | 2015-11-12 | 1 | -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/unfederatable | Erik Johnston | 2015-09-01 | 1 | -8/+29 |
|\ | |||||
| * | Fix tests | Erik Johnston | 2015-09-01 | 1 | -8/+29 |
| | | |||||
* | | Check against sender rather than event_id | Erik Johnston | 2015-09-01 | 1 | -1/+1 |
|/ | |||||
* | Use dictionary cache to do group -> state fetching | Erik Johnston | 2015-08-05 | 1 | -1/+1 |
| | |||||
* | Fix tests | Erik Johnston | 2015-02-09 | 1 | -1/+6 |
| | |||||
* | Implement new state resolution algorithm | Erik Johnston | 2015-01-21 | 1 | -71/+357 |
| | |||||
* | Construct the EventContext in the state handler rather than constructing one ↵ | Mark Haines | 2014-12-16 | 1 | -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 Haines | 2014-12-16 | 1 | -69/+39 |
| | | | | to call annotate_context_with_state | ||||
* | Rename annotate_state_groups to annotate_event_with_state | Erik Johnston | 2014-11-11 | 1 | -6/+6 |
| | |||||
* | Fix state tests | Erik Johnston | 2014-11-11 | 1 | -517/+176 |
| | |||||
* | SPEC-7: Rename 'ts' to 'origin_server_ts' | Mark Haines | 2014-10-17 | 1 | -1/+1 |
| | |||||
* | Fixed test. | Kegan Dougal | 2014-10-09 | 1 | -1/+0 |
| | |||||
* | Still broken. | Kegan Dougal | 2014-10-09 | 1 | -1/+2 |
| | |||||
* | Break a test. | Kegan Dougal | 2014-10-09 | 1 | -1/+1 |
| | |||||
* | Fix unit test. | Kegan Dougal | 2014-10-08 | 1 | -1/+1 |
| | |||||
* | Break unit test. | Kegan Dougal | 2014-10-08 | 1 | -1/+1 |
| | |||||
* | Have all unit tests import from our own subclass of trial's unittest ↵ | Paul "LeoNerd" Evans | 2014-09-12 | 1 | -2/+1 |
| | | | | TestCase; set up logging in ONE PLACE ONLY | ||||
* | Make the state resolution use actual power levels rather than taking them ↵ | Erik Johnston | 2014-09-12 | 1 | -45/+140 |
| | | | | from a Pdu key. | ||||
* | Handle the case where we don't have a common ancestor | Erik Johnston | 2014-09-08 | 1 | -0/+24 |
| | |||||
* | Fix bug in state handling where we incorrectly identified a missing pdu. ↵ | Erik Johnston | 2014-09-08 | 1 | -15/+218 |
| | | | | Update tests to catch this case. | ||||
* | Fix state unit test | Erik Johnston | 2014-09-06 | 1 | -0/+1 |
| | |||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | Start updating state handling to use snapshots | Mark Haines | 2014-08-27 | 1 | -7/+10 |
| | |||||
* | Fix some of the tests to reflect changes in the storage layer. | Erik Johnston | 2014-08-15 | 1 | -2/+2 |
| | |||||
* | Add a check to make sure that during state conflict res we only request a ↵ | Erik Johnston | 2014-08-15 | 1 | -0/+3 |
| | | | | PDU we don't have. | ||||
* | add in copyrights to everything, not just the synapse subdir, and add a ↵ | Matthew Hodgson | 2014-08-13 | 1 | -0/+14 |
| | | | | copyrighter.pl whilst we're at it | ||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 1 | -0/+271 |