Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/element-hq/synapse into …
Browse files Browse the repository at this point in the history
…no-ip-logging
  • Loading branch information
louisgregg committed Jan 17, 2025
2 parents 0cb78f8 + 24c4d82 commit c8616f4
Show file tree
Hide file tree
Showing 79 changed files with 5,177 additions and 4,342 deletions.
2 changes: 1 addition & 1 deletion .ci/scripts/calculate_jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def set_output(key: str, value: str):
{
"python-version": "3.9",
"database": "postgres",
"postgres-version": "11",
"postgres-version": "13",
"extras": "all",
}
]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ jobs:
matrix:
include:
- python-version: "3.9"
postgres-version: "11"
postgres-version: "13"

- python-version: "3.13"
postgres-version: "17"
Expand Down
3,808 changes: 40 additions & 3,768 deletions CHANGES.md

Large diffs are not rendered by default.

47 changes: 22 additions & 25 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions changelog.d/17732.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix membership caches not updating in state reset scenarios.
1 change: 0 additions & 1 deletion changelog.d/17846.misc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17916.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17930.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17954.doc

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17964.feature

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/17996.misc

This file was deleted.

1 change: 1 addition & 0 deletions changelog.d/18035.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add a unit test for the `type` parameter of the [Room State Admin API](https://element-hq.github.io/synapse/develop/admin_api/rooms.html#room-state-api).
1 change: 1 addition & 0 deletions changelog.d/18052.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the unstable [MSC4151](https://github.com/matrix-org/matrix-spec-proposals/pull/4151) implementation. The stable support remains, per [Matrix 1.13](https://spec.matrix.org/v1.13/client-server-api/#post_matrixclientv3roomsroomidreport).
1 change: 1 addition & 0 deletions changelog.d/18072.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Increase invite rate limits (`rc_invites.per_issuer`) for Complement.
6 changes: 3 additions & 3 deletions contrib/cmdclient/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def _check_can_login(self):

if "flows" not in json_res:
print("Failed to find any login flows.")
defer.returnValue(False)
return False

flow = json_res["flows"][0] # assume first is the one we want.
if "type" not in flow or "m.login.password" != flow["type"] or "stages" in flow:
Expand All @@ -254,8 +254,8 @@ def _check_can_login(self):
"Unable to login via the command line client. Please visit "
"%s to login." % fallback_url
)
defer.returnValue(False)
defer.returnValue(True)
return False
return True

def do_emailrequest(self, line):
"""Requests the association of a third party identifier
Expand Down
8 changes: 4 additions & 4 deletions contrib/cmdclient/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def put_json(self, url, data):
url, data, headers_dict={"Content-Type": ["application/json"]}
)
body = yield readBody(response)
defer.returnValue((response.code, body))
return response.code, body

@defer.inlineCallbacks
def get_json(self, url, args=None):
Expand All @@ -88,7 +88,7 @@ def get_json(self, url, args=None):
url = "%s?%s" % (url, qs)
response = yield self._create_get_request(url)
body = yield readBody(response)
defer.returnValue(json.loads(body))
return json.loads(body)

def _create_put_request(self, url, json_data, headers_dict: Optional[dict] = None):
"""Wrapper of _create_request to issue a PUT request"""
Expand Down Expand Up @@ -134,7 +134,7 @@ def do_request(
response = yield self._create_request(method, url)

body = yield readBody(response)
defer.returnValue(json.loads(body))
return json.loads(body)

@defer.inlineCallbacks
def _create_request(
Expand Down Expand Up @@ -173,7 +173,7 @@ def _create_request(
if self.verbose:
print("Status %s %s" % (response.code, response.phrase))
print(pformat(list(response.headers.getAllRawHeaders())))
defer.returnValue(response)
return response

def sleep(self, seconds):
d = defer.Deferred()
Expand Down
12 changes: 12 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
matrix-synapse-py3 (1.122.0) stable; urgency=medium

* New Synapse release 1.122.0.

-- Synapse Packaging team <[email protected]> Tue, 14 Jan 2025 14:14:14 +0000

matrix-synapse-py3 (1.122.0~rc1) stable; urgency=medium

* New Synapse release 1.122.0rc1.

-- Synapse Packaging team <[email protected]> Tue, 07 Jan 2025 14:06:19 +0000

matrix-synapse-py3 (1.121.1) stable; urgency=medium

* New Synapse release 1.121.1.
Expand Down
3 changes: 3 additions & 0 deletions docker/complement/conf/workers-shared-extra.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ rc_invites:
per_user:
per_second: 1000
burst_count: 1000
per_issuer:
per_second: 1000
burst_count: 1000

federation_rr_transactions_per_room_per_second: 9999

Expand Down
3 changes: 3 additions & 0 deletions docker/conf-workers/nginx.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ server {
{% if using_unix_sockets %}
proxy_pass http://unix:/run/main_public.sock;
{% else %}
# note: do not add a path (even a single /) after the port in `proxy_pass`,
# otherwise nginx will canonicalise the URI and cause signature verification
# errors.
proxy_pass http://localhost:8080;
{% endif %}
proxy_set_header X-Forwarded-For $remote_addr;
Expand Down
9 changes: 5 additions & 4 deletions docs/admin_api/event_reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,11 @@ paginate through.
anything other than the return value of `next_token` from a previous call. Defaults to `0`.
* `dir`: string - Direction of event report order. Whether to fetch the most recent
first (`b`) or the oldest first (`f`). Defaults to `b`.
* `user_id`: string - Is optional and filters to only return users with user IDs that
contain this value. This is the user who reported the event and wrote the reason.
* `room_id`: string - Is optional and filters to only return rooms with room IDs that
contain this value.
* `user_id`: optional string - Filter by the user ID of the reporter. This is the user who reported the event
and wrote the reason.
* `room_id`: optional string - Filter by room id.
* `event_sender_user_id`: optional string - Filter by the sender of the reported event. This is the user who
the report was made against.

**Response**

Expand Down
7 changes: 7 additions & 0 deletions docs/admin_api/rooms.md
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,13 @@ The API is:
GET /_synapse/admin/v1/rooms/<room_id>/state
```

**Parameters**

The following query parameter is available:

* `type` - The type of room state event to filter by, eg "m.room.create". If provided, only state events
of this type will be returned (regardless of their `state_key` value).

A response body like the following is returned:

```json
Expand Down
Loading

0 comments on commit c8616f4

Please sign in to comment.