summary refs log tree commit diff
path: root/synapse/push/pusherpool.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-05-31Fix import in module_api module and docs on the new check_event_for_spam ↵Brendan Abolivier8-78/+66
signature (#12918) Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
2022-05-271.60.0rc2 v1.60.0rc2Sean Quah6-5/+29
2022-05-27Close `ijson` coroutines ourselves instead of letting the GC close them (#12875)Sean Quah3-2/+19
Hopefully this means that exceptions raised due to truncated JSON get a sensible logging context and stack. Signed-off-by: Sean Quah <seanq@matrix.org>
2022-05-27Add an option allowing users to use their password to reauthenticate even ↵reivilibre6-12/+83
though password authentication is disabled. (#12883)
2022-05-26Improve URL previews by not including the content of media tags in the ↵reivilibre2-1/+10
generated description. (#12887)
2022-05-24Update changelog v1.60.0rc1Sean Quah1-19/+19
2022-05-241.60.0rc1Sean Quah87-87/+119
2022-05-24contributing_guide.md: fix link to DCORichard van der Hoff1-2/+2
2022-05-24Pin poetry.core in Docker images (#12853)Erik Johnston2-1/+2
2022-05-23Marker events as state - MSC2716 (#12718)Eric Eastwood2-1/+26
Sending marker events as state now so they are always able to be seen by homeservers (not lost in some timeline gap). Part of [MSC2716](https://github.com/matrix-org/matrix-spec-proposals/pull/2716) Complement tests: https://github.com/matrix-org/complement/pull/371 As initially discussed at https://github.com/matrix-org/matrix-spec-proposals/pull/2716#discussion_r782629097 and https://github.com/matrix-org/matrix-spec-proposals/pull/2716#discussion_r876684431 When someone joins a room, process all of the marker events we see in the current state. Marker events should be sent with a unique `state_key` so that they can all resolve in the current state to easily be discovered. Marker events as state - If we re-use the same `state_key` (like `""`), then we would have to fetch previous snapshots of state up through time to find all of the marker events. This way we can avoid all of that. This PR was originally doing this but then thought of the smarter way to tackle in an [out of band discussion with @erikjohnston](https://docs.google.com/document/d/1JJDuPfcPNX75fprdTWlxlaKjWOdbdJylbpZ03hzo638/edit#bookmark=id.sm92fqyq7vpp). - Also avoids state resolution conflicts where only one of the marker events win As a homeserver, when we see new marker state, we know there is new history imported somewhere back in time and should process it to fetch the insertion event where the historical messages are and set it as an insertion extremity. This way we know where to backfill more messages when someone asks for scrollback.
2022-05-23Uniformize spam-checker API, part 2: check_event_for_spam (#12808)David Teller10-31/+129
Signed-off-by: David Teller <davidt@element.io>
2022-05-23Prevent expired events from being filtered out when retention is disabled ↵Brendan Abolivier7-32/+71
(#12611) Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-05-23add SpamChecker callback for silently dropping inbound federated events (#12744)Jess Porter5-4/+108
Signed-off-by: jesopo <github@lolnerd.net>
2022-05-23Disable 'faster room join' Complement tests when testing against Synapse ↵reivilibre2-1/+9
with workers. (#12842)
2022-05-23Support registering Application Services when running with workers under ↵reivilibre4-1/+31
Complement. (#12826) Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
2022-05-23Add some type hints to tests files (#12833)Dirk Klimpel7-23/+19
Co-authored-by: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
2022-05-23Fix Complement `TestCanRegisterAdmin` with workers, by adding Complement's ↵reivilibre2-0/+7
shared registration secret. (#12819)
2022-05-23Add a windows->unix file endings commit to git blame ignore file (#12824)Andrew Morgan1-0/+3
2022-05-23Remove Caddy from the Synapse workers image used in Complement. (#12818)reivilibre7-93/+38
2022-05-23Fix media thumbnails being unusable before the index had been added in the ↵reivilibre2-0/+3
background. (#12823)
2022-05-20Send `USER_IP` commands on a different Redis channel, in order to reduce ↵reivilibre5-4/+17
traffic to workers that do not process these commands. (#12809)
2022-05-20Uniformize spam-checker API, part 1: the `Code` enum. (#12703)David Teller2-2/+10
2022-05-20Update EventContext `get_current_event_ids` and `get_prev_event_ids` to ↵Shay10-18/+65
accept state filters and update calls where possible (#12791)
2022-05-19Fix `RetryDestinationLimiter` re-starting finished log contexts (#12803)Sean Quah2-2/+3
Signed-off-by: Sean Quah <seanq@matrix.org>
2022-05-19Add a unit test for copying over arbitrary room types when upgrading a room ↵Andrew Morgan3-2/+33
(#12792)
2022-05-19Lay some foundation work to allow workers to only subscribe to some kinds of ↵reivilibre5-24/+173
messages, reducing replication traffic. (#12672)
2022-05-19Add detail to `cache_autotuning` config option documentation (#12776)Shay2-4/+11
2022-05-19Update configuration manual to document size-related suffixes (#12777)Shay2-0/+10
2022-05-19Properly close providers.json file stream. (#12794)Petr Vaněk2-3/+4
2022-05-19Add a unique index to `state_group_edges` to prevent duplicates being ↵reivilibre5-0/+139
accidentally introduced and the consequential impact to performance. (#12687)
2022-05-19hash_password: raise an error if no config file is specified (#12789)Jae Lo Presti2-5/+6
2022-05-19Simplify untyped-defs config in mypy.ini (#12790)David Robertson2-156/+18
2022-05-19Implement MSC3818: copy room type on upgrade (#12786)Aminda Suomalainen2-8/+9
Resolves: #11896 Signed-off-by: Aminda Suomalainen <suomalainen+git@mikaela.info>
2022-05-19Add missing user directory search endpoint to the generic worker ↵Sami Olmari2-0/+11
documentation (#12773) Signed-off-by: Sami Olmari <sami@olmari.fi>
2022-05-19openid.md: fix some linksRichard van der Hoff1-9/+9
docbook doesn't auto-linkify links
2022-05-18Downgrade some OIDC exceptions to warnings (#12723)David Robertson2-2/+3
2022-05-18Fix federation in demo scripts. (#12783)Patrick Cloke3-6/+11
2022-05-18Skip waiting for full state if a StateFilter does not require it (#12498)Richard van der Hoff2-4/+60
If `StateFilter` specifies a state set which we will have regardless of state-syncing, then we may as well return it immediately.
2022-05-18Fix YAML parsing error in `url_preview_accept_language` (#12785)Andrew Morgan2-6/+7
2022-05-18Refactor `resolve_state_groups_for_events` to not pull out full state when ↵Shay5-23/+40
no state resolution happens. (#12775)
2022-05-18Add documentation for cancellation of request processing (#12761)Sean Quah3-0/+394
Signed-off-by: Sean Quah <seanq@matrix.org>
2022-05-18Add some type hints to `event_federation` datastore (#12753)Dirk Klimpel5-65/+127
Co-authored-by: David Robertson <david.m.robertson1@gmail.com>
2022-05-18Do not keep going if there are 5 back-to-back background update failures. ↵reivilibre2-0/+9
(#12781)
2022-05-18Give a meaningful error message when a client tries to create a room with an ↵reivilibre3-0/+19
invalid alias localpart. (#12779)
2022-05-18Switch the 'Configuration' link in the docs homepage to the config manual ↵Andrew Morgan2-3/+4
(#12748)
2022-05-18Add some documentation around the `rc_invites` option to the config docs ↵Andrew Morgan2-0/+15
(#12759)
2022-05-18Fixup changelog v1.59.1Brendan Abolivier1-2/+4
2022-05-181.59.1Brendan Abolivier4-2/+16
2022-05-18Discard null-containing strings before updating the user directory (#12762)David Robertson6-11/+45
2022-05-18Discard null-containing strings before updating the user directory (#12762)David Robertson6-11/+45
2022-05-18Make handling of federation Authorization header (more) compliant with ↵Hubert Chathi4-5/+35
RFC7230 (#12774) The main differences are: - values with delimiters (such as colons) should be quoted, so always quote the origin, since it could contain a colon followed by a port number - should allow more than one space after "X-Matrix" - quoted values with backslash-escaped characters should be unescaped - names should be case insensitive
2022-05-18Move methods that call add_push_rule to PushRuleStore (#12772)Adam2-51/+52
Signed-off-by: Adam Roddick <ajroddick@tuta.io>
2022-05-17Suggest using docker when testing against postgres (#12765)David Robertson2-3/+29
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
2022-05-17Delete events from federation_inbound_events_staging table on purge (#12770)Mathieu Velten3-0/+3
2022-05-17allow `on_invalidate=None` in `@cached` methods (#12769)David Robertson3-10/+19
2022-05-17Add some type hints to datastore (#12717)Dirk Klimpel10-161/+254
2022-05-17Add a new room version for MSC3787's knock+restricted join rule (#12623)Travis Ralston6-7/+68
2022-05-17Remove code which updates `application_services_state.last_txn` (#12680)Richard van der Hoff5-55/+35
This column is unused as of #12209, so let's stop writing to it.
2022-05-17Fix push for m.read events (#12721)SpiritCroc2-1/+2
badge_count_last_call was always zero when the response for push notifications included a "rejected" key which mapped to an empty list.
2022-05-17Add index to cache invalidations (#12747)Erik Johnston3-0/+27
For workers that rarely write to the cache the `get_all_updated_caches` query can become expensive if the worker falls behind when reading the cache.
2022-05-17Track in memory events using weakrefs (#10533)Erik Johnston4-2/+60
2022-05-17version tweak in changelog v1.59.0David Robertson1-1/+1
2022-05-171.59.0David Robertson4-4/+21
2022-05-17Tidy up and type-hint the database engine modules (#12734)David Robertson7-94/+182
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com>
2022-05-16