Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit 169b47c

Browse files
author
Mathieu Velten
authored
Merge branch 'develop' into mv/partial-join-fed-send
2 parents bb99729 + fb66fae commit 169b47c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+459
-448
lines changed

.github/workflows/docs-pr-netlify.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
# There's a 'download artifact' action, but it hasn't been updated for the workflow_run action
1515
# (https://github.com/actions/download-artifact/issues/60) so instead we get this mess:
1616
- name: 📥 Download artifact
17-
uses: dawidd6/action-download-artifact@b12b127cf24433d14b4f93cee62f5465076ba82a # v2.24.1
17+
uses: dawidd6/action-download-artifact@e6e25ac3a2b93187502a8be1ef9e9603afc34925 # v2.24.2
1818
with:
1919
workflow: docs-pr.yaml
2020
run_id: ${{ github.event.workflow_run.id }}

.github/workflows/docs-pr.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
cp book/welcome_and_overview.html book/index.html
2727
2828
- name: Upload Artifact
29-
uses: actions/upload-artifact@v2
29+
uses: actions/upload-artifact@v3
3030
with:
3131
name: book
3232
path: book

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

changelog.d/14375.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Cleanup old worker datastore classes. Contributed by Nick @ Beeper (@fizzadar).

changelog.d/14405.feature

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add an [Admin API](https://matrix-org.github.io/synapse/latest/usage/administration/admin_api/index.html) endpoint for user lookup based on third-party ID (3PID). Contributed by @ashfame.

changelog.d/14409.bugfix

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix PostgreSQL sometimes using table scans for queries against the `event_search` table, taking a long time and a large amount of IO.

changelog.d/14410.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove unreachable code.

changelog.d/14411.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Clean-up event persistence code.

changelog.d/14414.doc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Edit sample Nginx reverse proxy configuration to use HTTP/1.1. Contributed by Brad Jones.

changelog.d/14424.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump dawidd6/action-download-artifact from 2.24.1 to 2.24.2.

changelog.d/14425.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump actions/upload-artifact from 2 to 3.

changelog.d/14426.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump blake2 from 0.10.4 to 0.10.5.

changelog.d/14427.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump attrs from 21.4.0 to 22.1.0.

changelog.d/14428.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump types-pyyaml from 6.0.12.1 to 6.0.12.2.

changelog.d/14429.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump gitpython from 3.1.27 to 3.1.29.

changelog.d/14430.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump types-jsonschema from 4.17.0.0 to 4.17.0.1.

changelog.d/14431.misc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bump flake8 from 4.0.1 to 5.0.4.

docs/admin_api/user_admin_api.md

+39
Original file line numberDiff line numberDiff line change
@@ -1197,3 +1197,42 @@ Returns a `404` HTTP status code if no user was found, with a response body like
11971197
```
11981198

11991199
_Added in Synapse 1.68.0._
1200+
1201+
1202+
### Find a user based on their Third Party ID (ThreePID or 3PID)
1203+
1204+
The API is:
1205+
1206+
```
1207+
GET /_synapse/admin/v1/threepid/$medium/users/$address
1208+
```
1209+
1210+
When a user matched the given address for the given medium, an HTTP code `200` with a response body like the following is returned:
1211+
1212+
```json
1213+
{
1214+
"user_id": "@hello:example.org"
1215+
}
1216+
```
1217+
1218+
**Parameters**
1219+
1220+
The following parameters should be set in the URL:
1221+
1222+
- `medium` - Kind of third-party ID, either `email` or `msisdn`.
1223+
- `address` - Value of the third-party ID.
1224+
1225+
The `address` may have characters that are not URL-safe, so it is advised to URL-encode those parameters.
1226+
1227+
**Errors**
1228+
1229+
Returns a `404` HTTP status code if no user was found, with a response body like this:
1230+
1231+
```json
1232+
{
1233+
"errcode":"M_NOT_FOUND",
1234+
"error":"User not found"
1235+
}
1236+
```
1237+
1238+
_Added in Synapse 1.72.0._

docs/reverse_proxy.md

+3
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,9 @@ server {
7979
# Nginx by default only allows file uploads up to 1M in size
8080
# Increase client_max_body_size to match max_upload_size defined in homeserver.yaml
8181
client_max_body_size 50M;
82+
83+
# Synapse responses may be chunked, which is an HTTP/1.1 feature.
84+
proxy_http_version 1.1;
8285
}
8386
}
8487
```

poetry.lock

+38-36
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@ serde = { version = "1.0.147", features = ["derive"] }
3131
serde_json = "1.0.87"
3232

3333
[build-dependencies]
34-
blake2 = "0.10.4"
34+
blake2 = "0.10.5"
3535
hex = "0.4.3"

synapse/app/admin_cmd.py

+27-9
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@
2828
from synapse.config.logger import setup_logging
2929
from synapse.events import EventBase
3030
from synapse.handlers.admin import ExfiltrationWriter
31-
from synapse.replication.slave.storage.devices import SlavedDeviceStore
32-
from synapse.replication.slave.storage.events import SlavedEventStore
33-
from synapse.replication.slave.storage.filtering import SlavedFilteringStore
34-
from synapse.replication.slave.storage.push_rule import SlavedPushRuleStore
3531
from synapse.server import HomeServer
3632
from synapse.storage.database import DatabasePool, LoggingDatabaseConnection
3733
from synapse.storage.databases.main.account_data import AccountDataWorkerStore
@@ -40,10 +36,24 @@
4036
ApplicationServiceWorkerStore,
4137
)
4238
from synapse.storage.databases.main.deviceinbox import DeviceInboxWorkerStore
39+
from synapse.storage.databases.main.devices import DeviceWorkerStore
40+
from synapse.storage.databases.main.event_federation import EventFederationWorkerStore
41+
from synapse.storage.databases.main.event_push_actions import (
42+
EventPushActionsWorkerStore,
43+
)
44+
from synapse.storage.databases.main.events_worker import EventsWorkerStore
45+
from synapse.storage.databases.main.filtering import FilteringWorkerStore
46+
from synapse.storage.databases.main.push_rule import PushRulesWorkerStore
4347
from synapse.storage.databases.main.receipts import ReceiptsWorkerStore
4448
from synapse.storage.databases.main.registration import RegistrationWorkerStore
49+
from synapse.storage.databases.main.relations import RelationsWorkerStore
4550
from synapse.storage.databases.main.room import RoomWorkerStore
51+
from synapse.storage.databases.main.roommember import RoomMemberWorkerStore
52+
from synapse.storage.databases.main.signatures import SignatureWorkerStore
53+
from synapse.storage.databases.main.state import StateGroupWorkerStore
54+
from synapse.storage.databases.main.stream import StreamWorkerStore
4655
from synapse.storage.databases.main.tags import TagsWorkerStore
56+
from synapse.storage.databases.main.user_erasure_store import UserErasureWorkerStore
4757
from synapse.types import StateMap
4858
from synapse.util import SYNAPSE_VERSION
4959
from synapse.util.logcontext import LoggingContext
@@ -52,17 +62,25 @@
5262

5363

5464
class AdminCmdSlavedStore(
55-
SlavedFilteringStore,
56-
SlavedPushRuleStore,
57-
SlavedEventStore,
58-
SlavedDeviceStore,
65+
FilteringWorkerStore,
66+
DeviceWorkerStore,
5967
TagsWorkerStore,
6068
DeviceInboxWorkerStore,
6169
AccountDataWorkerStore,
70+
PushRulesWorkerStore,
6271
ApplicationServiceTransactionWorkerStore,
6372
ApplicationServiceWorkerStore,
64-
RegistrationWorkerStore,
73+
RoomMemberWorkerStore,
74+
RelationsWorkerStore,
75+
EventFederationWorkerStore,
76+
EventPushActionsWorkerStore,
77+
StateGroupWorkerStore,
78+
SignatureWorkerStore,
79+
UserErasureWorkerStore,
6580
ReceiptsWorkerStore,
81+
StreamWorkerStore,
82+
EventsWorkerStore,
83+
RegistrationWorkerStore,
6684
RoomWorkerStore,
6785
):
6886
def __init__(

0 commit comments

Comments
 (0)