Andrew Morgan
2edc839c23
Switch to f-strings
2022-08-08 14:11:34 +01:00
Andrew Morgan
90128dd355
Raise a ValueError if keyvalues is falsely
2022-08-08 12:13:17 +01:00
Andrew Morgan
efc492ed99
Do not return the number of deleted rows from simple_truncate
...
Postgres does not support returning this information for a TRUNCATE command.
2022-08-04 16:37:10 +01:00
Andrew Morgan
1da8f115b5
update the changelog entries
2022-08-04 15:27:06 +01:00
Andrew Morgan
452fc33646
Prevent empty keyvalues arg to simple_delete raising db exception
2022-08-04 15:26:59 +01:00
Andrew Morgan
1777a21d12
Add a test for simple_truncate
2022-08-04 15:21:29 +01:00
Andrew Morgan
da7c7f39c4
Add simple_truncate database method.
2022-08-04 14:54:55 +01:00
Andrew Morgan
8346060c06
Remove unnecessary if condition
...
'clauses' will always be non-None.
2022-08-04 14:15:37 +01:00
Andrew Morgan
ae08e4cd43
Revert "Allow deleting all rows when passing empty keyvalues dict to simple_delete{_many}"
...
This reverts commit 7496a37e03 .
2022-08-04 14:14:38 +01:00
Andrew Morgan
2f255be9b2
changelogs
2022-08-03 15:43:11 +01:00
Andrew Morgan
7496a37e03
Allow deleting all rows when passing empty keyvalues dict to simple_delete{_many}
2022-08-03 14:39:43 +01:00
Andrew Morgan
fcf058f564
Remove unused 'DataStore.get_users' method
2022-08-03 14:39:37 +01:00
andrew do
78a3111c41
Return 404 or member list when getting joined_members after leaving ( #13374 )
...
Signed-off-by: Andrew Doh <andrewddo@gmail.com >
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com >
Co-authored-by: Andrew Morgan <andrewm@element.io >
Co-authored-by: Brendan Abolivier <babolivier@matrix.org >
2022-08-03 14:26:31 +02:00
Jasper Spaans
503a95804e
Install cryptography build dependencies in requirements image. ( #13372 )
2022-08-03 11:16:32 +01:00
jejo86
668597214f
Improve documentation on becoming server admin ( #13230 )
...
* Improved section regarding server admin
Added steps describing how to elevate an existing user to administrator by manipulating a `postgres` database.
Signed-off-by: jejo86 28619134+jejo86@users.noreply.github.com
* Improved section regarding server admin
* Reference database settings
Add instructions to check database settings to find out the database name, instead of listing all available PostgreSQL databases.
* Add suggestions from PR conversation
Replace config filename `homeserver.yaml`. with "config file".
Remove instructions to switch to `postgres` user.
Add instructions how to connect to SQLite database.
* Update changelog.d/13230.doc
Co-authored-by: reivilibre <olivier@librepush.net >
2022-08-03 11:15:23 +01:00
Dirk Klimpel
fb7a2cc4cc
Update doc for setting macaroon_secret_key ( #13443 )
...
* Update doc for setting `macaroon_secret_key`
* newsfile
2022-08-03 10:41:19 +01:00
Dirk Klimpel
d6e94ad9d9
Rename RateLimitConfig to RatelimitSettings ( #13442 )
2022-08-03 10:40:20 +01:00
Matt C
570bf32bbb
Add module API method to resolve a room alias to a room ID ( #13428 )
...
Co-authored-by: MattC <buffless-matt@users.noreply.github.com >
Co-authored-by: Brendan Abolivier <babolivier@matrix.org >
2022-08-03 09:25:36 +00:00
Dirk Klimpel
5eccfdfafd
Remove 'Contents' section from the Configuration Manual ( #13438 )
...
Fixes : #13053
2022-08-03 09:19:20 +00:00
Dirk Klimpel
ec6758d472
Fix wrong headline for url_preview_accept_language in docs ( #13437 )
...
Fixes : #13433
2022-08-03 09:41:57 +01:00
reivilibre
1c910e2216
Add a merge-back command to the release script, which automates merging the correct branches after a release. ( #13393 )
2022-08-02 15:56:28 +00:00
Sean Quah
8d317f6da5
Fix error when out of servers to sync partial state with ( #13432 )
...
so that we raise the intended error instead.
Signed-off-by: Sean Quah <seanq@matrix.org >
2022-08-02 12:12:44 +01:00
Olivier Wilkinson (reivilibre)
a2a867b521
Merge branch 'master' into develop
2022-08-02 11:56:02 +01:00
Olivier Wilkinson (reivilibre)
c2f4871226
Mention specific version in rc2 notes
v1.64.0
2022-08-02 11:19:32 +01:00
Olivier Wilkinson (reivilibre)
cb209638ea
Add upgrade notes
2022-08-02 11:10:26 +01:00
Olivier Wilkinson (reivilibre)
4e80ca2243
1.64.0
2022-08-02 11:04:08 +01:00
reivilibre
e17e5c97e0
Faster Room Joins: don't leave a stuck room partial state flag if the join fails. ( #13403 )
2022-08-01 16:45:39 +00:00
Patrick Cloke
f8e7a9418a
Fix missing import in federation_event handler. ( #13431 )
...
#13404 removed an import of `Optional` which was still needed
due to #13413 added more usages.
2022-08-01 14:14:29 +00:00
Sean Quah
224d792dd7
Refactor _resolve_state_at_missing_prevs to return an EventContext ( #13404 )
...
Previously, `_resolve_state_at_missing_prevs` returned the resolved
state before an event and a partial state flag. These were unwieldy to
carry around would only ever be used to build an event context. Build
the event context directly instead.
Signed-off-by: Sean Quah <seanq@matrix.org >
2022-08-01 13:53:56 +01:00
reivilibre
05aeeb3a80
Enable Complement CI tests in the 'latest deps' test run. ( #13213 )
...
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com >
2022-08-01 10:55:31 +00:00
reivilibre
b817574be7
Re-enable running Complement tests against Synapse with workers. ( #13420 )
2022-08-01 11:51:44 +01:00
Richard van der Hoff
23768ccb4d
Faster joins: fix rejected events becoming un-rejected during resync ( #13413 )
...
Make sure that we re-check the auth rules during state resync, otherwise
rejected events get un-rejected.
2022-08-01 11:20:05 +01:00
Richard van der Hoff
d548d8f18d
Merge tag 'v1.64.0rc2' into develop
...
Synapse 1.64.0rc2 (2022-07-29)
==============================
This RC reintroduces support for `account_threepid_delegates.email`, which was removed in 1.64.0rc1. It remains deprecated and will be removed altogether in a future release. ([\#13406](https://github.com/matrix-org/synapse/issues/13406 ))
2022-07-29 15:15:21 +01:00
Richard van der Hoff
979d94de29
update changelog
v1.64.0rc2
2022-07-29 12:27:23 +01:00
Richard van der Hoff
6b4fd8b430
1.64.0rc2
2022-07-29 12:23:13 +01:00
3nprob
98fb610cc0
Revert "Drop support for delegating email validation ( #13192 )" ( #13406 )
...
Reverts commit fa71bb18b5 , and tweaks documentation.
Signed-off-by: 3nprob <git@3n.anonaddy.com >
2022-07-29 10:29:23 +00:00
Brendan Abolivier
24ef1460f6
Explicitly mention which resources support compression in the config guide ( #13221 )
2022-07-29 09:09:57 +00:00
Šimon Brandner
583f22780f
Use stable prefixes for MSC3827: filtering of /publicRooms by room type ( #13370 )
...
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com >
2022-07-27 19:46:57 +01:00
Patrick Cloke
922b771337
Add missing type hints for tests.unittest. ( #13397 )
2022-07-27 17:18:41 +00:00
Will Hunt
502f075e96
Implement MSC3848: Introduce errcodes for specific event sending failures ( #13343 )
...
Implements MSC3848
2022-07-27 13:44:40 +01:00
reivilibre
39be5bc550
Make minor clarifications to the error messages given when we fail to join a room via any server. ( #13160 )
2022-07-27 10:37:50 +00:00
Eric Eastwood
4f3082d6bf
Fix get_pdu asking every remote destination even after it finds an event ( #13346 )
2022-07-27 10:40:04 +01:00
Nick Mills-Barrett
bf3115584c
Copy room serials before handling in get_new_events_as ( #13392 )
2022-07-26 17:45:27 +00:00
reivilibre
543dc9c93e
Extend the release script to automatically push a new SyTest branch, rather than having that be a manual process. ( #12978 )
...
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com >
2022-07-26 18:08:14 +01:00
Olivier Wilkinson (reivilibre)
6236afc621
Merge branch 'release-v1.64' into develop
2022-07-26 16:26:30 +01:00
Patrick Cloke
57d334a13d
Remove the unspecced room_id field in the /hierarchy response. ( #13365 )
...
The `room_id` field represented the parent space for each room
and was made redundant by changes in the API shape where the
`children_state` is now nested underneath each `room`.
The room ID of each child is in the `state_key` field and is still
available.
2022-07-26 08:02:34 -04:00
Olivier Wilkinson (reivilibre)
33788a07ee
Explain less-known term 'Implicit TLS'
v1.64.0rc1
2022-07-26 12:56:24 +01:00
Richard van der Hoff
ca3db044a3
Fix infinite loop in partial-state resync ( #13353 )
...
Make sure that we only pull out events from the db once they have no
prev-events with partial state.
2022-07-26 11:47:31 +00:00
Olivier Wilkinson (reivilibre)
5d7e2b0195
Tweak changelog in response to review
2022-07-26 12:45:19 +01:00
Sean Quah
335ebb21cc
Faster room joins: avoid blocking when pulling events with missing prevs ( #13355 )
...
Avoid blocking on full state in `_resolve_state_at_missing_prevs` and
return a new flag indicating whether the resolved state is partial.
Thread that flag around so that it makes it into the event context.
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com >
2022-07-26 12:39:23 +01:00