summary refs log tree commit diff
path: root/scripts-dev/check_pydantic_models.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-08-26Update debhelper (#13594)Jörg Behrmann7-41/+15
* Update debian packaging to debhelper version 12 Don't call dh_installinit anymore, because it has been deprecated, and use dh_installsystemd instead of dh_systemd_enable for the same reason. Signed-off-by: Jörg Behrmann <behrmann@physik.fu-berlin.de> * Drop preinst script It was used for reasons of interactions of dh_systemd_start and dh_installinit, which have both be deprecated Signed-off-by: Jörg Behrmann <behrmann@physik.fu-berlin.de> * Drop /etc/default file It was no longer being installed. * Remove debian/compat file This is managed by the control file nowadays
2022-08-26Move the execution of the retention purge_jobs to the main worker (#13632)Brad Murray2-4/+3
Fixes #9927 Signed-off-by: Brad Murray brad@beeper.com
2022-08-25Debian packaging: explicitly allocate a group for the system user (#13593)Jörg Behrmann2-2/+8
Otherwise the files of the synapse user are readable by the nobody user, which is unsafe. Signed-off-by: Jörg Behrmann <behrmann@physik.fu-berlin.de>
2022-08-25Support `registration_shared_secret` in a file (#13614)Richard van der Hoff4-5/+92
A new `registration_shared_secret_path` option. This is kinda handy for k8s deployments and things.
2022-08-25register_new_matrix_user: read server url from config (#13616)Richard van der Hoff2-6/+52
Fixes https://github.com/matrix-org/synapse/issues/3672: `https://localhost:8448` is virtually never right.
2022-08-25Update automation for incoming issues (#13629)Kat Gerasimova1-4/+4
GitHub appears to be deprecating addProjectNextItem by not allowing it to be used alongside projectV2 to get the project ID, so switching to using addProjectV2ItemById instead.
2022-08-24Comment about a better future where we can get the state diff between two ↵Eric Eastwood2-0/+9
events (#13586) Split off from https://github.com/matrix-org/synapse/pull/13561 Part of https://github.com/matrix-org/synapse/issues/13356 Mentioned in [internal doc](https://docs.google.com/document/d/1lvUoVfYUiy6UaHB6Rb4HicjaJAU40-APue9Q4vzuW3c/edit#bookmark=id.2tvwz3yhcafh)
2022-08-24Rename `event_map` to `unpersisted_events` (#13603)David Robertson2-32/+38
2022-08-24Update `get_users_in_room` mis-use to get hosts with dedicated ↵Eric Eastwood6-17/+31
`get_current_hosts_in_room` (#13605) See https://github.com/matrix-org/synapse/pull/13575#discussion_r953023755
2022-08-24Directly lookup local membership instead of getting all members in a room ↵Eric Eastwood8-17/+60
first (`get_users_in_room` mis-use) (#13608) See https://github.com/matrix-org/synapse/pull/13575#discussion_r953023755
2022-08-24When loading current ids, sort by `stream_id` to avoid incorrect overwrite ↵Eric Eastwood2-2/+12
and avoid errors caused by sorting alphabetical instance name which can be `null` (#13585) When loading current ids, sort by stream ID so that we don't want to overwrite the `current_position` of an instance to a lower stream ID than we're actually at ([discussion](https://github.com/matrix-org/synapse/pull/13585#discussion_r951795379)). Previously, it sorted alphabetically by instance name which can be `null` and throw errors but more importantly, accomplishes nothing. Fixes the following startup error which is why I started looking into this area: ``` $ poetry run synapse_homeserver --config-path homeserver.yaml **************************************************************** Error during initialisation: '<' not supported between instances of 'NoneType' and 'str' There may be more information in the logs. **************************************************************** ``` Somehow my database ended up looking like the following, notice the `instance_name` is `null` in the db, and we can't sort `NoneType` things. Another question is why do we see the `instance_name` as `null` sometimes instead of `master` in monolith mode? ``` $ psql synapse synapse=# SELECT * FROM stream_positions; stream_name | instance_name | stream_id -----------------+---------------+----------- account_data | master | 1242 events | master | 1787 to_device | master | 58 presence_stream | master | 485638 receipts | master | 341 backfill | master | -139106 (6 rows) synapse=# SELECT instance_name, stream_id FROM receipts_linearized; instance_name | stream_id ---------------+----------- | 211 | 3 | 4 | 212 | 213 | 224