Commit Graph

31 Commits (97ef1471c67bc4f736d758f2e4f99178bd01d469)

Author SHA1 Message Date
Amber Brown 32e7c9e7f2
Run Black. (#5482) 6 years ago
Amber Brown 49af402019 run isort 6 years ago
Erik Johnston 4810f7effd Remove context.push_actions 7 years ago
Erik Johnston cafe659f72 Store ActionGenerator in HomeServer 8 years ago
Erik Johnston 66d8ffabbd Faster push rule calculation via push specific cache 8 years ago
Erik Johnston a3dc1e9cbe Replace context.current_state with context.current_state_ids 8 years ago
Erik Johnston f164fd9220 Move _bulk_get_push_rules_for_room to storage layer 8 years ago
Erik Johnston abcb9aee5b Make push Measure finer grained 8 years ago
Erik Johnston c8285564a3 Use state to calculate get_users_in_room 9 years ago
Mark Haines 7e23476814 move filter_events_for_client out of base handler 9 years ago
Erik Johnston 9ae64c9910 Measure push action generator 9 years ago
David Baker ed3979df5f Fix invite pushes 9 years ago
Mark Haines 7076082ae6 Fix relative imports so they work in both py3 and py27 9 years ago
Mark Haines b9977ea667 Remove dead code for setting device specific rules. 9 years ago
Erik Johnston 7b0d846407 Atomically persit push actions when we persist the event 9 years ago
Erik Johnston f28cc45183 Pass in current state to push action handler 9 years ago
Erik Johnston 5a7d1ecffc Add regex cache. Only caculate push actions for users that have sent read receipts, and are on that server 9 years ago
Erik Johnston 63485b3029 Re-enable urnead notifications 9 years ago
Erik Johnston fcb05b4c82 Temporarily disable notification branch 9 years ago
David Baker 992928304f Delete notifications for redacted events 9 years ago
David Baker c79f221192 Add is_guest flag to users db to track whether a user is a guest user or not. Use this so we can run _filter_events_for_client when calculating event_push_actions. 9 years ago
David Baker c914d67cda Rename event-actions to event_push_actions as per PR request 9 years ago
David Baker 3051c9d002 Address minor PR issues 9 years ago
David Baker 9b4cd0cd0f pep8 & unused variable 9 years ago
David Baker 4c8f6a7e42 Insert push actions in a single db query rather than one per user/profile_tag 9 years ago
David Baker 65c451cb38 Add bulk push rule evaluator which actually still evaluates rules one by one, but does far fewer db queries to fetch the rules 9 years ago
David Baker f73f154ec2 Only run pushers for users on this hs! 9 years ago
David Baker 42ad49f5b7 still very WIP, but now sends unread_notifications_count in the room object on sync (only actually corrrect in a full sync: hardcoded to 0 in incremental syncs). 9 years ago
David Baker 5e909c73d7 Store nothing instead of ['dont_notify'] for events with no notification required: much as it would be nice to be able to tell between the event not having been processed and there being no notification for it, this isn't worth filling up the table with ['dont_notify'] I think. Consequently treat the empty actions array as dont_notify and filter dont_notify out of the result. 9 years ago
David Baker aa667ee396 Save event actions to the db 9 years ago
David Baker 21f135ba76 Very first cut of calculating actions for events as they come in. Doesn't store them yet. Not very efficient. 9 years ago