summary refs log tree commit diff
path: root/synapse/storage/push_rule.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Remove unused import"Erik Johnston2017-05-081-0/+1
| | | | This reverts commit ab37bef83bebd7cdaeb7cfd98553d18883d09103.
* Revert "We don't care about forgotten rooms"Erik Johnston2017-05-081-0/+12
| | | | This reverts commit ad8b316939d59230526e60660caf9094cff62c8f.
* Revert "Speed up filtering of a single event in push"Erik Johnston2017-05-081-3/+2
| | | | This reverts commit 421fdf74609439edaaffce117436e6a6df147841.
* Remove unused importErik Johnston2017-04-281-1/+0
|
* We don't care about forgotten roomsErik Johnston2017-04-281-12/+0
|
* Speed up filtering of a single event in pushErik Johnston2017-04-281-2/+16
|
* Ignore AS users when fetching push rulesErik Johnston2016-11-231-2/+10
| | | | | By ignoring AS users early on when fetching push rules for a room we can avoid needlessly hitting the DB and filling up the caches.
* Remove unused importsErik Johnston2016-09-051-1/+0
|
* Only fetch local pushersErik Johnston2016-09-051-1/+3
|
* Make bulk_get_push_rules_for_room use get_joined_users_from_context cacheErik Johnston2016-09-051-12/+7
|
* Replace context.current_state with context.current_state_idsErik Johnston2016-08-251-6/+15
|
* Rename to on_invalidateErik Johnston2016-08-191-3/+3
|
* Make cache_context an explicit optionErik Johnston2016-08-191-1/+1
|
* Move _bulk_get_push_rules_for_room to storage layerErik Johnston2016-08-191-0/+56
|
* Remove lru optionErik Johnston2016-08-191-2/+2
|
* Don't hit DB for noop replications queriesErik Johnston2016-06-081-0/+3
|
* Load push rules in storage layer, so that they get cachedErik Johnston2016-06-031-1/+37
|
* Force booleanErik Johnston2016-05-311-1/+2
|
* Fix typoErik Johnston2016-05-311-1/+1
|
* Change fixErik Johnston2016-05-311-2/+8
|
* Add caches to bulk_get_push_rules*Erik Johnston2016-05-311-6/+10
|
* Use a stream id generator for backfilled idsMark Haines2016-04-011-1/+1
|
* s/stream_ordering/event_stream_ordering/ in pushMark Haines2016-03-041-25/+29
|
* /FNARG/dMark Haines2016-03-041-1/+0
|
* Hook up the push rules stream to account_data in /syncMark Haines2016-03-041-68/+57
|
* Hook push rules up to the replication APIMark Haines2016-03-021-0/+6
|
* Add a stream for push rule updatesMark Haines2016-03-011-40/+133
|
* Load the current id in the IdGenerator constructorMark Haines2016-03-011-2/+2
| | | | | | | | | Rather than loading them lazily. This allows us to remove all the yield statements and spurious arguments for the get_next methods. It also allows us to replace all instances of get_next_txn with get_next since get_next no longer needs to access the db.
* Add support for changing the actions for default rulesMark Haines2016-02-261-0/+25
| | | | | | See matrix-org/matrix-doc#283 Works by adding dummy rules to the push rules table with a negative priority class and then using those rules to clobber the default rule actions when adding the default rules in ``list_with_base_rules``
* Make adding push rules idempotentMark Haines2016-02-161-82/+86
| | | | | | Also remove the **kwargs from the add_push_rule method. Fixes https://matrix.org/jira/browse/SYN-391
* Fix adding push rules relative to other rulesMark Haines2016-01-271-1/+2
|
* Implement a _simple_select_many_batchErik Johnston2016-01-251-43/+20
|
* Overlay the push_rules_enabled map for users, otherwise they won't be able ↵David Baker2016-01-221-0/+29
| | | | to disable server default rules.
* Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵Mark Haines2016-01-131-27/+27
| | | | of the code
* Merge remote-tracking branch 'origin/erikj/bulk_get_push_rules' into ↵Mark Haines2016-01-131-18/+8
|\ | | | | | | | | | | | | markjh/table_name Conflicts: synapse/storage/push_rule.py
| * bulk_get_push_rules should handle empty listsErik Johnston2016-01-131-21/+13
| |
* | Remove the PushRuleTable and PushRuleEnableTable objectsMark Haines2016-01-121-50/+33
|/
* Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-081-0/+41
|\ | | | | Send unread notification counts
| * Address minor PR issuesDavid Baker2016-01-041-3/+3
| |
| * Add bulk push rule evaluator which actually still evaluates rules one by ↵David Baker2015-12-221-0/+41
| | | | | | | | one, but does far fewer db queries to fetch the rules
* | copyrightsMatthew Hodgson2016-01-071-1/+1
|/
* Move all the caches into their own package, synapse.util.cachesErik Johnston2015-08-111-1/+2
|
* Change Cache to not use *args in its interfaceErik Johnston2015-08-071-8/+8
|
* Add support for using keyword arguments with cached functionsErik Johnston2015-07-271-5/+3
|
* Add a cache for get_push rules for user, fix cache invalidationMark Haines2015-05-221-1/+17
|
* Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2015-05-221-7/+14
|\
| * Don't try to use a txn when not in one, remove spurious debug loggingMark Haines2015-05-211-3/+1
| |
| * Add caches for things requested by the pushersMark Haines2015-05-211-7/+16
| |
* | Add ID generator for push_rules_enable to #resolve SYN-378David Baker2015-05-141-2/+12
|/
* Prefer to use _simple_*.Erik Johnston2015-05-111-44/+41
|
* push_rules table expects an 'id' fieldErik Johnston2015-05-111-13/+12
|
* Fix push rule bug: can't insert bool into small int columnErik Johnston2015-05-101-1/+1
|
* Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-03-201-3/+6
|\
| * Give sensible names for '_simple_...' transactionsErik Johnston2015-03-201-3/+6
| |
* | Convert storage layer to be mysql compatibleErik Johnston2015-03-191-2/+2
|/
* Also give _execute() a descriptionPaul "LeoNerd" Evans2015-03-111-1/+1
|
* Add the master push rule for the break-my-push button. Allow server default ↵David Baker2015-03-101-22/+5
| | | | rules to be disabled by default.
* Use if not results rather than len, as per feedback.David Baker2015-03-041-1/+1
|
* s/user_name/user/ as per mjark's commentDavid Baker2015-03-021-3/+3
|
* Blank linesDavid Baker2015-03-021-0/+1
|
* Add API for getting/setting enabled-ness of push rules.David Baker2015-02-261-0/+24
|
* whitespaceDavid Baker2015-02-261-1/+2
|
* Add enable/disable overlay for push rules (REST API not yet hooked up)David Baker2015-02-251-0/+20
|
* Blunty replace json with simplejsonErik Johnston2015-02-111-1/+1
|
* Code-style fixesMark Haines2015-02-101-1/+3
|
* Give server default rules the 'default' attribute and fix various brokenness.David Baker2015-02-051-2/+5
|
* Code style fixes.Mark Haines2015-01-291-4/+5
|
* Allow the push rule delete method to take more specifiers.David Baker2015-01-281-8/+11
|
* Use %s instead of +David Baker2015-01-281-2/+2
|
* NewlineDavid Baker2015-01-281-0/+1
|
* Redundant parensDavid Baker2015-01-281-1/+1
|
* Add API to delete push rules.David Baker2015-01-231-0/+9
|
* Fix adding rules without before/after & add the rule that we couldn't find ↵David Baker2015-01-231-3/+5
| | | | to the error
* As yet fairly untested GET API for push rulesDavid Baker2015-01-221-4/+4
|
* Insufficient newlinesDavid Baker2015-01-221-0/+1
|
* Add rest API & store for creating push rulesDavid Baker2015-01-221-0/+196
Also make unrecognised request error look more like synapse errors because it makes it easier to throw them from within rest classes.