summary refs log tree commit diff
path: root/synapse/storage/appservice.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add commentErik Johnston2018-02-271-0/+4
|
* Update copyrightErik Johnston2018-02-231-0/+1
|
* Split AS storesErik Johnston2018-02-211-9/+17
|
* Add replication http endpoint for event sendingErik Johnston2018-02-071-0/+13
|
* Make __init__ consitstent across Store heirarchyRichard van der Hoff2017-11-131-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_regexErik Johnston2017-06-211-15/+20
|
* Make get_if_app_services_interested_in_user fasterErik Johnston2017-05-181-9/+22
|
* Fix users claimed non-exclusively by an app service don't get notifications ↵Slipeer2017-05-111-2/+5
| | | | #2211
* Ignore AS users when fetching push rulesErik Johnston2016-11-231-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 Oldsberg2016-10-061-6/+6
| | | | synchronous
* Make get_new_events_for_appservice use indicesErik Johnston2016-08-191-2/+5
|
* Add appservice workerErik Johnston2016-08-181-74/+71
|
* Make AppserviceHandler stream events from databaseErik Johnston2016-08-181-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 orderingErik Johnston2016-06-071-2/+2
|
* Fix AS retriesErik Johnston2016-06-071-2/+2
|
* Remove event fetching from DB threadsErik Johnston2016-06-031-7/+14
|
* Move the functions for parsing app service configMark Haines2016-05-171-102/+3
|
* Mark AS users with their AS's IDDaniel Wagner-Hall2016-02-111-13/+21
|
* Add descriptionsErik Johnston2016-02-031-1/+2
|
* Require ID and as_token be unique for ASsDaniel Wagner-Hall2016-01-141-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/2Daniel Wagner-Hall2016-01-141-0/+1
|\ | | | | Don't start server if ASes are invalidly configured
| * Don't start server if ASes are invalidly configuredDaniel Wagner-Hall2016-01-131-0/+1
| |
* | Delete unused codeDaniel Wagner-Hall2016-01-131-59/+0
|/
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* txn.execute doesn't return cursorsErik Johnston2015-04-291-4/+4
|
* txn.execute doesn't return cursorsErik Johnston2015-04-291-2/+2
|
* Fix invalid SQL to work in postgres landErik Johnston2015-04-291-4/+6
|
* Go back to storing JSON in TEXTErik Johnston2015-04-161-3/+1
|
* Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-071-163/+296
|\
| * Add same user_id char checks as registration.Kegan Dougal2015-03-311-1/+7
| |
| * Use a sender localpart instead of a user ID.Kegan Dougal2015-03-311-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 Dougal2015-03-311-9/+14
| |
| * Fix tests and missing returns on deferreds.Kegan Dougal2015-03-311-7/+11
| |
| * Remove more reg/unreg methods. Read config not database for cache.Kegan Dougal2015-03-311-160/+59
| |
| * Fixes from PR commentsKegan Dougal2015-03-261-2/+2
| |
| * Set the service ID as soon as it is known.Kegan Dougal2015-03-161-3/+4
| |
| * Minor PR comment tweaks.Kegan Dougal2015-03-161-3/+3
| |
| * Merge branch 'develop' into application-services-txn-reliabilityKegan Dougal2015-03-161-2/+4
| |\ | | | | | | | | | | | | Conflicts: synapse/storage/appservice.py
| * | Fix remaining scheduler bugs. Add more informative logging.Kegan Dougal2015-03-101-2/+3
| | |
| * | Remove unused importKegan Dougal2015-03-091-1/+0
| | |
| * | Bug fixes whilst putting it all togetherKegan Dougal2015-03-091-5/+4
| | |
| * | Use event IDs instead of dumping event content in the txns table.Kegan Dougal2015-03-091-6/+8
| | |
| * | Finish appservice txn storage impl and tests.Kegan Dougal2015-03-091-15/+70
| | |
| * | Implement create_appservice_txn with tests.Kegan Dougal2015-03-091-4/+42
| | |
| * | Partially implement txn store methods with tests.Kegan Dougal2015-03-091-17/+44
| | |
| * | Start implementing ApplicationServiceTransactionStoreKegan Dougal2015-03-061-1/+5
| | |
| * | Assign the AS ID from the database; replace old placeholder txn id.Kegan Dougal2015-03-061-2/+3
| | |
| * | Add appservice txns sql schemaKegan Dougal2015-03-061-0/+6
| | |
| * | Apply clarity and docstringsKegan Dougal2015-03-061-1/+13
| | |
| * | Finish synapse.appservice.scheduler implementation.Kegan Dougal2015-03-061-0/+22
| | | | | | | | | | | | | | | With tests to assert behaviour. Not hooked up yet. Stub datastore methods not implemented yet.
| * | Flesh out more stub functions.Kegan Dougal2015-03-061-2/+15
| | |
| * | Add stub ApplicationServiceTransactionStore. Bootstrap Recoverers. Fill in ↵Kegan Dougal2015-03-061-0/+28
| | | | | | | | | | | | stub Transaction functions.
* | | Convert storage layer to be mysql compatibleErik Johnston2015-03-191-2/+2
| |/ |/|
* | Add a description to storage layer's _execute_and_decode()Paul "LeoNerd" Evans2015-03-111-1/+1
|/
* Merge pull request #93 from matrix-org/application-services-exclusiveKegsay2015-03-021-3/+13
|\ | | | | Application services exclusive flag support
| * Convert expected format for AS regex to include exclusivity.Kegan Dougal2015-02-271-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 Dougal2015-03-021-12/+26
| |
* | JOIN state_events rather than parsing unrecognized_keys to pull out member ↵Kegan Dougal2015-03-021-1/+1
| | | | | | | | state_keys
* | Modify _simple_select_list to allow an empty WHERE clause. Use it for ↵Kegan Dougal2015-03-021-2/+2
| | | | | | | | get_all_rooms and get_all_users.
* | PR tweaks: set earlier on and use 'as json' for compatKegan Dougal2015-03-021-11/+7
| |
* | Finish impl to extract all room IDs an AS may be interested in when polling ↵Kegan Dougal2015-02-261-6/+29
| | | | | | | | the event stream.
* | PEP8 and pyflakesKegan Dougal2015-02-251-5/+3
| |
* | Add support for extracting matching room_ids and room_aliases for a given AS.Kegan Dougal2015-02-251-2/+48
| |
* | Add stub functions and work out execution flow to implement AS event stream ↵Kegan Dougal2015-02-251-0/+19
|/ | | | polling.
* Squash out the now-redundant ApplicationServicesCache object classPaul "LeoNerd" Evans2015-02-231-20/+8
|
* PEP8-ifyKegan Dougal2015-02-111-3/+0
|
* Modify auth.get_user_by_req for authing appservices directly.Kegan Dougal2015-02-091-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 Dougal2015-02-091-2/+3
| | | | column to AS table.
* Add hs_token column and generate a different token f.e application service.Kegan Dougal2015-02-051-5/+12
|
* Fix bug in store defer. Add more unit tests.Kegan Dougal2015-02-041-4/+14
|
* Add stub ApplicationServiceApi and glue it with the handler.Kegan Dougal2015-02-041-0/+1
|
* Add appservice package and move ApplicationService into it.Kegan Dougal2015-02-031-104/+1
|
* Implement restricted namespace checks. Begin fleshing out the main hook for ↵Kegan Dougal2015-02-031-5/+16
| | | | notifying application services.
* Add namespace constants. Add restrict_to option to limit namespace checks.Kegan Dougal2015-02-031-17/+24
|
* Everyone loves SQL typosKegan Dougal2015-02-031-1/+1
|
* Implement regex checks for app services.Kegan Dougal2015-02-031-27/+44
| | | | | Expose handler.get_services_for_event which manages the checks for all services.
* Add defers in the right places.Kegan Dougal2015-02-021-0/+2
|
* Implement txns for AS (un)registration.Kegan Dougal2015-02-021-21/+99
|
* Add basic application_services SQL, and hook up parts of the appservice ↵Kegan Dougal2015-01-281-11/+78
| | | | store to read from it.
* Remove unused importKegan Dougal2015-01-281-2/+0
|
* Log when ASes are registered/unregistered.Kegan Dougal2015-01-271-1/+3
|
* Use ApplicationService when registering.Kegan Dougal2015-01-271-10/+6
|
* Add stub methods, TODOs and docstrings for application services.Kegan Dougal2015-01-271-2/+50
|
* Add AS specific classes with docstrings.Kegan Dougal2015-01-271-1/+59
|
* Add appservice handler and store. Glue together rest > handler > store.Kegan Dougal2015-01-271-0/+45