summary refs log tree commit diff
path: root/scripts (unfollow)
<
Commit message (Collapse)AuthorFilesLines
2020-10-21MAU limits are based off of the *authenticated* userErik Johnston8-11/+57
2020-10-21Privacy policy applies to authenticated entityErik Johnston2-4/+44
2020-10-21Add admin API for logging in as a userErik Johnston6-6/+292
Fixes #6054.
2020-10-21Add concept of authenticated_entity vs target_userErik Johnston5-8/+59
2020-10-21Make get_user_by_access_token return a proper typeErik Johnston11-92/+73
2020-10-21Add typing info to registrationErik Johnston1-22/+24
2020-10-21Add registration store to mypyErik Johnston3-45/+49
2020-10-21Format SQLErik Johnston1-7/+11
2020-10-20Don't instansiate Requester directlyErik Johnston5-11/+11
2020-10-20Consistently use wrap_as_background_task in more places (#8599)Patrick Cloke5-30/+20
2020-10-20Update mypy to 0.790, and move dependencies to extras (#8583)Jonathan de Jong3-3/+4
2020-10-20Remove some extraneous @unittest.INFOs on unit tests (#8592)Andrew Morgan3-2/+1
2020-10-20Cast errors generated during synapse_port_db to str (#8585)Andrew Morgan2-2/+4
I noticed in https://github.com/matrix-org/synapse/issues/8575 that the `end_error` variable in `synapse_port_db` is set to an `Exception`, even though later we expect it to be a `str`. This PR simply casts an exception raised to a string. I'm doing this instead of having `end_error` be of type exception as we explicitly set `end_error` to a str here: https://github.com/matrix-org/synapse/blob/d25eb8f3709965d0face01a041d5292490bf0139/scripts/synapse_port_db#L542-L547 This whole file could probably use some heavy refactoring, but until then at least this fix will prevent exception contents from being hidden from us and users.
2020-10-20Move schema file for as_device_stream (#8590)Will Hunt2-3/+3
* Move schema file * Add a . * Add matching changelog entry * Fix sqlite
2020-10-19Fix 'LruCache' object has no attribute '_on_resize' (#8591)Richard van der Hoff3-2/+17
We need to make sure we are readu for the `set_cache_factor` callback.
2020-10-19Drop unused `device_max_stream_id` table (#8589)Vasilis Gerakaris2-0/+2
Signed-off-by: Vasilis Gerakaris <vasilis.gerakaris@navarino.gr>
2020-10-19Fix mypy error: auth handler "checkpw" internal function type mismatch (#8569)Jonathan de Jong3-4/+6
2020-10-19Expose the experimental appservice login flow to clients. (#8504)Patrick Cloke2-0/+3
2020-10-19Add `DeferredCache.get_immediate` method (#8568)Richard van der Hoff7-27/+53
* Add `DeferredCache.get_immediate` method A bunch of things that are currently calling `DeferredCache.get` are only really interested in the result if it's completed. We can optimise and simplify this case. * Remove unused 'default' parameter to DeferredCache.get() * another get_immediate instance
2020-10-19Include a simple message in email notifications that include encrypted ↵Patrick Cloke9-75/+107
content (#8545)
2020-10-19Support running synmark on macOS. (#8578)Patrick Cloke2-2/+6
By using the "poll" reactor since macOS doesn't support epoll.
2020-10-19Start an opentracing span for background processes. (#8567)Erik Johnston2-5/+7
This should reduce the number of `There was no active span` errors we see. Fixes #8510.
2020-10-19Replace DeferredCache with LruCache where possible (#8563)Richard van der Hoff8-27/+30
Most of these uses don't need a full-blown DeferredCache; LruCache is lighter and more appropriate.
2020-10-17Pre-emptively fix synapse.storage.types.Connection for future mypy release ↵Jonathan de Jong3-3/+4