Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove remaining usage of cursor_to_dict. (#16564) | Patrick Cloke | 2023-10-31 | 1 | -1/+12 |
| | |||||
* | Bump ruff from 0.0.277 to 0.0.286 (#16198) | dependabot[bot] | 2023-08-29 | 1 | -7/+14 |
| | | | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | ||||
* | Prefer `type(x) is int` to `isinstance(x, int)` (#14945) | David Robertson | 2023-01-31 | 1 | -8/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 | -3/+3 |
| | | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733 | ||||
* | Clean up `synapse.rest.admin` (#11535) | Dirk Klimpel | 2021-12-08 | 1 | -3/+0 |
| | |||||
* | Convert status codes to `HTTPStatus` in `synapse.rest.admin` (#11452) | Dirk Klimpel | 2021-11-29 | 1 | -17/+34 |
| | |||||
* | Allow `.` and `~` chars in registration tokens (#10887) | Callum Brown | 2021-09-23 | 1 | -1/+1 |
| | | | | Per updates to MSC3231 in order to use the same grammar as other identifiers. | ||||
* | Implement MSC3231: Token authenticated registration (#10142) | Callum Brown | 2021-08-21 | 1 | -0/+321 |
Signed-off-by: Callum Brown <callum@calcuode.com> This is part of my GSoC project implementing [MSC3231](https://github.com/matrix-org/matrix-doc/pull/3231). |