-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Send device list updates to application services (MSC3202) - part 1 #11881
Commits on Mar 9, 2022
-
Set min application service stream_id to 1
Factored out into #12193.
Configuration menu - View commit details
-
Copy full SHA for 4b67118 - Browse repository at this point
Copy the full SHA 4b67118View commit details
Commits on Mar 10, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 51be04b - Browse repository at this point
Copy the full SHA 51be04bView commit details -
Add to_key arg, user_ids optional for get_users_whose_devices_changed
to_key prevents overlapping bounds when pulling out device list updates. user_ids needs to be optional as we won't have a list of user_ids to filter with when calling this function from a triggered device_list change.
Configuration menu - View commit details
-
Copy full SHA for b4aad36 - Browse repository at this point
Copy the full SHA b4aad36View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1671f87 - Browse repository at this point
Copy the full SHA 1671f87View commit details -
Move DeviceLists type to synapse.types
So that we can use it elsewhere.
Configuration menu - View commit details
-
Copy full SHA for a77f351 - Browse repository at this point
Copy the full SHA a77f351View commit details -
Switch DeviceLists to containing Sets, which allows item deletes
In the next commit, we'll be merging one DeviceList into another. This will require the ability to remove items by value, which Collection does not provide, while a mutable structure such as Set does. Set was chosen to to remove duplicate user IDs.
Configuration menu - View commit details
-
Copy full SHA for 88c4e73 - Browse repository at this point
Copy the full SHA 88c4e73View commit details -
Use get_users_whose_devices_changed to pull device list changes for g…
…iven AS When a new device list change occurs, we're now: 1. For each appservice, checking the last device list stream key that was processed up until. 2. Getting any users with changed device list between the last device list stream key and the stream key of the triggering update. 3. Filtering out those users based on those that are actually relevant to this application service. 4. Passing those changes to enqueue_for_appservice and saving the device list stream key that we've just processed up to for later reference.
Configuration menu - View commit details
-
Copy full SHA for 047db4d - Browse repository at this point
Copy the full SHA 047db4dView commit details -
Add device lists to AS txns, thread thru the AS scheduler methods
Here we implement code that adds support for device list changes all the way from our enqueue_for_appservice method down to where AS transactions are actually built and sent out.
Configuration menu - View commit details
-
Copy full SHA for 55ac419 - Browse repository at this point
Copy the full SHA 55ac419View commit details -
Fix existing tests for device list changes
Mainly just adding device list parameters to every method call.
Configuration menu - View commit details
-
Copy full SHA for 3d2f018 - Browse repository at this point
Copy the full SHA 3d2f018View commit details -
We add a series of tests that check whether device list sending works across a variety of possible configurations.
Configuration menu - View commit details
-
Copy full SHA for 4168d2f - Browse repository at this point
Copy the full SHA 4168d2fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9d903aa - Browse repository at this point
Copy the full SHA 9d903aaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9b0572d - Browse repository at this point
Copy the full SHA 9b0572dView commit details
Commits on Mar 23, 2022
-
Apply suggestions from code review
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 84ea3e2 - Browse repository at this point
Copy the full SHA 84ea3e2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 55eb056 - Browse repository at this point
Copy the full SHA 55eb056View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ef2df8 - Browse repository at this point
Copy the full SHA 8ef2df8View commit details
Commits on Mar 28, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d08e52c - Browse repository at this point
Copy the full SHA d08e52cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f7cd20 - Browse repository at this point
Copy the full SHA 5f7cd20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7bd8118 - Browse repository at this point
Copy the full SHA 7bd8118View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e4a531 - Browse repository at this point
Copy the full SHA 7e4a531View commit details
Commits on Mar 29, 2022
-
Update synapse/appservice/scheduler.py
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for fca1add - Browse repository at this point
Copy the full SHA fca1addView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6d00c2b - Browse repository at this point
Copy the full SHA 6d00c2bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9f5eb99 - Browse repository at this point
Copy the full SHA 9f5eb99View commit details -
Configuration menu - View commit details
-
Copy full SHA for afb9cfc - Browse repository at this point
Copy the full SHA afb9cfcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9ed4403 - Browse repository at this point
Copy the full SHA 9ed4403View commit details -
Configuration menu - View commit details
-
Copy full SHA for dff0a91 - Browse repository at this point
Copy the full SHA dff0a91View commit details
Commits on Mar 30, 2022
-
Configuration menu - View commit details
-
Copy full SHA for e4f94ff - Browse repository at this point
Copy the full SHA e4f94ffView commit details -
Configuration menu - View commit details
-
Copy full SHA for 73817f3 - Browse repository at this point
Copy the full SHA 73817f3View commit details