Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Refactor `EventContext` (#12689) | Erik Johnston | 2022-05-10 | 1 | -1/+3 |
| | | | | | | | | | | Refactor how the `EventContext` class works, with the intention of reducing the amount of state we fetch from the DB during event processing. The idea here is to get rid of the cached `current_state_ids` and `prev_state_ids` that live in the `EventContext`, and instead defer straight to the database (and its caching). One change that may have a noticeable effect is that we now no longer prefill the `get_current_state_ids` cache on a state change. However, that query is relatively light, since its just a case of reading a table from the DB (unlike fetching state at an event which is more heavyweight). For deployments with workers this cache isn't even used. Part of #12684 | ||||
* | Remove redundant `get_success` calls in test code (#12346) | Richard van der Hoff | 2022-04-01 | 1 | -14/+12 |
| | | | 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. | ||||
* | Handle outliers in `/federation/v1/event` (#12332) | Richard van der Hoff | 2022-03-31 | 1 | -0/+53 |
| | | | | | | | The intention here is to avoid doing state lookups for outliers in `/_matrix/federation/v1/event`. Unfortunately that's expanded into something of a rewrite of `filter_events_for_server`, which ended up trying to do that operation in a couple of places. | ||||
* | Update client-visibility filtering for outlier events (#12155) | Richard van der Hoff | 2022-03-04 | 1 | -3/+73 |
| | | | Avoid trying to get the state for outliers, which isn't a sensible thing to do. | ||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -1/+3 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Clean up `tests.test_visibility` to remove legacy code. (#11495) | reivilibre | 2021-12-02 | 1 | -202/+39 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Use mock from the stdlib. (#9772) | Patrick Cloke | 2021-04-09 | 1 | -2/+1 |
| | |||||
* | Bugbear: Add Mutable Parameter fixes (#9682) | Jonathan de Jong | 2021-04-08 | 1 | -2/+5 |
| | | | | | | | Part of #9366 Adds in fixes for B006 and B008, both relating to mutable parameter lint errors. Signed-off-by: Jonathan de Jong <jonathan@automatia.nl> | ||||
* | Stop sub-classing object (#8249) | Patrick Cloke | 2020-09-04 | 1 | -1/+1 |
| | |||||
* | Do not yield on awaitables in tests. (#8193) | Patrick Cloke | 2020-08-27 | 1 | -2/+3 |
| | |||||
* | Convert storage layer to async/await. (#7963) | Patrick Cloke | 2020-07-28 | 1 | -4/+10 |
| | |||||
* | Convert groups and visibility code to async / await. (#7951) | Patrick Cloke | 2020-07-27 | 1 | -6/+6 |
| | |||||
* | Convert the message handler to async/await. (#7884) | Patrick Cloke | 2020-07-22 | 1 | -7/+7 |
| | |||||
* | Port to use state storage | Erik Johnston | 2019-10-30 | 1 | -2/+9 |
| | |||||
* | Use new EventPersistenceStore | Erik Johnston | 2019-10-23 | 1 | -3/+4 |
| | |||||
* | Remove test debugs | Erik Johnston | 2019-08-20 | 1 | -1/+0 |
| | |||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -3/+3 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -1/+1 |
| | |||||
* | Run Black on the tests again (#5170) | Amber Brown | 2019-05-10 | 1 | -3/+3 |
| | |||||
* | Collect room-version variations into one place (#4969) | Richard van der Hoff | 2019-04-01 | 1 | -4/+4 |
| | | | | Collect all the things that make room-versions different to one another into one place, so that it's easier to define new room versions. | ||||
* | Fix test to use valid event format | Erik Johnston | 2019-01-29 | 1 | -1/+1 |
| | |||||
* | Fix tests | Erik Johnston | 2019-01-25 | 1 | -0/+4 |
| | |||||
* | Revert "Require event format version to parse or create events" | Erik Johnston | 2019-01-25 | 1 | -4/+0 |
| | |||||
* | Fix tests | Erik Johnston | 2019-01-24 | 1 | -0/+4 |
| | |||||
* | Fix tests on postgresql (#3740) | Amber Brown | 2018-09-04 | 1 | -1/+1 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into ↵ | Erik Johnston | 2018-08-20 | 1 | -72/+75 |
|\ | | | | | | | erikj/refactor_state_handler | ||||
| * | Run tests under PostgreSQL (#3423) | Amber Brown | 2018-08-13 | 1 | -1/+1 |
| | | |||||
| * | Run black. | black | 2018-08-10 | 1 | -71/+74 |
| | | |||||
* | | Fix tests | Erik Johnston | 2018-08-09 | 1 | -1/+3 |
|/ | |||||
* | Fix visibility of events from erased users over federation | Richard van der Hoff | 2018-07-17 | 1 | -0/+63 |
| | |||||
* | fix imports | Richard van der Hoff | 2018-07-17 | 1 | -0/+1 |
| | |||||
* | Add a test which profiles filter_events_for_server in a large room | Richard van der Hoff | 2018-07-16 | 1 | -2/+155 |
| | |||||
* | Move filter_events_for_server out of FederationHandler | Richard van der Hoff | 2018-07-16 | 1 | -0/+107 |
for easier unit testing. |