Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |