Commit Graph

367 Commits (6080830beffd38a08b08d73ee1588cf2289c0080)

Author SHA1 Message Date
Mark Haines f5a70e0d2e Add a cache for get_event 10 years ago
Mark Haines d8324d5a2b Add a lru cache class 10 years ago
Mark Haines 896253e085 Factor out some of the common homeserver setup code into a 10 years ago
Kegan Dougal c7783d6fee Notify ASes for events sent by other users in a room which an AS user is a part of. 10 years ago
Erik Johnston 164f6b9256 Fix tests 10 years ago
Kegan Dougal ab3c897ce1 Remove unused imports. 10 years ago
Kegan Dougal 5a7dd05818 Modify auth.get_user_by_req for authing appservices directly. 10 years ago
Kegan Dougal 11e6b3d18b Dependency inject ApplicationServiceApi when creating ApplicationServicesHandler. 10 years ago
Kegan Dougal 131e036402 Fix unit tests. 10 years ago
Kegan Dougal bc658907f0 Add unit test for appservice_handler.query_room_alias_exists 10 years ago
Kegan Dougal f0c730252f Add unknown user ID check. Use store.get_aliases_for_room(room_id) when searching for services by alias. 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 525a218b2b Begin to add unit tests for appservice glue and regex testing. 10 years ago
Erik Johnston e7ca813dd4 Try to ensure we don't persist an event we have already persisted. In persist_event check if we already have the event, if so then update instead of replacing so that we don't cause a bump of the stream_ordering. 10 years ago
Mark Haines 93ed31dda2 Create a separate filter object to do the actual filtering, so that we can 10 years ago
Erik Johnston 78015948a7 Initial implementation of auth conflict resolution 10 years ago
Mark Haines 33391db5f8 Merge in auth changes from develop 10 years ago
Kegan Dougal 38b27bd2cb Add filter_room_state unit tests. 10 years ago
Kegan Dougal 83172487b0 Add basic filtering public API unit tests. Use defers in the right places. 10 years ago
Kegan Dougal 5561a87920 Add more unit tests for the filter algorithm. 10 years ago
Kegan Dougal 777d9914b5 Implement filter algorithm. Add basic event type unit tests to assert it works. 10 years ago
Mark Haines 388581e087 Extract the id token of the token when authing users, include the token and device_id in the internal meta data for the event along with the transaction id when sending events 10 years ago
Kegan Dougal c23e3db544 Add filter JSON sanity checks. 10 years ago
Mark Haines c59bcabf0b Return the device_id from get_auth_by_req 10 years ago
Paul "LeoNerd" Evans 06cc147012 Initial stab at real SQL storage implementation of user filter definitions 10 years ago
Paul "LeoNerd" Evans 0c14a699bb More unit-testing of REST errors 10 years ago
Paul "LeoNerd" Evans 54e513b4e6 Move storage of user filters into real datastore layer; now have to mock it out in the REST-level tests 10 years ago
Paul "LeoNerd" Evans 059651efa1 Have the Filtering API return Deferreds, so we can do the Datastore implementation nicely 10 years ago
Paul "LeoNerd" Evans b1503112ce Initial trivial unittest of Filtering object 10 years ago
Paul "LeoNerd" Evans f9958f3404 Use new V2AlphaRestTestCase 10 years ago
Paul "LeoNerd" Evans 57d2bfca3f Initial cut of a shared base class for REST unit tests 10 years ago
Paul "LeoNerd" Evans 39c1892b22 Minor changes to v2_alpha filter REST test to allow the setUp method to be shareable 10 years ago
Paul "LeoNerd" Evans 37b8a71f10 Initial trivial REST test of v2_alpha filter API 10 years ago
Paul "LeoNerd" Evans d07dfe5392 Create (empty) v2_alpha REST tests directory 10 years ago
Mark Haines ada711504e Replace hs.parse_roomalias with RoomAlias.from_string 10 years ago
Mark Haines 1c06c48ce2 Replace hs.parse_roomid with RoomID.from_string 10 years ago
Mark Haines 5759bec43c Replace hs.parse_userid with UserID.from_string 10 years ago
Mark Haines 7256def8e4 Merge rest servlets into the client json resource object 10 years ago
Paul "LeoNerd" Evans 3a243c53f4 Rename MockedDatastoreTestCase to MockedDatastorePresenceTestCase since it is still presence-specific 10 years ago
Paul "LeoNerd" Evans cbb10879cb Much merging of test case setUp() methods to make them much more 10 years ago
Mark Haines 53584420a5 Move client rest tests back under rest 10 years ago
Mark Haines 97c68c508d Move rest APIs back under the rest directory 10 years ago
Mark Haines 1d2016b4a8 Move client v1 api rest servlets into a "client/v1" directory 10 years ago
Mark Haines 16bfabb9c5 Fix manifest. Ignore contrib and docs directories when checking manifest against source control. 10 years ago
Paul "LeoNerd" Evans 73315ce9de Abstract out the room ID from presence tests, so it's stored in self 10 years ago
Paul "LeoNerd" Evans dbe71e670c Use common base class for two Presence unit-tests, avoiding boilerplate copypasta 10 years ago
Erik Johnston 6dcade97be Implement new state resolution algorithm 10 years ago
Mark Haines 5fed042640 Finish renaming "context" to "room_id" in federation codebase 10 years ago
Paul "LeoNerd" Evans cf7e723808 Have MockClock detect attempts to cancel expired timers, to prevent a repeat of SYN-230 10 years ago