synapse-product/synapse/storage/databases/main
Eric Eastwood fb58611d21
Refactor backfilled into specific behavior function arguments (_persist_events_and_state_updates) (#11417)
Part of https://github.com/matrix-org/synapse/issues/11300

Call stack:

 - `_persist_events_and_state_updates` (added `use_negative_stream_ordering`)
    - `_persist_events_txn`
       - `_update_room_depths_txn` (added `update_room_forward_stream_ordering`)
       - `_update_metadata_tables_txn`
          - `_store_room_members_txn` (added `inhibit_local_membership_updates`)

Using keyword-only arguments (`*`) to reduce the mistakes from `backfilled` being left as a positional argument somewhere and being interpreted wrong by our new arguments.
2021-11-29 16:01:54 -06:00
..
__init__.py Get directory db file to pass mypy (#11339) 2021-11-15 12:59:05 +00:00
account_data.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
appservice.py Clarifications and small fixes to to-device related code (#11247) 2021-11-09 14:31:15 +00:00
cache.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
censor_events.py Add type hints to some storage classes (#11307) 2021-11-11 08:47:31 -05:00
client_ips.py Fix module API's get_user_ip_and_agents function when run on workers (#11112) 2021-10-25 13:01:04 +01:00
deviceinbox.py Improve performance of remove_{hidden,deleted}_devices_from_device_inbox (#11421) 2021-11-25 15:14:54 +00:00
devices.py Fix providing a RoomStreamToken instance to _notify_app_services_ephemeral (#11137) 2021-11-02 10:39:02 +00:00
directory.py Get directory db file to pass mypy (#11339) 2021-11-15 12:59:05 +00:00
e2e_room_keys.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
end_to_end_keys.py Keep fallback key marked as used if it's re-uploaded (#11382) 2021-11-19 11:40:12 +00:00
event_federation.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
event_push_actions.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
events_bg_updates.py Store arbitrary relations from events. (#11391) 2021-11-22 12:01:47 -05:00
events_forward_extremities.py Attempt to annotate events_forward_extremities (#11314) 2021-11-12 15:58:17 +00:00
events_worker.py Add type hints to synapse/storage/databases/main/events_worker.py (#11411) 2021-11-26 18:41:31 +00:00
events.py Refactor backfilled into specific behavior function arguments (_persist_events_and_state_updates) (#11417) 2021-11-29 16:01:54 -06:00
filtering.py Add type hints to some storage classes (#11307) 2021-11-11 08:47:31 -05:00
group_server.py Add index to local_group_updates.stream_id (#11231) 2021-11-02 15:46:48 +00:00
keys.py Add missing type hints to synapse.util (#9982) 2021-05-24 15:32:01 -04:00
lock.py Add type hints to some storage classes (#11307) 2021-11-11 08:47:31 -05:00
media_repository.py Add type hints to media repository storage module (#11311) 2021-11-12 11:05:26 -05:00
metrics.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
monthly_active_users.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
openid.py Add type hints to some storage classes (#11307) 2021-11-11 08:47:31 -05:00
presence.py Fix providing a RoomStreamToken instance to _notify_app_services_ephemeral (#11137) 2021-11-02 10:39:02 +00:00
profile.py Database storage profile passes mypy (#11342) 2021-11-15 12:59:33 +00:00
purge_events.py In _purge_history_txn, ensure that txn.fetchall has elements before accessing rows (#10690) 2021-09-24 09:19:51 +00:00
push_rule.py Add type hints to synapse/storage/databases/main/events_worker.py (#11411) 2021-11-26 18:41:31 +00:00
pusher.py Annotate synapse.storage.util (#10892) 2021-10-08 14:25:16 +00:00
receipts.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
registration.py Support expiry of refresh tokens and expiry of the overall session when refresh tokens are in use. (#11425) 2021-11-26 14:27:14 +00:00
rejections.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
relations.py Do not allow MSC3440 threads to fork threads (#11161) 2021-11-18 13:43:09 +00:00
room_batch.py Correct type hint for room_batch.py (#11310) 2021-11-11 16:49:28 +00:00
room.py Add dedicated admin API for blocking a room (#11324) 2021-11-18 17:43:49 +00:00
roommember.py Add remaining type hints to synapse.events. (#11098) 2021-11-02 09:55:52 -04:00
search.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
session.py Use direct references for some configuration variables (#10798) 2021-09-13 13:07:12 -04:00
signatures.py Get db signatures file to pass mypy (#11312) 2021-11-11 17:04:44 +00:00
state_deltas.py Annotations for state_deltas.py (#11316) 2021-11-12 20:24:12 +00:00
state.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
stats.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
stream.py Support filtering by relations per MSC3440 (#11236) 2021-11-09 08:10:58 -05:00
tags.py Add type hints to some storage classes (#11307) 2021-11-11 08:47:31 -05:00
transactions.py Add type hints for most HomeServer parameters (#11095) 2021-10-22 18:15:41 +01:00
ui_auth.py Fix remove_stale_pushers job on SQLite. (#10843) 2021-09-20 10:26:13 +01:00
user_directory.py Stop user directory from failing if it encounters users not in the users table. (#11053) 2021-10-13 09:38:22 +00:00
user_erasure_store.py Annotations for user_erasure_store (#11313) 2021-11-11 19:22:19 +00:00