- Sep 21, 2021
-
-
Aaron Raimist authored
* Allow membership event to unban user Signed-off-by:
Aaron Raimist <aaron@raim.ist>
-
- Sep 20, 2021
-
-
David Robertson authored
This should ensure GHA runs synapse against the same-named sytest branch
-
Patrick Cloke authored
Adds missing type hints to methods in the synapse.handlers module and requires all methods to have type hints there. This also removes the unused construct_auth_difference method from the FederationHandler.
-
reivilibre authored
-
- Sep 17, 2021
-
-
Charles Wright authored
-
David Robertson authored
-
- Sep 16, 2021
-
-
Patrick Cloke authored
To avoid duplicating it between a few tests.
-
- Sep 15, 2021
-
-
Erik Johnston authored
We added a bunch of spans in #10704, but this ended up adding a lot of redundant spans for rooms where nothing changed, so instead we only start the span if there might be something interesting going on.
-
Patrick Cloke authored
-
Patrick Cloke authored
Including admin, consent, key, synapse, and media. All REST servlets (the synapse.rest module) now require typed method definitions.
-
Patrick Cloke authored
-
Eric Eastwood authored
-
Eric Eastwood authored
-
- Sep 14, 2021
-
-
reivilibre authored
Also enables Mypy for related tests.
-
Sean Quah authored
In `MatrixFederationHttpClient._send_request()`, we make a HTTP request using an `Agent`, wrap that request in a timeout and await the resulting `Deferred`. On its own, the `Agent` performing the HTTP request correctly stashes and restores the logging context while waiting. The addition of the timeout introduces a path where the logging context is not restored when execution resumes. To address this, we wrap the timeout `Deferred` in a `make_deferred_yieldable()` to stash the logging context and restore it on completion of the `await`. However this is not sufficient, since by the time we construct the timeout `Deferred`, the `Agent` has already stashed and cleared the logging context when using `make_deferred_yieldable()` to produce its `Deferred` for the request. Hence, we wrap the `Agent` request in a `run_in_background()` to "fork" and preserve the logging context so that we can stash and restore it when `await`ing the timeout `Deferred`. This approach is similar to the one used with `defer.gatherResults`. Note that the code is still not fully correct. When a timeout occurs, the request remains running in the background (existing behavior which is nothing to do with the new call to `run_in_background`) and may re-start the logging context after it has finished.
-
Patrick Cloke authored
This is mostly an internal change, but improves type hints in the media code.
-
Andrew Morgan authored
-
David Robertson authored
I had one of these error messages yesterday and assumed it was an invalid auth token (because that was an HTTP query parameter in the test) I was working on. In fact, it was an invalid next batch token for syncing.
-
- Sep 13, 2021
-
-
Patrick Cloke authored
Instead of proxying through the magic getter of the RootConfig object. This should be more performant (and is more explicit).
-
BramvdnHeuvel authored
-
Patrick Cloke authored
This fixes mypy errors with jaeger-client >= 4.7.0 and should be a no-op for versions before that.
-
- Sep 10, 2021
-
-
reivilibre authored
-
reivilibre authored
-
Patrick Cloke authored
By copying the `room_type` field of the create event and migrating any non-empty `m.space.child` events to the new room that is created.
-
David Robertson authored
No functional changes here. This came out as I was working to tackle #5677
-
David Robertson authored
We want to blacklist only known, consistent failures. We should deflake tests rather than ignoring them.
-
AndrewFerr authored
Fixes #10732: consent flow skipped during SSO user registration if username is left at default Signed-off-by:
Andrew Ferrazzutti <fair@miscworks.net>
-
Erik Johnston authored
We've already batched up the events previously, and assume in other places in the events.py file that we have. Removing this makes it easier to adjust the batch sizes in one place.
-
- Sep 09, 2021
-
-
Sean authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Patrick Cloke authored
Hint to clients via the room capabilities API (MSC3244) that room version 9 should be preferred for creating a room with restricted join rules (instead of room version 8).
-
- Sep 08, 2021
-
-
Richard van der Hoff authored
This is only called in two places, and the code seems much clearer without it.
-
Brendan Abolivier authored
* Split up the documentation in several files rather than one huge one * Add examples for each callback category * Other niceties like fixing https://github.com/matrix-org/synapse/issues/10632 * Add titles to callbacks so they're easier to find in the navigation panels and link to
-
kegsay authored
-
Brendan Abolivier authored
When releasing 1.42.0 with @Azrenbeth and talking with @clokep yesterday I realised doing the dch incantations related to releasing Synapse wasn't trivial on eg a macOS system, so this is a script to run in a Debian container to make things a bit easier.
-
Patrick Cloke authored
Also refactors some of the registration of endpoints on workers.
-
Erik Johnston authored
Outlier events don't ever have push actions associated with them, so we can skip some expensive queries during event persistence.
-
Patrick Cloke authored
-
Erik Johnston authored
This used to be a comma and got accidentally changed to a period in #9654, but a pipe character is more easier to parse visually.
-
Patrick Cloke authored
This adds the format to the request arguments / URL to ensure that JSON data is returned (which is all that Synapse supports). This also adds additional error checking / filtering to the configuration file to ignore XML-only providers.
-
Richard van der Hoff authored
I think I have finally teased apart the codepaths which handle outliers, and those that handle non-outliers. Let's add some assertions to demonstrate my newfound knowledge.
-