Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Correctly mention previous copyright (#16820) | Erik Johnston | 2024-01-23 | 1 | -0/+1 |
| | | | | | During the migration the automated script to update the copyright headers accidentally got rid of some of the existing copyright lines. Reinstate them. | ||||
* | Update license headers | Patrick Cloke | 2023-11-21 | 1 | -11/+16 |
| | |||||
* | Remove redundant "coding: utf-8" lines (#9786) | Jonathan de Jong | 2021-04-14 | 1 | -1/+0 |
| | | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>` | ||||
* | Move storage classes into a main "data store". | Erik Johnston | 2019-10-21 | 1 | -698/+0 |
| | | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage. | ||||
* | Fix yields and copy instead of move push rules on room upgrade (#6144) | Andrew Morgan | 2019-10-02 | 1 | -10/+6 |
| | | | | | | | Copy push rules during a room upgrade from the old room to the new room, instead of deleting them from the old room. For instance, we've defined upgrading of a room multiple times to be possible, and push rules won't be transferred on the second upgrade if they're deleted during the first. Also fix some missing yields that probably broke things quite a bit. | ||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -10/+8 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -15/+15 |
| | |||||
* | Run black on the rest of the storage module (#4996) | Amber Brown | 2019-04-03 | 1 | -108/+186 |
| | |||||
* | Transfer local user's push rules on room upgrade (#4838) | Andrew Morgan | 2019-03-12 | 1 | -0/+57 |
| | | | Transfer push rules (notifications) on room upgrade | ||||
* | Merge remote-tracking branch 'origin/develop' into rav/remove_who_forgot_in_room | Richard van der Hoff | 2018-07-23 | 1 | -2/+5 |
|\ | |||||
| * | Use new getters | Erik Johnston | 2018-07-23 | 1 | -2/+5 |
| | | |||||
* | | Remove redundant checks on room forgottenness | Richard van der Hoff | 2018-07-23 | 1 | -13/+0 |
|/ | | | | Fixes #3550 | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -8/+10 |
| | |||||
* | Attempt to be more performant on PyPy (#3462) | Amber Brown | 2018-06-28 | 1 | -1/+2 |
| | |||||
* | Move storage functions for push calculations | Erik Johnston | 2018-02-27 | 1 | -3/+11 |
| | | | | This will allow push actions for an event to be calculated on workers. | ||||
* | Update copyright | Erik Johnston | 2018-02-23 | 1 | -0/+1 |
| | |||||
* | Split PushRulesStore | Erik Johnston | 2018-02-21 | 1 | -16/+55 |
| | |||||
* | Increase size of push rule caches | Erik Johnston | 2017-05-18 | 1 | -2/+2 |
| | |||||
* | Make get_if_app_services_interested_in_user faster | Erik Johnston | 2017-05-18 | 1 | -1/+1 |
| | |||||
* | Fix users claimed non-exclusively by an app service don't get notifications ↵ | Slipeer | 2017-05-11 | 1 | -1/+1 |
| | | | | #2211 | ||||
* | Revert "Remove unused import" | Erik Johnston | 2017-05-08 | 1 | -0/+1 |
| | | | | This reverts commit ab37bef83bebd7cdaeb7cfd98553d18883d09103. | ||||
* | Revert "We don't care about forgotten rooms" | Erik Johnston | 2017-05-08 | 1 | -0/+12 |
| | | | | This reverts commit ad8b316939d59230526e60660caf9094cff62c8f. | ||||
* | Revert "Speed up filtering of a single event in push" | Erik Johnston | 2017-05-08 | 1 | -3/+2 |
| | | | | This reverts commit 421fdf74609439edaaffce117436e6a6df147841. | ||||
* | Remove unused import | Erik Johnston | 2017-04-28 | 1 | -1/+0 |
| | |||||
* | We don't care about forgotten rooms | Erik Johnston | 2017-04-28 | 1 | -12/+0 |
| | |||||
* | Speed up filtering of a single event in push | Erik Johnston | 2017-04-28 | 1 | -2/+16 |
| | |||||
* | Ignore AS users when fetching push rules | Erik Johnston | 2016-11-23 | 1 | -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 imports | Erik Johnston | 2016-09-05 | 1 | -1/+0 |
| | |||||
* | Only fetch local pushers | Erik Johnston | 2016-09-05 | 1 | -1/+3 |
| | |||||
* | Make bulk_get_push_rules_for_room use get_joined_users_from_context cache | Erik Johnston | 2016-09-05 | 1 | -12/+7 |
| | |||||
* | Replace context.current_state with context.current_state_ids | Erik Johnston | 2016-08-25 | 1 | -6/+15 |
| | |||||
* | Rename to on_invalidate | Erik Johnston | 2016-08-19 | 1 | -3/+3 |
| | |||||
* | Make cache_context an explicit option | Erik Johnston | 2016-08-19 | 1 | -1/+1 |
| | |||||
* | Move _bulk_get_push_rules_for_room to storage layer | Erik Johnston | 2016-08-19 | 1 | -0/+56 |
| | |||||
* | Remove lru option | Erik Johnston | 2016-08-19 | 1 | -2/+2 |
| | |||||
* | Don't hit DB for noop replications queries | Erik Johnston | 2016-06-08 | 1 | -0/+3 |
| | |||||
* | Load push rules in storage layer, so that they get cached | Erik Johnston | 2016-06-03 | 1 | -1/+37 |
| | |||||
* | Force boolean | Erik Johnston | 2016-05-31 | 1 | -1/+2 |
| | |||||
* | Fix typo | Erik Johnston | 2016-05-31 | 1 | -1/+1 |
| | |||||
* | Change fix | Erik Johnston | 2016-05-31 | 1 | -2/+8 |
| | |||||
* | Add caches to bulk_get_push_rules* | Erik Johnston | 2016-05-31 | 1 | -6/+10 |
| | |||||
* | Use a stream id generator for backfilled ids | Mark Haines | 2016-04-01 | 1 | -1/+1 |
| | |||||
* | s/stream_ordering/event_stream_ordering/ in push | Mark Haines | 2016-03-04 | 1 | -25/+29 |
| | |||||
* | /FNARG/d | Mark Haines | 2016-03-04 | 1 | -1/+0 |
| | |||||
* | Hook up the push rules stream to account_data in /sync | Mark Haines | 2016-03-04 | 1 | -68/+57 |
| | |||||
* | Hook push rules up to the replication API | Mark Haines | 2016-03-02 | 1 | -0/+6 |
| | |||||
* | Add a stream for push rule updates | Mark Haines | 2016-03-01 | 1 | -40/+133 |
| | |||||
* | Load the current id in the IdGenerator constructor | Mark Haines | 2016-03-01 | 1 | -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 rules | Mark Haines | 2016-02-26 | 1 | -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 idempotent | Mark Haines | 2016-02-16 | 1 | -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 rules | Mark Haines | 2016-01-27 | 1 | -1/+2 |
| | |||||
* | Implement a _simple_select_many_batch | Erik Johnston | 2016-01-25 | 1 | -43/+20 |
| | |||||
* | Overlay the push_rules_enabled map for users, otherwise they won't be able ↵ | David Baker | 2016-01-22 | 1 | -0/+29 |
| | | | | to disable server default rules. | ||||
* | Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵ | Mark Haines | 2016-01-13 | 1 | -27/+27 |
| | | | | of the code | ||||
* | Merge remote-tracking branch 'origin/erikj/bulk_get_push_rules' into ↵ | Mark Haines | 2016-01-13 | 1 | -18/+8 |
|\ | | | | | | | | | | | | | markjh/table_name Conflicts: synapse/storage/push_rule.py | ||||
| * | bulk_get_push_rules should handle empty lists | Erik Johnston | 2016-01-13 | 1 | -21/+13 |
| | | |||||
* | | Remove the PushRuleTable and PushRuleEnableTable objects | Mark Haines | 2016-01-12 | 1 | -50/+33 |
|/ | |||||
* | Merge pull request #456 from matrix-org/store_event_actions | David Baker | 2016-01-08 | 1 | -0/+41 |
|\ | | | | | Send unread notification counts | ||||
| * | Address minor PR issues | David Baker | 2016-01-04 | 1 | -3/+3 |
| | | |||||
| * | Add bulk push rule evaluator which actually still evaluates rules one by ↵ | David Baker | 2015-12-22 | 1 | -0/+41 |
| | | | | | | | | one, but does far fewer db queries to fetch the rules | ||||
* | | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
|/ | |||||
* | Move all the caches into their own package, synapse.util.caches | Erik Johnston | 2015-08-11 | 1 | -1/+2 |
| | |||||
* | Change Cache to not use *args in its interface | Erik Johnston | 2015-08-07 | 1 | -8/+8 |
| | |||||
* | Add support for using keyword arguments with cached functions | Erik Johnston | 2015-07-27 | 1 | -5/+3 |
| | |||||
* | Add a cache for get_push rules for user, fix cache invalidation | Mark Haines | 2015-05-22 | 1 | -1/+17 |
| | |||||
* | Merge branch 'master' of github.com:matrix-org/synapse into develop | Erik Johnston | 2015-05-22 | 1 | -7/+14 |
|\ | |||||
| * | Don't try to use a txn when not in one, remove spurious debug logging | Mark Haines | 2015-05-21 | 1 | -3/+1 |
| | | |||||
| * | Add caches for things requested by the pushers | Mark Haines | 2015-05-21 | 1 | -7/+16 |
| | | |||||
* | | Add ID generator for push_rules_enable to #resolve SYN-378 | David Baker | 2015-05-14 | 1 | -2/+12 |
|/ | |||||
* | Prefer to use _simple_*. | Erik Johnston | 2015-05-11 | 1 | -44/+41 |
| | |||||
* | push_rules table expects an 'id' field | Erik Johnston | 2015-05-11 | 1 | -13/+12 |
| | |||||
* | Fix push rule bug: can't insert bool into small int column | Erik Johnston | 2015-05-10 | 1 | -1/+1 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into mysql | Erik Johnston | 2015-03-20 | 1 | -3/+6 |
|\ | |||||
| * | Give sensible names for '_simple_...' transactions | Erik Johnston | 2015-03-20 | 1 | -3/+6 |
| | | |||||
* | | Convert storage layer to be mysql compatible | Erik Johnston | 2015-03-19 | 1 | -2/+2 |
|/ | |||||
* | Also give _execute() a description | Paul "LeoNerd" Evans | 2015-03-11 | 1 | -1/+1 |
| | |||||
* | Add the master push rule for the break-my-push button. Allow server default ↵ | David Baker | 2015-03-10 | 1 | -22/+5 |
| | | | | rules to be disabled by default. | ||||
* | Use if not results rather than len, as per feedback. | David Baker | 2015-03-04 | 1 | -1/+1 |
| | |||||
* | s/user_name/user/ as per mjark's comment | David Baker | 2015-03-02 | 1 | -3/+3 |
| | |||||
* | Blank lines | David Baker | 2015-03-02 | 1 | -0/+1 |
| | |||||
* | Add API for getting/setting enabled-ness of push rules. | David Baker | 2015-02-26 | 1 | -0/+24 |
| | |||||
* | whitespace | David Baker | 2015-02-26 | 1 | -1/+2 |
| | |||||
* | Add enable/disable overlay for push rules (REST API not yet hooked up) | David Baker | 2015-02-25 | 1 | -0/+20 |
| | |||||
* | Blunty replace json with simplejson | Erik Johnston | 2015-02-11 | 1 | -1/+1 |
| | |||||
* | Code-style fixes | Mark Haines | 2015-02-10 | 1 | -1/+3 |
| | |||||
* | Give server default rules the 'default' attribute and fix various brokenness. | David Baker | 2015-02-05 | 1 | -2/+5 |
| | |||||
* | Code style fixes. | Mark Haines | 2015-01-29 | 1 | -4/+5 |
| | |||||
* | Allow the push rule delete method to take more specifiers. | David Baker | 2015-01-28 | 1 | -8/+11 |
| | |||||
* | Use %s instead of + | David Baker | 2015-01-28 | 1 | -2/+2 |
| | |||||
* | Newline | David Baker | 2015-01-28 | 1 | -0/+1 |
| | |||||
* | Redundant parens | David Baker | 2015-01-28 | 1 | -1/+1 |
| | |||||
* | Add API to delete push rules. | David Baker | 2015-01-23 | 1 | -0/+9 |
| | |||||
* | Fix adding rules without before/after & add the rule that we couldn't find ↵ | David Baker | 2015-01-23 | 1 | -3/+5 |
| | | | | to the error | ||||
* | As yet fairly untested GET API for push rules | David Baker | 2015-01-22 | 1 | -4/+4 |
| | |||||
* | Insufficient newlines | David Baker | 2015-01-22 | 1 | -0/+1 |
| | |||||
* | Add rest API & store for creating push rules | David Baker | 2015-01-22 | 1 | -0/+196 |
Also make unrecognised request error look more like synapse errors because it makes it easier to throw them from within rest classes. |