Patrick Cloke
6ad1f9eac2
Convert DeviceLastConnectionInfo to attrs. ( #16507 )
To improve type safety & memory usage.
пре 7 месеци
Patrick Cloke
77dfc1f939
Fix a bug where servers could be marked as up when they were failing ( #16506 )
After this change a server will only be reported as back online
if they were previously having requests fail.
пре 7 месеци
Patrick Cloke
e3e0ae4ab1
Convert state delta processing from a dict to attrs. ( #16469 )
For improved type checking & memory usage.
пре 7 месеци
Mathieu Velten
eee6474bce
Remove useless async job to delete device messages on sync ( #16491 )
пре 7 месеци
Richard van der Hoff
109882230c
Clean up logging on event persister endpoints ( #16488 )
пре 7 месеци
Patrick Cloke
4cc729d480
Revert "Drop unused tables & unneeded access token ID for events. ( #16268 )" ( #16465 )
This reverts commit cabd577460
.
There are additional usages of these tables
which need to be removed first.
пре 7 месеци
Patrick Cloke
cc865fffc0
Convert user_get_threepids response to attrs. ( #16468 )
This improves type annotations by not having a dictionary of Any values.
пре 7 месеци
Patrick Cloke
a4904dcb04
Convert simple_select_many_batch, simple_select_many_txn to tuples. ( #16444 )
пре 7 месеци
Patrick Cloke
d6b7d49a61
Handle content types with parameters. ( #16440 )
пре 7 месеци
Patrick Cloke
f1e43018b7
Inline simple_search_list/simple_search_list_txn. ( #16434 )
This only has a single use and is over abstracted. Inline it so that
we can improve type hints.
пре 7 месеци
David Robertson
28fd28e92e
Add DB indices to speed up purging rooms ( #16457 )
пре 7 месеци
reivilibre
8902b3031d
Disable statement timeout whilst purging rooms ( #16455 )
* Disable statement timeout whilst purging rooms
* Newsfile
Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
* Note the introduction version
---------
Signed-off-by: Olivier Wilkinson (reivilibre) <oliverw@matrix.org>
пре 7 месеци
dependabot[bot]
0a67743d9e
Bump ruff from 0.0.290 to 0.0.292 ( #16449 )
* Bump ruff from 0.0.290 to 0.0.292
Bumps [ruff](https://github.com/astral-sh/ruff ) from 0.0.290 to 0.0.292.
- [Release notes](https://github.com/astral-sh/ruff/releases )
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md )
- [Commits](https://github.com/astral-sh/ruff/compare/v0.0.290...v0.0.292 )
---
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Fix up lint
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Erik Johnston <erik@matrix.org>
пре 7 месеци
Christoph
32fd9bc673
Fix possible AttributeError when account-api is called over unix socket ( #16404 )
Fixes #16396
пре 7 месеци
David Robertson
1f10c20806
Apply join rate limiter outside the lineariser ( #16441 )
пре 7 месеци
Patrick Cloke
06bbf1029c
Convert simple_select_list_paginate_txn to return tuples. ( #16433 )
пре 7 месеци
Patrick Cloke
7615e2bf48
Return ThumbnailInfo in more places ( #16438 )
Improves type hints by using concrete types instead of
dictionaries.
пре 7 месеци
Patrick Cloke
cabd577460
Drop unused tables & unneeded access token ID for events. ( #16268 )
Drop the event_txn_id table and the tables related to MSC2716,
which is no longer supported in Synapse.
пре 7 месеци
Patrick Cloke
fc31b495b3
Stop sending incorrect knock_state_events. ( #16403 )
Synapse was incorrectly implemented with a knock_state_events
property on some APIs (instead of knock_room_state). This was
correct in Synapse 1.70.0, but *both* fields were sent to also be
compatible with Synapse versions expecting the wrong field.
Enough time has passed that only the correct field needs to be
included/handled.
пре 7 месеци
Patrick Cloke
ae5b997cfa
Fix comments related to replication. ( #16428 )
пре 7 месеци
Patrick Cloke
26b960b08b
Register media servlets via regex. ( #16419 )
This converts the media servlet URLs in the same way as
(most) of the rest of Synapse. This will give more flexibility
in the versions each endpoint exists under.
пре 7 месеци
Patrick Cloke
3555790b27
Remove unused method. ( #16435 )
пре 7 месеци
Patrick Cloke
fa907025f4
Remove manys calls to cursor_to_dict ( #16431 )
This avoids calling cursor_to_dict and then immediately
unpacking the values in the dict for other users. By not
creating the intermediate dictionary we can avoid allocating
the dictionary and strings for the keys, which should generally
be more performant.
Additionally this improves type hints by avoid Dict[str, Any]
dictionaries coming out of the database layer.
пре 7 месеци
Patrick Cloke
4e302b30b6
Add __slots__ to replication commands. ( #16429 )
To slightly reduce the amount of memory each command takes.
пре 7 месеци
Erik Johnston
009b47badf
Factor out `MultiWriter` token from `RoomStreamToken` ( #16427 )
пре 7 месеци
Erik Johnston
80ec81dcc5
Some refactors around receipts stream ( #16426 )
пре 7 месеци
David Robertson
1026776380
mypy plugin to check `@cached` return types ( #14911 )
Co-authored-by: David Robertson <davidr@element.io>
Co-authored-by: Patrick Cloke <patrickc@matrix.org>
Co-authored-by: Erik Johnston <erik@matrix.org>
Assert that the return type of callables wrapped in @cached
and @cachedList are cachable (aka immutable).
пре 7 месеци
MomentQYC
5725712d47
Remove Python version from `/_synapse/admin/v1/server_version` ( #16380 )
There's no reason to expose the full Python version over what is
frequently a public API.
пре 7 месеци
Erik Johnston
20fb08ec80
Downgrade repl stream time out error to warning ( #16401 )
This is because if a worker reaches ~100% CPU then everything starts
lagging and we hit the log line a lot. When at error we invoke sentry
and that has a lot of overhead, which then puts even more pressure on
the worker.
пре 7 месеци
Will Hunt
79eb6c0cdc
Support rendering some media downloads as inline ( #15988 )
Use an `inline` Content-Disposition header when the media is
"safe" to display inline (some known text, image, video, audio
formats).
пре 7 месеци
Patrick Cloke
cdb89dcefe
Improve state types. ( #16395 )
пре 7 месеци
Patrick Cloke
f84da3c32e
Add a cache around server ACL checking ( #16360 )
* Pre-compiles the server ACLs onto an object per room and
invalidates them when new events come in.
* Converts the server ACL checking into Rust.
пре 7 месеци
Patrick Cloke
17800a0e97
Implement MSC4028: push all encrypted events. ( #16361 )
This unstable push rule is implemented behind an experimental
configuration flag.
пре 7 месеци
Erik Johnston
47ffc7e548
Reduce calls to `send_presence_to_destinations` ( #16385 )
пре 7 месеци
Patrick Cloke
2763c49eca
Improve comments in StateGroupBackgroundUpdateStore. ( #16383 )
пре 7 месеци
dependabot[bot]
b225acf3e6
Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14 ( #16381 )
* Bump types-psycopg2 from 2.9.21.11 to 2.9.21.14
Bumps [types-psycopg2](https://github.com/python/typeshed ) from 2.9.21.11 to 2.9.21.14.
- [Commits](https://github.com/python/typeshed/commits )
---
updated-dependencies:
- dependency-name: types-psycopg2
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Relax the annotation of Cursor.description
See
https://github.com/matrix-org/synapse/pull/16343#issuecomment-1726083384
for rationale.
* Changelog
* Changelog
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David Robertson <davidr@element.io>
пре 7 месеци
Maxwell G
12611bfcdd
Add support for pydantic v2 via pydantic.v1 compat module ( #16332 )
While maintaining support with pydantic v1.
пре 7 месеци
Patrick Cloke
c9a0e1673a
Add missing license header. ( #16359 )
пре 8 месеци
Patrick Cloke
7ec0a141b4
Convert more cached return values to immutable types ( #16356 )
пре 8 месеци
Patrick Cloke
d7c89c5908
Return immutable objects for cachedList decorators ( #16350 )
пре 8 месеци
dependabot[bot]
eee2b6642d
Bump ruff from 0.0.286 to 0.0.290 ( #16342 )
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Patrick Cloke <patrickc@matrix.org>
пре 8 месеци
Hanadi
eef2b9e344
Filter locked users in the admin API ( #16328 )
Co-authored-by: Hanadi Tamimi <hanadi.tamimi@sdui.de>
пре 8 месеци
Patrick Cloke
c1e244c8f7
Make cached account data/tags/admin types immutable ( #16325 )
пре 8 месеци
Patrick Cloke
85bfd4735e
Return an immutable value from get_latest_event_ids_in_room. ( #16326 )
пре 8 месеци
Patrick Cloke
63d28a88c1
Additional validation of receipts ( #16327 )
Reject invalid receipts with a reasonable error message &
expands tests for receipts.
пре 8 месеци
José Joaquín Atria
6946209e67
Set email charset as utf-8 rather than utf8 ( #16329 )
пре 8 месеци
Mathieu Velten
dd44ee00b6
Add automatic purge after all users forget a room ( #15488 )
Also add restore of purge/shutdown rooms after a synapse restart.
Co-authored-by: Eric Eastwood <erice@matrix.org>
Co-authored-by: Erik Johnston <erikj@matrix.org>
пре 8 месеци
Jason Little
2a0f86f88f
Convert `_insert_graph_receipts_txn` to `simple_upsert` ( #16299 )
пре 8 месеци
Erik Johnston
edec0b93ca
Only use literal strings for process names ( #16315 )
пре 8 месеци
Erik Johnston
329597022e
Some minor performance fixes for task schedular ( #16313 )
пре 8 месеци