Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Update license headers | Patrick Cloke | 2023-11-21 | 2 | -20/+32 |
| | |||||
* | Bump mypy-zope & mypy. (#16188) | Patrick Cloke | 2023-08-29 | 1 | -15/+15 |
| | |||||
* | Replace make_awaitable with AsyncMock (#16179) | Patrick Cloke | 2023-08-24 | 1 | -45/+38 |
| | | | | Python 3.8 provides a native AsyncMock, we can replace the homegrown version we have. | ||||
* | Bump black from 22.12.0 to 23.1.0 (#15103) | dependabot[bot] | 2023-02-22 | 1 | -2/+0 |
| | |||||
* | Add final type hint to tests.unittest. (#15072) | Patrick Cloke | 2023-02-14 | 1 | -21/+29 |
| | | | | Adds a return type to HomeServerTestCase.make_homeserver and deal with any variables which are no longer Any. | ||||
* | Add more missing type hints to tests. (#15028) | Patrick Cloke | 2023-02-08 | 2 | -21/+28 |
| | |||||
* | Fix type hints for Monthly Active Users tests (#14889) | Andrew Morgan | 2023-01-22 | 1 | -6/+7 |
| | |||||
* | Remove redundant types from comments. (#14412) | Patrick Cloke | 2022-11-16 | 1 | -4/+6 |
| | | | | | | | Remove type hints from comments which have been added as Python type hints. This helps avoid drift between comments and reality, as well as removing redundant information. Also adds some missing type hints which were simple to fill in. | ||||
* | Fix that sending server notices fail if avatar is `None` (#13566) | Dirk Klimpel | 2022-08-23 | 1 | -3/+6 |
| | | | Indroduced in #11846. | ||||
* | Decouple `synapse.api.auth_blocking.AuthBlocking` from ↵ | Quentin Gliech | 2022-06-14 | 1 | -8/+14 |
| | | | | `synapse.api.auth.Auth`. (#13021) | ||||
* | Don't create an empty room when checking for MAU limits (#12713) | Brendan Abolivier | 2022-05-13 | 1 | -1/+10 |
| | |||||
* | Prefer `make_awaitable` over `defer.succeed` in tests (#12505) | Sean Quah | 2022-04-27 | 1 | -14/+14 |
| | | | | | | | | | | | When configuring the return values of mocks, prefer awaitables from `make_awaitable` over `defer.succeed`. `Deferred`s are only awaitable once, so it is inappropriate for a mock to return the same `Deferred` multiple times. Also update `run_in_background` to support functions that return arbitrary awaitables. Signed-off-by: Sean Quah <seanq@element.io> | ||||
* | 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 | ||||
* | Use direct references for configuration variables (part 6). (#10916) | Patrick Cloke | 2021-09-29 | 1 | -1/+1 |
| | |||||
* | Use direct references for configuration variables (part 5). (#10897) | Patrick Cloke | 2021-09-24 | 1 | -1/+1 |
| | |||||
* | Flatten the synapse.rest.client package (#10600) | reivilibre | 2021-08-17 | 2 | -4/+2 |
| | |||||
* | Re-introduce "Leave out optional keys from /sync" change (#10214) | Andrew Morgan | 2021-06-23 | 1 | -3/+5 |
| | | | Required some fixes due to merge conflicts with #6739, but nothing too hairy. The first commit is the same as the original (after merge conflict resolution) then two more for compatibility with the latest sync code. | ||||
* | Revert "Leave out optional keys from /sync (#9919)" (#9940) | Erik Johnston | 2021-05-06 | 1 | -5/+3 |
| | | | This reverts commit e9eb3549d32a6f93d07de8dbd5e1ebe54c8d8278. | ||||
* | Leave out optional keys from /sync (#9919) | DeepBlueV7.X | 2021-05-05 | 1 | -3/+5 |
| | | | | | | This leaves out all optional keys from /sync. This should be fine for all clients tested against conduit already, but it may break some clients, as such we should check, that at least most of them don't break horribly and maybe back out some of the individual changes. (We can probably always leave out groups for example, while the others may cause more issues.) Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de> | ||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 2 | -2/+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>` | ||||
* | Use mock from the stdlib. (#9772) | Patrick Cloke | 2021-04-09 | 1 | -1/+1 |
| | |||||
* | Update black, and run auto formatting over the codebase (#9381) | Eric Eastwood | 2021-02-16 | 1 | -1/+5 |
| | | | | | | | - Update black version to the latest - Run black auto formatting over the codebase - Run autoformatting according to [`docs/code_style.md `](https://github.com/matrix-org/synapse/blob/80d6dc9783aa80886a133756028984dbf8920168/docs/code_style.md) - Update `code_style.md` docs around installing black to use the correct version | ||||
* | Remove spurious "SynapseRequest" result from `make_request" | Richard van der Hoff | 2020-12-15 | 2 | -8/+6 |
| | | | | This was never used, so let's get rid of it. | ||||
* | Remove redundant `HomeserverTestCase.render` | Richard van der Hoff | 2020-11-16 | 2 | -6/+0 |
| | |||||
* | Allow for make_awaitable's return value to be re-used. (#8261) | Patrick Cloke | 2020-09-08 | 1 | -9/+5 |
| | |||||
* | Convert stats and related calls to async/await (#8192) | Patrick Cloke | 2020-08-27 | 1 | -4/+6 |
| | |||||
* | Convert events worker database to async/await. (#8071) | Patrick Cloke | 2020-08-18 | 1 | -3/+3 |
| | |||||
* | Convert tags and metrics databases to async/await (#8062) | Patrick Cloke | 2020-08-11 | 1 | -1/+4 |
| | |||||
* | Convert synapse.api to async/await (#8031) | Patrick Cloke | 2020-08-06 | 1 | -1/+1 |
| | |||||
* | Convert streams to async. (#8014) | Patrick Cloke | 2020-08-04 | 1 | -1/+1 |
| | |||||
* | Optimise some references to hs.config (#7546) | Richard van der Hoff | 2020-05-22 | 1 | -27/+33 |
| | | | These are surprisingly expensive, and we only really need to do them at startup. | ||||
* | Convert synapse.server_notices to async/await. (#7394) | Patrick Cloke | 2020-05-01 | 1 | -1/+1 |
| | |||||
* | async/await is_server_admin (#7363) | Andrew Morgan | 2020-05-01 | 1 | -24/+24 |
| | |||||
* | Server notices: Dissociate room creation/lookup from invite (#7199) | Brendan Abolivier | 2020-04-04 | 1 | -12/+108 |
| | | | | | | | | | Fixes #6815 Before figuring out whether we should alert a user on MAU, we call get_notice_room_for_user to get some info on the existing server notices room for this user. This function, if the room doesn't exist, creates it and invites the user in it. This means that, if we decide later that no server notice is needed, the user gets invited in a room with no message in it. This happens at every restart of the server, since the room ID returned by get_notice_room_for_user is cached. This PR fixes that by moving the inviting bit to a dedicated function, that's only called when the server actually needs to send a notice to the user. A potential issue with this approach is that the room that's created by get_notice_room_for_user doesn't match how that same function looks for an existing room (i.e. it creates a room that doesn't have an invite or a join for the current user in it, so it could lead to a new room being created each time a user syncs), but I'm not sure this is a problem given it's cached until the server restarts, so that function won't run very often. It also renames get_notice_room_for_user into get_or_create_notice_room_for_user to make what it does clearer. | ||||
* | Remove spurious "name" parameter to `default_config` | Richard van der Hoff | 2020-03-24 | 1 | -1/+1 |
| | | | | | this is never set to anything other than "test", and is a source of unnecessary boilerplate. | ||||
* | Option to suppress resource exceeded alerting (#6173) | Neil Johnson | 2019-10-24 | 1 | -2/+57 |
| | | | | The expected use case is to suppress MAU limiting on small instances | ||||
* | Remove non-functional 'expire_access_token' setting (#5782) | Richard van der Hoff | 2019-07-30 | 1 | -1/+1 |
| | | | | | | | | The `expire_access_token` didn't do what it sounded like it should do. What it actually did was make Synapse enforce the 'time' caveat on macaroons used as access tokens, but since our access token macaroons never contained such a caveat, it was always a no-op. (The code to add 'time' caveats was removed back in v0.18.5, in #1656) | ||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -2/+2 |
| | |||||
* | Migrate all tests to use the dict-based config format instead of hanging ↵ | Amber Brown | 2019-05-13 | 2 | -13/+28 |
| | | | | items off HomeserverConfig (#5171) | ||||
* | Run Black on the tests again (#5170) | Amber Brown | 2019-05-10 | 1 | -1/+0 |
| | |||||
* | Add admin api for sending server_notices (#5121) | Richard van der Hoff | 2019-05-02 | 1 | -1/+1 |
| | |||||
* | Move admin api impl to its own package | Richard van der Hoff | 2019-05-01 | 1 | -3/+3 |
| | | | | It doesn't really belong under rest/client/v1 any more. | ||||
* | Some more porting to HomeserverTestCase and remove old RESTHelper (#4913) | Amber Brown | 2019-03-22 | 1 | -39/+53 |
| | |||||
* | Fix resource limits tests | Richard van der Hoff | 2019-03-19 | 1 | -2/+5 |
| | | | | | Make sure that we have a `server_notices_mxid` set, given that we are relying on it. | ||||
* | fix broken test | Richard van der Hoff | 2018-10-25 | 1 | -9/+1 |
| | | | | This test stubbed out some stuff in a very weird way. I have no idea why. It broke. | ||||
* | Fix userconsent on Python 3 (#3938) | Amber Brown | 2018-10-02 | 1 | -0/+100 |
| | |||||
* | Port tests/ to Python 3 (#3808) | Amber Brown | 2018-09-07 | 1 | -18/+12 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/admin_contact | Erik Johnston | 2018-08-24 | 1 | -0/+1 |
|\ | |||||
| * | Fix checking if service notice room is already tagged | Erik Johnston | 2018-08-24 | 1 | -0/+1 |
| | | | | | | | | This manifested in synapse repeatedly setting the tag for the room | ||||
* | | Change admin_uri to admin_contact in config and errors | Erik Johnston | 2018-08-24 | 1 | -2/+2 |
|/ | |||||
* | Fix bug where we resent "limit exceeded" server notices | Erik Johnston | 2018-08-23 | 1 | -0/+66 |
| | | | | This was due to a bug where we mutated a cached event's contents | ||||
* | Actually run the tests | Erik Johnston | 2018-08-23 | 1 | -0/+0 |
| | |||||
* | Update notice format | Erik Johnston | 2018-08-22 | 1 | -3/+9 |
| | |||||
* | clean up, no functional changes | Neil Johnson | 2018-08-17 | 1 | -15/+17 |
| | |||||
* | refactor for readability, and reuse caching for setting tags | Neil Johnson | 2018-08-16 | 1 | -0/+1 |
| | |||||
* | check for room state before deciding on action | Neil Johnson | 2018-08-16 | 1 | -20/+32 |
| | |||||
* | implementation of server notices to alert on hitting resource limits | Neil Johnson | 2018-08-10 | 1 | -0/+125 |