- Apr 14, 2021
-
-
Jonathan de Jong authored
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>`>
-
- Apr 09, 2021
-
-
Patrick Cloke authored
-
- Apr 08, 2021
-
-
Jonathan de Jong authored
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>
-
Patrick Cloke authored
Records additional request information into the structured logs, e.g. the requester, IP address, etc.
-
- Mar 29, 2021
-
-
Patrick Cloke authored
-
- Mar 08, 2021
-
-
Jonathan de Jong authored
-
- Feb 16, 2021
-
-
Eric Eastwood authored
- Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version
-
Richard van der Hoff authored
Ensure that we lock correctly to prevent multiple concurrent metadata load requests, and generally clean up the way we construct the metadata cache.
-
- Jan 22, 2021
-
-
Erik Johnston authored
-
- Jan 14, 2021
-
-
Erik Johnston authored
We passed in a graph to `sorted_topologically` which didn't have an entry for each node (as we dropped nodes with no edges).
-
- Jan 11, 2021
-
-
Erik Johnston authored
-
- Jan 06, 2021
-
-
Patrick Cloke authored
-
- Oct 30, 2020
-
-
Richard van der Hoff authored
We don't always need the full power of a DeferredCache.
-
- Oct 21, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Oct 19, 2020
-
-
Richard van der Hoff authored
We need to make sure we are readu for the `set_cache_factor` callback.
-
Richard van der Hoff authored
* Add `DeferredCache.get_immediate` method A bunch of things that are currently calling `DeferredCache.get` are only really interested in the result if it's completed. We can optimise and simplify this case. * Remove unused 'default' parameter to DeferredCache.get() * another get_immediate instance
-
- Oct 16, 2020
-
-
Richard van der Hoff authored
rather than have everything that instantiates an LruCache manage metrics separately, have LruCache do it itself.
-
- Oct 14, 2020
-
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
Richard van der Hoff authored
-
- Sep 04, 2020
-
-
Patrick Cloke authored
-
- Aug 28, 2020
-
-
Patrick Cloke authored
-
- Aug 27, 2020
-
-
Andrew Morgan authored
-
- Aug 19, 2020
-
-
Patrick Cloke authored
-
- Aug 18, 2020
-
-
Andrew Morgan authored
Closes: https://github.com/matrix-org/synapse/issues/6766 Equivalent Sydent PR: https://github.com/matrix-org/sydent/pull/309 I believe it's now time to remove the extra allowed `:` from `client_secret` parameters.
-
- Aug 06, 2020
-
-
Patrick Cloke authored
-
- Jul 09, 2020
-
-
Patrick Cloke authored
-
- Jul 03, 2020
-
-
Dirk Klimpel authored
fixes #7016
-
- Jun 16, 2020
-
-
Dagfinn Ilmari Mannsåker authored
-
- May 27, 2020
-
-
Erik Johnston authored
-
- May 11, 2020
-
-
Amber Brown authored
-
- Apr 22, 2020
-
-
Richard van der Hoff authored
First some background: StreamChangeCache is used to keep track of what "entities" have changed since a given stream ID. So for example, we might use it to keep track of when the last to-device message for a given user was received [1], and hence whether we need to pull any to-device messages from the database on a sync [2]. Now, it turns out that StreamChangeCache didn't support more than one thing being changed at a given stream_id (this was part of the problem with #7206). However, it's entirely valid to send to-device messages to more than one user at a time. As it turns out, this did in fact work, because *some* methods of StreamChangeCache coped ok with having multiple things changing on the same stream ID, and it seems we never actually use the methods which don't work on the stream change caches where we allow multiple changes at the same stream ID. But that feels horribly fragile, hence: let's update StreamChangeCache to properly support this, and add some typing and some more tests while we're at it. [1]: https://github.com/matrix-org/synapse/blob/release-v1.12.3/synapse/storage/data_stores/main/deviceinbox.py#L301 [2]: https://github.com/matrix-org/synapse/blob/release-v1.12.3/synapse/storage/data_stores/main/deviceinbox.py#L47-L51
-
- Mar 24, 2020
-
-
Richard van der Hoff authored
* Pull Sentinel out of LoggingContext ... and drop a few unnecessary references to it * Factor out LoggingContext.current_context move `current_context` and `set_context` out to top-level functions. Mostly this means that I can more easily trace what's actually referring to LoggingContext, but I think it's generally neater. * move copy-to-parent into `stop` this really just makes `start` and `stop` more symetric. It also means that it behaves correctly if you manually `set_log_context` rather than using the context manager. * Replace `LoggingContext.alive` with `finished` Turn `alive` into `finished` and make it a bit better defined.
-
- Feb 21, 2020
-
-
Patrick Cloke authored
Ensure good comprehension hygiene using flake8-comprehensions.
-
- Jan 24, 2020
-
-
Andrew Morgan authored
-
- Jan 16, 2020
-
-
Richard van der Hoff authored
... since the whole response is huge. We even need to break up the assertions, since kibana otherwise truncates them.
-
- Dec 10, 2019
-
-
Erik Johnston authored
-
- Dec 09, 2019
-
-
Erik Johnston authored
-