summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'develop' into clokep/db-upgrades github/clokep/db-upgrades clokep/db-upgradesPatrick Cloke2023-10-2362-292/+631
|\
| * Mention how to redirect the Jaeger traces to a specific Jaeger instance (#16531)Marcel2023-10-232-0/+6
| |
| * Force TLS certificate verification in registration script. (#16530)Denis Kasak2023-10-232-2/+3
| | | | | | | | | | | | | | | | | | | | If using the script remotely, there's no particularly convincing reason to disable certificate verification, as this makes the connection interceptible. If on the other hand, the script is used locally (the most common use case), you can simply target the HTTP listener and avoid TLS altogether. This is what the script already attempts to do if passed a homeserver configuration YAML file.
| * Remove the last reference to event_txn_id. (#16521)Patrick Cloke2023-10-233-7/+5
| | | | | | | | This table was no longer used, except for a background process which purged old entries in it.
| * Bump matrix-synapse-ldap3 from 0.2.2 to 0.3.0 (#16539)David Robertson2023-10-232-4/+5
| |
| * Bump black from 23.9.1 to 23.10.0 (#16538)dependabot[bot]2023-10-231-23/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [black](https://github.com/psf/black) from 23.9.1 to 23.10.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](https://github.com/psf/black/compare/23.9.1...23.10.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump types-requests from 2.31.0.2 to 2.31.0.10 (#16537)dependabot[bot]2023-10-231-23/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-requests](https://github.com/python/typeshed) from 2.31.0.2 to 2.31.0.10. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-requests dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump gitpython from 3.1.37 to 3.1.40 (#16534)dependabot[bot]2023-10-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [gitpython](https://github.com/gitpython-developers/GitPython) from 3.1.37 to 3.1.40. - [Release notes](https://github.com/gitpython-developers/GitPython/releases) - [Changelog](https://github.com/gitpython-developers/GitPython/blob/main/CHANGES) - [Commits](https://github.com/gitpython-developers/GitPython/compare/3.1.37...3.1.40) --- updated-dependencies: - dependency-name: gitpython dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump types-pillow from 10.0.0.3 to 10.1.0.0 (#16536)dependabot[bot]2023-10-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-pillow](https://github.com/python/typeshed) from 10.0.0.3 to 10.1.0.0. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-pillow dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump pygithub from 1.59.1 to 2.1.1 (#16535)dependabot[bot]2023-10-231-5/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pygithub](https://github.com/pygithub/pygithub) from 1.59.1 to 2.1.1. - [Release notes](https://github.com/pygithub/pygithub/releases) - [Changelog](https://github.com/PyGithub/PyGithub/blob/main/doc/changes.rst) - [Commits](https://github.com/pygithub/pygithub/compare/v1.59.1...v2.1.1) --- updated-dependencies: - dependency-name: pygithub dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Clarify presence router docs. (#16529)Patrick Cloke2023-10-202-3/+12
| |
| * Mark sync as limited if there is a gap in the timeline (#16485)Erik Johnston2023-10-195-33/+166
| | | | | | | | | | | | | | | | This splits thinsg into two queries, but most of the time we won't have new event backwards extremities so this shouldn't actually add an extra RTT for the majority of cases. Note this removes the check for events with no prev events, but that was part of MSC2716 work that has since been removed.
| * Avoid sending massive replication updates when purging a room. (#16510)Patrick Cloke2023-10-184-30/+115
| |
| * Improve performance of delete device messages query (#16492)Mathieu Velten2023-10-183-7/+11
| |
| * Run trial/integration tests if .ci is modified. (#16512)Patrick Cloke2023-10-182-0/+7
| |
| * Bump urllib3 from 1.26.17 to 1.26.18 (#16516)dependabot[bot]2023-10-181-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Test against Python 3.12 release (#16511)Patrick Cloke2023-10-172-2/+3
| |
| * Update the changelog. v1.95.0rc1Patrick Cloke2023-10-171-2/+2
| |
| * 1.95.0rc1Patrick Cloke2023-10-1733-31/+55
| |
| * Convert DeviceLastConnectionInfo to attrs. (#16507)Patrick Cloke2023-10-174-103/+104
| | | | | | To improve type safety & memory usage.
| * Fix a bug where servers could be marked as up when they were failing (#16506)Patrick Cloke2023-10-173-13/+93
| | | | | | | | After this change a server will only be reported as back online if they were previously having requests fail.
* | Documentation.Patrick Cloke2023-10-161-7/+24
| |
* | Merge remote-tracking branch 'origin/develop' into clokep/db-upgradesPatrick Cloke2023-10-16168-1786/+2413
|\|
| * Update the release script to remind releaser to check for special release ↵reivilibre2023-10-162-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | notes. (#16461) * Add reminder to check special release notes board in release script * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Update release.py * Bah, black --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
| * Convert state delta processing from a dict to attrs. (#16469)Patrick Cloke2023-10-168-109/+111
| | | | | | For improved type checking & memory usage.
| * Bump pillow from 10.0.1 to 10.1.0 (#16498)dependabot[bot]2023-10-161-55/+55
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump serde from 1.0.188 to 1.0.189 (#16494)dependabot[bot]2023-10-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.188 to 1.0.189. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.188...v1.0.189) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump sentry-sdk from 1.31.0 to 1.32.0 (#16496)dependabot[bot]2023-10-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [sentry-sdk](https://github.com/getsentry/sentry-python) from 1.31.0 to 1.32.0. - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](https://github.com/getsentry/sentry-python/compare/1.31.0...1.32.0) --- updated-dependencies: - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Remove useless async job to delete device messages on sync (#16491)Mathieu Velten2023-10-163-24/+4
| |
| * Bump jsonschema from 4.19.0 to 4.19.1 (#16500)dependabot[bot]2023-10-161-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [jsonschema](https://github.com/python-jsonschema/jsonschema) from 4.19.0 to 4.19.1. - [Release notes](https://github.com/python-jsonschema/jsonschema/releases) - [Changelog](https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst) - [Commits](https://github.com/python-jsonschema/jsonschema/compare/v4.19.0...v4.19.1) --- updated-dependencies: - dependency-name: jsonschema dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump types-jsonschema from 4.17.0.10 to 4.19.0.3 (#16499)dependabot[bot]2023-10-161-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-jsonschema](https://github.com/python/typeshed) from 4.17.0.10 to 4.19.0.3. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-jsonschema dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump packaging from 23.1 to 23.2 (#16497)dependabot[bot]2023-10-161-3/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [packaging](https://github.com/pypa/packaging) from 23.1 to 23.2. - [Release notes](https://github.com/pypa/packaging/releases) - [Changelog](https://github.com/pypa/packaging/blob/main/CHANGELOG.rst) - [Commits](https://github.com/pypa/packaging/compare/23.1...23.2) --- updated-dependencies: - dependency-name: packaging dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Bump pyo3-log from 0.8.3 to 0.8.4 (#16495)dependabot[bot]2023-10-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pyo3-log](https://github.com/vorner/pyo3-log) from 0.8.3 to 0.8.4. - [Changelog](https://github.com/vorner/pyo3-log/blob/main/CHANGELOG.md) - [Commits](https://github.com/vorner/pyo3-log/compare/v0.8.3...v0.8.4) --- updated-dependencies: - dependency-name: pyo3-log dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Clean up logging on event persister endpoints (#16488)Richard van der Hoff2023-10-143-6/+14
| |
| * Fix typo in useful_sql_for_admins.md (#16477)Laurence Gill2023-10-122-1/+2
| |
| * Revert "Drop unused tables & unneeded access token ID for events. (#16268)" ↵Patrick Cloke2023-10-124-29/+8
| | | | | | | | | | | | | | | | (#16465) This reverts commit cabd57746004fe2dacc11aa8d373854a3d25e306. There are additional usages of these tables which need to be removed first.
| * Update complement.sh to match new public API shape (#16466)kegsay2023-10-123-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | * Update complement.sh to match new public API shape Sister PR to https://github.com/matrix-org/complement/pull/666 Context: https://github.com/matrix-org/complement/issues/654#issuecomment-1746613495 * Changelog * Pedantry * Run complement plz
| * Convert user_get_threepids response to attrs. (#16468)Patrick Cloke2023-10-119-18/+31
| | | | | | This improves type annotations by not having a dictionary of Any values.
| * Convert simple_select_many_batch, simple_select_many_txn to tuples. (#16444)Patrick Cloke2023-10-1123-442/+640
| |
| * Handle content types with parameters. (#16440)Patrick Cloke2023-10-113-2/+22
| |
| * Inline simple_search_list/simple_search_list_txn. (#16434)Patrick Cloke2023-10-104-73/+49
| | | | | | | | This only has a single use and is over abstracted. Inline it so that we can improve type hints.
| * Merge remote-tracking branch 'origin/master' into developPatrick Cloke2023-10-101-1/+1
| |\
| | * Add CVE number for advisory GHSA-5chr-wjw5-3gq4.Patrick Cloke2023-10-101-1/+1
| | |
| * | Merge branch 'master' into developOlivier Wilkinson (reivilibre)2023-10-101-0/+13
| |\|
| | * Add security advisory note to the changelogOlivier Wilkinson (reivilibre)2023-10-101-0/+13
| | |
| * | Merge branch 'master' into developOlivier Wilkinson (reivilibre)2023-10-103-1/+12
| |\|
| | * 1.94.0 v1.94.0Olivier Wilkinson (reivilibre)2023-10-103-1/+12
| | |
| * | Add DB indices to speed up purging rooms (#16457)David Robertson2023-10-104-0/+35
| | |
| * | Disable statement timeout whilst purging rooms (#16455)reivilibre2023-10-092-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Disable statement timeout whilst purging rooms * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Note the introduction version --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
| * | Don't block CI on sign-off (#16454)Erik Johnston2023-10-092-1/+1
| | | | | | | | | As this doesn't work with the private sign off flow.
| * | Bump ruff from 0.0.290 to 0.0.292 (#16449)dependabot[bot]2023-10-097-28/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump ruff from 0.0.290 to 0.0.292 Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.290 to 0.0.292. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](https://github.com/astral-sh/ruff/compare/v0.0.290...v0.0.292) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Fix up lint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Erik Johnston <erik@matrix.org>
| * | Bump netaddr from 0.8.0 to 0.9.0 (#16453)dependabot[bot]2023-10-091-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [netaddr](https://github.com/drkjam/netaddr) from 0.8.0 to 0.9.0. - [Release notes](https://github.com/drkjam/netaddr/releases) - [Changelog](https://github.com/netaddr/netaddr/blob/master/CHANGELOG) - [Commits](https://github.com/drkjam/netaddr/compare/0.8.0...0.9.0) --- updated-dependencies: - dependency-name: netaddr dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * | Bump psycopg2 from 2.9.8 to 2.9.9 (#16452)dependabot[bot]2023-10-091-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [psycopg2](https://github.com/psycopg/psycopg2) from 2.9.8 to 2.9.9. - [Changelog](https://github.com/psycopg/psycopg2/blob/master/NEWS) - [Commits](https://github.com/psycopg/psycopg2/compare/2.9.8...2.9.9) --- updated-dependencies: - dependency-name: psycopg2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * | Bump bleach from 6.0.0 to 6.1.0 (#16451)dependabot[bot]2023-10-091-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [bleach](https://github.com/mozilla/bleach) from 6.0.0 to 6.1.0. - [Changelog](https://github.com/mozilla/bleach/blob/main/CHANGES) - [Commits](https://github.com/mozilla/bleach/compare/v6.0.0...v6.1.0) --- updated-dependencies: - dependency-name: bleach dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * | Bump types-bleach from 6.0.0.4 to 6.1.0.0 (#16450)dependabot[bot]2023-10-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [types-bleach](https://github.com/python/typeshed) from 6.0.0.4 to 6.1.0.0. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-bleach dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * | Fix possible AttributeError when account-api is called over unix socket (#16404)Christoph2023-10-092-1/+2
| | | | | | | | | Fixes #16396
| * | Apply join rate limiter outside the lineariser (#16441)David Robertson2023-10-063-20/+48
| | |
| * | Convert simple_select_list_paginate_txn to return tuples. (#16433)Patrick Cloke2023-10-067-39/+67
| | |
| * | Return ThumbnailInfo in more places (#16438)Patrick Cloke2023-10-066-80/+90
| | | | | | | | | | | | Improves type hints by using concrete types instead of dictionaries.
| * | Drop unused tables & unneeded access token ID for events. (#16268)Patrick Cloke2023-10-064-8/+29
| | | | | | | | | | | | Drop the event_txn_id table and the tables related to MSC2716, which is no longer supported in Synapse.
| * | Stop sending incorrect knock_state_events. (#16403)Patrick Cloke2023-10-066-23/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | Synapse was incorrectly implemented with a knock_state_events property on some APIs (instead of knock_room_state). This was correct in Synapse 1.70.0, but *both* fields were sent to also be compatible with Synapse versions expecting the wrong field. Enough time has passed that only the correct field needs to be included/handled.
| * | Fix comments related to replication. (#16428)Patrick Cloke2023-10-063-3/+2
| | |
| * | Add documentation on background updates. (#16420)Patrick Cloke2023-10-062-0/+62
| | |
| * | Register media servlets via regex. (#16419)Patrick Cloke2023-10-0620-337/+297
| | | | | | | | | | | | | | | This converts the media servlet URLs in the same way as (most) of the rest of Synapse. This will give more flexibility in the versions each endpoint exists under.
| * | Bump pyo3 from 0.17.1 to 0.19.2 (#16162)V024602023-10-064-17/+29
| | | | | | | | | Signed-off-by: Kai A. Hiller <V02460@gmail.com>
| * | Remove unused method. (#16435)Patrick Cloke2023-10-052-20/+1
| | |
| * | Remove manys calls to cursor_to_dict (#16431)Patrick Cloke2023-10-0516-228/+320
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids calling cursor_to_dict and then immediately unpacking the values in the dict for other users. By not creating the intermediate dictionary we can avoid allocating the dictionary and strings for the keys, which should generally be more performant. Additionally this improves type hints by avoid Dict[str, Any] dictionaries coming out of the database layer.
| * | Add __slots__ to replication commands. (#16429)Patrick Cloke2023-10-052-1/+27
| | | | | | | | | To slightly reduce the amount of memory each command takes.
| * | Factor out `MultiWriter` token from `RoomStreamToken` (#16427)Erik Johnston2023-10-059-61/+115
| | |
| * | Add type hints to synmark. (#16421)Patrick Cloke2023-10-047-48/+90
| | |
| * | Some refactors around receipts stream (#16426)Erik Johnston2023-10-0416-80/+111
| |/
| * Update changelog v1.94.0rc1David Robertson2023-10-031-2/+2
| |
| * 1.94.0rc1David Robertson2023-10-0327-25/+59
| |
| * Bump urllib3 from 1.26.15 to 1.26.17 (#16422)dependabot[bot]2023-10-031-4/+4
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| * Add note to 'federation_domain_whitelist' option (#16416)Erik Johnston2023-10-032-0/+6
| |
* | Merge branch 'develop' into clokep/db-upgradesPatrick Cloke2023-10-0223-402/+777
|\|
| * Clean-up old release notes (#16418)Patrick Cloke2023-10-023-134/+136
| | | | | | | | Fixes some broken formatting from the reStructuedText to Markdown conversion and fixes some typos.
| * mypy plugin to check `@cached` return types (#14911)David Robertson2023-10-028-59/+324
| | | | | | | | | | | | | | | | Co-authored-by: David Robertson <davidr@element.io> Co-authored-by: Patrick Cloke <patrickc@matrix.org> Co-authored-by: Erik Johnston <erik@matrix.org> Assert that the return type of callables wrapped in @cached and @cachedList are cachable (aka immutable).
| * Remove Python version from `/_synapse/admin/v1/server_version` (#16380)MomentQYC2023-10-024-12/+9
| | | | | | | | There's no reason to expose the full Python version over what is frequently a public API.
| * Bump phonenumbers from 8.13.19 to 8.13.22 (#16413)dependabot[bot]2023-10-021-3/+3
| |
| * Bump msgpack from 1.0.6 to 1.0.7 (#16412)dependabot[bot]2023-10-021-57/+57
| |
| * Bump types-netaddr from 0.8.0.9 to 0.9.0.1 (#16411)dependabot[bot]2023-10-021-3/+3
| |
| * Bump pydantic from 2.3.0 to 2.4.2 (#16410)dependabot[bot]2023-10-021-111/+111
| |
| * Bump psycopg2 from 2.9.7 to 2.9.8 (#16409)dependabot[bot]2023-10-021-12/+22
| |
| * Bump regex from 1.9.5 to 1.9.6 (#16408)dependabot[bot]2023-10-021-4/+4
| |
| * Downgrade repl stream time out error to warning (#16401)Erik Johnston2023-09-292-1/+2
| | | | | | | | | | | | This is because if a worker reaches ~100% CPU then everything starts lagging and we hit the log line a lot. When at error we invoke sentry and that has a lot of overhead, which then puts even more pressure on the worker.
| * Support rendering some media downloads as inline (#15988)Will Hunt2023-09-294-6/+106
| | | | | | | | | | Use an `inline` Content-Disposition header when the media is "safe" to display inline (some known text, image, video, audio formats).
* | Fix-up types.Patrick Cloke2023-09-281-1/+2
| |
* | NewsfragmentPatrick Cloke2023-09-281-0/+1
| |
* | Add warning about interaction with full dumps.Patrick Cloke2023-09-281-0/+3
| |
* | Bail during start-up if there are old background updates.Patrick Cloke2023-09-282-1/+42
|/
* Remove warnings from the docs about using message retention. (#16382)Patrick Cloke2023-09-283-7/+4
| | | | | There are no known bugs in the message retention code, but it is possible that there still exists race conditions. Additional fixes will be made as reported.
* Improve state types. (#16395)Patrick Cloke2023-09-283-8/+11
|
* Use modern config for maturin. (#16394)Patrick Cloke2023-09-283-0/+4
| | | | | | | This allows maturin >= 0.15 to build the properly named shared library object. For now the old configuration is also kept to allow for older maturin installs to be used.
* Merge branch 'master' into developErik Johnston2023-09-263-1/+27
|\
| * 1.93.0 v1.93.0Erik Johnston2023-09-263-1/+27
| |
* | Add a cache around server ACL checking (#16360)Patrick Cloke2023-09-2611-85/+235
| | | | | | | | | | * Pre-compiles the server ACLs onto an object per room and invalidates them when new events come in. * Converts the server ACL checking into Rust.
* | Implement MSC4028: push all encrypted events. (#16361)Patrick Cloke2023-09-268-1/+31
| | | | | | | | This unstable push rule is implemented behind an experimental configuration flag.
* | Skip export-data on non-code (e.g. docs) PRs (#16387)David Robertson2023-09-262-3/+5
| |
* | Add documentation about the user directory search algorithm (#16320)Patrick Cloke2023-09-262-26/+111
| |
* | Reduce calls to `send_presence_to_destinations` (#16385)Erik Johnston2023-09-262-15/+19
| |
* | Improve comments in StateGroupBackgroundUpdateStore. (#16383)Patrick Cloke2023-09-252-2/+17
| |
* | Add developer documentation concerning gradual schema migrations with column ↵reivilibre2023-09-252-0/+158
| | | | | | | | | | | | | | alterations. (#15691) Co-authored-by: Eric Eastwood <erice@element.io>
* | Avoid running CI steps when the files they check have not been changed. (#14745)reivilibre2023-09-252-14/+83
| |
* | Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14 (#16381)dependabot[bot]2023-09-254-32/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14 Bumps [types-psycopg2](https://github.com/python/typeshed) from 2.9.21.11 to 2.9.21.14. - [Commits](https://github.com/python/typeshed/commits) --- updated-dependencies: - dependency-name: types-psycopg2 dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * Relax the annotation of Cursor.description See https://github.com/matrix-org/synapse/pull/16343#issuecomment-1726083384 for rationale. * Changelog * Changelog --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: David Robertson <davidr@element.io>
* | Bump actions/checkout from 3 to 4 (#16250)dependabot[bot]2023-09-259-47/+47
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Add support for pydantic v2 via pydantic.v1 compat module (#16332)Maxwell G2023-09-2517-94/+348
| | | | | | While maintaining support with pydantic v1.
* | Bump cryptography from 41.0.3 to 41.0.4 (#16362)dependabot[bot]2023-09-251-24/+24
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Get CI to check PRs have been signed-off (#16348)David Robertson2023-09-252-1/+8
| |
* | Bump sentry-sdk from 1.30.0 to 1.31.0 (#16378)dependabot[bot]2023-09-251-3/+5
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump msgpack from 1.0.5 to 1.0.6 (#16377)dependabot[bot]2023-09-251-65/+58
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump gitpython from 3.1.35 to 3.1.37 (#16376)dependabot[bot]2023-09-251-4/+7
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump docker/setup-buildx-action from 2 to 3 (#16375)dependabot[bot]2023-09-252-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump dawidd6/action-download-artifact from 2.27.0 to 2.28.0 (#16374)dependabot[bot]2023-09-251-1/+1
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Add missing license header. (#16359)Patrick Cloke2023-09-212-0/+14
| |
* | Convert more cached return values to immutable types (#16356)Patrick Cloke2023-09-2011-36/+52
| |
* | Return immutable objects for cachedList decorators (#16350)Patrick Cloke2023-09-1924-100/+134
| |
* | Merge branch 'release-v1.93' into developPatrick Cloke2023-09-1959-57/+85
|\|
| * Update changelog. v1.93.0rc1Patrick Cloke2023-09-191-4/+5
| |
| * Tweak changelog.Patrick Cloke2023-09-191-11/+8
| |
| * 1.93.0rc1Patrick Cloke2023-09-1959-57/+87
| |
* | Fix-up deactivated notes in docs. (#16355)Patrick Cloke2023-09-192-1/+2
|/
* Use string for federation_client_minimum_tls_version documentation examples ↵Jan Christian Grünhage2023-09-192-4/+5
| | | | (#16353)
* Bump serde_json from 1.0.106 to 1.0.107 (#16345)dependabot[bot]2023-09-181-2/+2
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump furo from 2023.8.19 to 2023.9.10 (#16340)dependabot[bot]2023-09-181-3/+3
| | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Test against PostgreSQL 16. (#16351)Patrick Cloke2023-09-182-1/+2
|
* Bump ruff from 0.0.286 to 0.0.290 (#16342)dependabot[bot]2023-09-184-33/+22
| | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patrick Cloke <patrickc@matrix.org>
* Merge branch 'master' into developMathieu Velten2023-09-183-1/+26
|\
| * Update changelog v1.92.3Mathieu Velten2023-09-181-2/+4
| |
| * 1.92.3Mathieu Velten2023-09-184-2/+24
| |
| * Mandate Pillow>=10.0.1 because of libwebp CVE (#16347)Mathieu Velten2023-09-182-1/+4
| |
| * Bump pillow from 10.0.0 to 10.0.1 (#16344)dependabot[bot]2023-09-181-57/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.0.0 to 10.0.1. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/10.0.0...10.0.1) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Stop patching EventBase.__eq__ in tests. (#16349)Patrick Cloke2023-09-183-36/+31
| | | | | | | | It is clearer to directly test equality instead of doing indirect assertions via patching __eq__.
* | Filter locked users in the admin API (#16328)Hanadi2023-09-186-7/+51
| | | | | | | | Co-authored-by: Hanadi Tamimi <hanadi.tamimi@sdui.de>
* | Make cached account data/tags/admin types immutable (#16325)Patrick Cloke2023-09-189-50/+55
| |
* | Return an immutable value from get_latest_event_ids_in_room. (#16326)Patrick Cloke2023-09-1812-40/+48
| |
* | Additional validation of receipts (#16327)Patrick Cloke2023-09-186-165/+241
| | | | | | | | Reject invalid receipts with a reasonable error message & expands tests for receipts.
* | Mandate Pillow>=10.0.1 because of libwebp CVE (#16347)Mathieu Velten2023-09-182-1/+4
| |
* | Bump pillow from 10.0.0 to 10.0.1 (#16344)dependabot[bot]2023-09-181-57/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pillow](https://github.com/python-pillow/Pillow) from 10.0.0 to 10.0.1. - [Release notes](https://github.com/python-pillow/Pillow/releases) - [Changelog](https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst) - [Commits](https://github.com/python-pillow/Pillow/compare/10.0.0...10.0.1) --- updated-dependencies: - dependency-name: pillow dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Set email charset as utf-8 rather than utf8 (#16329)José Joaquín Atria2023-09-182-2/+3
| |
* | Bump typing-extensions from 4.7.1 to 4.8.0 (#16341)dependabot[bot]2023-09-181-5/+15
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump docker/login-action from 2 to 3 (#16339)dependabot[bot]2023-09-182-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump docker/metadata-action from 4 to 5 (#16337)dependabot[bot]2023-09-181-1/+1
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump docker/setup-qemu-action from 2 to 3 (#16338)dependabot[bot]2023-09-182-2/+2
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump docker/build-push-action from 4 to 5 (#16336)dependabot[bot]2023-09-181-1/+1
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Merge branch 'master' into developErik Johnston2023-09-157-16/+32
|\|
| * Fix Changelog v1.92.2Erik Johnston2023-09-151-1/+1
| |
| * 1.92.2Erik Johnston2023-09-154-2/+17
| |
| * Use bookwork as docker base image (#16324)Erik Johnston2023-09-155-15/+16
| |
* | Add automatic purge after all users forget a room (#15488)Mathieu Velten2023-09-1513-450/+542
| | | | | | | | | | | | Also add restore of purge/shutdown rooms after a synapse restart. Co-authored-by: Eric Eastwood <erice@matrix.org> Co-authored-by: Erik Johnston <erikj@matrix.org>
* | Convert `_insert_graph_receipts_txn` to `simple_upsert` (#16299)Jason Little2023-09-153-14/+13
| |
* | Only use literal strings for process names (#16315)Erik Johnston2023-09-154-14/+11
| |
* | Some minor performance fixes for task schedular (#16313)Erik Johnston2023-09-145-34/+95
| |
* | Speed up deleting to-device messages task (#16318)Erik Johnston2023-09-142-13/+15
| |
* | docs: Link to the Alpine Linux community package for Synapse (#16304)65432023-09-142-0/+9
| |
* | Refactor `get_user_by_id` (#16316)Erik Johnston2023-09-1414-123/+108
| |
* | Remove a reference cycle in background process (#16314)Erik Johnston2023-09-132-1/+21
| |
* | Fix using dehydrated devices (MSC2697) & refresh tokens (#16288)Hanadi2023-09-134-4/+34
| | | | | | | | | | Refresh tokens were not correctly moved to the rehydrated device (similar to how the access token is currently handled). This resulted in invalid refresh tokens after rehydration.
* | Use StrCollection in additional places. (#16301)Patrick Cloke2023-09-1316-67/+59
| |
* | Don't schedule an async task on every sync (#16312)Erik Johnston2023-09-132-11/+27
| |
* | Fix deleting device inbox when using background worker (#16311)Erik Johnston2023-09-132-31/+32
| | | | | | | | | | Introduced in #16240 The action for the task was only defined on the "master" handler, rather than the base worker one.
* | Improve logging of replication (#16309)Erik Johnston2023-09-133-2/+8
| |
* | Update changelogMathieu Velten2023-09-121-7/+16
| |
* | Merge branch 'master' into developMathieu Velten2023-09-127-21/+62
|\|
| * 1.92.1 v1.92.1Mathieu Velten2023-09-123-1/+12
| |
| * Remove kinetic deb build, it's EOLMathieu Velten2023-09-121-1/+0
| |
| * Inverse changelog order v1.92.0Mathieu Velten2023-09-121-6/+7
| |
| * 1.92.0Mathieu Velten2023-09-126-4/+19
| |
| * Support releasing on macOS. (#16266)Patrick Cloke2023-09-072-16/+31
| |
* | Bump mypy from 1.4.1 to 1.5.1. (#16300)Patrick Cloke2023-09-124-48/+32
| |
* | Stop purging tables which are slated for removal. (#16273)Patrick Cloke2023-09-123-5/+6
| |
* | Refactor storing of server keys (#16261)Erik Johnston2023-09-126-365/+106
| |
* | Add the List-Unsubscribe header for notification emails. (#16274)Patrick Cloke2023-09-115-6/+110
| | | | | | | | | | | | | | | | Adds both the List-Unsubscribe (RFC2369) and List-Unsubscribe-Post (RFC8058) headers to push notification emails, which together should: * Show an "Unsubscribe" link in the MUA UI when viewing Synapse notification emails. * Enable "one-click" unsubscribe (the user never leaves their MUA, which automatically makes a POST request to the specified endpoint).
* | Filter out down hosts when retrying fetching device lists (#16298)Erik Johnston2023-09-112-1/+15
| |
* | Bump types-pillow from 10.0.0.2 to 10.0.0.3 (#16293)dependabot[bot]2023-09-111-3/+3
| |
* | Bump types-setuptools from 68.0.0.3 to 68.2.0.0 (#16292)dependabot[bot]2023-09-111-3/+3
| |
* | Bump mypy-zope from 1.0.0 to 1.0.1 (#16291)dependabot[bot]2023-09-111-4/+4
| |
* | Bump black from 23.7.0 to 23.9.1 (#16295)dependabot[bot]2023-09-111-24/+24
| |
* | Bump serde_json from 1.0.105 to 1.0.106 (#16296)dependabot[bot]2023-09-111-2/+2
| |
* | Improve type hints for attrs classes (#16276)David Robertson2023-09-087-39/+37
| |
* | Upgrade CI run of Python 3.12 from rc1 to rc2 (#16280)V024602023-09-082-1/+2
| |
* | Update ruff config (#16283)Patrick Cloke2023-09-0826-64/+63
| | | | | | Enable additional checks & clean-up unneeded configuration.
* | Log values at DEBUG level with execute_values (#16281)David Robertson2023-09-082-2/+4
| |
* | Fix-up incorrect spellings in docs. (#16282)Patrick Cloke2023-09-0818-119/+120
| |
* | Fix bug with new task scheduler using lots of CPU. (#16278)Erik Johnston2023-09-082-21/+23
| | | | | | | | | | Using the new `TaskScheduler` meant that we'ed create lots of new metrics (due to adding task ID to the desc of background process), resulting in requests for metrics taking an increasing amount of CPU.
* | Bump gitpython from 3.1.34 to 3.1.35 (#16279)dependabot[bot]2023-09-081-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Avoid temporary storage of sensitive information. (#16272)Patrick Cloke2023-09-083-2/+16
| | | | | | | | During the UI auth process, avoid storing sensitive information into the database.
* | Raise setuptools_rust version cap to 1.7.0 (#16277)V024602023-09-082-1/+2
| |
* | Reduce CPU overhead of change password endpoint (#16264)Erik Johnston2023-09-082-58/+55
| |
* | Recheck if remote device is cached before requesting it (#16252)Erik Johnston2023-09-074-17/+35
| | | | | | | | This fixes a bug where we could get stuck re-requesting the device over replication again and again.
* | Add `/notifications` endpoint to workers (#16265)Erik Johnston2023-09-076-37/+42
| |
* | Bump gitpython from 3.1.32 to 3.1.34 (#16267)dependabot[bot]2023-09-061-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Send the opentracing span information to appservices (#16227)Marcel2023-09-063-14/+37
| |
* | Handle "registration_enabled" parameter for CAS (#16262)Aurélien Grimpard2023-09-065-0/+30
| | | | | | | | Similar to OIDC, CAS providers can now disable registration such that only existing users are able to login via SSO.
* | Merge remote-tracking branch 'origin/release-v1.92' into developPatrick Cloke2023-09-0614-394/+48
|\|
| * Add back newsfile from #16258.Patrick Cloke2023-09-061-0/+1
| |
| * Merge remote-tracking branch 'origin/release-v1.91' into release-v1.92Patrick Cloke2023-09-0611-390/+41
| |\
| | * Link to MSC in changelog. v1.91.2Patrick Cloke2023-09-061-1/+1
| | |
| | * 1.91.2Patrick Cloke2023-09-064-2/+14
| | |
| | * Revert MSC3861 introspection cache, admin impersonation and account lock ↵Quentin Gliech2023-09-0610-391/+31
| | | | | | | | | | | | (#16258)
| * | Fix incorrect docstring for Ratelimiter. (#16255)Patrick Cloke2023-09-052-3/+5
| | |
| * | Amend changelog for MSC4041David Robertson2023-09-051-1/+1
| | |
* | | Apply missed suggestions from the review of #16090. (#16263)reivilibre2023-09-062-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Suggestions from PR * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | | Add GCC and GNU Make to the Nix flake development environment so that `ruff` ↵reivilibre2023-09-062-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | can be compiled. (#16090) * Add gcc and GNU make to the Nix flake * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * unset LD_LIBRARY_PATH --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | | Update rust in flake.nix: 1.70.0 -> 1.71.1 to address CVE-2023-38497 (#16260)Andrew Morgan2023-09-063-4/+5
| | |
* | | Add the ability to use `G` (GiB) and `T` (TiB) suffixes in configuration ↵reivilibre2023-09-063-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | options that refer to numbers of bytes. (#16219) * Add more suffixes to `parse_size` * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | | Allow modules to delete rooms. (#15997)reivilibre2023-09-065-6/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Allow user_id to be optional for room deletion * Add module API method to delete a room * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Don't worry about the case block=True && requester_user_id is None --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* | | Delete device messages asynchronously and in staged batches (#16240)Mathieu Velten2023-09-0613-37/+154
| | |
* | | Fix appservices being unable to handle to_device messages for multiple users ↵Will Hunt2023-09-053-1/+127
| | | | | | | | | | | | (#16251)
* | | Add MSC4040 `matrix-fed` service lookups (#16137)Travis Ralston2023-09-054-34/+331
| | |
* | | Fix bug where we kept re-requesting a remote server's key repeatedly. (#16257)Erik Johnston2023-09-052-6/+12
| | | | | | | | | | | | | | | * Correctly handle multiple rows per server/key * Newsfile
* | | Merge tag 'v1.92.0rc1' into developDavid Robertson2023-09-0533-31/+62
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add configuration setting for CAS protocol version. Contributed by Aurélien Grimpard. ([\#15816](https://github.com/matrix-org/synapse/issues/15816)) - Suppress notifications from message edits per [MSC3958](https://github.com/matrix-org/matrix-spec-proposals/pull/3958). ([\#16113](https://github.com/matrix-org/synapse/issues/16113)) - Return a `Retry-After` with `M_LIMIT_EXCEEDED` error responses. ([\#16136](https://github.com/matrix-org/synapse/issues/16136)) - Add `last_seen_ts` to the [admin users API](https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html). ([\#16218](https://github.com/matrix-org/synapse/issues/16218)) - Improve resource usage when sending data to a large number of remote hosts that are marked as "down". ([\#16223](https://github.com/matrix-org/synapse/issues/16223)) - Fix IPv6-related bugs on SMTP settings, adding groundwork to fix similar issues. Contributed by @evilham and @telmich (ungleich.ch). ([\#16155](https://github.com/matrix-org/synapse/issues/16155)) - Fix a spec compliance issue where requests to the `/publicRooms` federation API would specify `include_all_networks` as a string. ([\#16185](https://github.com/matrix-org/synapse/issues/16185)) - Fix inaccurate error message while attempting to ban or unban a user with the same or higher PL by spliting the conditional statements. Contributed by @leviosacz. ([\#16205](https://github.com/matrix-org/synapse/issues/16205)) - Fix a rare bug that broke looping calls, which could lead to e.g. linearly increasing memory usage. Introduced in v1.90.0. ([\#16210](https://github.com/matrix-org/synapse/issues/16210)) - Fix a long-standing bug where uploading images would fail if we could not generate thumbnails for them. ([\#16211](https://github.com/matrix-org/synapse/issues/16211)) - Fix a long-standing bug where we did not correctly back off from servers that had "gone" if they returned 4xx series error codes. ([\#16221](https://github.com/matrix-org/synapse/issues/16221)) - Update links to the [matrix.org blog](https://matrix.org/blog/). ([\#16008](https://github.com/matrix-org/synapse/issues/16008)) - Document which [admin APIs](https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/index.html) are disabled when experimental [MSC3861](https://github.com/matrix-org/matrix-spec-proposals/pull/3861) support is enabled. ([\#16168](https://github.com/matrix-org/synapse/issues/16168)) - Document [`exclude_rooms_from_sync`](https://matrix-org.github.io/synapse/v1.92/usage/configuration/config_documentation.html#exclude_rooms_from_sync) configuration option. ([\#16178](https://github.com/matrix-org/synapse/issues/16178)) - Prepare unit tests for Python 3.12. ([\#16099](https://github.com/matrix-org/synapse/issues/16099)) - Fix nightly CI jobs. ([\#16121](https://github.com/matrix-org/synapse/issues/16121), [\#16213](https://github.com/matrix-org/synapse/issues/16213)) - Describe which rate limiter was hit in logs. ([\#16135](https://github.com/matrix-org/synapse/issues/16135)) - Simplify presence code when using workers. ([\#16170](https://github.com/matrix-org/synapse/issues/16170)) - Track per-device information in the presence code. ([\#16171](https://github.com/matrix-org/synapse/issues/16171), [\#16172](https://github.com/matrix-org/synapse/issues/16172)) - Stop using the `event_txn_id` table. ([\#16175](https://github.com/matrix-org/synapse/issues/16175)) - Use `AsyncMock` instead of custom code. ([\#16179](https://github.com/matrix-org/synapse/issues/16179), [\#16180](https://github.com/matrix-org/synapse/issues/16180)) - Improve error reporting of invalid data passed to `/_matrix/key/v2/query`. ([\#16183](https://github.com/matrix-org/synapse/issues/16183)) - Task scheduler: add replication notify for new task to launch ASAP. ([\#16184](https://github.com/matrix-org/synapse/issues/16184)) - Improve type hints. ([\#16186](https://github.com/matrix-org/synapse/issues/16186), [\#16188](https://github.com/matrix-org/synapse/issues/16188), [\#16201](https://github.com/matrix-org/synapse/issues/16201)) - Bump black version to 23.7.0. ([\#16187](https://github.com/matrix-org/synapse/issues/16187)) - Log the details of background update failures. ([\#16212](https://github.com/matrix-org/synapse/issues/16212)) - Cache device resync requests over replication. ([\#16241](https://github.com/matrix-org/synapse/issues/16241)) * Bump anyhow from 1.0.72 to 1.0.75. ([\#16141](https://github.com/matrix-org/synapse/issues/16141)) * Bump furo from 2023.7.26 to 2023.8.19. ([\#16238](https://github.com/matrix-org/synapse/issues/16238)) * Bump phonenumbers from 8.13.18 to 8.13.19. ([\#16237](https://github.com/matrix-org/synapse/issues/16237)) * Bump psycopg2 from 2.9.6 to 2.9.7. ([\#16196](https://github.com/matrix-org/synapse/issues/16196)) * Bump regex from 1.9.3 to 1.9.4. ([\#16195](https://github.com/matrix-org/synapse/issues/16195)) * Bump ruff from 0.0.277 to 0.0.286. ([\#16198](https://github.com/matrix-org/synapse/issues/16198)) * Bump sentry-sdk from 1.29.2 to 1.30.0. ([\#16236](https://github.com/matrix-org/synapse/issues/16236)) * Bump serde from 1.0.184 to 1.0.188. ([\#16194](https://github.com/matrix-org/synapse/issues/16194)) * Bump serde_json from 1.0.104 to 1.0.105. ([\#16140](https://github.com/matrix-org/synapse/issues/16140)) * Bump types-psycopg2 from 2.9.21.10 to 2.9.21.11. ([\#16200](https://github.com/matrix-org/synapse/issues/16200)) * Bump types-pyyaml from 6.0.12.10 to 6.0.12.11. ([\#16199](https://github.com/matrix-org/synapse/issues/16199))
| * | Update changelog v1.92.0rc1David Robertson2023-09-051-9/+7
| | |
| * | 1.92.0rc1David Robertson2023-09-0536-34/+64
| | |
* | | Time out busy presence status & test multi-device busy (#16174)Patrick Cloke2023-09-053-4/+120
| | | | | | | | | | | | | | | | | | | | | Add a (long) timeout to when a "busy" device is considered not online. This does *not* match MSC3026, but is a reasonable thing for an implementation to do. Expands tests for the (unstable) busy presence with multiple devices.
* | | Track presence state per-device and combine to a user state. (#16066)Patrick Cloke2023-09-0510-64/+765
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tracks presence on an individual per-device basis and combine the per-device state into a per-user state. This should help in situations where a user has multiple devices with conflicting status (e.g. one is syncing with unavailable and one is syncing with online). The tie-breaking is done by priority: BUSY > ONLINE > UNAVAILABLE > OFFLINE
* | | Bump regex from 1.9.4 to 1.9.5 (#16233)dependabot[bot]2023-09-051-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [regex](https://github.com/rust-lang/regex) from 1.9.4 to 1.9.5. - [Release notes](https://github.com/rust-lang/regex/releases) - [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md) - [Commits](https://github.com/rust-lang/regex/compare/1.9.4...1.9.5) --- updated-dependencies: - dependency-name: regex dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | Bump minimum supported Rust version to 1.61.0 (#16248)Erik Johnston2023-09-054-11/+25
| | |
* | | Bump twisted from 22.10.0 to 23.8.0 (#16235)dependabot[bot]2023-09-055-28/+24
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Bump twisted from 22.10.0 to 23.8.0 Bumps [twisted](https://github.com/twisted/twisted) from 22.10.0 to 23.8.0. - [Release notes](https://github.com/twisted/twisted/releases) - [Changelog](https://github.com/twisted/twisted/blob/trunk/NEWS.rst) - [Commits](https://github.com/twisted/twisted/compare/twisted-22.10.0...twisted-23.8.0) --- updated-dependencies: - dependency-name: twisted dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Fix types * Fix lint * Newsfile --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Erik Johnston <erik@matrix.org>
* | Don't wake up destination transaction queue if they're not due for retry. ↵Erik Johnston2023-09-0415-90/+228
| | | | | | | | (#16223)
* | Add last_seen_ts to the admin users API (#16218)Mathieu Velten2023-09-0410-2/+80
| |
* | Merge branch 'master' into developDavid Robertson2023-09-043-1/+14
|\|
| * 1.91.1 v1.91.1David Robertson2023-09-044-2/+14
| |
| * Tentatively update changelogDavid Robertson2023-09-012-1/+1
| | | | | | | | Will need to confirm this though
| * Fix typo where we ended up with multiple `WorkerLocksHandler` (#16220)Erik Johnston2023-09-012-0/+2
| | | | | | | | | | I don't think has caused any actual issues. Introduced in #15891
* | Don't reset retry timers on "valid" error codes (#16221)Erik Johnston2023-09-045-5/+30
| |
* | Bump furo from 2023.7.26 to 2023.8.19 (#16238)dependabot[bot]2023-09-041-4/+4
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump phonenumbers from 8.13.18 to 8.13.19 (#16237)dependabot[bot]2023-09-041-3/+3
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump sentry-sdk from 1.29.2 to 1.30.0 (#16236)dependabot[bot]2023-09-041-5/+16
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Cache device resync requests over replication (#16241)David Robertson2023-09-042-1/+2
| |
* | Fix typo where we ended up with multiple `WorkerLocksHandler` (#16220)Erik Johnston2023-09-012-0/+2
| | | | | | | | | | I don't think has caused any actual issues. Introduced in #15891
* | Log the details of background update failures (#16212)David Robertson2023-09-013-3/+26
| |
* | Ignore redundant casts in latest deps CI job (#16213)David Robertson2023-08-302-2/+3
| |
* | Gracefully handle failing to thumbnail images (#16211)Erik Johnston2023-08-303-1/+10
| |
* | Fix rare bug that broke looping calls (#16210)Erik Johnston2023-08-303-14/+25
| | | | | | | | | | | | | | | | | | | | * Fix rare bug that broke looping calls We can't interact with the reactor from the main thread via looping call. Introduced in v1.90.0 / #15791. * Newsfile
* | Merge branch 'master' into developDavid Robertson2023-08-303-1/+12
|\|
| * 1.91.0 v1.91.0David Robertson2023-08-303-1/+12
| |
* | Stop writing to the event_txn_id table (#16175)Patrick Cloke2023-08-306-95/+26
| |
* | Describe which rate limiter was hit in logs (#16135)David Robertson2023-08-3018-121/+235
| |
* | Track currently syncing users by device for presence (#16172)Patrick Cloke2023-08-294-63/+129
| | | | | | | | | | | | | | Refactoring to use both the user ID & the device ID when tracking the currently syncing users in the presence handler. This is done both locally and over replication. Note that the device ID is discarded but will be used in a future change.
* | Bump mypy-zope & mypy. (#16188)Patrick Cloke2023-08-2939-161/+180
| |
* | Bump ruff from 0.0.277 to 0.0.286 (#16198)dependabot[bot]2023-08-2919-53/+67
| | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Support IPv6-only SMTP servers (#16155)Evilham2023-08-295-29/+125
| | | | | | | | Use Twisted HostnameEndpoint to connect to SMTP servers (instead of connectTCP/connectSSL) which properly supports IPv6-only servers.
* | Update black & fix the targeted Python versions. (#16187)Patrick Cloke2023-08-293-30/+31
| | | | | | Black should target Python 3.8 to 3.11.
* | Fix inaccurate error message while trying to ban or unban a user with the ↵Chen Zhang2023-08-292-1/+8
| | | | | | | | same or higher PL (#16205)
* | Pass the device ID around in the presence handler (#16171)Patrick Cloke2023-08-2811-30/+91
| | | | | | | | | | | | Refactoring to pass the device ID (in addition to the user ID) through the presence handler (specifically the `user_syncing`, `set_state`, and `bump_presence_active_time` methods and their replication versions).
* | Combine logic about not overriding BUSY presence. (#16170)Patrick Cloke2023-08-284-104/+99
| | | | | | | | | | | | | | | | | | | | | | | | | | Simplify some of the presence code by reducing duplicated code between worker & non-worker modes. The main change is to push some of the logic from `user_syncing` into `set_state`. This is done by passing whether the user is setting the presence via a `/sync` with a new `is_sync` flag to `set_state`. If this is `true` some additional logic is performed: * Don't override `busy` presence. * Update the `last_user_sync_ts`. * Never update the status message.
* | Task scheduler: add replication notify for new task to launch ASAP (#16184)Mathieu Velten2023-08-285-67/+114
| |
* | Bump serde from 1.0.184 to 1.0.188 (#16194)dependabot[bot]2023-08-281-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [serde](https://github.com/serde-rs/serde) from 1.0.184 to 1.0.188. - [Release notes](https://github.com/serde-rs/serde/releases) - [Commits](https://github.com/serde-rs/serde/compare/v1.0.184...v1.0.188) --- updated-dependencies: - dependency-name: serde dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | Bump setuptools-rust from 1.6.0 to 1.7.0. (#16201)Patrick Cloke2023-08-282-4/+6
| |