summary refs log tree commit diff
Commit message (Collapse)AuthorAgeFilesLines
* REVERTErik Johnston2024-07-264-10/+11
|
* REVERTErik Johnston2024-07-262-26/+0
|
* Merge branch 'erikj/ss_noop_rooms' into erikj/ss_hacksErik Johnston2024-07-2613-1723/+2330
|\
| * Merge remote-tracking branch 'origin/erikj/ss_room_store' into ↵Erik Johnston2024-07-2612-1674/+2211
| |\ | | | | | | | | | erikj/ss_noop_rooms
| | * Add never testErik Johnston2024-07-261-0/+70
| | |
| | * Previously state testErik Johnston2024-07-261-0/+111
| | |
| | * Review commentsErik Johnston2024-07-262-15/+21
| | |
| | * Move to integration testsErik Johnston2024-07-252-395/+116
| | |
| | * Use do_sync in testsErik Johnston2024-07-251-118/+50
| | |
| | * Merge remote-tracking branch 'origin/develop' into erikj/ss_room_storeErik Johnston2024-07-2511-1176/+1871
| | |\
| | | * Refactor Sliding Sync tests to better utilize the ↵Eric Eastwood2024-07-252-1021/+726
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `SlidingSyncBase.do_sync(...)` (pt. 2) (#17482) `SlidingSyncBase.do_sync()` for tests was first introduced in https://github.com/element-hq/synapse/pull/17452 Part 1: https://github.com/element-hq/synapse/pull/17481
| | | * Refactor Sliding Sync tests to better utilize the `SlidingSyncBase` (pt. 1) ↵Eric Eastwood2024-07-252-228/+107
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (#17481) `SlidingSyncBase` for tests was first introduced in https://github.com/element-hq/synapse/pull/17452 Part 2: https://github.com/element-hq/synapse/pull/17482
| | | * Update config_documentation - Change example of msisdn in ↵YLong Shi2024-07-252-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | allowed_local_3pids (#17476) Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| | | * Sliding Sync: Add Account Data extension (MSC3959) (#17477)Eric Eastwood2024-07-246-2/+982
| | | | | | | | | | | | | | | | | | | | | | | | Extensions based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
| | | * Sliding Sync: ensure bump stamp ignores backfilled events (#17478)Erik Johnston2024-07-243-3/+130
| | | | | | | | | | | | | | | | | | | | | | | | Backfill events have a negative stream ordering, and so its not useful to use to compare with other (positive) stream orderings. Plus, the Rust SDK currently assumes `bump_stamp` is positive.
| | * | Update commentsErik Johnston2024-07-252-4/+5
| | | |
| * | | Don't send down rooms if nothing has happenedErik Johnston2024-07-262-27/+15
| | | |
| * | | Make it clear we only filter out rooms in incremental syncErik Johnston2024-07-261-2/+2
| | | |
| * | | Add test that empty room comes down initial syncErik Johnston2024-07-261-11/+29
| | | |
| * | | Review commentsErik Johnston2024-07-262-7/+4
| | | |
| * | | NewsfileErik Johnston2024-07-241-0/+1
| | | |
| * | | Only send rooms with updates down sliding syncErik Johnston2024-07-243-15/+85
| |/ /
* | | REVERTErik Johnston2024-07-265-5/+5
| | |
* | | FIXUPErik Johnston2024-07-261-2/+5
| | |
* | | Also log json requestErik Johnston2024-07-261-0/+2
| | |
* | | Merge branch 'erikj/ss_room_store' into erikj/ss_hacksErik Johnston2024-07-2443-460/+2042
|\| |
| * | Merge remote-tracking branch 'origin/develop' into erikj/ss_room_storeErik Johnston2024-07-243-346/+195
| |\|
| | * Use a new token format for sliding sync (#17452)Erik Johnston2024-07-246-208/+301
| | | | | | | | | | | | | | | | | | | | | This is in preparation for adding per-connection state. --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
| | * Update debian template - new link to the delegation docs (#17475)Maciej Laskowski2024-07-241-1/+1
| | | | | | | | | Update debian template - new link to the delegation docs
| * | Merge branch 'erikj/ss_tokens' into erikj/ss_room_storeErik Johnston2024-07-2353-267/+1999
| |\ \
| | * | Change token names againErik Johnston2024-07-232-12/+14
| | | |
| | * | Fix testsErik Johnston2024-07-231-26/+106
| | | |
| | * | Merge remote-tracking branch 'origin/develop' into erikj/ss_tokensErik Johnston2024-07-2353-251/+1901
| | |\|
| | | * Address changelog review comments v1.112.0rc1Devon Hudson2024-07-231-5/+5
| | | |
| | | * 1.112.0rc1Devon Hudson2024-07-2328-26/+65
| | | |
| | | * Speed up SS room sorting (#17468)Erik Johnston2024-07-236-29/+159
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We do this by bulk fetching the latest stream ordering. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| | | * Reduce volume of 'Waiting for current token' logs, which were introduced in ↵reivilibre2024-07-233-5/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | v1.109.0. (#17428) Introduced in: #17215 This caused us a minor bit of grief as the volume of logs produced was much higher than normal --------- Signed-off-by: Olivier 'reivilibre <oliverw@matrix.org>
| | | * Fixed presence results not returning offline users on initial sync (#17231)Michael Hollister2024-07-234-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to address an issue in which `m.presence` results on initial sync are not returning entries of users who are currently offline. The original behaviour was from https://github.com/element-hq/synapse/issues/1535 This change is useful for applications that use the presence system for tracking user profile information/updates (e.g. https://github.com/element-hq/synapse/pull/16992 or for profile status messages). This is gated behind a new configuration option to avoid performance impact for applications that don't need this, as a pragmatic solution for now.
| | | * Bump hiredis from 2.3.2 to 3.0.0 (#17464)dependabot[bot]2024-07-221-111/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [hiredis](https://github.com/redis/hiredis-py) from 2.3.2 to 3.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/redis/hiredis-py/releases">hiredis's releases</a>.</em></p> <blockquote> <h2>3.0.0</h2> <h1>Changes</h1> <h2>Breaking Changes</h2> <ul> <li>Return Redis sets as Python lists (<a href="https://redirect.github.com/redis/hiredis-py/issues/189">#189</a>)</li> </ul> <h2>🐛 Bug Fixes</h2> <ul> <li>Return Redis sets as Python lists (<a href="https://redirect.github.com/redis/hiredis-py/issues/189">#189</a>)</li> </ul> <h2>Contributors</h2> <p>We'd like to thank all the contributors who worked on this release!</p> <p><a href="https://github.com/gerzse"><code>@​gerzse</code></a></p> <h2>2.4.0</h2> <h1>Changes</h1> <h2>🧰 Maintenance</h2> <ul> <li>Fix small typo (<a href="https://redirect.github.com/redis/hiredis-py/issues/192">#192</a>)</li> <li>Quote version for Python setup action in CI (<a href="https://redirect.github.com/redis/hiredis-py/issues/191">#191</a>)</li> <li>Fix building the wheel for windows (<a href="https://redirect.github.com/redis/hiredis-py/issues/190">#190</a>)</li> <li>pack: Replace sdsalloc.h with alloc.h (<a href="https://redirect.github.com/redis/hiredis-py/issues/159">#159</a>)</li> <li>Bump black from 22.3.0 to 24.3.0 (<a href="https://redirect.github.com/redis/hiredis-py/issues/185">#185</a>)</li> <li>Removing python 3.7 trove (<a href="https://redirect.github.com/redis/hiredis-py/issues/181">#181</a>)</li> <li>Badge for latest released on Pypi (<a href="https://redirect.github.com/redis/hiredis-py/issues/182">#182</a>)</li> <li>Sync license in metadata with LICENSE file (<a href="https://redirect.github.com/redis/hiredis-py/issues/183">#183</a>)</li> </ul> <h2>Contributors</h2> <p>We'd like to thank all the contributors who worked on this release!</p> <p><a href="https://github.com/Apteryks"><code>@​Apteryks</code></a>, <a href="https://github.com/ArtemIsmagilov"><code>@​ArtemIsmagilov</code></a>, <a href="https://github.com/chayim"><code>@​chayim</code></a>, <a href="https://github.com/dependabot"><code>@​dependabot</code></a>, <a href="https://github.com/dependabot"><code>@​dependabot</code></a>[bot], <a href="https://github.com/gerzse"><code>@​gerzse</code></a> and <a href="https://github.com/shadchin"><code>@​shadchin</code></a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/redis/hiredis-py/commit/c1eefbdb76614435f7433207bf385ba8cb930b60"><code>c1eefbd</code></a> Return Redis sets as Python lists (<a href="https://redirect.github.com/redis/hiredis-py/issues/189">#189</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/a94bb447173c60b90709a9ed117b3a5b699ff795"><code>a94bb44</code></a> Version 2.4.0 (<a href="https://redirect.github.com/redis/hiredis-py/issues/193">#193</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/7792dd23384aa7b00761df51d8011fe24fa33143"><code>7792dd2</code></a> Fix a typo in the README file (<a href="https://redirect.github.com/redis/hiredis-py/issues/192">#192</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/01fa2fd6f123e3424ffa00a647f2bf83d48543be"><code>01fa2fd</code></a> Quote version for Python setup action in CI (<a href="https://redirect.github.com/redis/hiredis-py/issues/191">#191</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/4c970a336567223573c700a44e405a0c263a85fa"><code>4c970a3</code></a> Fix building the wheel for windows (<a href="https://redirect.github.com/redis/hiredis-py/issues/190">#190</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/f4dd0814c16dc9a8efa72434101d49c97778c830"><code>f4dd081</code></a> pack: Replace sdsalloc.h with alloc.h (<a href="https://redirect.github.com/redis/hiredis-py/issues/159">#159</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/e70af5b94f0881f23f2fb35417bb2e0d0b792f53"><code>e70af5b</code></a> Bump black from 22.3.0 to 24.3.0 (<a href="https://redirect.github.com/redis/hiredis-py/issues/185">#185</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/cc239705fb64f92c6ac3aff36679a300662e0ca7"><code>cc23970</code></a> Removing Python 3.7 trove (<a href="https://redirect.github.com/redis/hiredis-py/issues/181">#181</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/64e3394548fe670e7853a2407799e13daa4bf2cb"><code>64e3394</code></a> Badge for latest released on Pypi (<a href="https://redirect.github.com/redis/hiredis-py/issues/182">#182</a>)</li> <li><a href="https://github.com/redis/hiredis-py/commit/ba18089d74f991b9b9e7ac9c17f85432f50d0048"><code>ba18089</code></a> Sync license in metadata with LICENSE file (<a href="https://redirect.github.com/redis/hiredis-py/issues/183">#183</a>)</li> <li>See full diff in <a href="https://github.com/redis/hiredis-py/compare/v2.3.2...v3.0.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=hiredis&package-manager=pip&previous-version=2.3.2&new-version=3.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| | | * Bump pyopenssl from 24.1.0 to 24.2.1 (#17465)dependabot[bot]2024-07-221-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [pyopenssl](https://github.com/pyca/pyopenssl) from 24.1.0 to 24.2.1. <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/pyca/pyopenssl/blob/main/CHANGELOG.rst">pyopenssl's changelog</a>.</em></p> <blockquote> <h2>24.2.1 (2024-07-20)</h2> <p>Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <p>Deprecations: ^^^^^^^^^^^^^</p> <p>Changes: ^^^^^^^^</p> <ul> <li>Fixed changelog to remove sphinx specific restructured text strings.</li> </ul> <h2>24.2.0 (2024-07-20)</h2> <p>Backward-incompatible changes: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^</p> <p>Deprecations: ^^^^^^^^^^^^^</p> <ul> <li>Deprecated <code>OpenSSL.crypto.X509Req</code>, <code>OpenSSL.crypto.load_certificate_request</code>, <code>OpenSSL.crypto.dump_certificate_request</code>. Instead, <code>cryptography.x509.CertificateSigningRequest</code>, <code>cryptography.x509.CertificateSigningRequestBuilder</code>, <code>cryptography.x509.load_der_x509_csr</code>, or <code>cryptography.x509.load_pem_x509_csr</code> should be used.</li> </ul> <p>Changes: ^^^^^^^^</p> <ul> <li>Added type hints for the <code>SSL</code> module. <code>[#1308](https://github.com/pyca/pyopenssl/issues/1308) &lt;https://github.com/pyca/pyopenssl/pull/1308&gt;</code>_.</li> <li>Changed <code>OpenSSL.crypto.PKey.from_cryptography_key</code> to accept public and private EC, ED25519, ED448 keys. <code>[#1310](https://github.com/pyca/pyopenssl/issues/1310) &lt;https://github.com/pyca/pyopenssl/pull/1310&gt;</code>_.</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/pyca/pyopenssl/commit/8dd94578656d47f854c087783b72431aaeb73d8e"><code>8dd9457</code></a> 24.2.1 (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1320">#1320</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/19f093e0c3db5d7354df0a5256344d9ebc5d931f"><code>19f093e</code></a> make changelog vanilla rst (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1319">#1319</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/e265b2867bbc4f45a14b31affe4a0be710d2b293"><code>e265b28</code></a> Prepare for 24.2.0 release (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1318">#1318</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/6943ee524e511138dd78fde6000e6f8e2bdd4b0c"><code>6943ee5</code></a> Deprecate CSR support in pyOpenSSL (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1316">#1316</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/01b9b5637318bde2490e3f8bb243723546dbcc62"><code>01b9b56</code></a> Add more type definitions for <code>SSL</code> module, check with mypy (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1313">#1313</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/cdcb48baf7d5dd0f040f244934c2967b04b9f4bc"><code>cdcb48b</code></a> Prune redundant <code>:rtype:</code> from SSL module (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1315">#1315</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/b86914d37fc6c0e138e2a0f733dd65dec2efc96c"><code>b86914d</code></a> Fix <code>ruff</code> invocation (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1314">#1314</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/caa1ab3ac5c5096b20b69fac2e42cb67c6f716d1"><code>caa1ab3</code></a> Update changelog for PR <a href="https://redirect.github.com/pyca/pyopenssl/issues/1308">#1308</a> and <a href="https://redirect.github.com/pyca/pyopenssl/issues/1310">#1310</a> (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1311">#1311</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/9a2105501f601798bb2fb1928cee5ed8b21e32e4"><code>9a21055</code></a> Allow loading EC, ED25519, ED448 public keys from cryptography (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1310">#1310</a>)</li> <li><a href="https://github.com/pyca/pyopenssl/commit/9eaa1073621dd46b3e721183efc318c95aba0d74"><code>9eaa107</code></a> Add type annotations for the <code>SSL</code> module (<a href="https://redirect.github.com/pyca/pyopenssl/issues/1308">#1308</a>)</li> <li>Additional commits viewable in <a href="https://github.com/pyca/pyopenssl/compare/24.1.0...24.2.1">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=pyopenssl&package-manager=pip&previous-version=24.1.0&new-version=24.2.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
| | | * Sliding Sync: Add E2EE extension (MSC3884) (#17454)Eric Eastwood2024-07-229-34/+1023
| | | | | | | | | | | | | | | | | | | | Spec: [MSC3884](https://github.com/matrix-org/matrix-spec-proposals/pull/3884) Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
| | | * SS: Implement `$ME` support (#17469)Erik Johnston2024-07-223-1/+80
| | | | | | | | | | | | `$ME` can be used as a substitute for the requester's user ID.
| | | * Speed up room keys query by using read/write lock (#17461)Erik Johnston2024-07-222-9/+10
| | | | | | | | | | | | | | | | Linaerizing all access slows things down when devices try and fetch lots of keys on login
| | | * Bump ruff from 0.5.0 to 0.5.4 (#17466)dependabot[bot]2024-07-222-21/+21
| | | |
| | | * Bump sentry-sdk from 2.8.0 to 2.10.0 (#17467)dependabot[bot]2024-07-221-3/+3
| | | |
| * | | Add test for cache being clearedErik Johnston2024-07-231-0/+71
| | | |
| * | | Ensure there is only one SlidingSyncHandlerErik Johnston2024-07-231-0/+1
| | | |
| * | | Apply suggestions from code reviewErik Johnston2024-07-231-3/+4
| | | | | | | | | | | | Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
| * | | Merge branch 'erikj/ss_tokens' into erikj/ss_room_storeErik Johnston2024-07-194-25/+38
| |\| |
| | * | Merge remote-tracking branch 'origin/develop' into erikj/ss_tokensErik Johnston2024-07-1914-40/+530
| | |\ \
| | * | | Remove '_token' prefixErik Johnston2024-07-182-15/+13
| | | | |
| | * | | Add docstringErik Johnston2024-07-181-0/+6
| | | | |
| * | | | Fix linting in testsErik Johnston2024-07-181-4/+4
| | | | |
| * | | | Merge remote-tracking branch 'origin/develop' into erikj/ss_room_storeErik Johnston2024-07-1813-33/+514
| |\ \ \ \
| * | | | | Add some unit tests for 'get_room_sync_data'Erik Johnston2024-07-181-3/+396
| | | | | |
| * | | | | Refactor to avoid SyncConfig.connection_id()Erik Johnston2024-07-182-47/+48
| | | | | |
| * | | | | Add context to conn_idErik Johnston2024-07-181-0/+5
| | | | | |
| * | | | | Rename boundsErik Johnston2024-07-181-10/+12
| | | | | |
| * | | | | Keyword argsErik Johnston2024-07-181-1/+3
| | | | | |
| * | | | | Reword docErik Johnston2024-07-182-4/+3
| | | | | |
| * | | | | Apply suggestions from code reviewErik Johnston2024-07-183-9/+10
| | | | | | | | | | | | | | | | | | Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | | | | | Merge branch 'erikj/ss_faster_sort' into erikj/ss_hacksErik Johnston2024-07-2231-79/+1022
|\ \ \ \ \ \
| * | | | | | WIP faster sortErik Johnston2024-07-222-17/+106
| | |_|_|_|/ | |/| | | |
| * | | | | Prepare for authenticated media freeze (#17433)Shay2024-07-2212-12/+362
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As part of the rollout of [MSC3916](https://github.com/matrix-org/matrix-spec-proposals/blob/main/proposals/3916-authentication-for-media.md) this PR adds support for designating authenticated media and ensuring that authenticated media is not served over unauthenticated endpoints.
| * | | | | Add a cache on `get_rooms_for_local_user_where_membership_is` (#17460)Erik Johnston2024-07-196-4/+38
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | As it gets used in sliding sync. We basically invalidate it in all the same places as `get_rooms_for_user`. Most of the changes are due to needing the arguments you pass in to be hashable (which lists aren't)
| * | | | Generate room sync data concurrently (#17458)Erik Johnston2024-07-192-2/+11
| | | | | | | | | | | | | | | This is also what we do for standard `/sync`.
| * | | | Bump sentry-sdk from 2.6.0 to 2.8.0 (#17456)dependabot[bot]2024-07-191-5/+5
| | |/ / | |/| |
| * | | Improve default_power_level_content_override documentation (#17451)Ben Banfield-Zanin2024-07-183-0/+35
| | | | | | | | | | | | | | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * | | Revert "Bump setuptools from 67.6.0 to 70.0.0" (#17455)Erik Johnston2024-07-181-6/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reverts element-hq/synapse#17448 We hit a bug when deploying with synctl: ``` Traceback (most recent call last): File "/home/synapse/env-python311/bin/synctl", line 33, in <module> sys.exit(load_entry_point('matrix-synapse', 'console_scripts', 'synctl')()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/bin/synctl", line 25, in importlib_load_entry_point return next(matches).load() ^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/metadata/__init__.py", line 202, in load module = import_module(match.group('module')) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/importlib/__init__.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "<frozen importlib._bootstrap>", line 1204, in _gcd_import File "<frozen importlib._bootstrap>", line 1176, in _find_and_load File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 690, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 940, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/home/synapse/src/synapse/_scripts/synctl.py", line 37, in <module> from synapse.config import find_config_files File "/home/synapse/src/synapse/config/__init__.py", line 22, in <module> from ._base import ConfigError, find_config_files File "/home/synapse/src/synapse/config/_base.py", line 49, in <module> import pkg_resources File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3282, in <module> @_call_aside ^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3266, in _call_aside f(*args, **kwargs) File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3295, in _initialize_master_working_set working_set = _declare_state('object', 'working_set', WorkingSet._build_master()) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 589, in _build_master ws.require(__requires__) File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 926, in require needed = self.resolve(parse_requirements(requirements)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 787, in resolve dist = self._resolve_dist( ^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 816, in _resolve_dist env = Environment(self.entries) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1014, in __init__ self.scan(search_path) File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 1046, in scan for dist in find_distributions(item): File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2091, in find_on_path yield from factory(fullpath) ^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2183, in resolve_egg_link return next(dist_groups, ()) ^^^^^^^^^^^^^^^^^^^^^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2179, in <genexpr> resolved_paths = ( ^ File "/home/synapse/env-python311/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2167, in non_empty_lines for line in _read_utf8_with_fallback(path).splitlines(): ^^^^^^^^^^^^^^^^^^^^^^^^ NameError: name '_read_utf8_with_fallback' is not defined ```
| * | | Add `m.room.create` to default bump event types (#17453)Eric Eastwood2024-07-182-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Add `m.room.create` to default bump event types This probably helps when no messages have been sent in the room and it was just created.
| * | | Order `heroes` by `stream_ordering` (as spec'ed) (#17435)Eric Eastwood2024-07-174-26/+456
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The spec specifically mentions `stream_ordering` but that's a Synapse specific concept. In any case, the essence of the spec is basically the first 5 members of the room which `stream_ordering` accomplishes. Split off from https://github.com/element-hq/synapse/pull/17419#discussion_r1671342794 ## Spec compliance > This should be the first 5 members of the room, **ordered by stream ordering**, which are joined or invited. The list must never include the client’s own user ID. When no joined or invited members are available, this should consist of the banned and left users. > > *-- https://spec.matrix.org/v1.10/client-server-api/#_matrixclientv3sync_roomsummary* Related to https://github.com/matrix-org/matrix-spec/issues/1334
| * | | Merge branch 'master' into developTill Faelligen2024-07-163-1/+14
| |\ \ \
| | * | | 1.111.0 v1.111.0Till Faelligen2024-07-163-1/+14
| | | | |
* | | | | Remove fiddlingErik Johnston2024-07-221-2/+2
| | | | |
* | | | | Room keysgit checkout erikj/ss_hacksErik Johnston2024-07-191-9/+9
| | | | |
* | | | | Revert "Remove lists"Erik Johnston2024-07-192-4/+4
| | | | | | | | | | | | | | | | | | | | This reverts commit d8265b223f0ad96a47d4cb9a85d831c404008c6d.
* | | | | Remove listsErik Johnston2024-07-182-4/+4
| | | | |
* | | | | Merge branch 'erikj/ss_incr_sync' into erikj/ss_hacksErik Johnston2024-07-173-4/+209
|\ \ \ \ \
| * | | | | Only return changed rooms github/erikj/ss_incr_sync erikj/ss_incr_syncErik Johnston2024-07-172-2/+26
| | |_|/ / | |/| | |
| * | | | Add testsErik Johnston2024-07-171-0/+181
| | | | |
| * | | | Bump typing-extensions for 'assert_never'Erik Johnston2024-07-171-2/+2
| | | | |
* | | | | FixupErik Johnston2024-07-171-1/+1
| | | | |
* | | | | Merge branch 'erikj/ss_room_store' into erikj/ss_hacksErik Johnston2024-07-1725-217/+892
|\| | | |
| * | | | NewsfileErik Johnston2024-07-171-0/+1
| | | | |
| * | | | Fix testsErik Johnston2024-07-171-14/+2
| | | | |
| * | | | Handle state deltas in non-initial roomsErik Johnston2024-07-172-3/+49
| | | | |
| * | | | Handle initial flag correctlyErik Johnston2024-07-171-35/+31
| | | | |
| * | | | Use new room store to track if we've sent a room downErik Johnston2024-07-171-11/+44
| | | | |
| * | | | Add conn_id fieldErik Johnston2024-07-174-5/+36
| | | | |
| * | | | WIP/PoC of storing whether we have sent rooms down to clientsErik Johnston2024-07-171-0/+197
| | |_|/ | |/| |
| * | | NewsfileErik Johnston2024-07-171-0/+1
| | | |
| * | | Fix to use new token formatErik Johnston2024-07-171-2/+9
| | | |
| * | | Don't create tokens manually in SSS testsErik Johnston2024-07-171-21/+119
| | | |
| * | | Pass throught SlidingSyncStreamTokenErik Johnston2024-07-173-14/+28
| | | |
| * | | Add SlidingSyncStreamTokenErik Johnston2024-07-171-0/+37
| |/ /
| * | Bump mypy from 1.9.0 to 1.10.1 (#17445)dependabot[bot]2024-07-162-29/+30
| | |
| * | Bump matrix-org/done-action from 2 to 3 (#17440)dependabot[bot]2024-07-161-2/+2
| | |
| * | Handle remote download responses with `UNKNOWN_LENGTH` more gracefully (#17439)Shay2024-07-164-60/+166
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to this PR, remote downloads which did not provide a `content-length` were decremented from the remote download ratelimiter at the max allowable size, leading to excessive ratelimiting - see https://github.com/element-hq/synapse/issues/17394. This PR adds a linearizer to limit concurrent remote downloads to 6 per IP address, and decrements remote downloads without a `content-length` from the ratelimiter *after* the download is complete and the response length is known. Also adds logic to ensure that responses with a known length respect the `max_download_size`.
| * | Bump setuptools from 67.6.0 to 70.0.0 (#17448)dependabot[bot]2024-07-161-7/+6
| | |
| * | Remove unnecessary call to resume producing in fake channel (#17449)Shay2024-07-162-4/+1
| | | | | | | | | | | | | | | This fell out of the authenticated media work - this bit of code masked a bug but does not break anything when removed, so probably should be removed.
| * | Fix bug where sync could get stuck when using workers (#17438)Erik Johnston2024-07-154-10/+138
| | | | | | | | | | | | This is because we serialized the token wrong if the instance map contained entries from before the minimum token.
| * | Bump types-jsonschema from 4.22.0.20240610 to 4.23.0.20240712 (#17446)dependabot[bot]2024-07-151-3/+3
| | |
| * | Bump bytes from 1.6.0 to 1.6.1 (#17441)dependabot[bot]2024-07-151-2/+2
| | |
| * | Bump ulid from 1.1.2 to 1.1.3 (#17442)dependabot[bot]2024-07-151-2/+2
| | |
| * | Bump jsonschema from 4.22.0 to 4.23.0 (#17444)dependabot[bot]2024-07-151-4/+4
| | |
| * | Bump twine from 5.1.0 to 5.1.1 (#17443)dependabot[bot]2024-07-151-4/+4
| | |
| * | Make sure we use the right logic for enabling the media repo. (#17424)Quentin Gliech2024-07-154-8/+3
| | | | | | | | | | | | | | | This removes the `enable_media_repo` attribute on the server config in favour of always using the `can_load_media_repo` in the media config. This should avoid issues like in #17420 in the future
* | | Merge remote-tracking branch 'origin/develop' into erikj/ss_hacksErik Johnston2024-07-155-366/+1496
|\| |
| * | Add room subscriptions to Sliding Sync `/sync` (#17432)Eric Eastwood2024-07-155-358/+1489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add room subscriptions to Sliding Sync `/sync` Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync Currently, you can only subscribe to rooms you have had *any* membership in before. In the future, we will allow `world_readable` rooms to be subscribed to without joining.
* | | Have more timeline events in incremental syncsErik Johnston2024-07-121-3/+7
| | |
* | | Merge remote-tracking branch 'origin/develop' into erikj/ss_hacksErik Johnston2024-07-1221-162/+894
|\| |
| * | Add `is_dm` room field to Sliding Sync `/sync` (#17429)Eric Eastwood2024-07-113-29/+70
| | | | | | | | | | | | | | | Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
| * | Add `heroes` and room summary fields to Sliding Sync `/sync` (#17419)Eric Eastwood2024-07-116-110/+529
| | | | | | | | | | | | | | | | | | | | | Additional room summary fields: `joined_count`, `invited_count` Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
| * | Fix filtering room types on remote rooms (#17434)Erik Johnston2024-07-114-13/+130
| | | | | | | | | | | | | | | | | | We can only fetch room types for rooms the server is in, so we need to only filter rooms that we're joined to. Also includes a perf fix to bulk fetch room types.
| * | Fix docs on `record_action` to clarify the actions are applied (#17426)Travis Ralston2024-07-112-3/+3
| | | | | | | | | | | | | | | This looks like a copy/paste error: the function doesn't reject anything, but instead allows the action count to go through regardless. The remainder of the function's documentation appears correct.
| * | Add Red Hat Enterprise Linux and Rocky Linux installation instructions (#17423)villepeh2024-07-113-2/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added RHEL/Rocky install instructions (PyPI). Instructions cover versions 8 and 9 which are the only supported ones - except for RHEL7 which is now on extended life cycle support phase. Large part of the guide is for installing Python 3.11 or 3.12. RHEL8 ships with Python 3.6 and RHEL9 ships with 3.9. Newer Python versions can be installed easily as they don't interfere with OS software that still relies on the default Python version. I was first planning to add prerequisites part to the prerequisites section and then install instructions on the top of the page but that section is for pre-built packages so it just didn't sound right. So I just dumped everything to the PyPI section of the page. But suggestions to change are welcome. I also didn't combine these with Fedora section. I haven't tested those packages on RHEL and Fedora ships with Python 3.12 out-of-box.
| * | Use consistent casing between FROM and AS (#17431)Joe Groocock2024-07-112-3/+3
| | | | | | | | | Signed-off-by: Joe Groocock <me@frebib.net>
| * | Bump zipp from 3.15.0 to 3.19.1 (#17427)dependabot[bot]2024-07-111-6/+6
| | |
| * | Upload new logo with white bg and update readme to use it (#17387)Will Lewis2024-07-103-1/+96
| | |
* | | FixupErik Johnston2024-07-122-2/+4
| | |
* | | FixupErik Johnston2024-07-121-1/+1
| | |
* | | FixupErik Johnston2024-07-111-1/+1
| | |
* | | Reduce log spamErik Johnston2024-07-111-12/+8
| | |
* | | Merge branch 'erikj/ss_sort' into erikj/ss_hacksErik Johnston2024-07-112-3/+4
|\ \ \
| * | | Faster sliding sync sorting github/erikj/ss_sort erikj/ss_sortErik Johnston2024-07-116-23/+235
| |/ /
* | | Merge branch 'erikj/ss_sort' into erikj/ss_hacksErik Johnston2024-07-116-83/+127
|\ \ \
| * | | Faster sliding sync sortingErik Johnston2024-07-116-23/+232
| |/ /
* | | FixupErik Johnston2024-07-111-5/+8
| | |
* | | TracingErik Johnston2024-07-111-0/+3
| | |
* | | FixupErik Johnston2024-07-112-1/+5
| | |
* | | Fixup room typesErik Johnston2024-07-112-13/+36
| | |
* | | New tableErik Johnston2024-07-114-16/+101
| | |
* | | Handle $ME correctlyErik Johnston2024-07-111-1/+9
| | |
* | | FIXUPErik Johnston2024-07-111-7/+9
| | |
* | | FixupErik Johnston2024-07-111-7/+18
| | |
* | | FIXUPErik Johnston2024-07-101-1/+3
| | |
* | | FIXUPErik Johnston2024-07-102-10/+13
| | |
* | | FIXUPErik Johnston2024-07-1010-11/+15
| | |
* | | tracingErik Johnston2024-07-101-1/+5
| | |
* | | ConcurrentErik Johnston2024-07-101-2/+6
| | |
* | | FixupErik Johnston2024-07-101-4/+6
| | |
* | | FixupErik Johnston2024-07-101-7/+3
| | |
* | | FixupErik Johnston2024-07-102-1/+2
| | |
* | | FixupErik Johnston2024-07-103-8/+52
| | |
* | | FixupErik Johnston2024-07-101-10/+1
| | |
* | | FixupErik Johnston2024-07-101-1/+21
| | |
* | | FixupErik Johnston2024-07-102-7/+13
| | |
* | | More fixupsErik Johnston2024-07-103-12/+22
| | |
* | | Faster room sortingErik Johnston2024-07-102-31/+28
|/ /
* | Handle to-device extensions to Sliding Sync (#17416)Erik Johnston2024-07-106-12/+392
| | | | | | | | | | | | | | Implements MSC3885 --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* | Merge branch 'release-v1.111' into developQuentin Gliech2024-07-108-5/+31
|\|
| * 1.111.0rc2 v1.111.0rc2Quentin Gliech2024-07-106-4/+24
| |
| * Fix new media APIs when using synapse.app.media_repository (#17420)Erik Johnston2024-07-093-2/+3
| | | | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * Note the new federated media worker endpoints in the worker docs & upgrade ↵Andrew Morgan2024-07-093-2/+5
| | | | | | | | notes (#17421)
| * Route auth'd fed media requests to media repo in Complement tests (#17422)Andrew Morgan2024-07-092-0/+2
| |
* | Add `rooms` `name` and `avatar` to Sliding Sync `/sync` (#17418)Eric Eastwood2024-07-093-55/+305
|/ | | Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* Fix up the changelog v1.111.0rc1Quentin Gliech2024-07-092-3/+2
|
* Merge remote-tracking branch 'origin/develop' into release-v1.111Quentin Gliech2024-07-092-1/+3
|\
| * Fix exception when failing to talk to remote server (#17411)Erik Johnston2024-07-092-1/+3
| | | | | | Broke in #17381
* | Tweak the changelog for v1.111.0rc1Quentin Gliech2024-07-091-8/+7
| | | | | | | | Co-authored-by: Andrew Morgan <andrewm@element.io>
* | 1.111.0rc1Quentin Gliech2024-07-0925-25/+61
|/
* Fix `/versions` requests (#17410)Erik Johnston2024-07-093-1/+11
| | | | | We need it to work on workers and allow guest access. Broke by #17392
* Bump ijson from 3.2.3 to 3.3.0 (#17413)dependabot[bot]2024-07-091-90/+95
|
* Bump pillow from 10.3.0 to 10.4.0 (#17412)dependabot[bot]2024-07-091-71/+82
|
* Fix bug in sliding sync when using old DB. (#17398)Erik Johnston2024-07-088-212/+33
| | | | | | | | | We don't necessarily have `instance_name` for old events (before we support multiple event persisters). We treat those as if the `instance_name` was "master". --------- Co-authored-by: Eric Eastwood <eric.eastwood@beta.gouv.fr>
* Add `rooms.bump_stamp` to Sliding Sync `/sync` for easier client-side ↵Eric Eastwood2024-07-089-34/+295
| | | | | | | | | | | | | | | sorting (#17395) `bump_stamp` corresponds to the `stream_ordering` of the latest `DEFAULT_BUMP_EVENT_TYPES` in the room. This helps clients sort more readily without them needing to pull in a bunch of the timeline to determine the last activity. `bump_event_types` is a thing because for example, we don't want display name changes to mark the room as unread and bump it to the top. For encrypted rooms, we just have to consider any activity as a bump because we can't see the content and the client has to figure it out for themselves. Outside of Synapse, `bump_stamp` is just a free-form counter so other implementations could use `received_ts`or `origin_server_ts` (see the [*Security considerations* section in MSC3575 about the potential pitfalls of using `origin_server_ts`](https://github.com/matrix-org/matrix-spec-proposals/blob/kegan/sync-v3/proposals/3575-sync.md#security-considerations)). It doesn't have any guarantee about always going up. In the Synapse case, it could go down if an event was redacted/removed (or purged in cases of retention policies). In the future, we could add `bump_event_types` as [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575) mentions if people need to customize the event types. --- In the Sliding Sync proxy, a similar [`timestamp` field was added](https://github.com/matrix-org/sliding-sync/pull/247) for the same purpose but the name is not obvious what it pertains to or what it's for. The `timestamp` field was also added to Ruma in https://github.com/ruma/ruma/pull/1622
* Bump serde_json from 1.0.119 to 1.0.120 (#17408)dependabot[bot]2024-07-081-2/+2
|
* Bump serde from 1.0.203 to 1.0.204 (#17409)dependabot[bot]2024-07-081-4/+4
|
* Bump mypy-zope from 1.0.4 to 1.0.5 (#17414)dependabot[bot]2024-07-081-4/+3
|
* Bump pydantic from 2.7.1 to 2.8.2 (#17415)dependabot[bot]2024-07-081-85/+98
|
* Declare support for Matrix 1.11 (#17403)Travis Ralston2024-07-082-0/+2
| | | | | | | | Previous: https://github.com/element-hq/synapse/pull/17082 Fixes https://github.com/element-hq/synapse/issues/17402 See https://github.com/element-hq/synapse/issues/17402 for context **Blocked on https://github.com/element-hq/synapse/pull/17388** (required for spec compliance)
* MSC3861: allow overriding the introspection endpoint (#17406)Quentin Gliech2024-07-083-2/+20
| | | | This makes it easier to go through an internal endpoint instead of the public facing URL when introspecting tokens, reducing latency.
* Bump certifi from 2023.7.22 to 2024.7.4 (#17404)dependabot[bot]2024-07-081-4/+4
|
* Support MSC3916 by adding a federation /thumbnail endpoint and authenticated ↵Shay2024-07-0812-131/+585
| | | | | | | | | | | | | | `_matrix/client/v1/media/thumbnail` endpoint (#17388) [MSC3916](https://github.com/matrix-org/matrix-spec-proposals/pull/3916) added the endpoints `_matrix/federation/v1/media/thumbnail` and the authenticated `_matrix/client/v1/media/thumbnail`. This PR implements those endpoints, along with stabilizing `_matrix/client/v1/media/config` and `_matrix/client/v1/media/preview_url`. Complement tests are at https://github.com/matrix-org/complement/pull/728
* Bump ruff from 0.3.7 to 0.5.0 (#17381)dependabot[bot]2024-07-0513-36/+41
|
* Allow enabling sliding sync per-user (#17393)Erik Johnston2024-07-057-6/+89
| | | Based on #17392
* Finish up work to allow per-user feature flags (#17392)Erik Johnston2024-07-058-49/+189
| | | | | | | Follows on from @H-Shay's great work at https://github.com/matrix-org/synapse/pull/15344 and MSC4026. Also enables its use for MSC3881, mainly as an easy but concrete example of how to use it.
* Fix links to MSC3916 (#17397)Sandro2024-07-052-2/+2
|
* Upon deactivation, forget all of the user's rooms (#17400)Travis Ralston2024-07-053-0/+27
| | | | | | This can help ensure that the rooms are eventually purged if the other local users also forget them. Synapse already clears some of the room information as part of the `_background_remove_left_rooms` background task, but this doesn't catch `events`, `event_json`, etc.
* Fix links in README (#17379)Hugh Nimmo-Smith2024-07-052-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | I don't think this warrants a changelog? ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [x] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [ ] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))
* Make the release script create a release branch for Complement as well (#17318)Quentin Gliech2024-07-052-1/+25
|
* Add `rooms.required_state` to Sliding Sync `/sync` (#17342)Eric Eastwood2024-07-049-89/+1687
| | | Also handles excluding rooms with partial state when people are asking for room membership events unless it's `$LAZY` room membership.
* Changelog entries only get merged if they have the same content and ↵Eric Eastwood2024-07-042-3/+4
| | | | | | | | | | extension (#17399) Changelog entries only get merged if they have the same content and extension See https://github.com/element-hq/synapse/pull/17301#discussion_r1665387218
* Merge branch 'master' into developDevon Hudson2024-07-033-1/+14
|\
| * 1.110.0 v1.110.0 github/release-v1.110 release-v1.110Devon Hudson2024-07-033-1/+14
| |
* | Add `room_types`/`not_room_types` filtering to Sliding Sync `/sync` (#17337)Eric Eastwood2024-07-025-7/+248
| | | | | | | | | | Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* | Return some room data in Sliding Sync `/sync` (#17320)Eric Eastwood2024-07-0214-259/+3593
| | | | | | | | | | | | - Timeline events - Stripped `invite_state` Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* | Merge branch 'release-v1.110' into developDevon Hudson2024-07-027-5/+21
|\|
| * 1.110.0rc3 v1.110.0rc3Devon Hudson2024-07-027-5/+21
| |
* | Merge remote-tracking branch 'origin/release-v1.110' into developErik Johnston2024-07-025-10/+57
|\|
| * Limit size of presence EDUs (#17371)Erik Johnston2024-07-023-11/+140
| | | | | | | | | | | | | | Otherwise they are unbounded. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
| * Fix regression when bounding future tokens (#17391)Erik Johnston2024-07-023-10/+54
| | | | | | | | | | | | Fix bug added in #17386, where we accidentally used `room_key` for the receipts stream. See first commit. Reviewable commit-by-commit
| * Fix sync waiting for an invalid token from the "future" (#17386)Erik Johnston2024-07-0217-31/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/element-hq/synapse/issues/17274, hopefully. Basically, old versions of Synapse could advance streams without persisting anything in the DB (fixed in #17229). On restart those updates would get lost, and so the position of the stream would revert to an older position. If this happened across an upgrade to a later Synapse version which included #17215, then sync could get blocked indefinitely (until the stream advanced to the position in the token). We fix this by bounding the stream positions we'll wait for to the maximum position of the underlying stream ID generator.
| * Fix building debian packages for sid (#17389)Erik Johnston2024-07-022-0/+3
| | | | | | | | | | Sid now defaults to python3.12, and our pinned version of cffi (1.5.1) does not have wheels for 3.12. This installing cffi to fail as we did not have the correct libs installed to build from source.
* | Support MSC3916 by adding `_matrix/client/v1/media/download` endpoint (#17365)Shay2024-07-0226-84/+1718
| |
* | Fix sync waiting for an invalid token from the "future" (#17386)Erik Johnston2024-07-0217-31/+229
| | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/element-hq/synapse/issues/17274, hopefully. Basically, old versions of Synapse could advance streams without persisting anything in the DB (fixed in #17229). On restart those updates would get lost, and so the position of the stream would revert to an older position. If this happened across an upgrade to a later Synapse version which included #17215, then sync could get blocked indefinitely (until the stream advanced to the position in the token). We fix this by bounding the stream positions we'll wait for to the maximum position of the underlying stream ID generator.
* | Fix building debian packages on non-clean checkouts (#17390)Erik Johnston2024-07-022-0/+4
| | | | | | | | | | If we leave the `.so` in place it causes the tests to fail, as it gets picked up (instead of the newly built .so) and so fails with mismatched GLIBC errors.
* | Bump types-setuptools from 69.5.0.20240423 to 70.1.0.20240627 (#17380)dependabot[bot]2024-07-011-3/+3
| |
* | Bump serde_json from 1.0.117 to 1.0.119 (#17385)dependabot[bot]2024-07-011-2/+2
| |
* | Bump log from 0.4.21 to 0.4.22 (#17384)dependabot[bot]2024-07-011-2/+2
| |
* | Bump cryptography from 42.0.7 to 42.0.8 (#17382)dependabot[bot]2024-07-011-33/+33
| |
* | Limit size of presence EDUs (#17371)Erik Johnston2024-07-013-11/+140
| | | | | | | | | | | | | | Otherwise they are unbounded. --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* | Clarify `url_preview_url_blacklist` is a usability feature (#17356)davidegirardi2024-06-282-9/+13
| |
* | Use rstcheck to "lint" the README (#17367)Till2024-06-272-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Follow up to https://github.com/element-hq/synapse/pull/17363, so we can detect issues with the RST file early on. ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [x] Pull request is based on the develop branch * [x] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [x] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters))
* | Handle multiple rows device inbox (#17362)Erik Johnston2024-06-272-3/+3
| | | | | | | | | | | | | | | | | | | | Fix bug where we don't get new to-device from remote if they resent a message we've already persisted and have recorded in the DB twice. `device_federation_inbox` table doesn't have a unique index, and so we can race and store an entry in there twice. If we do so then `simple_select_one_txn` will throw an error due to the query returning more than one row. We should add an unique index, but it doesn't really matter so lets just handle the case of multiple rows correctly for now.
* | Merge branch 'release-v1.110' into developTill Faelligen2024-06-2646-49/+101
|\|
| * 1.110.0rc2 v1.110.0rc2Till Faelligen2024-06-264-2/+16
| |
| * Fix uploading packages to PyPi (#17363)Till2024-06-262-7/+8
| | | | | | | | | | | | As per https://github.com/sphinx-doc/sphinx/issues/3921#issuecomment-315581557, we need double underscores. Running `rst2html README.rst > /dev/null` found some more warnings.
| * Fix typo v1.110.0rc1Till Faelligen2024-06-261-1/+1
| |
| * Update changelogTill Faelligen2024-06-261-8/+6
| |
| * 1.110.0rc1Till Faelligen2024-06-2646-49/+88
| |
* | Fix uploading packages to PyPi (#17363)Till2024-06-262-7/+8
|/ | | | | | As per https://github.com/sphinx-doc/sphinx/issues/3921#issuecomment-315581557, we need double underscores. Running `rst2html README.rst > /dev/null` found some more warnings.
* Fixes to the table of contents in the README (#17329)Andrew Morgan2024-06-252-4/+5
|
* Fix outdated Security Disclosure Policy references (#17341)Denis Kasak2024-06-254-5/+6
|
* Re-introduce federation /download endpoint (#17350)Shay2024-06-258-11/+588
|
* Fix refreshable_access_token_lifetime typo (#17357)douglaz2024-06-251-1/+1
| | | Simple typo in the docs
* Limit amount of replication we send (#17358)Erik Johnston2024-06-252-8/+8
| | | | | | | | | Fixes up #17333, where we failed to actually send less data (the `DISTINCT` didn't work due to `stream_id` being different). We fix this by making it so that every device list outbound poke for a given user ID has the same stream ID. We can't change the query to only return e.g. max stream ID as the receivers look up the destinations to send to by doing `SELECT WHERE stream_id = ?`
* Reintroduce "Reduce device lists replication traffic."" (#17361)Erik Johnston2024-06-256-48/+89
| | | | | | Reintroduces https://github.com/element-hq/synapse/pull/17333 Turns out the reason for revert was down two master instances running
* Revert "Reduce device lists replication traffic." (#17360)Erik Johnston2024-06-256-89/+48
| | | | | | Reverts element-hq/synapse#17333 It looks like master was still sending out replication RDATA with the old format... somehow
* Add `is_invite` filtering to Sliding Sync `/sync` (#17335)Eric Eastwood2024-06-244-43/+199
| | | Based on [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575): Sliding Sync
* Correct error in user_directory docs (#17348)devonh2024-06-242-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [X] Pull request is based on the develop branch * [X] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [X] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters)) --------- Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: reivilibre <oliverw@matrix.org>
* Add default values for rc_invites per_issuer to docs (#17347)devonh2024-06-242-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A simple change to update the docs where default values were missing. ### Pull Request Checklist <!-- Please read https://element-hq.github.io/synapse/latest/development/contributing_guide.html before submitting your pull request --> * [X] Pull request is based on the develop branch * [X] Pull request includes a [changelog file](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#changelog). The entry should: - Be a short description of your change which makes sense to users. "Fixed a bug that prevented receiving messages from other servers." instead of "Moved X method from `EventStore` to `EventWorkerStore`.". - Use markdown where necessary, mostly for `code blocks`. - End with either a period (.) or an exclamation mark (!). - Start with a capital letter. - Feel free to credit yourself, by adding a sentence "Contributed by @github_username." or "Contributed by [Your Name]." to the end of the entry. * [X] [Code style](https://element-hq.github.io/synapse/latest/code_style.html) is correct (run the [linters](https://element-hq.github.io/synapse/latest/development/contributing_guide.html#run-the-linters)) --------- Co-authored-by: Kim Brose <2803622+HarHarLinks@users.noreply.github.com> Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
* Fix room `type` typo in mailer (#17336)Eric Eastwood2024-06-242-2/+4
| | | | | Correct event content field is `EventContentFields.ROOM_TYPE` (`type`) :white_check_mark: , not `room_type` :x: Spec: https://spec.matrix.org/v1.10/client-server-api/#mroomcreate
* Reintroduce #17291. (#17338)Erik Johnston2024-06-247-89/+250
| | | | | | | This is #17291 (which got reverted), with some added fixups, and change so that tests actually pick up the error. The problem was that we were not calculating any new chain IDs due to a missing `not` in a condition.
* Add support for MSC3823 - Account Suspension Part 2 (#17255)Shay2024-06-249-0/+287
|
* Reduce device lists replication traffic. (#17333)Erik Johnston2024-06-246-48/+89
| | | | | | | | | | Reduce the replication traffic of device lists, by not sending every destination that needs to be sent the device list update over replication. Instead a "hosts to send to have been calculated" notification over replication, and then federation senders read the destinations from the DB. For non federation senders this should heavily reduce the impact of a user in many large rooms changing a device.
* Tidy up integer parsing (#17339)Denis Kasak2024-06-248-34/+25
| | | | | | | | | | The parse_integer function was previously made to reject negative values by default in https://github.com/element-hq/synapse/pull/16920, but the documentation stated otherwise. This fixes the documentation and also: - Removes explicit negative=False parameters from call sites. - Brings the negative default of parse_integer_from_args in alignment with parse_integer.
* Bump lazy_static from 1.4.0 to 1.5.0 (#17355)dependabot[bot]2024-06-241-2/+2
|
* Bump typing-extensions from 4.11.0 to 4.12.2 (#17354)dependabot[bot]2024-06-241-3/+3
|
* Bump netaddr from 1.2.1 to 1.3.0 (#17353)dependabot[bot]2024-06-241-3/+3
|
* Bump packaging from 24.0 to 24.1 (#17352)dependabot[bot]2024-06-241-4/+4
|
* Bump sentry-sdk from 2.3.1 to 2.6.0 (#17351)dependabot[bot]2024-06-241-4/+4
|
* Bump urllib3 from 2.0.7 to 2.2.2 (#17346)dependabot[bot]2024-06-211-5/+5
|
* Bump requests from 2.31.0 to 2.32.2 (#17345)dependabot[bot]2024-06-211-4/+4
|
* Bump tornado from 6.4 to 6.4.1 (#17344)dependabot[bot]2024-06-211-15/+15
|
* Bump authlib from 1.3.0 to 1.3.1 (#17343)dependabot[bot]2024-06-211-3/+3
|
* Revert "Handle large chain calc better (#17291)" (#17334)Erik Johnston2024-06-195-230/+82
| | | | | | This reverts commit bdf82efea505c488953b46eb681b5a63c4e9655d (#17291) This seems to have stopped persisting auth chains for new events, and so is causing state res to fall back to the slow methods
* Register sliding sync under a different path (#17331)Erik Johnston2024-06-193-2/+5
| | | As the API is slightly incompatible.
* register-new-matrix-user: add a flag to ignore already existing users (#17304)Jörg Thalheim2024-06-194-3/+34
| | | | Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
* Filter added to Admin-API GET /rooms (#17276)Alexander Fechler2024-06-195-15/+131
|
* Update the README with Element branding and a few fixes (#17324)Andrew Morgan2024-06-192-25/+51
| | | | Co-authored-by: Hugh Nimmo-Smith <hughns@element.io>
* Remove `expire_access_token` from Docker configuration (#17198)Aaron Dewes2024-06-192-1/+1
| | | | Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
* Handle large chain calc better (#17291)Erik Johnston2024-06-195-82/+230
| | | | | We calculate the auth chain links outside of the main persist event transaction to ensure that we do not block other event sending during the calculation.
* Require the 'from' parameter for `/notifications` be an integer (#17283)Andrew Morgan2024-06-195-21/+173
| | | | Co-authored-by: Erik Johnston <erikj@element.io>
* Revert "Support MSC3916 by adding a federation `/download` endpoint" (#17325)Andrew Morgan2024-06-1811-659/+25
|
* register_new_matrix_user: add password-file flag (#17294)Jörg Thalheim2024-06-184-7/+29
| | | | | Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> Co-authored-by: Andrew Morgan <andrew@amorgan.xyz>
* Merge branch 'master' into developQuentin Gliech2024-06-184-5/+20
|\
| * 1.109.0 v1.109.0 github/release-v1.109 release-v1.109Quentin Gliech2024-06-184-2/+16
| |
| * Switch to macOS 12 runners to fix building of wheels for macOS (#17319)Quentin Gliech2024-06-182-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes the release artefacts workflow to use `macos-12` runners instead of `macos-11`, as the latter will be fully deprecated in a few days. This also updates `cibuildwheel` to a newer version, as it would not 'repair' the macOS wheels correctly The difference is that now instead of outputting a macOS 11+ compatible wheel, we output a macOS 12+ compatible one. This is fine, as macOS 11 is considered EOL since September 2023. We can also expect that macOS 12 will be considered EOL in September 2024, as Apple usually supports the last 3 macOS version, and macOS 15 is scheduled to be released around that time.
* | Add support for via query parameter from MSC4156 (#17322)Johannes Marbach2024-06-184-0/+20
| | | | | | | | This adds support for the `via` query parameter from https://github.com/matrix-org/matrix-spec-proposals/pull/4156.