- Mar 08, 2022
-
-
Patrick Cloke authored
Some properties were marked as RedisProtocol instead of ConnectionHandler, which wraps RedisProtocol instance(s).
-
- 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
-
-
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
-
Eric Eastwood authored
Co-authored-by:
Brendan Abolivier <babolivier@matrix.org>
-
Erik Johnston authored
There's no reason to let people use long keys.
-
Eric Eastwood authored
The Complement tests for MSC3030 are now merged, https://github.com/matrix-org/complement/pull/178 Synapse implmentation: https://github.com/matrix-org/synapse/pull/9445
-
Brendan Abolivier authored
-
- Mar 02, 2022
-
-
David Robertson authored
* Move the `snapcraft` configuration to `contrib`. We're happy for people to package this as a snap image if it's useful, but we don't support or maintain it. I'd like to move the config to `contrib` to reflect this state of affairs. * Changelog
-
David Robertson authored
* Rename scripts-dev to have suffices * Update references to `scripts-dev` * Changelog * These scripts don't pass mypy
-
David Robertson authored
* Remove unused mocks from `test_typing` It's not clear what these do. `get_user_by_access_token` has the wrong signature, including the return type. Tests all pass without these. I think we should nuke them. * Changelog * Fixup imports
-
Dirk Klimpel authored
* Add type hints to `tests/rest/client` * newsfile * fix imports * add `test_account.py` * Remove one type hint in `test_report_event.py` * change `on_create_room` to `async` * update new functions in `test_third_party_rules.py` * Add `test_filter.py` * add `test_rooms.py` * change to `assertEquals` to `assertEqual` * lint
-
Andrew Morgan authored
-
Erik Johnston authored
As we want to include the previous version in the "No new changes..." string.
-
Patrick Cloke authored
As a str is a sequence, the checks were not granular enough and would allow lists or strings, when only lists were valid.
-
David Robertson authored
* Two scripts are basically entry_points already * Move and rename scripts/* to synapse/_scripts/*.py * Delete sync_room_to_group.pl * Expose entry points in setup.py * Update linter script and config * Fixup scripts & docs mentioning scripts that moved Co-authored-by:
Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
-
Patrick Cloke authored
* Modernizes code (f-strings, etc.) * Fixes incorrect comments. * Splits the test case into two. * Factors out some duplicated code.
-
Olivier Wilkinson (reivilibre) authored
-
Olivier Wilkinson (reivilibre) authored
-
reivilibre authored
-
lukasdenk authored
-
- Mar 01, 2022
-
-
David Robertson authored
* Don't use `tox` for `check-sampleconfig` * Don't use `tox` for check-newsfragment
-
David Robertson authored
* Pull runtime dep checks into their own module * Reimplement `check_requirements` using `importlib` I've tried to make this clearer. We start by working out which of Synapse's requirements we need to be installed here and now. I was surprised that there wasn't an easier way to see which packages were installed by a given extra. I've pulled out the error messages into functions that deal with "is this for an extra or not". And I've rearranged the loop over two different sets of requirements into one loop with a "must be instaled" flag. I hope you agree that this is clearer. * Test cases
-
Sean Quah authored
Signed-off-by:
Sean Quah <seanq@element.io>
-