- Mar 10, 2022
-
-
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.)
-
Patrick Cloke authored
-
Nick Mills-Barrett authored
This allows for the target process to be down for around a minute which provides time for restarts during synapse upgrades/config updates. Closes: #12178 Signed off by Nick Mills-Barrett nick@beeper.com
-
Richard van der Hoff authored
We don't *have* the state at a backwards-extremity, so this is never going to do anything useful.
-
- Mar 08, 2022
-
-
Patrick Cloke authored
* Rewrites the demo documentation to be clearer, accurate, and moves it to our documentation tree. * Improvements to the demo scripts: * `clean.sh` now runs `stop.sh` first to avoid zombie processes. * Uses more modern Synapse configuration (and removes some obsolete configuration). * Consistently use the HTTP ports for server name, etc. * Remove the `demo/etc` directory and place everything into the `demo/808x` directories.
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Olivier Wilkinson (reivilibre) authored
-
reivilibre authored
-
Olivier Wilkinson (reivilibre) authored
-
Erik Johnston authored
-
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.
-
Patrick Cloke authored
Some properties were marked as RedisProtocol instead of ConnectionHandler, which wraps RedisProtocol instance(s).
-
Olivier Wilkinson (reivilibre) authored
-
Olivier Wilkinson (reivilibre) authored
-
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.
-
Richard van der Hoff authored
I've factored it out for easier use in other workflows.
-
- Mar 04, 2022
-
-
Richard van der Hoff authored
-
David Robertson authored
It’s just occurred to me that #12088 pulled in the “packaging” package (~=21.3). I pulled in the newest version I had at the time. I only use it for packaging.requirements.Requirements. Which was added in packaging 16.1: https://github.com/pypa/packaging/releases/tag/16.1 https://pkgs.org/download/python3-packaging suggests that the oldest version we care about is 17.1 in Ubuntu Bionic. So I think with this bound we're hunky dory.
-
Erik Johnston authored
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-
Patrick Cloke authored
-
David Robertson authored
-
David Robertson authored
-
Erik Johnston authored
-
Richard van der Hoff authored
Avoid trying to get the state for outliers, which isn't a sensible thing to do.
-
Richard van der Hoff authored
We make multiple passes over this, so a regular iterable won't do.
-
- Mar 03, 2022
-
-
Richard van der Hoff authored
If we locally generate a rejection for an invite received over federation, it is stored as an outlier (because we probably don't have the state for the room). However, currently we still generate a state group for it (even though the state in that state group will be nonsense). By setting the `outlier` param on `create_event`, we avoid the nonsensical state.
-
Andrew Morgan authored
-
David Robertson authored
I've argued in #11537 that poetry and tox don't cooperate well at the moment. (See also #12119.) Therefore I'm pruning away bits of tox to make the transition to poetry easier. This change removes the commands for coverage. We don't use coverage in anger at the moment. It shouldn't be too hard to add coverage as a dev-dependency and reintroduce this if we really want it.
-
Dirk Klimpel authored
* Add type hints to `tests/rest` * newsfile * change import from `SigningKey`
-
Patrick Cloke authored
This ensures that the `latest_event` field of the bundled aggregation for threads uses the same format as the other events in the response.
-
David Robertson authored
* Fix incorrect argument in test case * Add copyright header * Docstring and __all__ * Exclude dev depenencies * Use changelog from #12088 * Include version in error messages This will hopefully distinguish between the version of the source code and the version of the distribution package that is installed. * Linter script is your friend
-