1
0
Commit Graph

20862 Commits

Author SHA1 Message Date
Michael Telatynski 45e57d3fb3 Merge branch 'develop' of https://github.com/matrix-org/synapse into sonar
 Conflicts:
	poetry.lock
2022-06-07 10:14:42 +01:00
Patrick Cloke f7baffd8ec Remove remaining pieces of groups code. (#12966)
* Remove an unused stream ID generator.
* Remove the now unused remote profile cache.
2022-06-06 13:20:05 -04:00
Erik Johnston 44de53bb79 Reduce state pulled from DB due to sending typing and receipts over federation (#12964)
Reducing the amount of state we pull from the DB is useful as fetching state is expensive in terms of DB, CPU and memory.
2022-06-06 16:46:11 +01:00
Patrick Cloke 148fe58a24 Do not break URL previews if an image is unreachable. (#12950)
Avoid breaking a URL preview completely if the chosen image 404s
or is unreachable for some other reason (e.g. DNS).
2022-06-06 07:46:04 -04:00
Patrick Cloke 1acc897c31 Implement MSC3816, consider the root event for thread participation. (#12766)
As opposed to only considering a user to have "participated" if they
replied to the thread.
2022-06-06 07:18:04 -04:00
Jan Christian Grünhage fcd8703508 Allow updating passwords using the admin api without logging out devices (#12952) 2022-06-06 12:10:13 +01:00
Erik Johnston e3163e2e11 Reduce the amount of state we pull from the DB (#12811) 2022-06-06 09:24:12 +01:00
Patrick Cloke 6b46c3eb3d Remove groups code from synapse_port_db. (#12899) 2022-06-03 12:13:35 -04:00
Patrick Cloke 01df5bacac Improve URL previews for some pages (#12951)
* Skip `og` and `meta` tags where the value is empty.
* Fallback to the favicon if there are no other images.
* Ignore tags meant for navigation.
2022-06-03 12:09:12 -04:00
Erik Johnston 888a29f412 Wait for lazy join to complete when getting current state (#12872) 2022-06-01 16:02:53 +01:00
Michael Telatynski 782cb7420a Fix complement tests using the wrong path (#12933) 2022-06-01 15:57:09 +01:00
Michael Telatynski 35d2211efe Merge remote-tracking branch 't3chguy/sonar' into sonar 2022-06-01 15:08:26 +01:00
Michael Telatynski b06bd9954c Update to matrix-org/sonarcloud-workflow-action@v2.1
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 15:08:03 +01:00
Patrick Cloke 7bc08f3201 Remove remaining bits of groups code. (#12936)
* Update worker docs to remove group endpoints.
* Removes an unused parameter to `ApplicationService`.
* Break dependency between media repo and groups.
* Avoid copying `m.room.related_groups` state events during room upgrades.
2022-06-01 09:41:25 -04:00
Jacek Kuśnierz 88193f2125 Remove direct refeferences to PyNaCl (use signedjson instead). (#12902) 2022-06-01 07:32:35 -04:00
Richard van der Hoff 79dadf7216 Fix 404 on /sync when the last event is a redaction of an unknown/purged event (#12905)
Currently, we try to pull the event corresponding to a sync token from the database. However, when
we fetch redaction events, we check the target of that redaction (because we aren't allowed to send
redactions to clients without validating them). So, if the sync token points to a redaction of an event
that we don't have, we have a problem.

It turns out we don't really need that event, and can just work with its ID and metadata, which
sidesteps the whole problem.
2022-06-01 11:29:51 +00:00
Erik Johnston 5949ab86f8 Fix potential thumbnail memory leaks. (#12932) 2022-06-01 10:57:49 +00:00
Michael Telatynski fc8262bb41 Merge branch 'develop' into sonar 2022-06-01 10:00:57 +01:00
Michael Telatynski 2cd4be8008 Revert spacing tweak
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 08:42:58 +01:00
Michael Telatynski 2bb8d38adf Update sonarqube workflow to use new composite action
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-06-01 08:42:21 +01:00
Patrick Cloke 2e8763ec96 Remove most groups datastore code. (#12895)
The remaining piece is a background update that is needed
for backwards compatibility.
2022-05-31 20:28:17 -04:00
Richard van der Hoff f0aec0abef Improve logging when signature checks fail (#12925)
* Raise a dedicated `InvalidEventSignatureError` from `_check_sigs_on_pdu`

* Downgrade logging about redactions to DEBUG

this can be very spammy during a room join, and it's not very useful.

* Raise `InvalidEventSignatureError` from `_check_sigs_and_hash`

... and, more importantly, move the logging out to the callers.

* changelog
2022-05-31 23:32:56 +01:00
Patrick Cloke cf05258f76 Remove groups replication code. (#12900)
The replication logic for groups is no longer used, so the message
passing infrastructure can be removed.
2022-05-31 13:04:08 -04:00
Andrew Morgan 2fc787c341 Add config options for media retention (#12732) 2022-05-31 16:35:29 +00:00
Sean Quah 641908f72f Faster room joins: Resume state re-syncing after a Synapse restart (#12813)
Signed-off-by: Sean Quah <seanq@matrix.org>
2022-05-31 15:15:08 +00:00
Sean Quah 2fba1076c5 Faster room joins: Try other destinations when resyncing the state of a partial-state room (#12812)
Signed-off-by: Sean Quah <seanq@matrix.org>
2022-05-31 15:50:29 +01:00
Michael Telatynski 8978c26e65 Make use of artifact merging :o
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 14:58:08 +01:00
Erik Johnston 3594f6c1f3 Merge branch 'master' into develop 2022-05-31 14:48:22 +01:00
Erik Johnston b2b5279a3f Update changelog 2022-05-31 14:25:46 +01:00
Michael Telatynski 71e98756d9 Fix coverage upload wildcard
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 14:05:05 +01:00
reivilibre bf01e51554 Test Synapse against Complement with workers. (#12810)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-05-31 13:02:00 +00:00
Erik Johnston c8684e6792 Reduce DB load of /sync when using presence (#12885)
While the query was fast, we were calling it *a lot*.
2022-05-31 13:01:05 +00:00
Richard van der Hoff 5e17922ef7 Stop reading from event_edges.room_id. (#12914)
event_edges.room_id is implied by the event id, so there is no need to join on the room id.
2022-05-31 13:51:49 +01:00
Erik Johnston 5984ada6bb 1.60.0 v1.60.0 2022-05-31 13:41:49 +01:00
Michael Telatynski e990b8a563 Move coverage files to where the tool expects
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 13:18:45 +01:00
Erik Johnston 1e453053cb Rename storage classes (#12913) 2022-05-31 12:17:50 +00:00
Patrick Cloke e541bb9eed Rework stream token to stop caring about groups. (#12897) 2022-05-31 07:42:50 -04:00
Michael Telatynski 4d8d0a2fa4 Add coverage to poetry as installing it can take 3 mins
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 12:12:45 +01:00
Michael Telatynski b6a6efc5f8 Use poetry and set $TOP env in trial & coverage jobs
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 11:25:33 +01:00
Michael Telatynski 1d9d5c8f19 Get rid of --jobs for now
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 11:13:31 +01:00
Brendan Abolivier 8fd87739bf Fix import in module_api module and docs on the new check_event_for_spam signature (#12918)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-05-31 12:04:53 +02:00
Michael Telatynski 6dceb4c349 arguments --
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-31 11:04:20 +01:00
Travis Ralston d0e40dfe29 Fix M_USER_ACCOUNT_SUSPENDED error code for spec compliance (#12923) 2022-05-31 08:42:18 +01:00
Travis Ralston bcfdfeb65d Revert "Fix M_USER_ACCOUNT_SUSPENDED error code for spec compliance (#12922)"
This reverts commit e0fae823e9.
2022-05-30 20:29:40 -06:00
Travis Ralston e0fae823e9 Fix M_USER_ACCOUNT_SUSPENDED error code for spec compliance (#12922)
`M_` is a reserved namespace.
2022-05-31 02:27:19 +00:00
Jacek Kuśnierz c4f548e05d Don't return end from /messages if there are no more events (#12903)
Signed-off-by: Jacek Kusnierz <jacek.kusnierz@tum.de>
2022-05-30 21:03:52 +01:00
Michael Telatynski f09a4ad816 Correct two paths and a switch
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-30 19:17:39 +01:00
Michael Telatynski ae63857aa6 Add newsfragment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-30 19:08:52 +01:00
Michael Telatynski 23eaa313a3 Stash initial SonarQube work
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
2022-05-30 19:06:06 +01:00
Brendan Abolivier cd9fc058de Document the Synapse version of a new module API method (#12917) 2022-05-30 18:37:52 +02:00