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
__init__.py
account_data.py
account_validity.py
admin.py
appservice.py Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
auth.py
cas.py
deactivate_account.py
device.py
devicemessage.py
directory.py Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
e2e_keys.py
e2e_room_keys.py
event_auth.py
events.py Do not bundle aggregations for APIs which shouldn't include them. (#11592) 2021-12-20 14:14:38 -05:00
federation.py
federation_event.py Refactor the way we set `outlier` (#11634) 2022-01-05 12:26:11 +00:00
groups_local.py
identity.py
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
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
presence.py Remove redundant `get_current_events_token` (#11643) 2022-01-04 16:10:27 +00:00
profile.py
read_marker.py
receipts.py
register.py
room.py
room_batch.py
room_list.py Convert all namedtuples to attrs. (#11665) 2021-12-30 18:47:12 +00:00
room_member.py
room_member_worker.py
room_summary.py
saml.py
search.py
send_email.py
set_password.py
sso.py
state_deltas.py
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