-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support MSC4140: Delayed events (Futures) #17326
Commits on Aug 6, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 044f57a - Browse repository at this point
Copy the full SHA 044f57aView commit details
Commits on Aug 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 82c5437 - Browse repository at this point
Copy the full SHA 82c5437View commit details -
Configuration menu - View commit details
-
Copy full SHA for 645e225 - Browse repository at this point
Copy the full SHA 645e225View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5472588 - Browse repository at this point
Copy the full SHA 5472588View commit details -
Configuration menu - View commit details
-
Copy full SHA for 14cf8ec - Browse repository at this point
Copy the full SHA 14cf8ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for d8e3135 - Browse repository at this point
Copy the full SHA d8e3135View commit details -
Configuration menu - View commit details
-
Copy full SHA for f9261b9 - Browse repository at this point
Copy the full SHA f9261b9View commit details -
Configuration menu - View commit details
-
Copy full SHA for d3ea968 - Browse repository at this point
Copy the full SHA d3ea968View commit details -
Check startup delayed state events for same state
If on startup there are multiple delayed state events to be sent, do not send multiple events that target the same state key for a room.
Configuration menu - View commit details
-
Copy full SHA for c34221f - Browse repository at this point
Copy the full SHA c34221fView commit details -
Configuration menu - View commit details
-
Copy full SHA for f2d8144 - Browse repository at this point
Copy the full SHA f2d8144View commit details -
Configuration menu - View commit details
-
Copy full SHA for d2c9ca7 - Browse repository at this point
Copy the full SHA d2c9ca7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56c6d87 - Browse repository at this point
Copy the full SHA 56c6d87View commit details -
Configuration menu - View commit details
-
Copy full SHA for c24c41b - Browse repository at this point
Copy the full SHA c24c41bView commit details -
Increase expected db_txn_counts
Include counts for the delayed event handler's state event callback
Configuration menu - View commit details
-
Copy full SHA for 6e382df - Browse repository at this point
Copy the full SHA 6e382dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7b79db0 - Browse repository at this point
Copy the full SHA 7b79db0View commit details
Commits on Aug 8, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 8b3fb49 - Browse repository at this point
Copy the full SHA 8b3fb49View commit details
Commits on Aug 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 32cbacf - Browse repository at this point
Copy the full SHA 32cbacfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 71e8997 - Browse repository at this point
Copy the full SHA 71e8997View commit details
Commits on Aug 15, 2024
-
Configuration menu - View commit details
-
Copy full SHA for fafaa03 - Browse repository at this point
Copy the full SHA fafaa03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3afa3cf - Browse repository at this point
Copy the full SHA 3afa3cfView commit details -
Use "Params" instead of "Args" in docstrings
to follow Google's Python style guide https://google.github.io/styleguide/pyguide.html#doc-function-args
Configuration menu - View commit details
-
Copy full SHA for b3d4d6c - Browse repository at this point
Copy the full SHA b3d4d6cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 48d8126 - Browse repository at this point
Copy the full SHA 48d8126View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ce3787 - Browse repository at this point
Copy the full SHA 5ce3787View commit details -
Configuration menu - View commit details
-
Copy full SHA for bee52bd - Browse repository at this point
Copy the full SHA bee52bdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6252708 - Browse repository at this point
Copy the full SHA 6252708View commit details -
Remove TODO to verify delayed event contents
because they are already verified when the event is scheduled
Configuration menu - View commit details
-
Copy full SHA for b1f74a8 - Browse repository at this point
Copy the full SHA b1f74a8View commit details -
Don't bother using a CRC for delay_ids
as all they need to be is a random opaque string
Configuration menu - View commit details
-
Copy full SHA for 221e0af - Browse repository at this point
Copy the full SHA 221e0afView commit details -
Assert non-negative delay; allow missing delay ID
A delayed event missing from the DB on timeout isn't destructive, so don't worry about asserting for its presence. Do post a debug message explaining its absence, though
Configuration menu - View commit details
-
Copy full SHA for 08f54ca - Browse repository at this point
Copy the full SHA 08f54caView commit details -
Configuration menu - View commit details
-
Copy full SHA for 56abbb9 - Browse repository at this point
Copy the full SHA 56abbb9View commit details -
Configuration menu - View commit details
-
Copy full SHA for c4e80ad - Browse repository at this point
Copy the full SHA c4e80adView commit details -
Use built-in method to check for RETURNING support
and remove some now-unneeded imports
Configuration menu - View commit details
-
Copy full SHA for 99e421c - Browse repository at this point
Copy the full SHA 99e421cView commit details -
Co-authored-by: Andrew Morgan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 335eeb7 - Browse repository at this point
Copy the full SHA 335eeb7View commit details
Commits on Aug 19, 2024
-
Remove support for delayed event parents
as they are not part of MSC4140 anymore (and if reinstated, will likely require their own MSC)
Configuration menu - View commit details
-
Copy full SHA for 21311fb - Browse repository at this point
Copy the full SHA 21311fbView commit details
Commits on Aug 20, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3478118 - Browse repository at this point
Copy the full SHA 3478118View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00217f3 - Browse repository at this point
Copy the full SHA 00217f3View commit details -
Don't bother handling DB key collisions
because generated delay IDs should have enough entropy for collisions to be extremely rare
Configuration menu - View commit details
-
Copy full SHA for 90cc8b5 - Browse repository at this point
Copy the full SHA 90cc8b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8a65c77 - Browse repository at this point
Copy the full SHA 8a65c77View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47b6e69 - Browse repository at this point
Copy the full SHA 47b6e69View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0e6802 - Browse repository at this point
Copy the full SHA e0e6802View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5672d0d - Browse repository at this point
Copy the full SHA 5672d0dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85cb72f - Browse repository at this point
Copy the full SHA 85cb72fView commit details -
Remove delayed event from DB on cancel
This was always supposed to be done, but was lost a few commits ago
Configuration menu - View commit details
-
Copy full SHA for 974463f - Browse repository at this point
Copy the full SHA 974463fView commit details
Commits on Aug 21, 2024
-
Make user_localpart first column of DB key
to allow for faster queries on user_localpart alone
Configuration menu - View commit details
-
Copy full SHA for 05accda - Browse repository at this point
Copy the full SHA 05accdaView commit details -
Don't handle missing delays in DB lookup
because delay is now a mandatory field of all delayed events
Configuration menu - View commit details
-
Copy full SHA for 2a9069c - Browse repository at this point
Copy the full SHA 2a9069cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 57b7229 - Browse repository at this point
Copy the full SHA 57b7229View commit details -
Remove redundant delay value check
Should have been done in 47b6e69
Configuration menu - View commit details
-
Copy full SHA for 4dc41dc - Browse repository at this point
Copy the full SHA 4dc41dcView commit details
Commits on Aug 28, 2024
-
- Move from "experimental" config section to "server" - Allow to be set to None to disable delayed event sending - Parse as a duration string, not just an integer of milliseconds - Set default value to None, i.e. disable delayed events by default
Configuration menu - View commit details
-
Copy full SHA for 3ce7305 - Browse repository at this point
Copy the full SHA 3ce7305View commit details -
Refactor delayed event processing
- Instead of popping events to send before they persist, mark them as in-progress and remove them only once persisted - Check for timed out events in bulk - Eschew locks in favour of DB-level atomicity
Configuration menu - View commit details
-
Copy full SHA for be094e6 - Browse repository at this point
Copy the full SHA be094e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2aed40b - Browse repository at this point
Copy the full SHA 2aed40bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 235c432 - Browse repository at this point
Copy the full SHA 235c432View commit details -
Configuration menu - View commit details
-
Copy full SHA for b03312b - Browse repository at this point
Copy the full SHA b03312bView commit details
Commits on Aug 29, 2024
-
Merge 'develop' & bump schema version
Bump the schema version for delayed events to 88, to avoid conflict with schema version 87 for sliding sync
Configuration menu - View commit details
-
Copy full SHA for afff231 - Browse repository at this point
Copy the full SHA afff231View commit details
Commits on Sep 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 86c0e97 - Browse repository at this point
Copy the full SHA 86c0e97View commit details -
Configuration menu - View commit details
-
Copy full SHA for 798c79e - Browse repository at this point
Copy the full SHA 798c79eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 186e55d - Browse repository at this point
Copy the full SHA 186e55dView commit details
Commits on Sep 9, 2024
-
Configuration menu - View commit details
-
Copy full SHA for a3fbdd3 - Browse repository at this point
Copy the full SHA a3fbdd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ef7284f - Browse repository at this point
Copy the full SHA ef7284fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 92d352c - Browse repository at this point
Copy the full SHA 92d352cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0ab82f5 - Browse repository at this point
Copy the full SHA 0ab82f5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9025922 - Browse repository at this point
Copy the full SHA 9025922View commit details -
Configuration menu - View commit details
-
Copy full SHA for c3ad95d - Browse repository at this point
Copy the full SHA c3ad95dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1dbbb74 - Browse repository at this point
Copy the full SHA 1dbbb74View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e9f76f - Browse repository at this point
Copy the full SHA 3e9f76fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d36c89f - Browse repository at this point
Copy the full SHA d36c89fView commit details
Commits on Sep 10, 2024
-
Nitpick: rename inner function
Remove leading underscore for consistency with other inner functions
Configuration menu - View commit details
-
Copy full SHA for e0225eb - Browse repository at this point
Copy the full SHA e0225ebView commit details -
Configuration menu - View commit details
-
Copy full SHA for e741c56 - Browse repository at this point
Copy the full SHA e741c56View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2d79506 - Browse repository at this point
Copy the full SHA 2d79506View commit details
Commits on Sep 11, 2024
-
Put retrieved delayed events in field for GET
This is to match what is specified in the MSC. Also add a unit test for this.
Configuration menu - View commit details
-
Copy full SHA for e41b5a1 - Browse repository at this point
Copy the full SHA e41b5a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94048f7 - Browse repository at this point
Copy the full SHA 94048f7View commit details -
Don't use data-modifying CTE in WITH for sqlite
Also don't try to use ordered RETURNING rows for sqlite either
Configuration menu - View commit details
-
Copy full SHA for 8e3df61 - Browse repository at this point
Copy the full SHA 8e3df61View commit details -
Remove TODO for returning transaction IDs
GET /delayed_events is no longer specced to return them
Configuration menu - View commit details
-
Copy full SHA for dd3c746 - Browse repository at this point
Copy the full SHA dd3c746View commit details -
Configuration menu - View commit details
-
Copy full SHA for a60fa7f - Browse repository at this point
Copy the full SHA a60fa7fView commit details
Commits on Sep 13, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 092793a - Browse repository at this point
Copy the full SHA 092793aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1d75060 - Browse repository at this point
Copy the full SHA 1d75060View commit details -
Configuration menu - View commit details
-
Copy full SHA for 34ed582 - Browse repository at this point
Copy the full SHA 34ed582View commit details -
Don't expect to remember next_send_ts
See DelayedEventsHandler._next_send_ts_changed for details
Configuration menu - View commit details
-
Copy full SHA for a6cf11c - Browse repository at this point
Copy the full SHA a6cf11cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fb04833 - Browse repository at this point
Copy the full SHA fb04833View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bf03ad - Browse repository at this point
Copy the full SHA 0bf03adView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3860f75 - Browse repository at this point
Copy the full SHA 3860f75View commit details
Commits on Sep 16, 2024
-
Use default ts for delayed events sent on request
When a delayed event is sent on-demand, let its timestamp be set to whatever time the event is sent at, like non-delayed events. Only timed-out delayed events should have their timestamps set to their timeout time, as that is the time they are meant to be sent.
Configuration menu - View commit details
-
Copy full SHA for 8ee1558 - Browse repository at this point
Copy the full SHA 8ee1558View commit details -
as it converts fields (namely RoomIDs) to dicts too
Configuration menu - View commit details
-
Copy full SHA for cbedade - Browse repository at this point
Copy the full SHA cbedadeView commit details -
Fix path regex for delayed_events updating
Require non-empty delay ID in path
Configuration menu - View commit details
-
Copy full SHA for 7ee57d8 - Browse repository at this point
Copy the full SHA 7ee57d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10b9dee - Browse repository at this point
Copy the full SHA 10b9deeView commit details -
Configuration menu - View commit details
-
Copy full SHA for a723f6b - Browse repository at this point
Copy the full SHA a723f6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for f32cf9c - Browse repository at this point
Copy the full SHA f32cf9cView commit details
Commits on Sep 18, 2024
-
Configuration menu - View commit details
-
Copy full SHA for dfde3c2 - Browse repository at this point
Copy the full SHA dfde3c2View commit details