summary refs log tree commit diff
path: root/debian/install (unfollow)
Commit message (Collapse)AuthorFilesLines
2021-10-13Remove dead code from `MediaFilePaths` (#11056)Sean Quah2-17/+1
2021-10-13Add type hints to synapse.events.*. (#11066)Patrick Cloke11-145/+208
Except `synapse/events/__init__.py`, which will be done in a follow-up.
2021-10-13Port the Password Auth Providers module interface to the new generic ↵Azrenbeth13-225/+790
interface (#10548) Co-authored-by: Azrenbeth <7782548+Azrenbeth@users.noreply.github.com> Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2021-10-13Be more lenient when parsing the version for oEmbed responses. (#11065)Patrick Cloke5-8/+60
2021-10-13Stop user directory from failing if it encounters users not in the `users` ↵David Robertson13-93/+921
table. (#11053) The following scenarios would halt the user directory updater: - user joins room - user leaves room - user present in room which switches from private to public, or vice versa. for two classes of users: - appservice senders - users missing from the user table. If this happened, the user directory would be stuck, unable to make forward progress. Exclude both cases from the user directory, so that we ignore them. Co-authored-by: Eric Eastwood <erice@element.io> Co-authored-by: reivilibre <oliverw@matrix.org> Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com> Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2021-10-13Mark Module API error imports as re-exported and mark Synapse as containing ↵reivilibre4-2/+11
type annotations (#11054)
2021-10-12Always dump logs from trial during CI. (#11068)Patrick Cloke3-0/+9
Instead of only dumping them if trial passes.
2021-10-12Simplify the user admin API tests (#11048)Dirk Klimpel2-255/+147
2021-10-12Add support for ubuntu 21.10 "Impish Indri" (#11024)Hillery Shay2-0/+2
* support ubuntu 21.10 indri * add changelog * update to correct codename Co-authored-by: Brendan Abolivier <github@brendanabolivier.com> Co-authored-by: Brendan Abolivier <github@brendanabolivier.com>
2021-10-12Add tests for `MediaFilePaths` (#11057)Sean Quah3-0/+240
2021-10-12Update `_wrap_in_base_path` type hints to preserve function arguments (#11055)Sean Quah2-3/+7
2021-10-12Fix formatting string when oEmbed errors occur. (#11061)Patrick Cloke2-1/+2
2021-10-12Fix race in `MultiWriterIdGenerator` (#11045)Erik Johnston2-15/+68
The race allowed the current position to advance too far when stream IDs are still being persisted. This happened when it received a new stream ID from a remote write between a new stream ID being allocated and it being added to the set of unpersisted stream IDs. Fixes #9424.
2021-10-12Reset global cache state before cache tests. (#11036)Patrick Cloke2-13/+12
This reverts #11019 and structures the code a bit more like it was before #10985. The global cache state must be reset before running the tests since other test cases might have configured caching (and thus touched the global state).
2021-10-12Add type hints to `synapse.storage.databases.main.client_ips` (#10972)Sean Quah5-45/+121
2021-10-12Fixup changelog v1.45.0rc1Brendan Abolivier1-2/+2
2021-10-12TypoBrendan Abolivier1-1/+1
2021-10-12Add a link to the upgrade notesBrendan Abolivier1-0/+2
2021-10-12Fix inconsistent behavior of `get_last_client_by_ip` (#10970)Sean Quah3-4/+53
Make `get_last_client_by_ip` return the same dictionary structure regardless of whether the data has been persisted to the database. This change will allow slightly cleaner type hints to be applied later on.
2021-10-12Update upgrade notesBrendan Abolivier1-0/+9
2021-10-12Fix opentracing and Prometheus metrics for replication requests (#10996)Sean Quah3-76/+87
This commit fixes two bugs to do with decorators not instrumenting `ReplicationEndpoint`'s `send_request` correctly. There are two decorators on `send_request`: Prometheus' `Gauge.track_inprogress()` and Synapse's `opentracing.trace`. `Gauge.track_inprogress()` does not have any support for async functions when used as a decorator. Since async functions behave like regular functions that return coroutines, only the creation of the coroutine was covered by the metric and none of the actual body of `send_request`. `Gauge.track_inprogress()` returns a regular, non-async function wrapping `send_request`, which is the source of the next bug. The `opentracing.trace` decorator would normally handle async functions correctly, but since the wrapped `send_request` is a non-async function, the decorator ends up suffering from the same issue as `Gauge.track_inprogress()`: the opentracing span only measures the creation of the coroutine and none of the actual function body. Using `Gauge.track_inprogress()` as a context manager instead of a decorator resolves both bugs.
2021-10-12Add warning about known issuesBrendan Abolivier1-0/+2
2021-10-12Fixup changelogBrendan Abolivier1-7/+7
2021-10-121.45.0rc1Brendan Abolivier66-66/+84
2021-10-12Add an approximate difference method to StateFilters (#10825)reivilibre3-3/+683
2021-10-11disallow-untyped-defs for synapse.push (#11023)David Robertson7-10/+28
2021-10-11Include the requirements for [mypy,lint] in [dev] (#11034)reivilibre4-11/+17
2021-10-11Pass through `SynapseError`s that are raised from experimental ↵reivilibre2-0/+10
`check_event_allowed` callback of the module API (#11042) Co-authored-by: Brendan Abolivier <babolivier@matrix.org>
2021-10-11