Skip to content

Commit 965f5c5

Browse files
committed
Merge branch 'develop' into unraid_develop
2 parents f68262b + 09de2ae commit 965f5c5

File tree

29 files changed

+475
-353
lines changed

29 files changed

+475
-353
lines changed

changelog.d/13917.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Adds support for handling avatar in SSO login. Contributed by @ashfame.

changelog.d/14149.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix #12383: paginate room messages from the start if no from is given. Contributed by @gnunicorn .

changelog.d/14408.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Faster joins: send events to initial list of servers if we don't have the full state yet.

changelog.d/14515.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Faster joins: use servers list approximation received during `send_join` (potentially updated with received membership events) in `assert_host_in_room`.

changelog.d/14534.misc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improve DB performance by reducing amount of data that gets read in `device_lists_changes_in_room`.

changelog.d/14537.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a long-standing bug where the [List media admin API](https://matrix-org.github.io/synapse/latest/admin_api/media_admin_api.html#list-all-media-in-a-room) would fail when processing an image with broken thumbnail information.

changelog.d/14538.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove legacy Prometheus metrics names. They were deprecated in Synapse v1.69.0 and disabled by default in Synapse v1.71.0.

docs/upgrade.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,28 @@ process, for example:
8888
dpkg -i matrix-synapse-py3_1.3.0+stretch1_amd64.deb
8989
```
9090
91+
# Upgrading to v1.73.0
92+
93+
## Legacy Prometheus metric names have now been removed
94+
95+
Synapse v1.69.0 included the deprecation of legacy Prometheus metric names
96+
and offered an option to disable them.
97+
Synapse v1.71.0 disabled legacy Prometheus metric names by default.
98+
99+
This version, v1.73.0, removes those legacy Prometheus metric names entirely.
100+
This also means that the `enable_legacy_metrics` configuration option has been
101+
removed; it will no longer be possible to re-enable the legacy metric names.
102+
103+
If you use metrics and have not yet updated your Grafana dashboard(s),
104+
Prometheus console(s) or alerting rule(s), please consider doing so when upgrading
105+
to this version.
106+
Note that the included Grafana dashboard was updated in v1.72.0 to correct some
107+
metric names which were missed when legacy metrics were disabled by default.
108+
109+
See [v1.69.0: Deprecation of legacy Prometheus metric names](#deprecation-of-legacy-prometheus-metric-names)
110+
for more context.
111+
112+
91113
# Upgrading to v1.72.0
92114
93115
## Dropping support for PostgreSQL 10

docs/usage/configuration/config_documentation.md

Lines changed: 8 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2437,31 +2437,6 @@ Example configuration:
24372437
enable_metrics: true
24382438
```
24392439
---
2440-
### `enable_legacy_metrics`
2441-
2442-
Set to `true` to publish both legacy and non-legacy Prometheus metric names,
2443-
or to `false` to only publish non-legacy Prometheus metric names.
2444-
Defaults to `false`. Has no effect if `enable_metrics` is `false`.
2445-
**In Synapse v1.67.0 up to and including Synapse v1.70.1, this defaulted to `true`.**
2446-
2447-
Legacy metric names include:
2448-
- metrics containing colons in the name, such as `synapse_util_caches_response_cache:hits`, because colons are supposed to be reserved for user-defined recording rules;
2449-
- counters that don't end with the `_total` suffix, such as `synapse_federation_client_sent_edus`, therefore not adhering to the OpenMetrics standard.
2450-
2451-
These legacy metric names are unconventional and not compliant with OpenMetrics standards.
2452-
They are included for backwards compatibility.
2453-
2454-
Example configuration:
2455-
```yaml
2456-
enable_legacy_metrics: false
2457-
```
2458-
2459-
See https://github.com/matrix-org/synapse/issues/11106 for context.
2460-
2461-
*Since v1.67.0.*
2462-
2463-
**Will be removed in v1.73.0.**
2464-
---
24652440
### `sentry`
24662441

24672442
Use this option to enable sentry integration. Provide the DSN assigned to you by sentry
@@ -2993,10 +2968,17 @@ Options for each entry include:
29932968

29942969
For the default provider, the following settings are available:
29952970

2996-
* subject_claim: name of the claim containing a unique identifier
2971+
* `subject_claim`: name of the claim containing a unique identifier
29972972
for the user. Defaults to 'sub', which OpenID Connect
29982973
compliant providers should provide.
29992974

2975+
* `picture_claim`: name of the claim containing an url for the user's profile picture.
2976+
Defaults to 'picture', which OpenID Connect compliant providers should provide
2977+
and has to refer to a direct image file such as PNG, JPEG, or GIF image file.
2978+
2979+
Currently only supported in monolithic (single-process) server configurations
2980+
where the media repository runs within the Synapse process.
2981+
30002982
* `localpart_template`: Jinja2 template for the localpart of the MXID.
30012983
If this is not set, the user will be prompted to choose their
30022984
own username (see the documentation for the `sso_auth_account_details.html`

mypy.ini

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ disallow_untyped_defs = True
119119
[mypy-tests.storage.test_profile]
120120
disallow_untyped_defs = True
121121

122+
[mypy-tests.handlers.test_sso]
123+
disallow_untyped_defs = True
124+
122125
[mypy-tests.storage.test_user_directory]
123126
disallow_untyped_defs = True
124127

@@ -137,7 +140,6 @@ disallow_untyped_defs = False
137140
[mypy-tests.utils]
138141
disallow_untyped_defs = True
139142

140-
141143
;; Dependencies without annotations
142144
;; Before ignoring a module, check to see if type stubs are available.
143145
;; The `typeshed` project maintains stubs here:

0 commit comments

Comments
 (0)