Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-12-04 | 43 | -3054/+344 |
|\ | |||||
| * | ModuleAPI SSO auth callbacks (#15207) | Andrew Yasinishyn | 2023-12-01 | 5 | -0/+41 |
| | | | | | | Signed-off-by: Andrii Yasynyshyn yasinishyn.a.n@gmail.com | ||||
| * | Drop unused tables & unneeded access token ID for events. (#16522) | Patrick Cloke | 2023-12-01 | 3 | -8/+28 |
| | | |||||
| * | Declare support for Matrix v1.7, v1.8, and v1.9. (#16707) | Patrick Cloke | 2023-11-29 | 1 | -0/+3 |
| | | |||||
| * | Request & follow redirects for /media/v3/download (#16701) | Patrick Cloke | 2023-11-29 | 4 | -33/+152 |
| | | | | | | | | | | | | Implement MSC3860 to follow redirects for federated media downloads. Note that the Client-Server API doesn't support this (yet) since the media repository in Synapse doesn't have a way of supporting redirects. | ||||
| * | Reduce DB load when forget on leave setting is disabled (#16668) | Erik Johnston | 2023-11-29 | 1 | -3/+8 |
| | | | | | | | | | | * Reduce DB load when forget on leave setting is disabled * Newsfile | ||||
| * | Speed up pruning of `user_ips` table (#16667) | Erik Johnston | 2023-11-29 | 1 | -10/+7 |
| | | | | | | Silly query planner | ||||
| * | Ignore `encryption_enabled_by_default_for_room_type` for notices room (#16677) | Mathieu Velten | 2023-11-28 | 2 | -1/+10 |
| | | |||||
| * | Remove old full schema dumps. (#16697) | Patrick Cloke | 2023-11-28 | 20 | -2962/+0 |
| | | | | | | | | These are not useful and make it difficult to search for table definitions, etc. | ||||
| * | Correctly read to-device stream pos on SQLite (#16682) | David Robertson | 2023-11-24 | 2 | -13/+20 |
| | | |||||
| * | Keep track of `user_ips` and `monthly_active_users` when delegating auth ↵ | David Robertson | 2023-11-23 | 4 | -38/+74 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | (#16672) * Describe `insert_client_ip` * Pull out client_ips and MAU tracking to BaseAuth * Define HAS_AUTHLIB once in tests sick of copypasting * Track ips and token usage when delegating auth * Test that we track MAU and user_ips * Don't track `__oidc_admin` | ||||
| * | Enable refreshable tokens on the admin registration endpoint (#16642) | Charles Wright | 2023-11-22 | 1 | -1/+9 |
| | | | | | | Signed-off-by: Charles Wright <cvwright@futo.org> | ||||
| * | Admin API for server notice: consistently bypass rate limits (#16670) | Mathieu Velten | 2023-11-22 | 1 | -0/+2 |
| | | | | | | | | | | | | | | * Admin API for server notice: disable rate limit for all calls * Add changelog * Update changelog.d/16670.bugfix | ||||
| * | Filter out auth chain queries that don't exist (#16552) | Jason Little | 2023-11-22 | 1 | -0/+5 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-11-20 | 6 | -5/+46 |
|\| | |||||
| * | Speed up how quickly we launch new tasks (#16660) | Erik Johnston | 2023-11-17 | 1 | -1/+1 |
| | | | | | | Now that we're reducing concurrency (#16656), this is more important. | ||||
| * | Speed up purge room by adding index (#16657) | Erik Johnston | 2023-11-17 | 2 | -0/+25 |
| | | | | | | What it says on the tin | ||||
| * | Also discard 'caches' and 'backfill' stream POSITIONS (#16655) | Erik Johnston | 2023-11-17 | 1 | -0/+16 |
| | | | | | | Follow on from #16640 | ||||
| * | Merge branch 'master' into develop | Patrick Cloke | 2023-11-17 | 1 | -2/+2 |
| |\ | |||||
| | * | Fix "'int' object is not iterable" error in set_device_id_for_pushers ↵ | Patrick Cloke | 2023-11-02 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | background update (#16594) A regression from removing the cursor_to_dict call, adds back the wrapping into a tuple. | ||||
| * | | Reduce task concurrency (#16656) | Erik Johnston | 2023-11-17 | 2 | -2/+2 |
| | | | |||||
| * | | Revert "Fix test not detecting tables with missing primary keys and missing ↵ | Erik Johnston | 2023-11-16 | 2 | -110/+0 |
| | | | | | | | | | | | | | | | replica identities, then add more replica identities. (#16647)" (#16652) This reverts commit 830988ae72d63bbb67d2020a3f221664f3f456ee. | ||||
* | | | Revert "Fix test not detecting tables with missing primary keys and missing ↵ | Erik Johnston | 2023-11-16 | 2 | -110/+0 |
| | | | | | | | | | | | | | | | | | | replica identities, then add more replica identities. (#16647)" This reverts commit 830988ae72d63bbb67d2020a3f221664f3f456ee. | ||||
* | | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-11-16 | 2 | -118/+0 |
|\| | | |||||
| * | | Revert "Add a Postgres `REPLICA IDENTITY` to tables that do not have an ↵ | Erik Johnston | 2023-11-16 | 2 | -118/+0 |
| | | | | | | | | | | | | | | | implicit one. This should allow use of Postgres logical replication. (#16456)" (#16651) This reverts commit 69afe3f7a0d89f3422ddbd3aa16bc9bbc01056eb. | ||||
* | | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-11-16 | 57 | -248/+1321 |
|\| | | |||||
| * | | Speed up deleting device messages (#16643) | Erik Johnston | 2023-11-16 | 3 | -29/+87 |
| | | | | | | | | | Keeping track of a lower bound of stream ID where we've deleted everything below makes the queries much faster. Otherwise, every time we scan for rows to delete we'd re-scan across all the rows that have previously deleted (until the next table VACUUM). | ||||
| * | | Speed up persisting large number of outliers (#16649) | Erik Johnston | 2023-11-16 | 2 | -11/+58 |
| | | | | | | | | | Recalculating the roots tuple every iteration could be very expensive, so instead let's do a topological sort. | ||||
| * | | Fix sending out of order `POSITION` over replication (#16639) | Erik Johnston | 2023-11-16 | 3 | -21/+36 |
| | | | | | | | | | | | | | | | If a worker reconnects to Redis we send out the current positions of all our streams. However, if we're also trying to send out a backlog of RDATA at the same time then we can end up sending a `POSITION` with the current token *before* we've sent all the RDATA before the current token. This doesn't cause actual bugs as the receiving servers see the POSITION, fetch the relevant rows from the DB, and then ignore the old RDATA as they come in. However, this is inefficient so it'd be better if we didn't send out-of-order positions | ||||
| * | | More efficiently handle no-op POSITION (#16640) | Erik Johnston | 2023-11-16 | 2 | -0/+52 |
| | | | | | | | | | | | | We may receive `POSITION` commands where we already know that worker has advanced past that position, so there is no point in handling it. | ||||
| * | | Fix test not detecting tables with missing primary keys and missing replica ↵ | reivilibre | 2023-11-16 | 2 | -0/+110 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identities, then add more replica identities. (#16647) * Fix the CI query that did not detect all cases of missing primary keys * Add more missing REPLICA IDENTITY entries * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | ||||
| * | | Add an Admin API to temporarily grant the ability to update an existing ↵ | David Robertson | 2023-11-15 | 6 | -12/+165 |
| | | | | | | | | | | | | cross-signing key without UIA (#16634) | ||||
| * | | Asynchronous Uploads (#15503) | Sumner Evans | 2023-11-15 | 11 | -58/+530 |
| | | | | | | | | | Support asynchronous uploads as defined in MSC2246. | ||||
| * | | Use full GitHub links instead of bare issue numbers. (#16637) | Patrick Cloke | 2023-11-15 | 19 | -32/+42 |
| | | | |||||
| * | | Remove whole table locks on push rule add/delete (#16051) | Nick Mills-Barrett | 2023-11-13 | 1 | -16/+27 |
| | | | | | | | | | | | | The statements are already executed within a transaction thus a table level lock is unnecessary. | ||||
| * | | Add a Postgres `REPLICA IDENTITY` to tables that do not have an implicit ↵ | reivilibre | 2023-11-13 | 2 | -0/+118 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | one. This should allow use of Postgres logical replication. (#16456) * Add Postgres replica identities to tables that don't have an implicit one Fixes #16224 * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> * Move the delta to version 83 as we missed the boat for 82 * Add a test that all tables have a REPLICA IDENTITY * Extend the test to include when indices are deleted * isort * black * Fully qualify `oid` as it is a 'hidden attribute' in Postgres 11 * Update tests/storage/test_database.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> * Add missed tables --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | ||||
| * | | Use attempt_to_set_autocommit everywhere. (#16615) | Patrick Cloke | 2023-11-09 | 3 | -12/+18 |
| | | | | | | | | | To avoid asserting the type of the database connection. | ||||
| * | | Fix a long-standing bug where Synapse would not unbind third-party ↵ | reivilibre | 2023-11-09 | 1 | -11/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | identifiers for Application Service users when deactivated and would not emit a compliant response. (#16617) * Don't skip unbinding 3PIDs and returning success status when deactivating AS user Fixes #16608 * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> --------- Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org> | ||||
| * | | Use _invalidate_cache_and_stream_bulk in more places. (#16616) | Patrick Cloke | 2023-11-09 | 6 | -46/+70 |
| | | | | | | | | | | | | | | | This takes advantage of the new bulk method in more places to invalidate caches for many keys at once (and then to stream that over replication). | ||||
* | | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Patrick Cloke | 2023-11-09 | 32 | -365/+513 |
|\| | | |||||
| * | | Convert simple_select_one_txn and simple_select_one to return tuples. (#16612) | Patrick Cloke | 2023-11-09 | 25 | -253/+261 |
| | | | |||||
| * | | Return attrs for more media repo APIs. (#16611) | Patrick Cloke | 2023-11-09 | 6 | -91/+128 |
| | | | |||||
| * | | Bulk-invalidate e2e cached queries after claiming keys (#16613) | David Robertson | 2023-11-09 | 4 | -28/+131 |
| | | | | | | | | | | | | Co-authored-by: Patrick Cloke <patrickc@matrix.org> | ||||
* | | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Patrick Cloke | 2023-11-08 | 9 | -93/+227 |
|\| | | |||||
| * | | Avoid updating the same rows multiple times with simple_update_many_txn. ↵ | Patrick Cloke | 2023-11-07 | 1 | -4/+1 |
| | | | | | | | | | | | | | | | | | | (#16609) simple_update_many_txn had a bug in it which would cause each update to be applied twice. | ||||
| * | | Avoid executing no-op queries. (#16583) | Patrick Cloke | 2023-11-07 | 5 | -19/+33 |
| | | | | | | | | | | | | | | | | | | If simple_{insert,upsert,update}_many_txn is called without any data to modify then return instead of executing the query. This matches the behavior of simple_{select,delete}_many_txn. | ||||
| * | | More tests for the simple_* methods. (#16596) | Patrick Cloke | 2023-11-07 | 1 | -9/+4 |
| | | | | | | | | | | | | Expand tests for the simple_* database methods, additionally test against both PostgreSQL and SQLite variants. | ||||
| * | | Collect information for PushRuleEvaluator in parallel. (#16590) | Patrick Cloke | 2023-11-06 | 3 | -34/+86 |
| | | | | | | | | | | | | | | | | | | | | | | | | Fetch information needed for push rule evaluation in parallel. Ideally this would use query pipelining, but this is not available in psycopg2. Due to the database thread pool this may result in little to no parallelization. | ||||
| * | | Support reactor timing metric on more reactors. (#16532) | Patrick Cloke | 2023-11-06 | 1 | -27/+103 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously only Twisted's EPollReactor was compatible with the reactor timing metric, notably not working when asyncio was used. After this change, the following configurations support the reactor timing metric: * poll, epoll, or select reactors * asyncio reactor with a poll, epoll, select, /dev/poll, or kqueue event loop. | ||||
* | | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Patrick Cloke | 2023-11-03 | 21 | -457/+640 |
|\| | | |||||
| * | | Simplify event persistence code (#16584) | Patrick Cloke | 2023-11-03 | 2 | -312/+324 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The event persistence code used to handle multiple rooms at a time, but was simplified to only ever be called with a single room at a time (different rooms are now handled in parallel). The code is still generic to multiple rooms causing a lot of work that is unnecessary (e.g. unnecessary loops, and partitioning data by room). This strips out the ability to handle multiple rooms at once, greatly simplifying the code. | ||||
| * | | Use simple_select_many_txn in event persistance code. (#16585) | Patrick Cloke | 2023-11-02 | 1 | -5/+11 |
| | | | | | | | | | | | | | | | Just to standardize on the normal helpers, it might also have a slight perf improvement on PostgreSQL which will now use `ANY (?)` instead of `IN (?, ?, ...)`. | ||||
| * | | Bump twisted from 23.8.0 to 23.10.0 (#16588) | dependabot[bot] | 2023-11-01 | 1 | -1/+1 |
| | | | |||||
| * | | Do not call getfullargspec on every call. (#16589) | Patrick Cloke | 2023-10-31 | 1 | -2/+5 |
| | | | | | | | | | | | | | | | getfullargspec is relatively expensive and the results will not change between calls, so precalculate it outside the wrapper. | ||||
| * | | Remove remaining usage of cursor_to_dict. (#16564) | Patrick Cloke | 2023-10-31 | 14 | -136/+283 |
| | | | |||||
| * | | Fix import ordering issue introduced in ↵ | Patrick Cloke | 2023-10-31 | 1 | -1/+1 |
| |/ | | | | | | | 7a3a55ac98847d7adb0e200378abe07ef8d0c645. | ||||
| * | Merge pull request from GHSA-mp92-3jfm-3575 | Patrick Cloke | 2023-10-31 | 3 | -1/+16 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-10-31 | 2 | -114/+149 |
|\| | |||||
| * | Claim local one-time-keys in bulk (#16565) | David Robertson | 2023-10-30 | 2 | -114/+149 |
| | | | | | | | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-10-30 | 4 | -0/+90 |
|\| | |||||
| * | Add fast path for replication events stream fetch (#16580) | Erik Johnston | 2023-10-30 | 1 | -0/+6 |
| | | | | | | | | We can bail early if the from token is greater than or equal to the current token. | ||||
| * | Claim fallback keys in bulk (#16570) | David Robertson | 2023-10-30 | 3 | -0/+84 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-10-30 | 4 | -5/+22 |
|\| | |||||
| * | Fix HTTP repl response to use minimum token (#16578) | Erik Johnston | 2023-10-30 | 1 | -1/+1 |
| | | |||||
| * | Portdb: don't copy a table that gets rebuilt (#16563) | David Robertson | 2023-10-27 | 1 | -1/+1 |
| | | |||||
| * | Ensure local invited & knocking users leave before purge. (#16559) | Patrick Cloke | 2023-10-27 | 2 | -3/+20 |
| | | | | | | | | | | This is mostly useful for federated rooms where some users would get stuck in the invite or knock state when the room was purged from their homeserver. | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-10-27 | 1 | -0/+10 |
|\| | |||||
| * | Reduce amount of caches POSITIONS we send (#16561) | Erik Johnston | 2023-10-27 | 1 | -0/+10 |
| | | | | | | Follow on from / actually correctly does #16557 | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Patrick Cloke | 2023-10-27 | 83 | -714/+1570 |
|\| | |||||
| * | Reduce spurious replication catchup (#16555) | Erik Johnston | 2023-10-27 | 1 | -5/+9 |
| | | |||||
| * | Fix cross-worker ratelimiting (#16558) | Erik Johnston | 2023-10-27 | 1 | -16/+57 |
| | | | | | | c.f. #16481 | ||||
| * | Reduce replication traffic due to reflected cache stream POSITION (#16557) | Erik Johnston | 2023-10-27 | 1 | -1/+18 |
| | | |||||
| * | Add new module API for adding custom fields to events `unsigned` section ↵ | Erik Johnston | 2023-10-27 | 14 | -42/+99 |
| | | | | | | | | (#16549) | ||||
| * | Remove more usages of cursor_to_dict. (#16551) | Patrick Cloke | 2023-10-26 | 21 | -123/+182 |
| | | | | | | Mostly to improve type safety. | ||||
| * | Add a new module API to update user presence state. (#16544) | Patrick Cloke | 2023-10-26 | 8 | -42/+94 |
| | | | | | | | | | | | | | | | | | | | | This adds a module API which allows a module to update a user's presence state/status message. This is useful for controlling presence from an external system. To fully control presence from the module the presence.enabled config parameter gains a new state of "untracked" which disables internal tracking of presence changes via user actions, etc. Only updates from the module will be persisted and sent down sync properly). | ||||
| * | Convert simple_select_list and simple_select_list_txn to return lists of ↵ | Patrick Cloke | 2023-10-26 | 21 | -269/+346 |
| | | | | | | | | | | tuples (#16505) This should use fewer allocations and improves type hints. | ||||
| * | Allow multiple workers to write to receipts stream. (#16432) | Erik Johnston | 2023-10-25 | 12 | -85/+347 |
| | | | | | | Fixes #16417 | ||||
| * | Fix http/s proxy authentication with long username/passwords (#16504) | Richard Brežák | 2023-10-24 | 1 | -1/+1 |
| | | |||||
| * | Remove duplicate call to wake a remote destination when using federation ↵ | Jason Little | 2023-10-24 | 2 | -13/+0 |
| | | | | | | | | sending worker (#16515) | ||||
| * | Fix type hint errors from Twisted trunk (#16526) | Patrick Cloke | 2023-10-23 | 1 | -5/+11 |
| | | |||||
| * | Fix bug where a new writer advances their token too quickly (#16473) | Erik Johnston | 2023-10-23 | 6 | -62/+170 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Fix bug where a new writer advances their token too quickly When starting a new writer (for e.g. persisting events), the `MultiWriterIdGenerator` doesn't have a minimum token for it as there are no rows matching that new writer in the DB. This results in the the first stream ID it acquired being announced as persisted *before* it actually finishes persisting, if another writer gets and persists a subsequent stream ID. This is due to the logic of setting the minimum persisted position to the minimum known position of across all writers, and the new writer starts off not being considered. * Fix sending out POSITIONs when our token advances without update Broke in #14820 * For replication HTTP requests, only wait for minimal position | ||||
| * | Fix bug that could cause a `/sync` to tightloop with sqlite after restart ↵ | Erik Johnston | 2023-10-23 | 1 | -1/+4 |
| | | | | | | | | | | (#16540) This could happen if the last rows in the account data stream were inserted into `account_data`. After a restart the max account ID would be calculated without looking at the `account_data` table, and so have an old ID. | ||||
| * | Force TLS certificate verification in registration script. (#16530) | Denis Kasak | 2023-10-23 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | 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 Cloke | 2023-10-23 | 2 | -7/+4 |
| | | | | | | | | This table was no longer used, except for a background process which purged old entries in it. | ||||
| * | Mark sync as limited if there is a gap in the timeline (#16485) | Erik Johnston | 2023-10-19 | 4 | -33/+165 |
| | | | | | | | | | | | | | | | | 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 Cloke | 2023-10-18 | 2 | -1/+52 |
| | | |||||
| * | Improve performance of delete device messages query (#16492) | Mathieu Velten | 2023-10-18 | 2 | -7/+10 |
| | | |||||
* | | Merge branch 'release-v1.95' into matrix-org-hotfixes | Patrick Cloke | 2023-10-17 | 86 | -1338/+1704 |
|\| | |||||
| * | Convert DeviceLastConnectionInfo to attrs. (#16507) | Patrick Cloke | 2023-10-17 | 2 | -36/+33 |
| | | | | | | To improve type safety & memory usage. | ||||
| * | Fix a bug where servers could be marked as up when they were failing (#16506) | Patrick Cloke | 2023-10-17 | 1 | -13/+17 |
| | | | | | | | | After this change a server will only be reported as back online if they were previously having requests fail. | ||||
| * | Convert state delta processing from a dict to attrs. (#16469) | Patrick Cloke | 2023-10-16 | 6 | -108/+109 |
| | | | | | | For improved type checking & memory usage. | ||||
| * | Remove useless async job to delete device messages on sync (#16491) | Mathieu Velten | 2023-10-16 | 2 | -24/+3 |
| | | |||||
| * | Clean up logging on event persister endpoints (#16488) | Richard van der Hoff | 2023-10-14 | 2 | -6/+13 |
| | | |||||
| * | Revert "Drop unused tables & unneeded access token ID for events. (#16268)" ↵ | Patrick Cloke | 2023-10-12 | 3 | -28/+8 |
| | | | | | | | | | | | | | | | | (#16465) This reverts commit cabd57746004fe2dacc11aa8d373854a3d25e306. There are additional usages of these tables which need to be removed first. | ||||
| * | Convert user_get_threepids response to attrs. (#16468) | Patrick Cloke | 2023-10-11 | 7 | -14/+26 |
| | | | | | | 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 Cloke | 2023-10-11 | 21 | -416/+601 |
| | | |||||
| * | Handle content types with parameters. (#16440) | Patrick Cloke | 2023-10-11 | 1 | -1/+3 |
| | | |||||
| * | Inline simple_search_list/simple_search_list_txn. (#16434) | Patrick Cloke | 2023-10-10 | 3 | -73/+48 |
| | | | | | | | | This only has a single use and is over abstracted. Inline it so that we can improve type hints. | ||||
| * | Add DB indices to speed up purging rooms (#16457) | David Robertson | 2023-10-10 | 3 | -0/+34 |
| | | |||||
| * | Disable statement timeout whilst purging rooms (#16455) | reivilibre | 2023-10-09 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | * 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> | ||||
| * | Bump ruff from 0.0.290 to 0.0.292 (#16449) | dependabot[bot] | 2023-10-09 | 5 | -8/+0 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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> | ||||
| * | Fix possible AttributeError when account-api is called over unix socket (#16404) | Christoph | 2023-10-09 | 1 | -1/+1 |
| | | | | | | Fixes #16396 | ||||
| * | Apply join rate limiter outside the lineariser (#16441) | David Robertson | 2023-10-06 | 1 | -20/+23 |
| | | |||||
| * | Convert simple_select_list_paginate_txn to return tuples. (#16433) | Patrick Cloke | 2023-10-06 | 6 | -39/+66 |
| | | |||||
| * | Return ThumbnailInfo in more places (#16438) | Patrick Cloke | 2023-10-06 | 4 | -62/+71 |
| | | | | | | | | Improves type hints by using concrete types instead of dictionaries. | ||||
| * | Drop unused tables & unneeded access token ID for events. (#16268) | Patrick Cloke | 2023-10-06 | 3 | -8/+28 |
| | | | | | | | | 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 Cloke | 2023-10-06 | 4 | -22/+6 |
| | | | | | | | | | | | | | | | | | | 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 Cloke | 2023-10-06 | 2 | -3/+1 |
| | | |||||
| * | Register media servlets via regex. (#16419) | Patrick Cloke | 2023-10-06 | 9 | -118/+103 |
| | | | | | | | | | | 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. | ||||
| * | Remove unused method. (#16435) | Patrick Cloke | 2023-10-05 | 1 | -20/+0 |
| | | |||||
| * | Remove manys calls to cursor_to_dict (#16431) | Patrick Cloke | 2023-10-05 | 14 | -227/+318 |
| | | | | | | | | | | | | | | | | | | | | 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 Cloke | 2023-10-05 | 1 | -1/+26 |
| | | | | | | To slightly reduce the amount of memory each command takes. | ||||
| * | Factor out `MultiWriter` token from `RoomStreamToken` (#16427) | Erik Johnston | 2023-10-05 | 7 | -57/+110 |
| | | |||||
| * | Some refactors around receipts stream (#16426) | Erik Johnston | 2023-10-04 | 13 | -69/+87 |
| | | |||||
* | | Revert "TEMPORARY Measure and log test cases" | Olivier Wilkinson (reivilibre) | 2023-10-17 | 1 | -17/+6 |
| | | | | | | | | This reverts commit adfdd6afe120d13ec6cd9d8a1d72b6fba5d8c9f8. | ||||
* | | TEMPORARY Measure and log test cases | Olivier Wilkinson (reivilibre) | 2023-10-17 | 1 | -6/+17 |
| | | |||||
* | | Revert "TEMPORARY Subdivide _resolve_events Measure blocks" | Olivier Wilkinson (reivilibre) | 2023-10-16 | 1 | -92/+79 |
| | | | | | | | | This reverts commit f3db863420ff2093359d828839952950c0d15584. | ||||
* | | Revert "TEMPORARY Add more Measure blocks" | Olivier Wilkinson (reivilibre) | 2023-10-16 | 1 | -70/+64 |
| | | | | | | | | This reverts commit adfa0fded3f3f8330788417107decc53cac3c49c. | ||||
* | | TEMPORARY Add more Measure blocks | Olivier Wilkinson (reivilibre) | 2023-10-16 | 1 | -64/+70 |
| | | |||||
* | | TEMPORARY Subdivide _resolve_events Measure blocks | Olivier Wilkinson (reivilibre) | 2023-10-16 | 1 | -79/+92 |
| | | |||||
* | | TEMPORARY Disable prune_old_outbound_device_pokes | Olivier Wilkinson (reivilibre) | 2023-10-16 | 1 | -1/+3 |
| | | | | | | | | See #16480 | ||||
* | | Merge remote-tracking branch 'origin/release-v1.94' into matrix-org-hotfixes | David Robertson | 2023-10-03 | 6 | -21/+72 |
|\| | |||||
| * | mypy plugin to check `@cached` return types (#14911) | David Robertson | 2023-10-02 | 6 | -21/+72 |
| | | | | | | | | | | | | | | | | 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). | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Patrick Cloke | 2023-10-02 | 53 | -264/+458 |
|\| | |||||
| * | Remove Python version from `/_synapse/admin/v1/server_version` (#16380) | MomentQYC | 2023-10-02 | 1 | -5/+1 |
| | | | | | | | | There's no reason to expose the full Python version over what is frequently a public API. | ||||
| * | Downgrade repl stream time out error to warning (#16401) | Erik Johnston | 2023-09-29 | 1 | -1/+1 |
| | | | | | | | | | | | | 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 Hunt | 2023-09-29 | 1 | -2/+40 |
| | | | | | | | | | | Use an `inline` Content-Disposition header when the media is "safe" to display inline (some known text, image, video, audio formats). | ||||
| * | Improve state types. (#16395) | Patrick Cloke | 2023-09-28 | 1 | -3/+2 |
| | | |||||
| * | Add a cache around server ACL checking (#16360) | Patrick Cloke | 2023-09-26 | 6 | -72/+87 |
| | | | | | | | | | | * 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 Cloke | 2023-09-26 | 2 | -0/+5 |
| | | | | | | | | This unstable push rule is implemented behind an experimental configuration flag. | ||||
| * | Reduce calls to `send_presence_to_destinations` (#16385) | Erik Johnston | 2023-09-26 | 1 | -15/+18 |
| | | |||||
| * | Improve comments in StateGroupBackgroundUpdateStore. (#16383) | Patrick Cloke | 2023-09-25 | 1 | -2/+16 |
| | | |||||
| * | Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14 (#16381) | dependabot[bot] | 2023-09-25 | 2 | -29/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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> | ||||
| * | Add support for pydantic v2 via pydantic.v1 compat module (#16332) | Maxwell G | 2023-09-25 | 12 | -15/+105 |
| | | | | | | While maintaining support with pydantic v1. | ||||
| * | Add missing license header. (#16359) | Patrick Cloke | 2023-09-21 | 1 | -0/+13 |
| | | |||||
| * | Convert more cached return values to immutable types (#16356) | Patrick Cloke | 2023-09-20 | 9 | -20/+32 |
| | | |||||
| * | Return immutable objects for cachedList decorators (#16350) | Patrick Cloke | 2023-09-19 | 23 | -100/+133 |
| | | |||||
* | | Revert "Temporarily disable webp thumbnailing" | Patrick Cloke | 2023-09-25 | 1 | -1/+1 |
| | | | | | | | | This reverts commit 93248076c2a0eecc631a7ce7503f3d5e773e224c. | ||||
* | | Merge remote-tracking branch 'origin/release-v1.93' into matrix-org-hotfixes | Patrick Cloke | 2023-09-19 | 33 | -541/+500 |
|\| | |||||
| * | Bump ruff from 0.0.286 to 0.0.290 (#16342) | dependabot[bot] | 2023-09-18 | 2 | -13/+2 |
| | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Patrick Cloke <patrickc@matrix.org> | ||||
| * | Filter locked users in the admin API (#16328) | Hanadi | 2023-09-18 | 3 | -2/+12 |
| | | | | | | | | Co-authored-by: Hanadi Tamimi <hanadi.tamimi@sdui.de> | ||||
| * | Make cached account data/tags/admin types immutable (#16325) | Patrick Cloke | 2023-09-18 | 8 | -50/+54 |
| | | |||||
| * | Return an immutable value from get_latest_event_ids_in_room. (#16326) | Patrick Cloke | 2023-09-18 | 5 | -15/+14 |
| | | |||||
| * | Additional validation of receipts (#16327) | Patrick Cloke | 2023-09-18 | 3 | -4/+26 |
| | | | | | | | | Reject invalid receipts with a reasonable error message & expands tests for receipts. | ||||
| * | Set email charset as utf-8 rather than utf8 (#16329) | José Joaquín Atria | 2023-09-18 | 1 | -2/+2 |
| | | |||||
| * | Add automatic purge after all users forget a room (#15488) | Mathieu Velten | 2023-09-15 | 8 | -427/+368 |
| | | | | | | | | | | | | 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 Little | 2023-09-15 | 2 | -14/+12 |
| | | |||||
| * | Only use literal strings for process names (#16315) | Erik Johnston | 2023-09-15 | 3 | -14/+10 |
| | | |||||
* | | Temporarily disable webp thumbnailing | Erik Johnston | 2023-09-15 | 1 | -1/+1 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-09-14 | 32 | -214/+284 |
|\| | |||||
| * | Some minor performance fixes for task schedular (#16313) | Erik Johnston | 2023-09-14 | 4 | -34/+94 |
| | | |||||
| * | Speed up deleting to-device messages task (#16318) | Erik Johnston | 2023-09-14 | 1 | -13/+14 |
| | | |||||
| * | Refactor `get_user_by_id` (#16316) | Erik Johnston | 2023-09-14 | 11 | -96/+74 |
| | | |||||
| * | Remove a reference cycle in background process (#16314) | Erik Johnston | 2023-09-13 | 1 | -1/+20 |
| | | |||||
| * | Fix using dehydrated devices (MSC2697) & refresh tokens (#16288) | Hanadi | 2023-09-13 | 2 | -3/+24 |
| | | | | | | | | | | 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 Cloke | 2023-09-13 | 15 | -67/+58 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-09-13 | 1 | -11/+26 |
|\| | |||||
| * | Don't schedule an async task on every sync (#16312) | Erik Johnston | 2023-09-13 | 1 | -11/+26 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-09-13 | 1 | -31/+31 |
|\| | |||||
| * | Fix deleting device inbox when using background worker (#16311) | Erik Johnston | 2023-09-13 | 1 | -31/+31 |
| | | | | | | | | | | Introduced in #16240 The action for the task was only defined on the "master" handler, rather than the base worker one. | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-09-13 | 50 | -507/+860 |
|\| | |||||
| * | Improve logging of replication (#16309) | Erik Johnston | 2023-09-13 | 2 | -2/+7 |
| | | |||||
| * | Bump mypy from 1.4.1 to 1.5.1. (#16300) | Patrick Cloke | 2023-09-12 | 1 | -8/+2 |
| | | |||||
| * | Stop purging tables which are slated for removal. (#16273) | Patrick Cloke | 2023-09-12 | 2 | -5/+5 |
| | | |||||
| * | Refactor storing of server keys (#16261) | Erik Johnston | 2023-09-12 | 2 | -175/+79 |
| | | |||||
| * | Add the List-Unsubscribe header for notification emails. (#16274) | Patrick Cloke | 2023-09-11 | 3 | -6/+54 |
| | | | | | | | | | | | | | | | | 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 Johnston | 2023-09-11 | 1 | -1/+14 |
| | | |||||
| * | Improve type hints for attrs classes (#16276) | David Robertson | 2023-09-08 | 6 | -39/+36 |
| | | |||||
| * | Update ruff config (#16283) | Patrick Cloke | 2023-09-08 | 4 | -8/+1 |
| | | | | | | Enable additional checks & clean-up unneeded configuration. | ||||
| * | Log values at DEBUG level with execute_values (#16281) | David Robertson | 2023-09-08 | 1 | -2/+3 |
| | | |||||
| * | Fix bug with new task scheduler using lots of CPU. (#16278) | Erik Johnston | 2023-09-08 | 1 | -21/+22 |
| | | | | | | | | | | 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. | ||||
| * | Avoid temporary storage of sensitive information. (#16272) | Patrick Cloke | 2023-09-08 | 1 | -2/+2 |
| | | | | | | | | During the UI auth process, avoid storing sensitive information into the database. | ||||
| * | Reduce CPU overhead of change password endpoint (#16264) | Erik Johnston | 2023-09-08 | 1 | -58/+54 |
| | | |||||
| * | Recheck if remote device is cached before requesting it (#16252) | Erik Johnston | 2023-09-07 | 3 | -17/+34 |
| | | | | | | | | 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 Johnston | 2023-09-07 | 3 | -37/+39 |
| | | |||||
| * | Send the opentracing span information to appservices (#16227) | Marcel | 2023-09-06 | 1 | -8/+24 |
| | | |||||
| * | Handle "registration_enabled" parameter for CAS (#16262) | Aurélien Grimpard | 2023-09-06 | 2 | -0/+5 |
| | | | | | | | | 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 develop | Patrick Cloke | 2023-09-06 | 8 | -202/+10 |
| |\ | |||||
| * | | Add the ability to use `G` (GiB) and `T` (TiB) suffixes in configuration ↵ | reivilibre | 2023-09-06 | 1 | -3/+4 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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) | reivilibre | 2023-09-06 | 4 | -6/+40 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 Velten | 2023-09-06 | 11 | -37/+106 |
| | | | |||||
| * | | Fix appservices being unable to handle to_device messages for multiple users ↵ | Will Hunt | 2023-09-05 | 1 | -1/+1 |
| | | | | | | | | | | | | (#16251) | ||||
| * | | Add MSC4040 `matrix-fed` service lookups (#16137) | Travis Ralston | 2023-09-05 | 1 | -5/+24 |
| | | | |||||
| * | | Fix bug where we kept re-requesting a remote server's key repeatedly. (#16257) | Erik Johnston | 2023-09-05 | 1 | -6/+11 |
| | | | | | | | | | | | | | | | * Correctly handle multiple rows per server/key * Newsfile | ||||
| * | | Time out busy presence status & test multi-device busy (#16174) | Patrick Cloke | 2023-09-05 | 1 | -1/+18 |
| | | | | | | | | | | | | | | | | | | | | | 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 Cloke | 2023-09-05 | 2 | -51/+271 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 twisted from 22.10.0 to 23.8.0 (#16235) | dependabot[bot] | 2023-09-05 | 3 | -9/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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> | ||||
* | | | Merge branch 'release-v1.92' into matrix-org-hotfixes | Patrick Cloke | 2023-09-06 | 8 | -202/+10 |
|\ \ \ | | |/ | |/| | |||||
| * | | Merge remote-tracking branch 'origin/release-v1.91' into release-v1.92 | Patrick Cloke | 2023-09-06 | 7 | -199/+6 |
| |\ \ | |||||
| | * | | Revert MSC3861 introspection cache, admin impersonation and account lock ↵ | Quentin Gliech | 2023-09-06 | 7 | -199/+6 |
| | | | | | | | | | | | | | | | | (#16258) | ||||
| * | | | Fix incorrect docstring for Ratelimiter. (#16255) | Patrick Cloke | 2023-09-05 | 1 | -3/+4 |
| | |/ | |/| | |||||
* | | | Merge remote-tracking branch 'origin/release-v1.92' into matrix-org-hotfixes | David Robertson | 2023-09-05 | 77 | -607/+929 |
|\| | | |||||
| * | | Don't wake up destination transaction queue if they're not due for retry. ↵ | Erik Johnston | 2023-09-04 | 11 | -67/+161 |
| | | | | | | | | | | | | (#16223) | ||||
| * | | Add last_seen_ts to the admin users API (#16218) | Mathieu Velten | 2023-09-04 | 6 | -2/+16 |
| | | | |||||
| * | | Don't reset retry timers on "valid" error codes (#16221) | Erik Johnston | 2023-09-04 | 3 | -3/+27 |
| | | | |||||
| * | | Cache device resync requests over replication (#16241) | David Robertson | 2023-09-04 | 1 | -1/+1 |
| | | | |||||
| * | | Fix typo where we ended up with multiple `WorkerLocksHandler` (#16220) | Erik Johnston | 2023-09-01 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | I don't think has caused any actual issues. Introduced in #15891 | ||||
| * | | Log the details of background update failures (#16212) | David Robertson | 2023-09-01 | 1 | -2/+2 |
| | | | |||||
| * | | Gracefully handle failing to thumbnail images (#16211) | Erik Johnston | 2023-08-30 | 2 | -1/+9 |
| | | | |||||
| * | | Fix rare bug that broke looping calls (#16210) | Erik Johnston | 2023-08-30 | 1 | -14/+22 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | ||||
| * | | Stop writing to the event_txn_id table (#16175) | Patrick Cloke | 2023-08-30 | 4 | -84/+21 |
| | | | |||||
| * | | Describe which rate limiter was hit in logs (#16135) | David Robertson | 2023-08-30 | 14 | -92/+150 |
| | | | |||||
| * | | Track currently syncing users by device for presence (#16172) | Patrick Cloke | 2023-08-29 | 3 | -63/+128 |
| | | | | | | | | | | | | | | | | | | | | | 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 Cloke | 2023-08-29 | 4 | -14/+32 |
| | | | |||||
| * | | Bump ruff from 0.0.277 to 0.0.286 (#16198) | dependabot[bot] | 2023-08-29 | 17 | -33/+47 |
| | | | | | | | | | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | ||||
| * | | Support IPv6-only SMTP servers (#16155) | Evilham | 2023-08-29 | 1 | -17/+11 |
| | | | | | | | | | | | | Use Twisted HostnameEndpoint to connect to SMTP servers (instead of connectTCP/connectSSL) which properly supports IPv6-only servers. | ||||
| * | | Fix inaccurate error message while trying to ban or unban a user with the ↵ | Chen Zhang | 2023-08-29 | 1 | -1/+7 |
| | | | | | | | | | | | | same or higher PL (#16205) | ||||
| * | | Pass the device ID around in the presence handler (#16171) | Patrick Cloke | 2023-08-28 | 9 | -19/+63 |
| | | | | | | | | | | | | | | | | | | 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 Cloke | 2023-08-28 | 2 | -97/+68 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 Velten | 2023-08-28 | 3 | -49/+73 |
| | | | |||||
| * | | Prepare unit tests for Python 3.12 (#16099) | V02460 | 2023-08-25 | 1 | -0/+1 |
| | | | |||||
| * | | Validate input to POST /key/v2/query endpoint. (#16183) | Patrick Cloke | 2023-08-25 | 1 | -10/+29 |
| | | | | | | | | | To avoid 500 internal server errors with garbage input. | ||||
| * | | Send proper JSON POST data to /publicRooms (#16185) | Patrick Cloke | 2023-08-25 | 1 | -10/+6 |
| | | | | | | | | | | | | The include_all_networks was previously sent in the JSON body as string "true" and "false" instead of boolean true and false. | ||||
| * | | Add configuration setting for CAS protocol version (#15816) | Aurélien Grimpard | 2023-08-24 | 2 | -2/+17 |
| | | | |||||
| * | | Fix typechecking with twisted trunk (#16121) | David Robertson | 2023-08-24 | 3 | -26/+27 |
| | | | |||||
| * | | Add `Retry-After` to M_LIMIT_EXCEEDED error responses (#16136) | Will Hunt | 2023-08-24 | 2 | -1/+18 |
| | | | | | | | | | Implements MSC4041 behind an experimental configuration flag. | ||||
| * | | Stabilize support for MSC3958 (suppress notifications from edits). (#16113) | Patrick Cloke | 2023-08-23 | 2 | -6/+0 |
| | | | |||||
* | | | Merge remote-tracking branch 'origin/release-v1.91' into matrix-org-hotfixes | David Robertson | 2023-09-04 | 1 | -0/+1 |
|\ \ \ | | |/ | |/| | |||||
| * | | Fix typo where we ended up with multiple `WorkerLocksHandler` (#16220) | Erik Johnston | 2023-09-01 | 1 | -0/+1 |
| |/ | | | | | | | | | I don't think has caused any actual issues. Introduced in #15891 | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-08-23 | 2 | -37/+71 |
|\| | |||||
| * | Fix rare deadlock when using read/write locks (#16169) github/release-v1.91.0 release-v1.91.0 | Erik Johnston | 2023-08-23 | 2 | -37/+71 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-08-23 | 1 | -0/+5 |
|\| | |||||
| * | Filter out unwanted user_agents from udv. (#16124) | Neil Johnson | 2023-08-23 | 1 | -0/+5 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-08-23 | 5 | -5/+81 |
|\| | |||||
| * | Fix rare deadlock when using read/write locks (#16133) | Erik Johnston | 2023-08-23 | 1 | -0/+37 |
| | | |||||
| * | Reduce DB contention on worker locks (#16160) | Erik Johnston | 2023-08-23 | 1 | -0/+37 |
| | | |||||
| * | Always update `retry_last_ts` (#16164) | Erik Johnston | 2023-08-23 | 1 | -3/+3 |
| | | |||||
| * | Task scheduler: mark task as active if we are scheduling ASAP (#16165) | Mathieu Velten | 2023-08-23 | 2 | -2/+4 |
| | | |||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-08-23 | 24 | -190/+1233 |
|\| | |||||
| * | Properly update retry_last_ts when hitting the maximum retry interval (#16156) | DeepBlueV7.X | 2023-08-23 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Properly update retry_last_ts when hitting the maximum retry interval This was broken in 1.87 when the maximum retry interval got changed from almost infinite to a week (and made configurable). fixes #16101 Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de> * Add changelog * Change fix + add test * Add comment --------- Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de> Co-authored-by: Mathieu Velten <mathieuv@matrix.org> | ||||
| * | Only lock when we're backfilling (#16159) | Erik Johnston | 2023-08-23 | 2 | -146/+156 |
| | | |||||
| * | Increase perf of read/write locks (#16149) | Erik Johnston | 2023-08-23 | 1 | -0/+30 |
| | | | | | | We do this by marking the tables as `UNLOGGED` in PostgreSQL. | ||||
| * | Fix perf of `wait_for_stream_positions` (#16148) | Erik Johnston | 2023-08-22 | 1 | -7/+12 |
| | | |||||
| * | Disable `m.3pid_changes` capability when MSC3861 is enabled. (#16134) | Mathieu Velten | 2023-08-22 | 2 | -1/+16 |
| | | |||||
| * | Add an admin endpoint to allow authorizing server to signal token ↵ | Shay | 2023-08-22 | 7 | -0/+127 |
| | | | | | | | | revocations (#16125) | ||||
| * | Disallow user_consent where experimental MSC3861 is enabled (#16127) | Hugh Nimmo-Smith | 2023-08-22 | 1 | -0/+7 |
| | | |||||
| * | Add `client_secret_path` as alternative for `client_secret` for OIDC config ↵ | Maximilian Bosch | 2023-08-21 | 1 | -1/+15 |
| | | | | | | | | (#16030) | ||||
| * | Implements a task scheduler for resumable potentially long running tasks ↵ | Mathieu Velten | 2023-08-21 | 8 | -1/+644 |
| | | | | | | | | (#15891) | ||||
| * | Speed up state res in rare case we don't have all events (#16116) | Erik Johnston | 2023-08-18 | 1 | -23/+161 |
| | | | | | | | | | | | | | | If we don't have all the auth events in a room then not all state events will have a chain cover index. Even so, we can still use the chain cover index on the events that do have it, rather than bailing and using the slower functions. This situation should not arise for newly persisted rooms, as we check we have the full auth chain for each event, but can happen for existing rooms. c.f. #15245 | ||||
| * | MSC3861: allow impersonation by an admin using a query param (#16132) | Mathieu Velten | 2023-08-18 | 1 | -3/+22 |
| | | |||||
| * | Allow filtering for admins in the list accounts admin API (#16114) | Alexander Fechler | 2023-08-18 | 2 | -0/+13 |
| | | |||||
| * | Add response time metrics for introspection requests (#16131) | Erik Johnston | 2023-08-18 | 1 | -7/+27 |
| | | | | | | See #16119 | ||||
* | | Merge remote-tracking branch 'origin/develop' into matrix-org-hotfixes | Erik Johnston | 2023-08-18 | 56 | -429/+746 |
|\| | |||||
| * | Add cache to `get_server_keys_json_for_remote` (#16123) | Erik Johnston | 2023-08-18 | 3 | -63/+120 |
| | | |||||
| * | Cache token introspection response from OIDC provider (#16117) | Shay | 2023-08-17 | 1 | -2/+38 |
| | | |||||
| * | Fix database performance of read/write worker locks (#16061) | Erik Johnston | 2023-08-17 | 1 | -52/+35 |
| | | | | | | | | | | | | | | We were seeing serialization errors when taking out multiple read locks. The transactions were retried, so isn't causing any failures. Introduced in #15782. | ||||
| * | Override global statement timeout when creating indexes in Postgres (#16085) | Shay | 2023-08-17 | 1 | -0/+12 |
| | | |||||
| * | Disable caching in /sync corner case (#16080) | Matthew Ma | 2023-08-17 | 1 | -10/+10 |
| | | | | | | Fixes #15502 | ||||
| * | Rename pagination&purge locks and add comments explaining them (#16112) | Mathieu Velten | 2023-08-16 | 7 | -19/+28 |
| | | |||||
| * | Attempt to fix twisted trunk (#16115) | David Robertson | 2023-08-15 | 1 | -1/+3 |
| | |