Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Bump ruff from 0.0.277 to 0.0.286 (#16198) | dependabot[bot] | 2023-08-29 | 1 | -1/+1 |
| | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | ||||
* | Make `POST /_matrix/client/v3/rooms/{roomId}/report/{eventId}` endpoint ↵ | Andrew Morgan | 2023-03-21 | 1 | -5/+11 |
| | | | | return 404 if event exists, but the user lacks access (#15300) | ||||
* | Prevent clients from reporting nonexistent events. (#13779) | reivilibre | 2023-02-14 | 1 | -1/+10 |
| | |||||
* | Prefer `type(x) is int` to `isinstance(x, int)` (#14945) | David Robertson | 2023-01-31 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Perfer `type(x) is int` to `isinstance(x, int)` This covered all additional instances I could see where `x` was user-controlled. The remaining cases are ``` $ rg -s 'isinstance.*[^_]int' tests/replication/_base.py 576: if isinstance(obj, int): synapse/util/caches/stream_change_cache.py 136: assert isinstance(stream_pos, int) 214: assert isinstance(stream_pos, int) 246: assert isinstance(stream_pos, int) 267: assert isinstance(stream_pos, int) synapse/replication/tcp/external_cache.py 133: if isinstance(result, int): synapse/metrics/__init__.py 100: if isinstance(calls, (int, float)): synapse/handlers/appservice.py 262: assert isinstance(new_token, int) synapse/config/_util.py 62: if isinstance(p, int): ``` which cover metrics, logic related to `jsonschema`, and replication and data streams. AFAICS these are all internal to Synapse * Changelog | ||||
* | Remove `HomeServer.get_datastore()` (#12031) | Richard van der Hoff | 2022-02-23 | 1 | -1/+1 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Additional type hints for client REST servlets (part 4) (#10728) | Patrick Cloke | 2021-09-01 | 1 | -3/+12 |
| | |||||
* | Flatten the synapse.rest.client package (#10600) | reivilibre | 2021-08-17 | 1 | -0/+68 |