summary refs log tree commit diff
path: root/synapse/groups/groups_server.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-10-08Remove accidental return statementAndrew Morgan1-2/+0
2020-10-08Update change log v1.21.0rc3Erik Johnston1-1/+1
2020-10-081.21.0rc3Erik Johnston4-3/+16
2020-10-08Add useful shields to readme (#8493)Mateusz PrzybyƂowicz2-7/+24
Added shields directing to synapse-dev room, showing license, latest version on PyPi and supported Python versions. I've moved substitution definitions to the bottom to improve readability. Signed-off-by: Mateusz PrzybyƂowicz <uamfhq@gmail.com>
2020-10-08Clarify error message when plugin config parsers raise an error (#8492)Richard van der Hoff2-1/+2
This turns: Failed to parse config for 'myplugin': Exception('error message') into: Failed to parse config for 'myplugin': error message.
2020-10-07Reduce serialization errors in MultiWriterIdGen (#8456)Erik Johnston7-5/+109
We call `_update_stream_positions_table_txn` a lot, which is an UPSERT that can conflict in `REPEATABLE READ` isolation level. Instead of doing a transaction consisting of a single query we may as well run it outside of a transaction.
2020-10-07Add `xyz.amorgan.knock` /versions stringAndrew Morgan1-0/+2
2020-10-07Move additional tasks to the background worker (#8458)Patrick Cloke8-197/+195
2020-10-07Include the configured log level in phone home stats. (#8477)Patrick Cloke2-0/+8
By reporting the log level of the synapse logger as a string.
2020-10-07Reduce serialization errors in MultiWriterIdGen (#8456)Erik Johnston7-8/+112
We call `_update_stream_positions_table_txn` a lot, which is an UPSERT that can conflict in `REPEATABLE READ` isolation level. Instead of doing a transaction consisting of a single query we may as well run it outside of a transaction.
2020-10-07Use vector clocks for room stream tokens. (#8439)Erik Johnston4-42/+380
Currently when using multiple event persisters we (in the worst case) don't tell clients about events until all event persisters have persisted new events after the original event. This is a suboptimal, especially if one of the event persisters goes down. To handle this, we encode the position of each event persister in the room tokens so that we can send events to clients immediately. To reduce the size of the token we do two things: 1. We create a unique immutable persistent mapping between instance names and a generated small integer ID, which we can encode in the tokens instead of the instance name; and 2. We encode the "persisted upto position" of the room token and then only explicitly include instances that have positions strictly greater than that. The new tokens look something like: `m3478~1.3488~2.3489`, where the first number is the min position, and the subsequent `-` separated pairs are the instance ID to positions map. (We use `.` and `~` as separators as they're URL safe and not already used by `StreamToken`).
2020-10-07Add typing information to the device handler. (#8407)Patrick Cloke4-38/+59
2020-10-07Fix returning incorrect prev_batch token in incremental sync (#8486)Erik Johnston2-1/+7
2020-10-07Add Ubuntu 20.10 (Groovy Gorilla) to build scripts. (#8475)Patrick Cloke2-0/+2
2020-10-07unblacklist some tests (#8474)Richard van der Hoff3-34/+1
It seems most of these blacklisted tests do actually pass most of the time. I'm of the opinion that having them blacklisted here means there is very little incentive for us to deflake any flaky tests, and meanwhile any value in those tests is completely lost.
2020-10-07Add support for MSC2697: Dehydrated devices (#8380)Hubert Chathi9-21/+454
This allows a user to store an offline device on the server and then restore it at a subsequent login.
2020-10-07Combine `SpamCheckerApi` with the more generic `ModuleApi`. (#8464)Richard van der Hoff10-58/+51
Lots of different module apis is not easy to maintain. Rather than adding yet another ModuleApi(hs, hs.get_auth_handler()) incantation, first add an hs.get_module_api() method and use it where possible.
2020-10-07Remove docs/sphinx and related references (#8480)Andrew Morgan62-839/+1
https://github.com/matrix-org/synapse/tree/develop/docs/sphinx doesn't seem to really be utilised or changed recently since the initial commit. I like the idea of exportable documentation of the codebase, but at the moment after running through the build instructions the generated website wasn't very useful...
2020-10-07update wordingRichard van der Hoff1-2/+3
2020-10-06Add support for MSC2732: olm fallback keys (#8312)Hubert Chathi8-1/+215
2020-10-06Additional tests for third-party event rules (#8468)Richard van der Hoff3-18/+79
* Optimise and test state fetching for 3p event rules Getting all the events at once is much more efficient than getting them individually