summary refs log tree commit diff
path: root/tests/test_test_utils.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-09-22Track why we're evicting from caches (#10829)David Robertson4-15/+31
So we can see distinguish between "evicting because the cache is too big" and "evicting because the cache entries haven't been recently used".
2021-09-21Rename MSC2716 things from `chunk` to `batch` to match `/batch_send` ↵Eric Eastwood13-117/+162
endpoint (#10838) See https://github.com/matrix-org/matrix-doc/pull/2716#discussion_r684574497 Dropping support for older MSC2716 room versions so we don't have to worry about supporting both chunk and batch events.
2021-09-21Add type hints for event streams. (#10856)Patrick Cloke18-60/+169
2021-09-21Add types to http.site (#10867)Erik Johnston2-18/+23
2021-09-21Clear our destination directories before copying files to GitHub pages. (#10869)Patrick Cloke2-1/+1
This should fix stale deleted files being still accessible.
2021-09-21Refactor oEmbed previews (#10814)Patrick Cloke5-220/+299
The major change is moving the decision of whether to use oEmbed further up the call-stack. This reverts the _download_url method to being a "dumb" functionwhich takes a single URL and downloads it (as it was before #7920). This also makes more minor refactorings: * Renames internal variables for clarity. * Factors out shared code between the HTML and rich oEmbed previews. * Fixes tests to preview an oEmbed image.
2021-09-21Test that state events sent by modules correctly end up in the room's state ↵Brendan Abolivier2-0/+85
(#10835) Test for #10830 Ideally the test would also make sure the new state event comes down sync, but this is probably good enough.
2021-09-21Allow Synapse Admin API's Room Search to accept non-ASCII characters (#10859)Hillery Shay3-1/+29
* add tests for checking if room search works with non-ascii char * change encoding on parse_string to UTF-8 * lints * properly encode search term * lints * add changelog file * update changelog number * set changelog entry filetype to .bugfix * Revert "set changelog entry filetype to .bugfix" This reverts commit be8e5a314251438ec4ec7dbc59ba32162c93e550. * update changelog message and file type * change parse_string default encoding back to ascii and update room search admin api calll to parse string * refactor tests * Update tests/rest/admin/test_room.py Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2021-09-21Rename `/batch_send` query parameter from `?prev_event` to more obvious ↵Eric Eastwood2-7/+10
usage with `?prev_event_id` (MSC2716) (#10839) As mentioned in https://github.com/matrix-org/matrix-doc/pull/2716#discussion_r705872887 and https://github.com/matrix-org/synapse/issues/10737
2021-09-21Always add local users to the user directory (#10796)David Robertson9-55/+54
It's a simplification, but one that'll help make the user directory logic easier to follow with the other changes upcoming. It's not strictly required for those changes, but this will help simplify the resulting logic that listens for `m.room.member` events and generally make the logic easier to follow. This means the config option `search_all_users` ends up controlling the search query only, and not the data we store. The cost of doing so is an extra row in the `user_directory` and `user_directory_search` tables for each local user which - belongs to no public rooms - belongs to no private rooms of size ≥ 2 I think the cost of this will be marginal (since they'll already have entries in `users` and `profiles` anyway). As a small upside, a homeserver whose directory was built with this change can toggle `search_all_users` without having to rebuild their directory. Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2021-09-21Fix typo again v1.43.0David Robertson1-1/+1
2021-09-21Specify MSC name; fix typoDavid Robertson1-3/+3
one day I'll learn how to spell hierarchy
2021-09-21Point to upgrade notesDavid Robertson1-0/+2
2021-09-21Move deprecation notice from 1.43 rc to releaseDavid Robertson1-3/+2
2021-09-21 1.43.0David Robertson3-1/+13
2021-09-21Allow sending a membership event to unban a user (#10807)Aaron Raimist4-2/+99
* Allow membership event to unban user Signed-off-by: Aaron Raimist <aaron@raim.ist>
2021-09-20GHA: reintroduce an env var for `$GITHUB_HEAD_REF` (#10659)David Robertson2-0/+2
This should ensure GHA runs synapse against the same-named sytest branch
2021-09-20Require type hints in the handlers module. (#10831)Patrick Cloke35-295/+194
Adds missing type hints to methods in the synapse.handlers module and requires all methods to have type hints there. This also removes the unused construct_auth_difference method from the FederationHandler.
2021-09-20Fix remove_stale_pushers job on SQLite. (#10843)reivilibre9-23/+27
2021-09-17Fix #10837 by adding JSON encoding/decoding to the Module API example… ↵Charles Wright2-2/+3
(#10845)
2021-09-17