Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace returnValue with return (#5736) | Amber Brown | 2019-07-23 | 1 | -8/+6 |
| | |||||
* | Expose DataStore._get_events as get_events_as_list | Erik Johnston | 2019-05-14 | 1 | -2/+2 |
| | | | | This is in preparation for reaction work which requires it. | ||||
* | Run black on the rest of the storage module (#4996) | Amber Brown | 2019-04-03 | 1 | -37/+30 |
| | |||||
* | Make EventStore inherit from EventFederationStore | Richard van der Hoff | 2018-07-26 | 1 | -1/+1 |
| | | | | | | | | (since it uses methods therein) Turns out that we had a bunch of things which were incorrectly importing EventWorkerStore from events.py rather than events_worker.py, which broke once I removed the import into events.py. | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -2/+4 |
| | |||||
* | Attempt to be more performant on PyPy (#3462) | Amber Brown | 2018-06-28 | 1 | -1/+1 |
| | |||||
* | Remove ability for AS users to call /events and /sync | Erik Johnston | 2018-03-05 | 1 | -77/+5 |
| | | | | | | | This functionality has been deprecated for a while as well as being broken for a while. Instead of fixing it lets just remove it entirely. See: https://github.com/matrix-org/matrix-doc/issues/1144 | ||||
* | Add comment | Erik Johnston | 2018-02-27 | 1 | -0/+4 |
| | |||||
* | Update copyright | Erik Johnston | 2018-02-23 | 1 | -0/+1 |
| | |||||
* | Split AS stores | Erik Johnston | 2018-02-21 | 1 | -9/+17 |
| | |||||
* | Add replication http endpoint for event sending | Erik Johnston | 2018-02-07 | 1 | -0/+13 |
| | |||||
* | Make __init__ consitstent across Store heirarchy | Richard van der Hoff | 2017-11-13 | 1 | -4/+4 |
| | | | | | | Add db_conn parameters to the `__init__` methods of the *Store classes, so that they are all consistent, which makes the multiple inheritance work correctly (and so that we can later extract mixins which can be used in the slavedstores) | ||||
* | Initialise exclusive_user_regex | Erik Johnston | 2017-06-21 | 1 | -15/+20 |
| | |||||
* | Make get_if_app_services_interested_in_user faster | Erik Johnston | 2017-05-18 | 1 | -9/+22 |
| | |||||
* | Fix users claimed non-exclusively by an app service don't get notifications ↵ | Slipeer | 2017-05-11 | 1 | -2/+5 |
| | | | | #2211 | ||||
* | Ignore AS users when fetching push rules | Erik Johnston | 2016-11-23 | 1 | -0/+8 |
| | | | | | 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. | ||||
* | storage/appservice: make appservice methods only relying on the cache ↵ | Patrik Oldsberg | 2016-10-06 | 1 | -6/+6 |
| | | | | synchronous | ||||
* | Make get_new_events_for_appservice use indices | Erik Johnston | 2016-08-19 | 1 | -2/+5 |
| | |||||
* | Add appservice worker | Erik Johnston | 2016-08-18 | 1 | -74/+71 |
| | |||||
* | Make AppserviceHandler stream events from database | Erik Johnston | 2016-08-18 | 1 | -0/+39 |
| | | | | | | | | | This is for two reasons: 1. Suppresses duplicates correctly, as the notifier doesn't do any duplicate suppression. 2. Makes it easier to connect the AppserviceHandler to the replication stream. | ||||
* | Fix AS retries, but with correct ordering | Erik Johnston | 2016-06-07 | 1 | -2/+2 |
| | |||||
* | Fix AS retries | Erik Johnston | 2016-06-07 | 1 | -2/+2 |
| | |||||
* | Remove event fetching from DB threads | Erik Johnston | 2016-06-03 | 1 | -7/+14 |
| | |||||
* | Move the functions for parsing app service config | Mark Haines | 2016-05-17 | 1 | -102/+3 |
| | |||||
* | Mark AS users with their AS's ID | Daniel Wagner-Hall | 2016-02-11 | 1 | -13/+21 |
| | |||||
* | Add descriptions | Erik Johnston | 2016-02-03 | 1 | -1/+2 |
| | |||||
* | Require ID and as_token be unique for ASs | Daniel Wagner-Hall | 2016-01-14 | 1 | -1/+25 |
| | | | | | Defaults ID to as_token if not specified. This will change when IDs are fully supported. | ||||
* | Merge pull request #494 from matrix-org/daniel/2 | Daniel Wagner-Hall | 2016-01-14 | 1 | -0/+1 |
|\ | | | | | Don't start server if ASes are invalidly configured | ||||
| * | Don't start server if ASes are invalidly configured | Daniel Wagner-Hall | 2016-01-13 | 1 | -0/+1 |
| | | |||||
* | | Delete unused code | Daniel Wagner-Hall | 2016-01-13 | 1 | -59/+0 |
|/ | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | txn.execute doesn't return cursors | Erik Johnston | 2015-04-29 | 1 | -4/+4 |
| | |||||
* | txn.execute doesn't return cursors | Erik Johnston | 2015-04-29 | 1 | -2/+2 |
| | |||||
* | Fix invalid SQL to work in postgres land | Erik Johnston | 2015-04-29 | 1 | -4/+6 |
| | |||||
* | Go back to storing JSON in TEXT | Erik Johnston | 2015-04-16 | 1 | -3/+1 |
| | |||||
* | Merge branch 'develop' of github.com:matrix-org/synapse into mysql | Erik Johnston | 2015-04-07 | 1 | -163/+296 |
|\ | |||||
| * | Add same user_id char checks as registration. | Kegan Dougal | 2015-03-31 | 1 | -1/+7 |
| | | |||||
| * | Use a sender localpart instead of a user ID. | Kegan Dougal | 2015-03-31 | 1 | -2/+9 |
| | | | | | | | | | | Form the user ID at runtime instead, This gives less room for error in AS config files since they cannot specify the domain of another HS. | ||||
| * | Edit SQL schema to use string IDs not ints. Use token as ID. Update tests. | Kegan Dougal | 2015-03-31 | 1 | -9/+14 |
| | | |||||
| * | Fix tests and missing returns on deferreds. | Kegan Dougal | 2015-03-31 | 1 | -7/+11 |
| | | |||||
| * | Remove more reg/unreg methods. Read config not database for cache. | Kegan Dougal | 2015-03-31 | 1 | -160/+59 |
| | | |||||
| * | Fixes from PR comments | Kegan Dougal | 2015-03-26 | 1 | -2/+2 |
| | | |||||
| * | Set the service ID as soon as it is known. | Kegan Dougal | 2015-03-16 | 1 | -3/+4 |
| | | |||||
| * | Minor PR comment tweaks. | Kegan Dougal | 2015-03-16 | 1 | -3/+3 |
| | | |||||
| * | Merge branch 'develop' into application-services-txn-reliability | Kegan Dougal | 2015-03-16 | 1 | -2/+4 |
| |\ | | | | | | | | | | | | | Conflicts: synapse/storage/appservice.py | ||||
| * | | Fix remaining scheduler bugs. Add more informative logging. | Kegan Dougal | 2015-03-10 | 1 | -2/+3 |
| | | | |||||
| * | | Remove unused import | Kegan Dougal | 2015-03-09 | 1 | -1/+0 |
| | | | |||||
| * | | Bug fixes whilst putting it all together | Kegan Dougal | 2015-03-09 | 1 | -5/+4 |
| | | | |||||
| * | | Use event IDs instead of dumping event content in the txns table. | Kegan Dougal | 2015-03-09 | 1 | -6/+8 |
| | | | |||||
| * | | Finish appservice txn storage impl and tests. | Kegan Dougal | 2015-03-09 | 1 | -15/+70 |
| | | | |||||
| * | | Implement create_appservice_txn with tests. | Kegan Dougal | 2015-03-09 | 1 | -4/+42 |
| | | | |||||
| * | | Partially implement txn store methods with tests. | Kegan Dougal | 2015-03-09 | 1 | -17/+44 |
| | | | |||||
| * | | Start implementing ApplicationServiceTransactionStore | Kegan Dougal | 2015-03-06 | 1 | -1/+5 |
| | | | |||||
| * | | Assign the AS ID from the database; replace old placeholder txn id. | Kegan Dougal | 2015-03-06 | 1 | -2/+3 |
| | | | |||||
| * | | Add appservice txns sql schema | Kegan Dougal | 2015-03-06 | 1 | -0/+6 |
| | | | |||||
| * | | Apply clarity and docstrings | Kegan Dougal | 2015-03-06 | 1 | -1/+13 |
| | | | |||||
| * | | Finish synapse.appservice.scheduler implementation. | Kegan Dougal | 2015-03-06 | 1 | -0/+22 |
| | | | | | | | | | | | | | | | With tests to assert behaviour. Not hooked up yet. Stub datastore methods not implemented yet. | ||||
| * | | Flesh out more stub functions. | Kegan Dougal | 2015-03-06 | 1 | -2/+15 |
| | | | |||||
| * | | Add stub ApplicationServiceTransactionStore. Bootstrap Recoverers. Fill in ↵ | Kegan Dougal | 2015-03-06 | 1 | -0/+28 |
| | | | | | | | | | | | | stub Transaction functions. | ||||
* | | | Convert storage layer to be mysql compatible | Erik Johnston | 2015-03-19 | 1 | -2/+2 |
| |/ |/| | |||||
* | | Add a description to storage layer's _execute_and_decode() | Paul "LeoNerd" Evans | 2015-03-11 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #93 from matrix-org/application-services-exclusive | Kegsay | 2015-03-02 | 1 | -3/+13 |
|\ | | | | | Application services exclusive flag support | ||||
| * | Convert expected format for AS regex to include exclusivity. | Kegan Dougal | 2015-02-27 | 1 | -3/+13 |
| | | | | | | | | | | Previously you just specified the regex as a string, now it expects a JSON object with a 'regex' key and an 'exclusive' boolean, as per spec. | ||||
* | | Wrap all of get_app_service_rooms in a txn. | Kegan Dougal | 2015-03-02 | 1 | -12/+26 |
| | | |||||
* | | JOIN state_events rather than parsing unrecognized_keys to pull out member ↵ | Kegan Dougal | 2015-03-02 | 1 | -1/+1 |
| | | | | | | | | state_keys | ||||
* | | Modify _simple_select_list to allow an empty WHERE clause. Use it for ↵ | Kegan Dougal | 2015-03-02 | 1 | -2/+2 |
| | | | | | | | | get_all_rooms and get_all_users. | ||||
* | | PR tweaks: set earlier on and use 'as json' for compat | Kegan Dougal | 2015-03-02 | 1 | -11/+7 |
| | | |||||
* | | Finish impl to extract all room IDs an AS may be interested in when polling ↵ | Kegan Dougal | 2015-02-26 | 1 | -6/+29 |
| | | | | | | | | the event stream. | ||||
* | | PEP8 and pyflakes | Kegan Dougal | 2015-02-25 | 1 | -5/+3 |
| | | |||||
* | | Add support for extracting matching room_ids and room_aliases for a given AS. | Kegan Dougal | 2015-02-25 | 1 | -2/+48 |
| | | |||||
* | | Add stub functions and work out execution flow to implement AS event stream ↵ | Kegan Dougal | 2015-02-25 | 1 | -0/+19 |
|/ | | | | polling. | ||||
* | Squash out the now-redundant ApplicationServicesCache object class | Paul "LeoNerd" Evans | 2015-02-23 | 1 | -20/+8 |
| | |||||
* | PEP8-ify | Kegan Dougal | 2015-02-11 | 1 | -3/+0 |
| | |||||
* | Modify auth.get_user_by_req for authing appservices directly. | Kegan Dougal | 2015-02-09 | 1 | -1/+3 |
| | | | | | | Add logic to map the appservice token to the autogenned appservice user ID. Add unit tests for all forms of get_user_by_req (user/appservice, valid/bad/missing tokens) | ||||
* | Register a user account for the AS when the AS registers. Add 'sender' ↵ | Kegan Dougal | 2015-02-09 | 1 | -2/+3 |
| | | | | column to AS table. | ||||
* | Add hs_token column and generate a different token f.e application service. | Kegan Dougal | 2015-02-05 | 1 | -5/+12 |
| | |||||
* | Fix bug in store defer. Add more unit tests. | Kegan Dougal | 2015-02-04 | 1 | -4/+14 |
| | |||||
* | Add stub ApplicationServiceApi and glue it with the handler. | Kegan Dougal | 2015-02-04 | 1 | -0/+1 |
| | |||||
* | Add appservice package and move ApplicationService into it. | Kegan Dougal | 2015-02-03 | 1 | -104/+1 |
| | |||||
* | Implement restricted namespace checks. Begin fleshing out the main hook for ↵ | Kegan Dougal | 2015-02-03 | 1 | -5/+16 |
| | | | | notifying application services. | ||||
* | Add namespace constants. Add restrict_to option to limit namespace checks. | Kegan Dougal | 2015-02-03 | 1 | -17/+24 |
| | |||||
* | Everyone loves SQL typos | Kegan Dougal | 2015-02-03 | 1 | -1/+1 |
| | |||||
* | Implement regex checks for app services. | Kegan Dougal | 2015-02-03 | 1 | -27/+44 |
| | | | | | Expose handler.get_services_for_event which manages the checks for all services. | ||||
* | Add defers in the right places. | Kegan Dougal | 2015-02-02 | 1 | -0/+2 |
| | |||||
* | Implement txns for AS (un)registration. | Kegan Dougal | 2015-02-02 | 1 | -21/+99 |
| | |||||
* | Add basic application_services SQL, and hook up parts of the appservice ↵ | Kegan Dougal | 2015-01-28 | 1 | -11/+78 |
| | | | | store to read from it. | ||||
* | Remove unused import | Kegan Dougal | 2015-01-28 | 1 | -2/+0 |
| | |||||
* | Log when ASes are registered/unregistered. | Kegan Dougal | 2015-01-27 | 1 | -1/+3 |
| | |||||
* | Use ApplicationService when registering. | Kegan Dougal | 2015-01-27 | 1 | -10/+6 |
| | |||||
* | Add stub methods, TODOs and docstrings for application services. | Kegan Dougal | 2015-01-27 | 1 | -2/+50 |
| | |||||
* | Add AS specific classes with docstrings. | Kegan Dougal | 2015-01-27 | 1 | -1/+59 |
| | |||||
* | Add appservice handler and store. Glue together rest > handler > store. | Kegan Dougal | 2015-01-27 | 1 | -0/+45 |