MatrixSynapse/synapse/handlers
Richard van der Hoff 0fb3dd0830
Refactor the way we set `outlier` (#11634)
* `_auth_and_persist_outliers`: mark persisted events as outliers

Mark any events that get persisted via `_auth_and_persist_outliers` as, well,
outliers.

Currently this will be a no-op as everything will already be flagged as an
outlier, but I'm going to change that.

* `process_remote_join`: stop flagging as outlier

The events are now flagged as outliers later on, by `_auth_and_persist_outliers`.

* `send_join`: remove `outlier=True`

The events created here are returned in the result of `send_join` to
`FederationHandler.do_invite_join`. From there they are passed into
`FederationEventHandler.process_remote_join`, which passes them to
`_auth_and_persist_outliers`... which sets the `outlier` flag.

* `get_event_auth`: remove `outlier=True`

stop flagging the events returned by `get_event_auth` as outliers. This method
is only called by `_get_remote_auth_chain_for_event`, which passes the results
into `_auth_and_persist_outliers`, which will flag them as outliers.

* `_get_remote_auth_chain_for_event`: remove `outlier=True`

we pass all the events into `_auth_and_persist_outliers`, which will now flag
the events as outliers.

* `_check_sigs_and_hash_and_fetch`: remove unused `outlier` parameter

This param is now never set to True, so we can remove it.

* `_check_sigs_and_hash_and_fetch_one`: remove unused `outlier` param

This is no longer set anywhere, so we can remove it.

* `get_pdu`: remove unused `outlier` parameter

... and chase it down into `get_pdu_from_destination_raw`.

* `event_from_pdu_json`: remove redundant `outlier` param

This is never set to `True`, so can be removed.

* changelog

* update docstring
2022-01-05 12:26:11 +00:00
..
ui_auth Use direct references for configuration variables (part 7). (#10959) 2021-10-04 07:18:54 -04:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
account_data.py Add type hints for event streams. (#10856) 2021-09-21 13:34:26 -04:00
account_validity.py Require direct references to configuration variables. (#10985) 2021-10-06 10:47:41 -04:00
admin.py Add missing type hints to `synapse.app`. (#11287) 2021-11-10 15:06:54 -05:00
appservice.py Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
auth.py Make `get_device` return None if the device doesn't exist rather than raising an exception. (#11565) 2021-12-13 15:39:43 +00:00
cas.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
deactivate_account.py Revert change to counting of deactivated users towards the monthly active users limit (#11127) 2021-10-20 11:05:29 +01:00
device.py Make `get_device` return None if the device doesn't exist rather than raising an exception. (#11565) 2021-12-13 15:39:43 +00:00
devicemessage.py Clarifications and small fixes to to-device related code (#11247) 2021-11-09 14:31:15 +00:00
directory.py Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
e2e_keys.py Support unprefixed versions of fallback key property names. (#11541) 2021-12-09 11:41:27 +00:00
e2e_room_keys.py Add type hints to `synapse/storage/databases/main/e2e_room_keys.py` (#11549) 2021-12-14 17:46:47 +00:00
event_auth.py Check *all* auth events for room id and rejection (#11009) 2021-10-18 18:28:30 +01:00
events.py Do not bundle aggregations for APIs which shouldn't include them. (#11592) 2021-12-20 14:14:38 -05:00
federation.py Add missing type hints to `synapse.logging.context` (#11556) 2021-12-14 17:35:28 +00:00
federation_event.py Refactor the way we set `outlier` (#11634) 2022-01-05 12:26:11 +00:00
groups_local.py Require type hints in the handlers module. (#10831) 2021-09-20 08:56:23 -04:00
identity.py Remove legacy code related to deprecated `trust_identity_server_for_password_resets` config flag (#11333) 2021-11-18 10:56:32 -08:00
initial_sync.py Do not bundle aggregations for APIs which shouldn't include them. (#11592) 2021-12-20 14:14:38 -05:00
message.py Do not attempt to bundled aggregations for /members and /state. (#11623) 2021-12-29 08:02:03 -05:00
oidc.py Save the OIDC session ID (sid) with the device on login (#11482) 2021-12-06 12:43:06 -05:00
pagination.py Do not bundle aggregations for APIs which shouldn't include them. (#11592) 2021-12-20 14:14:38 -05:00
password_policy.py Use direct references for some configuration variables (part 3) (#10885) 2021-09-23 07:13:34 -04:00
presence.py Remove redundant `get_current_events_token` (#11643) 2022-01-04 16:10:27 +00:00
profile.py Annotate `log_function` decorator (#10943) 2021-10-27 17:27:23 +01:00
read_marker.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
receipts.py Add a constant for receipt types (m.read). (#11531) 2021-12-08 12:26:29 -05:00
register.py Save the OIDC session ID (sid) with the device on login (#11482) 2021-12-06 12:43:06 -05:00
room.py Improve opentracing support for `ResponseCache` (#11607) 2021-12-20 18:12:08 +00:00
room_batch.py Prevent historical state from being pushed to an application service via `/transactions` (MSC2716) (#11265) 2021-11-18 14:16:08 -06:00
room_list.py Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
room_member.py Add type hints to `synapse/storage/databases/main/room.py` (#11575) 2021-12-15 18:00:48 +00:00
room_member_worker.py Implement knock feature (#6739) 2021-06-09 19:39:51 +01:00
room_summary.py Support the stable /hierarchy endpoint from MSC2946 (#11329) 2021-11-29 14:32:20 -05:00
saml.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
search.py Support filtering by relations per MSC3440 (#11236) 2021-11-09 08:10:58 -05:00
send_email.py Pass str to twisted's IReactorTCP (#10895) 2021-09-30 12:51:47 +01:00
set_password.py Remove the deprecated BaseHandler. (#11005) 2021-10-08 07:44:43 -04:00
sso.py Save the OIDC session ID (sid) with the device on login (#11482) 2021-12-06 12:43:06 -05:00
state_deltas.py Easy refactors of the user directory (#10789) 2021-09-10 10:54:38 +01:00
stats.py Fix AssertionErrors after purging events (#11642) 2022-01-04 16:36:33 +00:00
sync.py Add type hints to event_push_actions. (#11594) 2021-12-21 13:25:34 +00:00
typing.py Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
user_directory.py Fix AssertionErrors after purging events (#11642) 2022-01-04 16:36:33 +00:00