- Apr 02, 2021
-
-
Jonathan de Jong authored
-
- Apr 01, 2021
-
-
Erik Johnston authored
-
Dirk Klimpel authored
-
- Mar 31, 2021
-
-
Patrick Cloke authored
Per MSC3083.
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Denis Kasak authored
The regex should be terminated so that subdomain matches of another domain are not accepted. Just ensuring that someone doesn't shoot themselves in the foot by copying our example. Signed-off-by:
Denis Kasak <dkasak@termina.org.uk>
-
Cristina authored
Fixes #9642. Signed-off-by:
Cristina Muñoz <hi@xmunoz.com>
-
Andrew Morgan authored
This PR rewrites the original complement.sh script with a number of improvements: * We can now use a local checkout of Complement (configurable with `COMPLEMENT_DIR`), though the default behaviour still downloads the master branch. * You can now specify a regex of test names to run, or just run all tests. * We now use the Synapse test blacklist tag (so all tests will pass).
-
- Mar 30, 2021
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
`room_invite_state_types` was inconvenient as a configuration setting, because anyone that ever set it would not receive any new types that were added to the defaults. Here, we deprecate the old setting, and replace it with a couple of new settings under `room_prejoin_state`.
-
Erik Johnston authored
This should fix a class of bug where we forget to check if e.g. the appservice shouldn't be ratelimited. We also check the `ratelimit_override` table to check if the user has ratelimiting disabled. That table is really only meant to override the event sender ratelimiting, so we don't use any values from it (as they might not make sense for different rate limits), but we do infer that if ratelimiting is disabled for the user we should disabled all ratelimits. Fixes #9663
-
Erik Johnston authored
-
Andrew Morgan authored
For it's obvious performance benefits. `dmypy` support landed in #9692.
-
- Mar 29, 2021
-
-
Patrick Cloke authored
-
blakehawkins authored
Signed-off-by:
blakehawkins <blake.hawkins.11@gmail.com>
-
Patrick Cloke authored
Includes an abstract base class which both the FederationSender and the FederationRemoteSendQueue must implement.
-
Richard van der Hoff authored
I've reiterated the advice about using `oidc` to migrate, since I've seen a few people caught by this. I've also removed a couple of the examples as they are duplicating the OIDC documentation, and I think they might be leading people astray.
-
Andrew Morgan authored
-
Jonathan de Jong authored
-
Richard van der Hoff authored
If you have the wrong version of `cryptography` installed, synapse suggests: ``` To install run: pip install --upgrade --force 'cryptography>=3.4.7;python_version>='3.6'' ``` However, the use of ' inside '...' doesn't work, so when you run this, you get an error.
-
- Mar 26, 2021
-
-
Eric Eastwood authored
Make pip install faster in Docker build for [Complement](https://github.com/matrix-org/complement) testing. If files have changed in a `COPY` command, Docker will invalidate all of the layers below. So I changed the order of operations to install all dependencies before we `COPY synapse /synapse/synapse/`. This allows Docker to use our cached layer of dependencies even when we change the source of Synapse and speed up builds dramatically! `53.5s` -> `3.7s` builds
🤘 As an alternative, I did try using BuildKit caches but this still took 30 seconds overall on that step. 15 seconds to gather the dependencies from the cache and another 15 seconds to `Installing collected packages`. Fix https://github.com/matrix-org/synapse/issues/9364 -
Richard van der Hoff authored
This warning is somewhat confusing to users, so let's suppress it
-
Erik Johnston authored
Running `dmypy run` will do a `mypy` check while spinning up a daemon that makes rerunning `dmypy run` a lot faster. `dmypy` doesn't support `follow_imports = silent` and has `local_partial_types` enabled, so this PR enables those options and fixes the issues that were newly raised. Note that `local_partial_types` will be enabled by default in upcoming mypy releases.
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Erik Johnston authored
-
Paul Tötterman authored
Fixes redirect loop Signed-off-by:
Paul Tötterman <paul.totterman@iki.fi>
-
- Mar 25, 2021
-
-
Quentin Gliech authored
On NixOS, `bash` isn't under `/bin/bash` but rather in some directory in `$PATH`. Locally, I've been patching those scripts to make them work. `/usr/bin/env` seems to be the only [portable way](https://unix.stackexchange.com/questions/29608/why-is-it-better-to-use-usr-bin-env-name-instead-of-path-to-name-as-my ) to use binaries from the PATH as interpreters. Signed-off-by:
Quentin Gliech <quentingliech@gmail.com>
-
Serban Constantin authored
Make it clearer in the source install step that the platform specific prerequisites must be installed first. Signed-off-by:
Serban Constantin <serban.constantin@gmail.com>
-
Andrew Morgan authored
Split off from https://github.com/matrix-org/synapse/pull/9491 Adds a storage method for getting the current presence of all local users, optionally excluding those that are offline. This will be used by the code in #9491 when a PresenceRouter module informs Synapse that a given user should have `"ALL"` user presence updates routed to them. Specifically, it is used here: https://github.com/matrix-org/synapse/blob/b588f16e391d664b11f43257eabf70663f0c6d59/synapse/handlers/presence.py#L1131-L1133 Note that there is a `get_all_presence_updates` function just above. That function is intended to walk up the table through stream IDs, and is primarily used by the presence replication stream. I could possibly make use of it in the PresenceRouter-related code, but it would be a bit of a bodge.
-
- Mar 24, 2021
-
-
Erik Johnston authored
Broke in #9640 Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Patrick Cloke authored
-
Jonathan de Jong authored
-
Richard van der Hoff authored
When we hit an unknown room in the space tree, see if there are other servers that we might be able to poll to get the data. Fixes: #9447
-
Ben Banfield-Zanin authored
-
Patrick Cloke authored
This fixes an error ("Cannot determine consistent method resolution order (MRO)") when running mypy with a cache.
-