summary refs log tree commit diff
path: root/synapse/push/push_rule_evaluator.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow configuration of Synapse's cache without using synctl or environment ↵Amber Brown2020-05-111-2/+2
| | | | variables (#6391)
* Do not treat display names as globs for push rules. (#7271)Patrick Cloke2020-04-161-30/+39
|
* Remove usage of deprecated logger.warn method from codebase (#6271)Andrew Morgan2019-10-311-2/+2
| | | Replace every instance of `logger.warn` with `logger.warning` as the former is deprecated.
* Run Black. (#5482)Amber Brown2019-06-201-31/+26
|
* Clean up event accesses and testsErik Johnston2018-11-021-2/+2
| | | | | This is in preparation to refactor FrozenEvent to support different event formats for different room versions
* run isortAmber Brown2018-07-091-2/+2
|
* Merge remote-tracking branch 'origin/develop' into 3218-official-promAmber Brown2018-05-281-1/+3
|\
| * Replace some more comparisons with sixAdrian Tschira2018-05-191-1/+3
| | | | | | | | | | | | plus a bonus b"" string I missed last time Signed-off-by: Adrian Tschira <nota@notafile.com>
* | replacing portionsAmber Brown2018-05-211-1/+1
|/
* pep8David Baker2017-10-101-1/+1
|
* Use notification levels in power_levelsDavid Baker2017-10-101-6/+14
| | | | | | Rather than making the condition directly require a specific power level. This way the level require to notify a room can be configured per room.
* What year is it!? Who's the president!?David Baker2017-10-101-1/+1
|
* pep8David Baker2017-10-051-0/+3
|
* Support for channel notificationsDavid Baker2017-10-051-7/+18
| | | | | Add condition type to check the sender's power level and add a base rule using it for @channel notifications.
* Use better method for word boundary searchingDavid Baker2017-10-051-11/+3
| | | | From https://github.com/matrix-org/matrix-js-sdk/commit/ebc95667b8a5777d13e5d3c679972bedae022fd5
* pep8David Baker2017-10-051-0/+1
|
* Fix notif kws that start/end with non-word charsDavid Baker2017-10-051-2/+21
| | | | | | | Only prepend / append word bounary characters if the search expression starts or ends with a word character, otherwise they don't work because there's no word bounary between whitespace and a non-word char.
* Fix caching error in the push evaluatorRichard van der Hoff2017-07-051-1/+3
| | | | | | | | | | Initialising `result` to `{}` in the parameters meant that every call to _flatten_dict used the *same* target dictionary. I'm hopeful this will fix https://github.com/matrix-org/synapse/issues/2270, but I suspect it won't. (This code seems to have been here since forever, unlike the bug, and I don't really think it explains the observed behaviour). Still, it makes it hard to investigate the problem.
* Cache glob to regex at a higher level for pushErik Johnston2017-03-291-47/+57
|
* Remove code that's now been obsoleted or moved elsewhereDavid Baker2016-04-071-126/+8
|
* Don't ignore the obey overlay if the rule has an enabled attribute of FalseDavid Baker2016-03-311-2/+3
| | | | Fixes https://github.com/vector-im/vector-web/issues/1244
* Fix relative imports so they work in both py3 and py27Mark Haines2016-03-081-2/+2
|
* Remove dead code for setting device specific rules.Mark Haines2016-02-181-10/+5
| | | | | | It wasn't possible to hit the code from the API because of a typo in parsing the request path. Since no-one was using the feature we might as well remove the dead code.
* Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-021-1/+1
|
* Change regex cache size to 5000Erik Johnston2016-01-191-1/+1
|
* Add regex cache. Only caculate push actions for users that have sent read ↵Erik Johnston2016-01-191-3/+17
| | | | receipts, and are on that server
* Handle glob -> regex errorsErik Johnston2016-01-191-29/+33
|
* Preserve truthinessErik Johnston2016-01-181-1/+2
|
* You need to escape backslashesErik Johnston2016-01-181-2/+2
|
* Fix branch didn't check word_boundaryErik Johnston2016-01-181-3/+9
|
* Don't split at word boundaries, actually use regexErik Johnston2016-01-181-62/+47
|
* Drop log levelsErik Johnston2016-01-181-2/+2
|
* Add comments and remove dead codeErik Johnston2016-01-181-12/+11
|
* Use static for const dictsErik Johnston2016-01-181-6/+14
|
* Don't edit rulesetErik Johnston2016-01-181-5/+4
|
* Make notifications go quickerErik Johnston2016-01-181-76/+150
|
* Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵Mark Haines2016-01-131-12/+12
| | | | of the code
* Merge pull request #456 from matrix-org/store_event_actionsDavid Baker2016-01-081-7/+15
|\ | | | | Send unread notification counts
| * Add bulk push rule evaluator which actually still evaluates rules one by ↵David Baker2015-12-221-5/+8
| | | | | | | | one, but does far fewer db queries to fetch the rules
| * Store nothing instead of ['dont_notify'] for events with no notification ↵David Baker2015-12-101-2/+7
| | | | | | | | 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.
* | copyrightsMatthew Hodgson2016-01-071-1/+1
|/
* Split out the push rule evaluator into a separate file so it can be more ↵David Baker2015-12-091-0/+224
readily reused. Should be functionally identical.