Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Remove groups code from synapse_port_db. (#12899) | Patrick Cloke | 2022-06-03 | 1 | -8/+15 |
| | |||||
* | Remove most groups datastore code. (#12895) | Patrick Cloke | 2022-05-31 | 1 | -2/+2 |
| | | | | The remaining piece is a background update that is needed for backwards compatibility. | ||||
* | hash_password: raise an error if no config file is specified (#12789) | Jae Lo Presti | 2022-05-19 | 1 | -5/+5 |
| | |||||
* | Add missing type hints to config classes. (#12402) | Patrick Cloke | 2022-04-11 | 1 | -3/+1 |
| | |||||
* | Disallow untyped defs in synapse._scripts (#12422) | David Robertson | 2022-04-11 | 10 | -109/+185 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Of note: * No untyped defs in `register_new_matrix_user` This one might be contraversial. `request_registration` has three dependency-injection arguments used for testing. I'm removing the injection of the `requests` module and using `unitest.mock.patch` in the test cases instead. Doing `reveal_type(requests)` and `reveal_type(requests.get)` before the change: ``` synapse/_scripts/register_new_matrix_user.py:45: note: Revealed type is "Any" synapse/_scripts/register_new_matrix_user.py:46: note: Revealed type is "Any" ``` And after: ``` synapse/_scripts/register_new_matrix_user.py:44: note: Revealed type is "types.ModuleType" synapse/_scripts/register_new_matrix_user.py:45: note: Revealed type is "def (url: Union[builtins.str, builtins.bytes], params: Union[Union[_typeshed.SupportsItems[Union[builtins.str, builtins.bytes, builtins.int, builtins.float], Union[builtins.str, builtins.bytes, builtins.int, builtins.float, typing.Iterable[Union[builtins.str, builtins.bytes, builtins.int, builtins.float]], None]], Tuple[Union[builtins.str, builtins.bytes, builtins.int, builtins.float], Union[builtins.str, builtins.bytes, builtins.int, builtins.float, typing.Iterable[Union[builtins.str, builtins.bytes, builtins.int, builtins.float]], None]], typing.Iterable[Tuple[Union[builtins.str, builtins.bytes, builtins.int, builtins.float], Union[builtins.str, builtins.bytes, builtins.int, builtins.float, typing.Iterable[Union[builtins.str, builtins.bytes, builtins.int, builtins.float]], None]]], builtins.str, builtins.bytes], None] =, data: Union[Any, None] =, headers: Union[Any, None] =, cookies: Union[Any, None] =, files: Union[Any, None] =, auth: Union[Any, None] =, timeout: Union[Any, None] =, allow_redirects: builtins.bool =, proxies: Union[Any, None] =, hooks: Union[Any, None] =, stream: Union[Any, None] =, verify: Union[Any, None] =, cert: Union[Any, None] =, json: Union[Any, None] =) -> requests.models.Response" ``` * Drive-by comment in `synapse.storage.types` * No untyped defs in `synapse_port_db` This was by far the most painful. I'm happy to break this up into smaller pieces for review if it's not managable as-is. | ||||
* | Make `synapse._scripts` pass typechecks (#12421) | David Robertson | 2022-04-08 | 4 | -38/+49 |
| | |||||
* | Track device list updates per room. (#12321) | Erik Johnston | 2022-04-04 | 1 | -0/+1 |
| | | | | | | | | | | | | | | This is a first step in dealing with #7721. The idea is basically that rather than calculating the full set of users a device list update needs to be sent to up front, we instead simply record the rooms the user was in at the time of the change. This will allow a few things: 1. we can defer calculating the set of remote servers that need to be poked about the change; and 2. during `/sync` and `/keys/changes` we can avoid also avoid calculating users who share rooms with other users, and instead just look at the rooms that have changed. However, care needs to be taken to correctly handle server downgrades. As such this PR writes to both `device_lists_changes_in_room` and the `device_lists_outbound_pokes` table synchronously. In a future release we can then bump the database schema compat version to `69` and then we can assume that the new `device_lists_changes_in_room` exists and is handled. There is a temporary option to disable writing to `device_lists_outbound_pokes` synchronously, allowing us to test the new code path does work (and by implication upgrading to a future release and downgrading to this one will work correctly). Note: Ideally we'd do the calculation of room to servers on a worker (e.g. the background worker), but currently only master can write to the `device_list_outbound_pokes` table. | ||||
* | Move synctl into `synapse._scripts` and expose as an entrypoint (#12140) | David Robertson | 2022-03-04 | 1 | -0/+360 |
| | |||||
* | Move scripts directory inside synapse, exposing as setuptools entry_points ↵ | David Robertson | 2022-03-02 | 8 | -0/+1851 |
| | | | | | | | | | | | | (#12118) * Two scripts are basically entry_points already * Move and rename scripts/* to synapse/_scripts/*.py * Delete sync_room_to_group.pl * Expose entry points in setup.py * Update linter script and config * Fixup scripts & docs mentioning scripts that moved Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | ||||
* | Add a flag to the `synapse_review_recent_signups` script to ignore and ↵ | lukasdenk | 2022-01-17 | 1 | -3/+15 |
| | | | | filter appservice users. (#11675) | ||||
* | Add type hints to synapse._scripts (#11297) | Patrick Cloke | 2021-11-10 | 2 | -18/+28 |
| | |||||
* | Fixed config parse bug in review_recent_signups (#11191) | Samuel Philipp | 2021-10-27 | 1 | -2/+7 |
| | |||||
* | Remove shebang line from module files (#10415) | V02460 | 2021-07-29 | 1 | -1/+0 |
| | | | Signed-off-by: Kai A. Hiller <V02460@gmail.com> | ||||
* | Add script for getting info about recently registered users (#10290) | Erik Johnston | 2021-07-06 | 1 | -0/+175 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Strip trailing / from server_url in register_new_matrix_user (#8823) | Dmitry Borodaenko | 2020-11-26 | 1 | -1/+1 |
| | | | | | | | | | When server URL provided to register_new_matrix_user includes path component (e.g. "http://localhost:8008/"), the command fails with "ERROR! Received 400 Bad Request". Stripping trailing slash from the server_url command argument makes sure combined endpoint URL remains valid. Signed-off-by: Dmitry Borodaenko angdraug@debian.org | ||||
* | Remove deprecated `/_matrix/client/*/admin` endpoints (#8785) | Dirk Klimpel | 2020-11-25 | 1 | -1/+1 |
| | | | These are now only available via `/_synapse/admin/v1`. | ||||
* | Remove obsolete __future__ imports (#8337) | Jonathan de Jong | 2020-09-17 | 1 | -2/+0 |
| | |||||
* | Replace all remaining six usage with native Python 3 equivalents (#7704) | Dagfinn Ilmari Mannsåker | 2020-06-16 | 1 | -2/+0 |
| | |||||
* | Replace instance variations of homeserver with correct case/spacing | Andrew Morgan | 2019-11-12 | 1 | -3/+3 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -11/+13 |
| | |||||
* | Fix flake8 (#4519) | Amber Brown | 2019-01-30 | 1 | -2/+2 |
| | |||||
* | create support user (#4141) | Neil Johnson | 2018-12-14 | 1 | -3/+16 |
| | | | | | | Allow for the creation of a support user. A support user can access the server, join rooms, interact with other users, but does not appear in the user directory nor does it contribute to monthly active user limits. | ||||
* | Port register_new_matrix_user to Python 3 and add tests (#4085) | Amber Brown | 2018-10-26 | 2 | -0/+215 |