mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 19:47:05 +03:00
Fill in docstrings
This commit is contained in:
parent
2ec93e3f0d
commit
c89d859c7c
2 changed files with 11 additions and 4 deletions
|
@ -1565,7 +1565,10 @@ class PersistEventsStore:
|
||||||
Fetch the current state event IDs for the relevant (to the
|
Fetch the current state event IDs for the relevant (to the
|
||||||
`sliding_sync_joined_rooms` table) state types for the given room.
|
`sliding_sync_joined_rooms` table) state types for the given room.
|
||||||
|
|
||||||
TODO
|
Returns:
|
||||||
|
StateMap of event IDs necessary to to fetch the relevant state values needed
|
||||||
|
to insert into the
|
||||||
|
`sliding_sync_joined_rooms`/`sliding_sync_membership_snapshots`.
|
||||||
"""
|
"""
|
||||||
# Fetch the current state event IDs from the database
|
# Fetch the current state event IDs from the database
|
||||||
(
|
(
|
||||||
|
@ -1597,7 +1600,9 @@ class PersistEventsStore:
|
||||||
cls, txn: LoggingTransaction, state_map: StateMap[str]
|
cls, txn: LoggingTransaction, state_map: StateMap[str]
|
||||||
) -> Dict[str, Optional[Union[str, bool]]]:
|
) -> Dict[str, Optional[Union[str, bool]]]:
|
||||||
"""
|
"""
|
||||||
TODO
|
Fetch events in the `state_map` and extract the relevant state values needed to
|
||||||
|
insert into the `sliding_sync_joined_rooms`/`sliding_sync_membership_snapshots`
|
||||||
|
tables.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Map from column names (`room_type`, `is_encrypted`, `room_name`) to relevant
|
Map from column names (`room_type`, `is_encrypted`, `room_name`) to relevant
|
||||||
|
@ -1661,7 +1666,8 @@ class PersistEventsStore:
|
||||||
cls, txn: LoggingTransaction, unsigned_stripped_state_events: Any
|
cls, txn: LoggingTransaction, unsigned_stripped_state_events: Any
|
||||||
) -> Dict[str, Optional[Union[str, bool]]]:
|
) -> Dict[str, Optional[Union[str, bool]]]:
|
||||||
"""
|
"""
|
||||||
TODO
|
Pull out the relevant state values from the stripped state needed to insert into
|
||||||
|
the `sliding_sync_membership_snapshots` tables.
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
Map from column names (`room_type`, `is_encrypted`, `room_name`) to relevant
|
Map from column names (`room_type`, `is_encrypted`, `room_name`) to relevant
|
||||||
|
|
|
@ -144,7 +144,8 @@ Changes in SCHEMA_VERSION = 86
|
||||||
- Add a column `authenticated` to the tables `local_media_repository` and `remote_media_cache`
|
- Add a column `authenticated` to the tables `local_media_repository` and `remote_media_cache`
|
||||||
|
|
||||||
Changes in SCHEMA_VERSION = 87
|
Changes in SCHEMA_VERSION = 87
|
||||||
- TODO
|
- Add tables to store Sliding Sync data for quick filtering/sorting
|
||||||
|
(`sliding_sync_joined_rooms`, `sliding_sync_membership_snapshots`)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue