Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix bug in EventContext.deserialize. (#7393) | Erik Johnston | 2020-05-05 | 1 | -2/+5 |
| | | | | This caused `prev_state_ids` to be incorrect if the state event was not replacing an existing state entry. | ||||
* | Add StateMap type alias (#6715) | Erik Johnston | 2020-01-16 | 1 | -6/+5 |
| | |||||
* | Change EventContext to use the Storage class (#6564) | Erik Johnston | 2019-12-20 | 1 | -15/+21 |
| | |||||
* | Fix bug which caused rejected events to be stored with the wrong room state ↵ | Richard van der Hoff | 2019-11-06 | 1 | -2/+23 |
| | | | | | | | | | | | | (#6320) Fixes a bug where rejected events were persisted with the wrong state group. Also fixes an occasional internal-server-error when receiving events over federation which are rejected and (possibly because they are backwards-extremities) have no prev_group. Fixes #6289. | ||||
* | Add some checks that we aren't using state from rejected events (#6330) | Richard van der Hoff | 2019-11-05 | 1 | -5/+44 |
| | | | | | | | | | | | | | * Raise an exception if accessing state for rejected events Add some sanity checks on accessing state_group etc for rejected events. * Skip calculating push actions for rejected events It didn't actually cause any bugs, because rejected events get filtered out at various later points, but there's not point in trying to calculate the push actions for a rejected event. | ||||
* | Improve documentation for EventContext fields (#6319) | Richard van der Hoff | 2019-11-05 | 1 | -26/+65 |
| | |||||
* | Factor out an _AsyncEventContextImpl (#6298) | Richard van der Hoff | 2019-11-01 | 1 | -65/+42 |
| | | | | | | The intention here is to make it clearer which fields we can expect to be populated when: notably, that the _event_type etc aren't used for the synchronous impl of EventContext. | ||||
* | Convert EventContext to attrs (#6218) | Richard van der Hoff | 2019-10-28 | 1 | -61/+39 |
| | | | | * make EventContext use an attr | ||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -15/+13 |
| | |||||
* | Move logging utilities out of the side drawer of util/ and into logging/ (#5606) | Amber Brown | 2019-07-04 | 1 | -1/+1 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -25/+24 |
| | |||||
* | Do checks on aliases for incoming m.room.aliases events (#5128) | Brendan Abolivier | 2019-05-08 | 1 | -2/+6 |
| | | | | | Follow-up to #5124 Also added a bunch of checks to make sure everything (both the stuff added on #5124 and this PR) works as intended. | ||||
* | Handle delta_ids being None in _update_context_for_auth_events | Richard van der Hoff | 2018-07-23 | 1 | -1/+2 |
| | | | | | | | it's easier to create the new state group as a delta from the existing one. (There's an outside chance this will help with https://github.com/matrix-org/synapse/issues/3364) | ||||
* | Comments | Erik Johnston | 2018-07-23 | 1 | -2/+3 |
| | |||||
* | Only get cached state from context in persist_event | Erik Johnston | 2018-07-23 | 1 | -0/+13 |
| | | | | | | We don't want to bother pulling out the current state from the DB since until we know we have to. Checking the context for state is just an optimisation. | ||||
* | Fix missing attributes on workers. | Erik Johnston | 2018-07-23 | 1 | -4/+6 |
| | | | | | This was missed during the transition from attribute to getter for getting state from context. | ||||
* | Fix EventContext when using workers | Erik Johnston | 2018-07-23 | 1 | -7/+7 |
| | | | | | | We were: 1. Not correctly setting all attributes 2. Using defer.inlineCallbacks in a non-generator | ||||
* | Update docstrings to make sense | Erik Johnston | 2018-07-23 | 1 | -5/+8 |
| | |||||
* | Add support for updating state | Erik Johnston | 2018-07-23 | 1 | -0/+19 |
| | |||||
* | Make EventContext lazy load state | Erik Johnston | 2018-07-23 | 1 | -41/+112 |
| | |||||
* | pep8 | Erik Johnston | 2018-07-23 | 1 | -1/+1 |
| | |||||
* | Refcator EventContext to accept state during init | Erik Johnston | 2018-07-23 | 1 | -21/+27 |
| | |||||
* | Make the rest of the .iterwhatever go away (#3562) | Amber Brown | 2018-07-21 | 1 | -1/+3 |
| | |||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -2/+2 |
| | |||||
* | Remove context.push_actions | Erik Johnston | 2018-02-15 | 1 | -4/+0 |
| | |||||
* | Don't serialize current state over replication | Erik Johnston | 2018-02-15 | 1 | -6/+35 |
| | |||||
* | Add replication http endpoint for event sending | Erik Johnston | 2018-02-07 | 1 | -0/+72 |
| | |||||
* | Store state groups separately from events (#2784) | Erik Johnston | 2018-02-06 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
* | Add more granular event send metrics | Erik Johnston | 2017-05-02 | 1 | -0/+3 |
| | |||||
* | Refactoring and cleanups | Richard van der Hoff | 2017-03-17 | 1 | -0/+26 |
| | | | | | | | | | | | | A few non-functional changes: * A bunch of docstrings to document types * Split `EventsStore._persist_events_txn` up a bit. Hopefully it's a bit more readable. * Rephrase `EventFederationStore._update_min_depth_for_room_txn` to avoid mind-bending conditional. * Rephrase rejected/outlier conditional in `_update_outliers_txn` to avoid mind-bending conditional. | ||||
* | Add comments | Erik Johnston | 2016-09-05 | 1 | -0/+5 |
| | |||||
* | Move to storing state_groups_state as deltas | Erik Johnston | 2016-09-01 | 1 | -0/+16 |
| | |||||
* | Correctly handle the difference between prev and current state | Erik Johnston | 2016-08-31 | 1 | -2/+3 |
| | |||||
* | Replace context.current_state with context.current_state_ids | Erik Johnston | 2016-08-25 | 1 | -11/+2 |
| | |||||
* | Pull out event ids rather than full events for state | Erik Johnston | 2016-08-25 | 1 | -0/+8 |
| | |||||
* | Atomically persit push actions when we persist the event | Erik Johnston | 2016-02-09 | 1 | -0/+1 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Remove concept of context.auth_events, instead use context.current_state | Erik Johnston | 2015-03-16 | 1 | -2/+1 |
| | |||||
* | Add support for storing rejected events in EventContext and data stores | Erik Johnston | 2015-01-22 | 1 | -0/+1 |
| | |||||
* | Update copyright notices | Mark Haines | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Remove unused functions | Erik Johnston | 2014-12-15 | 1 | -42/+0 |
| | |||||
* | Various typos and bug fixes. | Erik Johnston | 2014-12-08 | 1 | -1/+2 |
| | |||||
* | WIP for new way of managing events. | Erik Johnston | 2014-12-03 | 1 | -0/+63 |