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

Commit 03ba8c8

Browse files
author
David Robertson
committed
Merge branch 'release-v1.71' into matrix-org-hotfixes
2 parents 18a045b + 051402d commit 03ba8c8

File tree

134 files changed

+5181
-2346
lines changed

Some content is hidden

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

134 files changed

+5181
-2346
lines changed

.flake8

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,11 @@
88
# E203: whitespace before ':' (which is contrary to pep8?)
99
# E731: do not assign a lambda expression, use a def
1010
# E501: Line too long (black enforces this for us)
11-
ignore=W503,W504,E203,E731,E501
11+
#
12+
# flake8-bugbear runs extra checks. Its error codes are described at
13+
# https://github.com/PyCQA/flake8-bugbear#list-of-warnings
14+
# B019: Use of functools.lru_cache or functools.cache on methods can lead to memory leaks
15+
# B023: Functions defined inside a loop must not use variables redefined in the loop
16+
# B024: Abstract base class with no abstract method.
17+
18+
ignore=W503,W504,E203,E731,E501,B019,B023,B024

.github/workflows/docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v3
2121

2222
- name: Setup mdbook
23-
uses: peaceiris/actions-mdbook@4b5ef36b314c2599664ca107bb8c02412548d79d # v1.1.14
23+
uses: peaceiris/actions-mdbook@adeb05db28a0c0004681db83893d56c0388ea9ea # v1.2.0
2424
with:
2525
mdbook-version: '0.4.17'
2626

@@ -58,7 +58,7 @@ jobs:
5858
5959
# Deploy to the target directory.
6060
- name: Deploy to gh pages
61-
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
61+
uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 # v3.9.0
6262
with:
6363
github_token: ${{ secrets.GITHUB_TOKEN }}
6464
publish_dir: ./book

.github/workflows/release-artifacts.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
runs-on: ${{ matrix.os }}
100100
strategy:
101101
matrix:
102-
os: [ubuntu-20.04, macos-10.15]
102+
os: [ubuntu-20.04, macos-11]
103103
arch: [x86_64, aarch64]
104104
# is_pr is a flag used to exclude certain jobs from the matrix on PRs.
105105
# It is not read by the rest of the workflow.
@@ -109,9 +109,9 @@ jobs:
109109
exclude:
110110
# Don't build macos wheels on PR CI.
111111
- is_pr: true
112-
os: "macos-10.15"
112+
os: "macos-11"
113113
# Don't build aarch64 wheels on mac.
114-
- os: "macos-10.15"
114+
- os: "macos-11"
115115
arch: aarch64
116116
# Don't build aarch64 wheels on PR CI.
117117
- is_pr: true

.github/workflows/tests.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,14 @@ jobs:
167167
-e POSTGRES_PASSWORD=postgres \
168168
-e POSTGRES_INITDB_ARGS="--lc-collate C --lc-ctype C --encoding UTF8" \
169169
postgres:${{ matrix.job.postgres-version }}
170+
171+
- name: Install Rust
172+
uses: actions-rs/toolchain@v1
173+
with:
174+
toolchain: 1.58.1
175+
override: true
176+
- uses: Swatinem/rust-cache@v2
177+
170178
- uses: matrix-org/setup-python-poetry@v1
171179
with:
172180
python-version: ${{ matrix.job.python-version }}

.github/workflows/triage-incoming.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,11 @@ on:
55
types: [ opened ]
66

77
jobs:
8-
add_new_issues:
9-
name: Add new issues to the triage board
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: octokit/[email protected]
13-
id: add_to_project
14-
with:
15-
headers: '{"GraphQL-Features": "projects_next_graphql"}'
16-
query: |
17-
mutation add_to_project($projectid:ID!,$contentid:ID!) {
18-
addProjectV2ItemById(input: {projectId: $projectid contentId: $contentid}) {
19-
item {
20-
id
21-
}
22-
}
23-
}
24-
projectid: ${{ env.PROJECT_ID }}
25-
contentid: ${{ github.event.issue.node_id }}
26-
env:
27-
PROJECT_ID: "PVT_kwDOAIB0Bs4AFDdZ"
28-
GITHUB_TOKEN: ${{ secrets.ELEMENT_BOT_TOKEN }}
8+
triage:
9+
uses: matrix-org/backend-meta/.github/workflows/triage-incoming.yml@v1
10+
with:
11+
project_id: 'PVT_kwDOAIB0Bs4AFDdZ'
12+
content_id: ${{ github.event.issue.node_id }}
13+
secrets:
14+
github_access_token: ${{ secrets.ELEMENT_BOT_TOKEN }}
15+

.github/workflows/twisted_trunk.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,12 +151,11 @@ jobs:
151151
run: |
152152
set -x
153153
DEBIAN_FRONTEND=noninteractive sudo apt-get install -yqq python3 pipx
154-
pipx install poetry==1.1.14
154+
pipx install poetry==1.2.0
155155
156156
poetry remove -n twisted
157157
poetry add -n --extras tls git+https://github.com/twisted/twisted.git#trunk
158158
poetry lock --no-update
159-
# NOT IN 1.1.14 poetry lock --check
160159
working-directory: synapse
161160

162161
- run: |

CHANGES.md

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,96 @@
1+
Synapse 1.71.0rc1 (2022-11-01)
2+
==============================
3+
4+
Features
5+
--------
6+
7+
- Support back-channel logouts from OpenID Connect providers. ([\#11414](https://github.com/matrix-org/synapse/issues/11414))
8+
- Allow use of Postgres and SQLlite full-text search operators in search queries. ([\#11635](https://github.com/matrix-org/synapse/issues/11635), [\#14310](https://github.com/matrix-org/synapse/issues/14310), [\#14311](https://github.com/matrix-org/synapse/issues/14311))
9+
- Implement [MSC3664](https://github.com/matrix-org/matrix-doc/pull/3664), Pushrules for relations. Contributed by Nico. ([\#11804](https://github.com/matrix-org/synapse/issues/11804))
10+
- Improve aesthetics of HTML templates. Note that these changes do not retroactively apply to templates which have been [customised](https://matrix-org.github.io/synapse/latest/templates.html#templates) by server admins. ([\#13652](https://github.com/matrix-org/synapse/issues/13652))
11+
- Enable write-ahead logging for SQLite installations. Contributed by [@asymmetric](https://github.com/asymmetric). ([\#13897](https://github.com/matrix-org/synapse/issues/13897))
12+
- Show erasure status when [listing users](https://matrix-org.github.io/synapse/latest/admin_api/user_admin_api.html#query-user-account) in the Admin API. ([\#14205](https://github.com/matrix-org/synapse/issues/14205))
13+
- Provide a specific error code when a `/sync` request provides a filter which doesn't represent a JSON object. ([\#14262](https://github.com/matrix-org/synapse/issues/14262))
14+
15+
16+
Bugfixes
17+
--------
18+
19+
- Fix a long-standing bug where the `update_synapse_database` script could not be run with multiple databases. Contributed by @thefinn93 @ Beeper. ([\#13422](https://github.com/matrix-org/synapse/issues/13422))
20+
- Fix a bug which prevented setting an avatar on homeservers which have an explicit port in their `server_name` and have `max_avatar_size` and/or `allowed_avatar_mimetypes` configuration. Contributed by @ashfame. ([\#13927](https://github.com/matrix-org/synapse/issues/13927))
21+
- Check appservice user interest against the local users instead of all users in the room to align with [MSC3905](https://github.com/matrix-org/matrix-spec-proposals/pull/3905). ([\#13958](https://github.com/matrix-org/synapse/issues/13958))
22+
- Fix a long-standing bug where Synapse would accidentally include extra information in the response to [`PUT /_matrix/federation/v2/invite/{roomId}/{eventId}`](https://spec.matrix.org/v1.4/server-server-api/#put_matrixfederationv2inviteroomideventid). ([\#14064](https://github.com/matrix-org/synapse/issues/14064))
23+
- Fix a bug introduced in Synapse 1.64.0 where presence updates could be missing from `/sync` responses. ([\#14243](https://github.com/matrix-org/synapse/issues/14243))
24+
- Fix a bug introduced in Synapse 1.60.0 which caused an error to be logged when Synapse received a SIGHUP signal if debug logging was enabled. ([\#14258](https://github.com/matrix-org/synapse/issues/14258))
25+
- Prevent history insertion ([MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716)) during an partial join ([MSC3706](https://github.com/matrix-org/matrix-spec-proposals/pull/3706)). ([\#14291](https://github.com/matrix-org/synapse/issues/14291))
26+
- Fix a bug introduced in Synapse 1.34.0 where device names would be returned via a federation user key query request when `allow_device_name_lookup_over_federation` was set to `false`. ([\#14304](https://github.com/matrix-org/synapse/issues/14304))
27+
- Fix a bug introduced in Synapse 0.34.0 where logs could include error spam when background processes are measured as taking a negative amount of time. ([\#14323](https://github.com/matrix-org/synapse/issues/14323))
28+
- Fix a bug introduced in Synapse 1.70.0 where clients were unable to PUT new [dehydrated devices](https://github.com/matrix-org/matrix-spec-proposals/pull/2697). ([\#14336](https://github.com/matrix-org/synapse/issues/14336))
29+
30+
31+
Improved Documentation
32+
----------------------
33+
34+
- Explain how to disable the use of [`trusted_key_servers`](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#trusted_key_servers). ([\#13999](https://github.com/matrix-org/synapse/issues/13999))
35+
- Add workers settings to [configuration manual](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#individual-worker-configuration). ([\#14086](https://github.com/matrix-org/synapse/issues/14086))
36+
- Correct the name of the config option [`encryption_enabled_by_default_for_room_type`](https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#encryption_enabled_by_default_for_room_type). ([\#14110](https://github.com/matrix-org/synapse/issues/14110))
37+
- Update docstrings of `SynapseError` and `FederationError` to bettter describe what they are used for and the effects of using them are. ([\#14191](https://github.com/matrix-org/synapse/issues/14191))
38+
39+
40+
Internal Changes
41+
----------------
42+
43+
- Remove unused `@lru_cache` decorator. ([\#13595](https://github.com/matrix-org/synapse/issues/13595))
44+
- Save login tokens in database and prevent login token reuse. ([\#13844](https://github.com/matrix-org/synapse/issues/13844))
45+
- Refactor OIDC tests to better mimic an actual OIDC provider. ([\#13910](https://github.com/matrix-org/synapse/issues/13910))
46+
- Fix type annotation causing import time error in the Complement forking launcher. ([\#14084](https://github.com/matrix-org/synapse/issues/14084))
47+
- Refactor [MSC3030](https://github.com/matrix-org/matrix-spec-proposals/pull/3030) `/timestamp_to_event` endpoint to loop over federation destinations with standard pattern and error handling. ([\#14096](https://github.com/matrix-org/synapse/issues/14096))
48+
- Add initial power level event to batch of bulk persisted events when creating a new room. ([\#14228](https://github.com/matrix-org/synapse/issues/14228))
49+
- Refactor `/key/` endpoints to use `RestServlet` classes. ([\#14229](https://github.com/matrix-org/synapse/issues/14229))
50+
- Switch to using the `matrix-org/backend-meta` version of `triage-incoming` for new issues in CI. ([\#14230](https://github.com/matrix-org/synapse/issues/14230))
51+
- Build wheels on macos 11, not 10.15. ([\#14249](https://github.com/matrix-org/synapse/issues/14249))
52+
- Add debugging to help diagnose lost device list updates. ([\#14268](https://github.com/matrix-org/synapse/issues/14268))
53+
- Add Rust cache to CI for `trial` runs. ([\#14287](https://github.com/matrix-org/synapse/issues/14287))
54+
- Improve type hinting of `RawHeaders`. ([\#14303](https://github.com/matrix-org/synapse/issues/14303))
55+
- Use Poetry 1.2.0 in the Twisted Trunk CI job. ([\#14305](https://github.com/matrix-org/synapse/issues/14305))
56+
57+
<details>
58+
<summary>Dependency updates</summary>
59+
60+
Runtime:
61+
62+
- Bump anyhow from 1.0.65 to 1.0.66. ([\#14278](https://github.com/matrix-org/synapse/issues/14278))
63+
- Bump jinja2 from 3.0.3 to 3.1.2. ([\#14271](https://github.com/matrix-org/synapse/issues/14271))
64+
- Bump prometheus-client from 0.14.0 to 0.15.0. ([\#14274](https://github.com/matrix-org/synapse/issues/14274))
65+
- Bump psycopg2 from 2.9.4 to 2.9.5. ([\#14331](https://github.com/matrix-org/synapse/issues/14331))
66+
- Bump pysaml2 from 7.1.2 to 7.2.1. ([\#14270](https://github.com/matrix-org/synapse/issues/14270))
67+
- Bump sentry-sdk from 1.5.11 to 1.10.1. ([\#14330](https://github.com/matrix-org/synapse/issues/14330))
68+
- Bump serde from 1.0.145 to 1.0.147. ([\#14277](https://github.com/matrix-org/synapse/issues/14277))
69+
- Bump serde_json from 1.0.86 to 1.0.87. ([\#14279](https://github.com/matrix-org/synapse/issues/14279))
70+
71+
Tooling and CI:
72+
73+
- Bump black from 22.3.0 to 22.10.0. ([\#14328](https://github.com/matrix-org/synapse/issues/14328))
74+
- Bump flake8-bugbear from 21.3.2 to 22.9.23. ([\#14042](https://github.com/matrix-org/synapse/issues/14042))
75+
- Bump peaceiris/actions-gh-pages from 3.8.0 to 3.9.0. ([\#14276](https://github.com/matrix-org/synapse/issues/14276))
76+
- Bump peaceiris/actions-mdbook from 1.1.14 to 1.2.0. ([\#14275](https://github.com/matrix-org/synapse/issues/14275))
77+
- Bump setuptools-rust from 1.5.1 to 1.5.2. ([\#14273](https://github.com/matrix-org/synapse/issues/14273))
78+
- Bump twine from 3.8.0 to 4.0.1. ([\#14332](https://github.com/matrix-org/synapse/issues/14332))
79+
- Bump types-opentracing from 2.4.7 to 2.4.10. ([\#14133](https://github.com/matrix-org/synapse/issues/14133))
80+
- Bump types-requests from 2.28.11 to 2.28.11.2. ([\#14272](https://github.com/matrix-org/synapse/issues/14272))
81+
</details>
82+
183
Synapse 1.70.1 (2022-10-28)
284
===========================
385

86+
This release fixes some regressions that were discovered in 1.70.0.
87+
88+
[#14300](https://github.com/matrix-org/synapse/issues/14300)
89+
was previously reported to be a regression in 1.70.0 as well. However, we have
90+
since concluded that it was limited to the reporter and thus have not needed
91+
to include any fix for it in 1.70.1.
92+
93+
494
Bugfixes
595
--------
696

Cargo.lock

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

debian/changelog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
matrix-synapse-py3 (1.71.0~rc1) stable; urgency=medium
2+
3+
* New Synapse release 1.71.0rc1.
4+
5+
-- Synapse Packaging team <[email protected]> Tue, 01 Nov 2022 12:10:17 +0000
6+
17
matrix-synapse-py3 (1.70.1) stable; urgency=medium
28

39
* New Synapse release 1.70.1.

docs/admin_api/user_admin_api.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ It returns a JSON body like the following:
3737
"is_guest": 0,
3838
"admin": 0,
3939
"deactivated": 0,
40+
"erased": false,
4041
"shadow_banned": 0,
4142
"creation_ts": 1560432506,
4243
"appservice_id": null,
@@ -167,6 +168,7 @@ A response body like the following is returned:
167168
"admin": 0,
168169
"user_type": null,
169170
"deactivated": 0,
171+
"erased": false,
170172
"shadow_banned": 0,
171173
"displayname": "<User One>",
172174
"avatar_url": null,
@@ -177,6 +179,7 @@ A response body like the following is returned:
177179
"admin": 1,
178180
"user_type": null,
179181
"deactivated": 0,
182+
"erased": false,
180183
"shadow_banned": 0,
181184
"displayname": "<User Two>",
182185
"avatar_url": "<avatar_url>",
@@ -247,6 +250,7 @@ The following fields are returned in the JSON response body:
247250
- `user_type` - string - Type of the user. Normal users are type `None`.
248251
This allows user type specific behaviour. There are also types `support` and `bot`.
249252
- `deactivated` - bool - Status if that user has been marked as deactivated.
253+
- `erased` - bool - Status if that user has been marked as erased.
250254
- `shadow_banned` - bool - Status if that user has been marked as shadow banned.
251255
- `displayname` - string - The user's display name if they have set one.
252256
- `avatar_url` - string - The user's avatar URL if they have set one.

0 commit comments

Comments
 (0)