summary refs log tree commit diff
path: root/changelog.d/7279.feature (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-03-25Add restrictions by default to open registration in Synapse (#12091)Shay7-4/+67
2022-03-25Add cache for `get_membership_from_event_ids` (#12272)Erik Johnston6-22/+72
This should speed up push rule calculations for rooms with large numbers of local users when the main push rule cache fails. Co-authored-by: reivilibre <oliverw@matrix.org>
2022-03-25Enhance logging for inbound federation events (#12301)Richard van der Hoff2-1/+2
It is currently rather hard to see which rooms are causing inbound federation traffic. Add the room id to the logs.
2022-03-25Refactor `create_new_client_event` to use a new parameter, ↵Eric Eastwood5-65/+165
`state_event_ids`, which accurately describes the usage with MSC2716 instead of abusing `auth_event_ids` (#12083) Spawned from https://github.com/matrix-org/synapse/pull/10975#discussion_r813183430 Part of [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716)
2022-03-25Always allow the empty string as an avatar_url. (#12261)David Robertson4-0/+32
Hopefully this fixes #12257. Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-03-25Authentik OpenID minor doc update (#12275)IronTooch2-1/+4
2022-03-25Mention the new behaviour on unsafe database locale in the upgrade notes ↵Brendan Abolivier2-0/+8
(#12288) Co-authored-by: Shay <hillerys@element.io>
2022-03-24Re-enable test concurrency on Complement (#12283)kegsay2-1/+2
2022-03-24Remove unused test code. (#12291)Patrick Cloke2-110/+1
The `MockHttpResource` and `MockKey` objects were unused since #9396 (74af356baf79de5d719fad6c32b981eedbdd950d).
2022-03-24changelog v1.55.2Richard van der Hoff1-1/+1
2022-03-241.55.2Richard van der Hoff4-2/+19
2022-03-24Pin Jinja to <3.1.0 (#12297)Andrew Morgan2-1/+3
as 3.1.0 removed the deprecated jinja2.Markup class which we still rely on.
2022-03-24Revert "Replace instances of deprecated `Jinja2.Markup` with ↵Andrew Morgan2-6/+4
`markupsafe.Markup`" (#12296) This reverts commit 8810c93e828a9ed1dcb008d08be8aa9fcb4d28c3.
2022-03-24update changelog for 1.55.1 v1.55.1Andrew Morgan1-2/+2
2022-03-241.55.1Andrew Morgan4-2/+18
2022-03-24Replace instances of deprecated `Jinja2.Markup` with `markupsafe.Markup` ↵Andrew Morgan3-4/+7
(#12289) Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-03-24Do not consider events by ignored users for relations (#12285)Patrick Cloke7-4/+90
Filter the events returned from `/relations` for the requester's ignored users in a similar way to `/messages` (and `/sync`).
2022-03-24Optionally include account validity in MSC3720 account status responses (#12266)Brendan Abolivier4-1/+73
2022-03-23Refuse to start if DB has an unsafe locale (#12262)Shay6-18/+93
2022-03-23Use psycopg2 type stubs (#12269)David Robertson4-4/+14
2022-03-23Remove mutual_rooms `update_user_directory` check, and add extra ↵Jonathan de Jong3-5/+17
documentation (#12038) Resolves #10339
2022-03-23Allow registering admin users using the module API (#12250)Nicolas Werner3-0/+15
Signed-off-by: Nicolas Werner <n.werner@famedly.com>
2022-03-23Rename shared_rooms to mutual_rooms (#12036)Jonathan de Jong5-25/+27
Co-authored-by: reivilibre <olivier@librepush.net>
2022-03-22Changelog: sso -> Single Sign-On v1.55.0Andrew Morgan1-1/+1
2022-03-22changelog: move notice from rc to final releaseAndrew Morgan1-4/+5
2022-03-221.55.0Andrew Morgan5-3/+16
2022-03-22Tweak copy for sso account details template (#12265)Michael Telatynski4-6/+7
* Tweak copy for sso account details template * Update sso footer copyright year * Add newsfragment Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-03-21Call out synctl changeDavid Robertson1-1/+3
2022-03-21Add type hints to tests files. (#12256)Dirk Klimpel6-88/+101
2022-03-21Reword 'Choose your user name' as 'Choose your account name' in the SSO ↵reivilibre2-1/+2
registration template, in order to comply with SIWA guidelines. (#12260) * Reword as 'Choose your account name' * Newsfile Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
2022-03-21Make it possible to enable compression for the metrics HTTP resource (#12258)Nick Mills-Barrett2-1/+5
* Make it possible to enable compression for the metrics HTTP resource This can provide significant bandwidth savings pulling metrics from synapse instances. * Add changelog file. * Fix type hint
2022-03-21Return a 404 from `/state` for an outlier (#12087)Richard van der Hoff3-44/+25
* Replace `get_state_for_pdu` with `get_state_ids_for_pdu` and `get_events_as_list`. * Return a 404 from `/state` and `/state_ids` for an outlier
2022-03-18Try to detect borked package installations. (#12244)David Robertson3-2/+38
* Try to detect borked package installations. Fixes #12223. Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
2022-03-18Move get_bundled_aggregations to relations handler. (#12237)Patrick Cloke9-157/+173
The get_bundled_aggregations code is fairly high-level and uses a lot of store methods, we move it into the handler as that seems like a better fit.
2022-03-18Only fetch thread participation for events with threads. (#12228)Patrick Cloke4-245/+289
We fetch the thread summary in two phases: 1. The summary that is shared by all users (count of messages and latest event). 2. Whether the requesting user has participated in the thread. There's no use in attempting step 2 for events which did not return a summary from step 1.
2022-03-18Sync more worker regexes in the documentation. (#12243)Patrick Cloke2-16/+15
2022-03-18Add some type hints to datastore (#12248)Dirk Klimpel4-84/+117
* inherit `MonthlyActiveUsersStore` from `RegistrationWorkerStore` Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-03-18Correct `check_username_for_spam` annotations and docs (#12246)David Robertson8-16/+46
* Formally type the UserProfile in user searches * export UserProfile in synapse.module_api * Update docs Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
2022-03-17Generate announcement links in release script (#12242)David Robertson2-1/+41
2022-03-17Make poetry available in sytest twisted trunk testSean Quah1-0/+4
We may have to use OFFLINE=1 mode to stop sytest from reinstalling a non-trunk version of twisted. Let's find out.
2022-03-17Add type hints to more tests files. (#12240)Dirk Klimpel6-47/+66
2022-03-17fixup Bump parameterized dependency to >= 0.7.4Sean Quah1-1/+1
Update `poetry.lock`.
2022-03-16Re-generate changelog. v1.55.0rc1Patrick Cloke2-1/+1
2022-03-16Fix bundling aggregations if unsigned is not a returned event field. (#12234)Patrick Cloke3-3/+35
An error occured if a filter was supplied with `event_fields` which did not include `unsigned`. In that case, bundled aggregations are still added as the spec states it is allowed for servers to add additional fields.
2022-03-16Work around twisted trunk test installing an old treq versionSean Quah1-5/+11
2022-03-16Use pip to install olddeps, as suggested by dmrSean Quah1-3/+5
2022-03-16Handle cancellation in `DatabasePool.runInteraction()` (#12199)Sean Quah3-24/+96
To handle cancellation, we ensure that `after_callback`s and `exception_callback`s are always run, since the transaction will complete on another thread regardless of cancellation. We also wait until everything is done before releasing the `CancelledError`, so that logging contexts won't get used after they have been finished. Signed-off-by: Sean Quah <seanq@element.io>
2022-03-16Add a relations handler to avoid duplication. (#12227)Patrick Cloke5-69/+134
Adds a handler layer between the REST and datastore layers for relations.
2022-03-16Add some missing type hints to cache datastore. (#12216)Patrick Cloke2-21/+37
2022-03-16Fix dead link in spam checker warning (#12231)David Robertson2-2/+3
2022-03-16Refactor relations tests (#12232)Patrick Cloke2-406/+364
* Moves the relation pagination tests to a separate class. * Move the assertion of the response code into the `_send_relation` helper. * Moves some helpers into the base-class.
2022-03-16Clean-up logic for rebasing URLs during URL preview. (#12219)Patrick Cloke4-91/+26
By using urljoin from the standard library and reducing the number of places URLs are rebased.
2022-03-15Use the ignored_users table to test event visibility & sync. (#12225)Patrick Cloke6-47/+62
Instead of fetching the raw account data and re-parsing it. The ignored_users table is a denormalised version of the account data for quick searching.
2022-03-15Add tests for database transaction callbacks (#12198)Sean Quah2-1/+104
Signed-off-by: Sean Quah <seanq@element.io>
2022-03-15Bump parameterized dependency to >= 0.7.4Sean Quah1-2/+4
parameterized < 0.7.4 can create classes with names that do not play well with trial in multiple worker mode.
2022-03-15Add type hints to some tests/handlers files. (#12224)Dirk Klimpel7-131/+156
2022-03-15Changelog tweaksDavid Robertson1-4/+6
2022-03-151.55.0rc1David Robertson65-63/+89
2022-03-14Add cancellation support to `@cached` and `@cachedList` decorators (#12183)Sean Quah3-2/+157
These decorators mostly support cancellation already. Add cancellation tests and fix use of finished logging contexts by delaying cancellation, as suggested by @erikjohnston. Signed-off-by: Sean Quah <seanq@element.io>
2022-03-14Add cancellation support to `ReadWriteLock` (#12120)Sean Quah4-93/+382
Also convert `ReadWriteLock` to use async context managers. Signed-off-by: Sean Quah <seanq@element.io>
2022-03-14WIP: Try to fix twisted trunk jobDavid Robertson2-30/+43
2022-03-14aaaaaaaaaaaaaaaaaaanotherDavid Robertson1-1/+3
2022-03-14try poetry againDavid Robertson1-2/+54
2022-03-14aaaaaaaaaaaaaaaaaaaDavid Robertson1-1/+1
2022-03-14desperationg toxDavid Robertson2-45/+6
2022-03-14rollback?David Robertson1-14/+13
2022-03-14sod off, baldrickDavid Robertson2-0/+4
2022-03-14lock?David Robertson1-1/+2
2022-03-14baaaaaaaaaaaaaaaaaDavid Robertson1-5/+7
2022-03-14pathDavid Robertson1-2/+2
2022-03-14skipppppDavid Robertson1-1/+1
2022-03-14Can I just use poetry?David Robertson1-11/+6
2022-03-14need parameterizedDavid Robertson1-1/+1
2022-03-14blease workDavid Robertson1-4/+16
2022-03-14BUMSDavid Robertson1-1/+1
2022-03-14debugDavid Robertson2-1/+5
2022-03-14lol got the line wrongDavid Robertson1-3/+1
2022-03-14source venc. try againDavid Robertson1-2/+5
2022-03-14WIPDavid Robertson2-6/+15
2022-03-14Try to fix olddepsDavid Robertson2-3/+14
2022-03-14TODO noteDavid Robertson1-0/+2
2022-03-14Include `test` extraDavid Robertson2-2/+6
I thought we might be able to get away without this and make it a dev dependency only. But in olddeps it's easier to have this (otherwise I have to worry about version conflicts between dev deps and the normal deps). lock the test extra
2022-03-14Fix broken background updates when using sqlite with `enable_search` off ↵Sean Quah2-6/+8
(#12215) Signed-off-by: Sean Quah <seanq@element.io>
2022-03-14Add `delay_cancellation` utility function (#12180)Sean Quah3-12/+161
`delay_cancellation` behaves like `stop_cancellation`, except it delays `CancelledError`s until the original `Deferred` resolves. This is handy for unifying cleanup paths and ensuring that uncancelled coroutines don't use finished logcontexts. Signed-off-by: Sean Quah <seanq@element.io>
2022-03-14And try to fix `export-data`David Robertson2-16/+11
<