Commit Graph

23 Commits (3c85a317d603bcbf2cc9c0b5b4ebcef1c9014db8)

Author SHA1 Message Date
Mark Haines 95f30ecd1f Add API for setting account_data globaly or on a per room basis 9 years ago
Mark Haines 1c960fbb80 s/private_user_data/account_data/ 9 years ago
Mark Haines 285d056629 Remove fields that are both unspecified and unused from the filter checks, check the right top level definitions in the filter 9 years ago
Mark Haines 57be722c46 Include room tags in v2 /sync 9 years ago
Mark Haines 4e05aab4f7 Don't assume that the event has a room_id or sender 9 years ago
Mark Haines 9b6f3bc742 Support filtering events represented as dicts. 9 years ago
Erik Johnston 5c41224a89 Filter room ids before hitting the database 9 years ago
Erik Johnston 87deec824a Docstring 9 years ago
Erik Johnston 45cd2b0233 Refactor api.filtering to have a Filter API 9 years ago
Mark Haines 2fa9e23e04 Update the v2 filters to support filtering presence and remove support for public/private user data 9 years ago
Mark Haines 586beb8318 Update the filters to match the latest spec. 9 years ago
Mark Haines 471555b3a8 Move the rooms out into a room_map mapping from room_id to room. 9 years ago
Mark Haines f31014b18f Start updating the sync API to match the specification 9 years ago
Mark Haines e97f756a05 Use 'in' to test if the key exists, remove unused _filters_for_user 10 years ago
Mark Haines c562f237f6 Unused import 10 years ago
Mark Haines 22dd1cde2d Filter the recent events before applying the limit when doing an incremental sync with a gap 10 years ago
Mark Haines 93ed31dda2 Create a separate filter object to do the actual filtering, so that we can 10 years ago
Mark Haines 9150a0d62e Fix code-style 10 years ago
Kegan Dougal 83172487b0 Add basic filtering public API unit tests. Use defers in the right places. 10 years ago
Kegan Dougal 777d9914b5 Implement filter algorithm. Add basic event type unit tests to assert it works. 10 years ago
Kegan Dougal 50de1eaad9 Add filtering public API; outline filtering algorithm. 10 years ago
Kegan Dougal 2a4fda7b88 Add filtering.filter_events function, with stub passes_filter function. 10 years ago
Kegan Dougal c23e3db544 Add filter JSON sanity checks. 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 05c7cba73a Initial trivial implementation of an actual 'Filtering' object; move storage of user filters into there 10 years ago