- Mar 25, 2022
-
-
Shay authored
-
David Robertson authored
Hopefully this fixes #12257. Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
- Mar 24, 2022
-
-
Patrick Cloke authored
The `MockHttpResource` and `MockKey` objects were unused since #9396 (74af356b).
-
Patrick Cloke authored
Filter the events returned from `/relations` for the requester's ignored users in a similar way to `/messages` (and `/sync`).
-
Brendan Abolivier authored
-
- Mar 23, 2022
-
-
Shay authored
-
Nicolas Werner authored
Signed-off-by:
Nicolas Werner <n.werner@famedly.com>
-
Jonathan de Jong authored
Co-authored-by:
reivilibre <olivier@librepush.net>
-
- Mar 21, 2022
-
-
Dirk Klimpel authored
-
- Mar 18, 2022
-
-
David Robertson authored
* Try to detect borked package installations. Fixes #12223. Co-authored-by:
Sean Quah <8349537+squahtx@users.noreply.github.com>
-
Patrick Cloke authored
We fetch the thread summary in two phases: 1. The summary that is shared by all users (count of messages and latest event). 2. Whether the requesting user has participated in the thread. There's no use in attempting step 2 for events which did not return a summary from step 1.
-
- Mar 17, 2022
-
-
Dirk Klimpel authored
-
- Mar 16, 2022
-
-
Patrick Cloke authored
An error occured if a filter was supplied with `event_fields` which did not include `unsigned`. In that case, bundled aggregations are still added as the spec states it is allowed for servers to add additional fields.
-
Sean Quah authored
To handle cancellation, we ensure that `after_callback`s and `exception_callback`s are always run, since the transaction will complete on another thread regardless of cancellation. We also wait until everything is done before releasing the `CancelledError`, so that logging contexts won't get used after they have been finished. Signed-off-by:
Sean Quah <seanq@element.io>
-
Patrick Cloke authored
* Moves the relation pagination tests to a separate class. * Move the assertion of the response code into the `_send_relation` helper. * Moves some helpers into the base-class.
-
Patrick Cloke authored
By using urljoin from the standard library and reducing the number of places URLs are rebased.
-
- Mar 15, 2022
-
-
Patrick Cloke authored
Instead of fetching the raw account data and re-parsing it. The ignored_users table is a denormalised version of the account data for quick searching.
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Dirk Klimpel authored
-
- Mar 14, 2022
-
-
Sean Quah authored
These decorators mostly support cancellation already. Add cancellation tests and fix use of finished logging contexts by delaying cancellation, as suggested by @erikjohnston. Signed-off-by:
Sean Quah <seanq@element.io>
-
Sean Quah authored
Also convert `ReadWriteLock` to use async context managers. Signed-off-by:
Sean Quah <seanq@element.io>
-
Sean Quah authored
`delay_cancellation` behaves like `stop_cancellation`, except it delays `CancelledError`s until the original `Deferred` resolves. This is handy for unifying cleanup paths and ensuring that uncancelled coroutines don't use finished logcontexts. Signed-off-by:
Sean Quah <seanq@element.io>
-
- Mar 11, 2022
-
-
Shay authored
-
Nick Mills-Barrett authored
And rename the field used for caching from _id to _cache_key.
-
Dirk Klimpel authored
Co-authored-by:
Patrick Cloke <clokep@users.noreply.github.com>
-
Patrick Cloke authored
-
Patrick Cloke authored
-
Richard van der Hoff authored
This test was relying on poking events which weren't in the database into filter_events_for_client.
-
- Mar 10, 2022
-
-
Patrick Cloke authored
The unstable identifiers are still supported if the experimental configuration flag is enabled. The unstable identifiers will be removed in a future release.
-
Patrick Cloke authored
This is allowed per MSC2675, although the original implementation did not allow for it and would return an empty chunk / not bundle aggregations. The main thing to improve is that the various caches get cleared properly when an event is redacted, and that edits must not leak if the original event is redacted (as that would presumably leak something similar to the original event content).
-
Patrick Cloke authored
Since the object it returns is a ReplicationCommandHandler. This is clean-up from adding support to Redis where the command handler was added as an additional layer of abstraction from the TCP protocol.
-
- Mar 09, 2022
-
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Will Hunt authored
Add third_party module callbacks to check if a user can delete a room and deactivate a user (#12028) * Add check_can_deactivate_user * Add check_can_shutdown_rooms * Documentation * callbacks, not functions * Various suggested tweaks * Add tests for test_check_can_shutdown_room and test_check_can_deactivate_user * Update check_can_deactivate_user to not take a Requester * Fix check_can_shutdown_room docs * Renegade and use `by_admin` instead of `admin_user_id` * fix lint * Update docs/modules/third_party_rules_callbacks.md Co-authored-by:
Brendan Abolivier <babolivier@matrix.org> * Update docs/modules/third_party_rules_callbacks.md Co-authored-by:
Brendan Abolivier <babolivier@matrix.org> * Update docs/modules/third_party_rules_callbacks.md Co-authored-by:
Brendan Abolivier <babolivier@matrix.org> * Update docs/modules/third_party_rules_callbacks.md Co-authored-by:
Brendan Abolivier <babolivier@matrix.org> Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
Patrick Cloke authored
* `@cached` can now take an `uncached_args` which is an iterable of names to not use in the cache key. * Requires `@cached`, @cachedList` and `@lru_cache` to use keyword arguments for clarity. * Asserts that keyword-only arguments in cached functions are not accepted. (I tested this briefly and I don't believe this works properly.)
-
- Mar 08, 2022
-
-
Patrick Cloke authored
This field is only to be used in the Server-Server API, and not the Client-Server API, but was being leaked when a federation response was used in the /hierarchy API.
-
reivilibre authored
Fix a bug introduced in 1.54.0rc1 which meant that Synapse would refuse to start if pre-release versions of dependencies were installed. (#12177) * Add failing test to characterise the regression #12176 * Permit pre-release versions of specified packages * Newsfile (bugfix) Signed-off-by:
Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
-
- Mar 07, 2022
-
-
Shay authored
Fix a bug in background updates wherein background updates are never run using the default batch size (#12157)
-
Patrick Cloke authored
The caches for the target of the relation must be cleared so that the bundled aggregations are re-calculated after the redaction is processed.
-
- Mar 04, 2022
-
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Patrick Cloke authored
-