synapse-product/synapse/storage
Andrew Morgan fae81f2f68
Add a storage method for returning all current presence from all users (#9650)
Split off from https://github.com/matrix-org/synapse/pull/9491

Adds a storage method for getting the current presence of all local users, optionally excluding those that are offline. This will be used by the code in #9491 when a PresenceRouter module informs Synapse that a given user should have `"ALL"` user presence updates routed to them. Specifically, it is used here: b588f16e39/synapse/handlers/presence.py (L1131-L1133)

Note that there is a `get_all_presence_updates` function just above. That function is intended to walk up the table through stream IDs, and is primarily used by the presence replication stream. I could possibly make use of it in the PresenceRouter-related code, but it would be a bit of a bodge.
2021-03-25 10:34:23 +00:00
..
databases Add a storage method for returning all current presence from all users (#9650) 2021-03-25 10:34:23 +00:00
engines Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
schema Only run one background update at a time 2020-03-31 17:43:58 +01:00
util Refactor to ensure we call check_consistency (#9470) 2021-02-24 10:13:53 +00:00
__init__.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
_base.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
background_updates.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
database.py Add a storage method for returning all current presence from all users (#9650) 2021-03-25 10:34:23 +00:00
keys.py Add additional type hints to the storage module. (#8980) 2020-12-30 08:09:53 -05:00
persist_events.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
prepare_database.py Update black, and run auto formatting over the codebase (#9381) 2021-02-16 22:32:34 +00:00
purge_events.py Import HomeServer from the proper module. (#9665) 2021-03-23 07:12:48 -04:00
push_rule.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
relations.py Add additional type hints to the storage module. (#8980) 2020-12-30 08:09:53 -05:00
roommember.py Bump the mypy and mypy-zope versions. (#9529) 2021-03-03 07:19:19 -05:00
state.py Add type hints to misc. files. (#9676) 2021-03-24 06:49:01 -04:00
types.py Update type hints for Cursor to match PEP 249. (#9299) 2021-02-05 15:39:19 -05:00