Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Flatten the synapse.rest.client package (#10600) | reivilibre | 2021-08-17 | 1 | -354/+0 |
| | |||||
* | 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>` | ||||
* | Remove unused OPTIONS handlers. (#8621) | Patrick Cloke | 2020-10-22 | 1 | -3/+0 |
| | | | | The handling of OPTIONS requests was consolidated in #7534, but the endpoint specific handlers were not removed. | ||||
* | Simplify super() calls to Python 3 syntax. (#8344) | Patrick Cloke | 2020-09-18 | 1 | -1/+1 |
| | | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py | ||||
* | Don't remember `enabled` of deleted push rules and properly return 404 for ↵ | reivilibre | 2020-09-09 | 1 | -2/+13 |
| | | | | | | | missing push rules in `.../actions` and `.../enabled` (#7796) Signed-off-by: Olivier Wilkinson (reivilibre) <olivier@librepush.net> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> | ||||
* | Remove `ChainedIdGenerator`. (#8123) | Erik Johnston | 2020-08-19 | 1 | -1/+1 |
| | | | | | It's just a thin wrapper around two ID gens to make `get_current_token` and `get_next` return tuples. This can easily be replaced by calling the appropriate methods on the underlying ID gens directly. | ||||
* | Convert pusher databases to async/await. (#8075) | Patrick Cloke | 2020-08-14 | 1 | -4/+5 |
| | |||||
* | Incorporate review | Brendan Abolivier | 2020-08-06 | 1 | -2/+2 |
| | |||||
* | Fix PUT /pushrules to use the right rule IDs | Brendan Abolivier | 2020-08-03 | 1 | -2/+9 |
| | |||||
* | Back out MSC2625 implementation (#7761) | Brendan Abolivier | 2020-07-01 | 1 | -2/+2 |
| | |||||
* | Use temporary prefixes as per the MSC | Brendan Abolivier | 2020-06-10 | 1 | -1/+1 |
| | |||||
* | Rename dont_push into mark_unread | Brendan Abolivier | 2020-06-10 | 1 | -2/+2 |
| | |||||
* | Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957) | Patrick Cloke | 2020-02-21 | 1 | -3/+3 |
| | | | | Ensure good comprehension hygiene using flake8-comprehensions. | ||||
* | Port rest/v1 to async/await | Erik Johnston | 2019-12-05 | 1 | -14/+10 |
| | |||||
* | Remove unnecessary parentheses around return statements (#5931) | Andrew Morgan | 2019-08-30 | 1 | -5/+5 |
| | | | | | Python will return a tuple whether there are parentheses around the returned values or not. I'm just sick of my editor complaining about this all over the place :) | ||||
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -5/+5 |
| | |||||
* | Run Black. (#5482) | Amber Brown | 2019-06-20 | 1 | -69/+50 |
| | |||||
* | Unify v1 and v2 REST client APIs (#5226) | Amber Brown | 2019-06-03 | 1 | -6/+6 |
| | |||||
* | Remove usage of request.postpath | Erik Johnston | 2019-04-16 | 1 | -8/+8 |
| | | | | | | | This is an undocumented variable in twisted, and relies on the servlet being mounted in the right way. This also breaks getting push rules on workers. | ||||
* | Only handle GET requests for /push_rules | Erik Johnston | 2019-04-15 | 1 | -0/+7 |
| | |||||
* | Fix non-ASCII pushrules (#4248) | Amber Brown | 2018-12-04 | 1 | -12/+23 |
| | |||||
* | Port rest/ to Python 3 (#3823) | Amber Brown | 2018-09-12 | 1 | -12/+12 |
| | |||||
* | Fix develop because I broke it :( (#3535) | Amber Brown | 2018-07-14 | 1 | -2/+2 |
| | |||||
* | Use parse_{int,str} and assert from http.servlet | Krombel | 2018-07-13 | 1 | -3/+3 |
| | | | | | | | parse_integer and parse_string can take a request and raise errors in case we have wrong or missing params. This PR tries to use them more to deduplicate some code and make it better readable | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -7/+9 |
| | |||||
* | Load push rules in storage layer, so that they get cached | Erik Johnston | 2016-06-03 | 1 | -4/+2 |
| | |||||
* | Fix regression where synapse checked whether push rules were valid JSON ↵ | Mark Haines | 2016-03-14 | 1 | -2/+2 |
| | | | | before the compatibility hack that handled clients sending invalid JSON | ||||
* | Add a parse_json_object function | Mark Haines | 2016-03-09 | 1 | -13/+3 |
| | | | | | to deduplicate all the copy+pasted _parse_json functions. Also document the parse_.* functions. | ||||
* | Hook up the push rules stream to account_data in /sync | Mark Haines | 2016-03-04 | 1 | -1/+1 |
| | |||||
* | Move the code for formatting push rules into a separate function | Mark Haines | 2016-03-03 | 1 | -86/+4 |
| | |||||
* | Hook up the push rules to the notifier | Mark Haines | 2016-03-03 | 1 | -15/+29 |
| | |||||
* | Add support for changing the actions for default rules | Mark Haines | 2016-02-26 | 1 | -4/+27 |
| | | | | | | 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 sure we return a JSON object when returning the values of specif… | Mark Haines | 2016-02-25 | 1 | -1/+3 |
| | | | | …ic keys from a push rule | ||||
* | Remove unused get_rule_attr method | Mark Haines | 2016-02-24 | 1 | -8/+0 |
| | |||||
* | Remove dead code for setting device specific rules. | Mark Haines | 2016-02-18 | 1 | -85/+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 typo in request validation for adding push rules. | Mark Haines | 2016-02-16 | 1 | -1/+1 |
| | |||||
* | Fix adding push rules relative to other rules | Mark Haines | 2016-01-27 | 1 | -5/+10 |
| | |||||
* | Add missing yield in push_rules set enabled | Mark Haines | 2016-01-25 | 1 | -2/+2 |
| | |||||
* | Take a deepcopy of push rules before mutating them | Erik Johnston | 2016-01-19 | 1 | -1/+3 |
| | |||||
* | Use static for const dicts | Erik Johnston | 2016-01-18 | 1 | -1/+7 |
| | |||||
* | Remove internal ids | Erik Johnston | 2016-01-18 | 1 | -0/+4 |
| | |||||
* | Fix enabling & disabling push rules | David Baker | 2016-01-14 | 1 | -1/+1 |
| | |||||
* | Rename 'user_name' to 'user_id' in push to make it consistent with the rest ↵ | Mark Haines | 2016-01-13 | 1 | -5/+5 |
| | | | | of the code | ||||
* | Introduce a Requester object | Daniel Wagner-Hall | 2016-01-11 | 1 | -6/+7 |
| | | | | | | | | | This tracks data about the entity which made the request. This is instead of passing around a tuple, which requires call-site modifications every time a new piece of optional context is passed around. I tried to introduce a User object. I gave up. | ||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Take object not bool | Daniel Wagner-Hall | 2015-12-07 | 1 | -0/+5 |
| | | | | | | Allows bool as legacy fallback See https://github.com/matrix-org/matrix-doc/pull/212 | ||||
* | Host /unstable and /r0 versions of r0 APIs | Daniel Wagner-Hall | 2015-12-01 | 1 | -2/+2 |
| | |||||
* | Allow guests to register and call /events?room_id= | Daniel Wagner-Hall | 2015-11-04 | 1 | -3/+3 |
| | | | | | | | This follows the same flows-based flow as regular registration, but as the only implemented flow has no requirements, it auto-succeeds. In the future, other flows (e.g. captcha) may be required, so clients should treat this like the regular registration flow choices. | ||||
* | SYN-390: Don't modify the dictionary returned from the data store | Mark Haines | 2015-05-26 | 1 | -5/+8 |
| | |||||
* | Add the master push rule for the break-my-push button. Allow server default ↵ | David Baker | 2015-03-10 | 1 | -1/+4 |
| | | | | rules to be disabled by default. | ||||
* | s/user_name/user/ as per mjark's comment | David Baker | 2015-03-02 | 1 | -3/+3 |
| | |||||
* | Oops, missed a replacement. | David Baker | 2015-03-02 | 1 | -1/+1 |
| | |||||
* | Blank lines | David Baker | 2015-03-02 | 1 | -0/+1 |
| | |||||
* | It's set_tweak now, not set_sound | David Baker | 2015-02-27 | 1 | -1/+1 |
| | |||||
* | Add API for getting/setting enabled-ness of push rules. | David Baker | 2015-02-26 | 1 | -5/+49 |
| | |||||
* | SYWEB-278 Don't allow rules with no rule_id. | David Baker | 2015-02-25 | 1 | -1/+1 |
| | |||||
* | Blunty replace json with simplejson | Erik Johnston | 2015-02-11 | 1 | -1/+1 |
| | |||||
* | Code-style fixes | Mark Haines | 2015-02-10 | 1 | -5/+13 |
| | |||||
* | priority class now dealt with in namespaced rule_id | David Baker | 2015-02-05 | 1 | -4/+0 |
| | |||||
* | Give server default rules the 'default' attribute and fix various brokenness. | David Baker | 2015-02-05 | 1 | -1/+3 |
| | |||||
* | Server default rules now of all kinds rather than all being at lowest prio. | David Baker | 2015-02-05 | 1 | -39/+32 |
| | |||||
* | namespace rule IDs to be unique within their scope and rule type. | David Baker | 2015-02-05 | 1 | -123/+129 |
| | |||||
* | More s/instance_handle/profile_tag/ | David Baker | 2015-02-04 | 1 | -5/+5 |
| | |||||
* | s/instance_handle/profile_tag/ | David Baker | 2015-02-03 | 1 | -14/+14 |
| | |||||
* | Spit out server default rules too. | David Baker | 2015-01-30 | 1 | -4/+12 |
| | |||||
* | Add glob asterisks when running rules. | David Baker | 2015-01-30 | 1 | -4/+1 |
| | | | | | | Means that now you can't do exact matches even in override rules, but I think we can live with that. Advantage is that you'll now always get back what was put in to the API. | ||||
* | Renumber priority classes so we can use 0 for defaults. | David Baker | 2015-01-29 | 1 | -5/+5 |
| | |||||
* | Code style fixes. | Mark Haines | 2015-01-29 | 1 | -7/+22 |
| | |||||
* | Change uses of get_user_by_req because it returns a tuple now. | David Baker | 2015-01-28 | 1 | -3/+3 |
| | |||||
* | spaces | David Baker | 2015-01-28 | 1 | -2/+2 |
| | |||||
* | Unnecessary newlines. | David Baker | 2015-01-28 | 1 | -5/+0 |
| | |||||
* | Unnecessary newline. | David Baker | 2015-01-28 | 1 | -1/+0 |
| | |||||
* | Better style | David Baker | 2015-01-28 | 1 | -2/+5 |
| | |||||
* | Another superfluous newline | David Baker | 2015-01-28 | 1 | -1/+0 |
| | |||||
* | Ah, the comma of doom. | David Baker | 2015-01-28 | 1 | -1/+1 |
| | |||||
* | Brackets are nicer | David Baker | 2015-01-28 | 1 | -2/+2 |
| | |||||
* | Oops, bad merge: needed to change the base class of the rest servlets too. | David Baker | 2015-01-28 | 1 | -2/+2 |
| | |||||
* | Add API to delete push rules. | David Baker | 2015-01-23 | 1 | -1/+40 |
| | |||||
* | Use push settings! | David Baker | 2015-01-23 | 1 | -14/+29 |
| | |||||
* | more pep8 | David Baker | 2015-01-23 | 1 | -2/+4 |
| | |||||
* | Make string format tuple an actual tuple | David Baker | 2015-01-23 | 1 | -1/+1 |
| | |||||
* | redundant parens | David Baker | 2015-01-23 | 1 | -1/+1 |
| | |||||
* | stray space | David Baker | 2015-01-23 | 1 | -1/+1 |
| | |||||
* | make per-device rules work | David Baker | 2015-01-23 | 1 | -5/+15 |
| | |||||
* | Add slightly pedantic trailing slash error. | David Baker | 2015-01-23 | 1 | -2/+13 |
| | |||||
* | Fix adding rules without before/after & add the rule that we couldn't find ↵ | David Baker | 2015-01-23 | 1 | -2/+2 |
| | | | | to the error | ||||
* | This really serves me right for ever making a map called 'map'. | David Baker | 2015-01-23 | 1 | -1/+1 |
| | |||||
* | As yet fairly untested GET API for push rules | David Baker | 2015-01-22 | 1 | -10/+128 |
| | |||||
* | Merge branch 'develop' into pushers | David Baker | 2015-01-22 | 1 | -0/+195 |
Conflicts: synapse/rest/__init__.py |