Commit Graph

31 Commits (0fbfe1b08a791e95dc9e9d417f131e80b4ce8059)

Author SHA1 Message Date
Kegan Dougal 377ae369c1 Wrap all of get_app_service_rooms in a txn. 10 years ago
Kegan Dougal b216b36892 JOIN state_events rather than parsing unrecognized_keys to pull out member state_keys 10 years ago
Kegan Dougal 3d73383d18 Modify _simple_select_list to allow an empty WHERE clause. Use it for get_all_rooms and get_all_users. 10 years ago
Kegan Dougal ebc4830666 PR tweaks: set earlier on and use 'as json' for compat 10 years ago
Kegan Dougal 16b90764ad Convert expected format for AS regex to include exclusivity. 10 years ago
Kegan Dougal 92478e96d6 Finish impl to extract all room IDs an AS may be interested in when polling the event stream. 10 years ago
Kegan Dougal 29267cf9d7 PEP8 and pyflakes 10 years ago
Kegan Dougal 2b8ca84296 Add support for extracting matching room_ids and room_aliases for a given AS. 10 years ago
Kegan Dougal 2d20466f9a Add stub functions and work out execution flow to implement AS event stream polling. 10 years ago
Paul "LeoNerd" Evans 4631b737fd Squash out the now-redundant ApplicationServicesCache object class 10 years ago
Kegan Dougal fd40d992ad PEP8-ify 10 years ago
Kegan Dougal 5a7dd05818 Modify auth.get_user_by_req for authing appservices directly. 10 years ago
Kegan Dougal ac3183caaa Register a user account for the AS when the AS registers. Add 'sender' column to AS table. 10 years ago
Kegan Dougal 27091f146a Add hs_token column and generate a different token f.e application service. 10 years ago
Kegan Dougal 89f2e8fbdf Fix bug in store defer. Add more unit tests. 10 years ago
Kegan Dougal 17753f0c20 Add stub ApplicationServiceApi and glue it with the handler. 10 years ago
Kegan Dougal 94a5db9f4d Add appservice package and move ApplicationService into it. 10 years ago
Kegan Dougal f2c039bfb9 Implement restricted namespace checks. Begin fleshing out the main hook for notifying application services. 10 years ago
Kegan Dougal a060b47b13 Add namespace constants. Add restrict_to option to limit namespace checks. 10 years ago
Kegan Dougal 3bd2841fdb Everyone loves SQL typos 10 years ago
Kegan Dougal 197f3ea4ba Implement regex checks for app services. 10 years ago
Kegan Dougal 9ff349a3cb Add defers in the right places. 10 years ago
Kegan Dougal 1a2de0c5fe Implement txns for AS (un)registration. 10 years ago
Kegan Dougal 42876969b9 Add basic application_services SQL, and hook up parts of the appservice store to read from it. 10 years ago
Kegan Dougal b46fa8603e Remove unused import 10 years ago
Kegan Dougal fbeaeb8689 Log when ASes are registered/unregistered. 10 years ago
Kegan Dougal ec3719b583 Use ApplicationService when registering. 10 years ago
Kegan Dougal 92171f9dd1 Add stub methods, TODOs and docstrings for application services. 10 years ago
Kegan Dougal 7331d34839 Add AS specific classes with docstrings. 10 years ago
Kegan Dougal 51449e0665 Add appservice handler and store. Glue together rest > handler > store. 10 years ago