summary refs log tree commit diff
path: root/scripts/generate_signing_key.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2020-09-29Discard an empty upload_name before persisting an uploaded file (#7905)Will Hunt3-3/+9
2020-09-29Don't table scan events on worker startup (#8419)Erik Johnston3-1/+44
* Fix table scan of events on worker startup. This happened because we assumed "new" writers had an initial stream position of 0, so the replication code tried to fetch all events written by the instance between 0 and the current position. Instead, set the initial position of new writers to the current persisted up to position, on the assumption that new writers won't have written anything before that point. * Consider old writers coming back as "new". Otherwise we'd try and fetch entries between the old stale token and the current position, even though it won't have written any rows. Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2020-09-29Mypy fixes for `synapse.handlers.federation` (#8422)Richard van der Hoff6-11/+19
For some reason, an apparently unrelated PR upset mypy about this module. Here are a number of little fixes.
2020-09-29Add support for running Complement against the local checkout (#8317)Andrew Morgan2-0/+23
This PR adds a script that: * Builds the local Synapse checkout using our existing `docker/Dockerfile` image. * Downloads [Complement](https://github.com/matrix-org/complement/)'s source code. * Builds the [Synapse.Dockerfile](https://github.com/matrix-org/complement/blob/master/dockerfiles/Synapse.Dockerfile) using the above dockerfile as a base. * Builds and runs Complement against it. This set up differs slightly from [that of the dendrite repo](https://github.com/matrix-org/dendrite/blob/master/build/scripts/complement.sh) (`complement.sh`, `Complement.Dockerfile`), which instead stores a separate, but slightly modified, dockerfile in Dendrite's repo rather than running the one stored in Complement's repo. That synapse equivalent to that dockerfile (`Synapse.Dockerfile`) in Complement's repo is just based on top of `matrixdotorg/synapse:latest`, which we opt to build here locally. Thus copying over the files from Complement's repo wouldn't change any functionality, and would result in two instances of the same files. So just using the dockerfile in Complement's repo was decided upon instead.
2020-09-29Filter out appservices from mau count (#8404)Will Hunt3-2/+25
This is an attempt to fix #8403.
2020-09-29Only assert valid next_link params when provided (#8417)Andrew Morgan3-6/+16
Broken in https://github.com/matrix-org/synapse/pull/8275 and has yet to be put in a release. Fixes https://github.com/matrix-org/synapse/issues/8418. `next_link` is an optional parameter.