This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Use a database table to hold the users that should have full presence sent to them, instead of something in-memory #9823
Merged
Merged
Changes from 23 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
cce22cd
Add a util file for non API-specific constants, and move ONE_HOUR to it
anoadragon453 84fb5f0
Add migration and storage methods for users_to_send_full_presence_to …
anoadragon453 f7e6887
Modify ModuleApi to upsert entries into our new table
anoadragon453 9d9f46d
Modify SyncHandler to pull from the new table
anoadragon453 a71fd40
Changelog
anoadragon453 0951d36
Remove users_to_send_full_presence_to table culling; add fk for user_id
anoadragon453 3ebbc96
Add presence_stream_id column to users_to_send_full_presence_to table
anoadragon453 245e672
Updating tests to account for new stream-token based sync tracking
anoadragon453 b4e7e9d
Fix stream token multiple devices
anoadragon453 337197d
Add a new key to presence_set_state replication request, force_notify
anoadragon453 0b15230
self -> test_case. Fix worker-based test
anoadragon453 822f87a
Modify send_local_online_presence_to to send to local users on non-fe…
anoadragon453 2e408ac
lint
anoadragon453 7ca6618
Revert server_notices_manager change
anoadragon453 6b54010
Don't commit :memory: -> test.db :)
anoadragon453 ce73710
Revert "Modify send_local_online_presence_to to send to local users o…
anoadragon453 839f671
Send Server Notices change was required after all
anoadragon453 a907e0a
Switch to using PresenceFederationQueue.send_presence_to_destinations
anoadragon453 d2f07a7
No need to split a single-use constant out to a separate file
anoadragon453 682e125
Describe force_notify in docstrings
anoadragon453 6839bcf
Have the handler call the storage method, not the other way around
anoadragon453 726d705
Call send_presence_to_destinations properly
anoadragon453 e603a77
Fix presence router test
anoadragon453 0bbca77
Only bump the max presence stream ID once
anoadragon453 7b8d008
Clarify notice of where ModuleApi.send_local_online_presece_to can be…
anoadragon453 db3befd
Fix iterator/iterable, and passing UserID
anoadragon453 48bedea
Update synapse/module_api/__init__.py
anoadragon453 a9875aa
Iterable -> Sequence; lint
anoadragon453 22e1795
Perform an empty check, switch back to next(iter(x))
anoadragon453 68073af
Don't have the same function name in a Handler and Store class
anoadragon453 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Allow sending full presence to users via workers other than the one that called `ModuleApi.send_local_online_presence_to`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.