Commit Graph

55 Commits (6ec02e9ecf7ffe3d3737a69a480939a07d62428b)

Author SHA1 Message Date
Mark Haines e36bfbab38 Use a stream id generator for backfilled ids 9 years ago
Mark Haines ebcbb23226 s/stream_ordering/event_stream_ordering/ in push 9 years ago
Mark Haines 7e9fc9b6af /FNARG/d 9 years ago
Mark Haines 1b4f4a936f Hook up the push rules stream to account_data in /sync 9 years ago
Mark Haines 2223204eba Hook push rules up to the replication API 9 years ago
Mark Haines a1cf9e3bf3 Add a stream for push rule updates 9 years ago
Mark Haines 54172924c8 Load the current id in the IdGenerator constructor 9 years ago
Mark Haines de27f7fc79 Add support for changing the actions for default rules 9 years ago
Mark Haines a9c9868957 Make adding push rules idempotent 9 years ago
Mark Haines 8c94833b72 Fix adding push rules relative to other rules 9 years ago
Erik Johnston ddd25def01 Implement a _simple_select_many_batch 9 years ago
David Baker 52bdd1b834 Overlay the push_rules_enabled map for users, otherwise they won't be able to disable server default rules. 9 years ago
Erik Johnston 5cd2126a6a Remove dead code 9 years ago
Erik Johnston 2c176e02ae Make unit tests work 9 years ago
Erik Johnston f59b564507 Make notifications go quicker 9 years ago
Mark Haines 9c1f853d58 Rename 'user_name' to 'user_id' in push to make it consistent with the rest of the code 9 years ago
Erik Johnston 8740e4e94a bulk_get_push_rules should handle empty lists 9 years ago
Mark Haines 31de2953a3 Remove the PushRuleTable and PushRuleEnableTable objects 9 years ago
Matthew Hodgson 6c28ac260c copyrights 9 years ago
David Baker 3051c9d002 Address minor PR issues 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
Erik Johnston 2df8dd9b37 Move all the caches into their own package, synapse.util.caches 9 years ago
Erik Johnston 20addfa358 Change Cache to not use *args in its interface 9 years ago
Erik Johnston b8e386db59 Change Cache to not use *args in its interface 9 years ago
Erik Johnston 39e21ea51c Add support for using keyword arguments with cached functions 9 years ago
Mark Haines a04cde613e Add a cache for get_push rules for user, fix cache invalidation 10 years ago
Mark Haines 2043527b9b Don't try to use a txn when not in one, remove spurious debug logging 10 years ago
Mark Haines 53447e9cd3 Add caches for things requested by the pushers 10 years ago
David Baker 7c549dd557 Add ID generator for push_rules_enable to #resolve SYN-378 10 years ago
Erik Johnston b036596b75 Prefer to use _simple_*. 10 years ago
Erik Johnston cd525c0f5a push_rules table expects an 'id' field 10 years ago
Erik Johnston 22d2f498fa Fix push rule bug: can't insert bool into small int column 10 years ago
Erik Johnston dc0c989ef4 Give sensible names for '_simple_...' transactions 10 years ago
Erik Johnston d7a0496f3e Convert storage layer to be mysql compatible 10 years ago
Paul "LeoNerd" Evans 59a5f012cc Also give _execute() a description 10 years ago
David Baker 04f8478aaa Add the master push rule for the break-my-push button. Allow server default rules to be disabled by default. 10 years ago
David Baker 2a45f3d448 Use if not results rather than len, as per feedback. 10 years ago
David Baker 6fab7bd2c1 s/user_name/user/ as per mjark's comment 10 years ago
David Baker 20436cdf75 Blank lines 10 years ago
David Baker 1959088156 Add API for getting/setting enabled-ness of push rules. 10 years ago
David Baker 944003021b whitespace 10 years ago
David Baker 94fa334b01 Add enable/disable overlay for push rules (REST API not yet hooked up) 10 years ago
Erik Johnston 4ebbaf0d43 Blunty replace json with simplejson 10 years ago
Mark Haines b085fac735 Code-style fixes 10 years ago
David Baker aaf50bf6f3 Give server default rules the 'default' attribute and fix various brokenness. 10 years ago
Mark Haines acb68a39e0 Code style fixes. 10 years ago
David Baker d5bdf3c0c7 Allow the push rule delete method to take more specifiers. 10 years ago
David Baker e78dd33292 Use %s instead of + 10 years ago
David Baker 93aac9bb7b Newline 10 years ago
David Baker 445ad9941e Redundant parens 10 years ago