MatrixSynapse/synapse/storage/databases/main
Eric Eastwood a6f1a3abec
Add MSC3030 experimental client and federation API endpoints to get the closest event to a given timestamp (#9445)
MSC3030: https://github.com/matrix-org/matrix-doc/pull/3030

Client API endpoint. This will also go and fetch from the federation API endpoint if unable to find an event locally or we found an extremity with possibly a closer event we don't know about.
```
GET /_matrix/client/unstable/org.matrix.msc3030/rooms/<roomID>/timestamp_to_event?ts=<timestamp>&dir=<direction>
{
    "event_id": ...
    "origin_server_ts": ...
}
```

Federation API endpoint:
```
GET /_matrix/federation/unstable/org.matrix.msc3030/timestamp_to_event/<roomID>?ts=<timestamp>&dir=<direction>
{
    "event_id": ...
    "origin_server_ts": ...
}
```

Co-authored-by: Erik Johnston <erik@matrix.org>
2021-12-02 01:02:20 -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 Improved push typing (#11409) 2021-11-30 11:49:20 +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
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 MSC3030 experimental client and federation API endpoints to get the closest event to a given timestamp (#9445) 2021-12-02 01:02:20 -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.py Add dedicated admin API for blocking a room (#11324) 2021-11-18 17:43:49 +00:00
room_batch.py Correct type hint for room_batch.py (#11310) 2021-11-11 16:49:28 +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.py Add type hints for most `HomeServer` parameters (#11095) 2021-10-22 18:15:41 +01:00
state_deltas.py Annotations for state_deltas.py (#11316) 2021-11-12 20:24:12 +00: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