Commit Graph

94 Commits (260b498ee53a6e91b2063ef70c26bc300df583e8)

Author SHA1 Message Date
David Baker 424a7f48f8 Run filter_events_for_client 9 years ago
Mark Haines 2a37467fa1 Use google style doc strings. 9 years ago
Mark Haines 12904932c4 Hook up adding a pusher to the notifier for replication. 9 years ago
Mark Haines ddf9e7b302 Hook up the push rules to the notifier 9 years ago
Mark Haines 60a0f81c7a Add a /replication API for extracting the updates that happened on 9 years ago
Erik Johnston 2c1fbea531 Fix up logcontexts 9 years ago
Daniel Wagner-Hall d83d004ccd Fix flake8 warnings for new flake8 9 years ago
Erik Johnston d98a9f2583 Don't use before_token. Its wrong. Use actual limit. 9 years ago
Erik Johnston 13724569ec Deal with None limit 9 years ago
Erik Johnston 4a6eb5eb45 Make /events always return a newer token, if one exists 9 years ago
Erik Johnston 0e07f2e15d Only fetch events for rooms and receipts 9 years ago
Erik Johnston 91a222c66d SYN-606: Peeking does not wake up /events 9 years ago
Daniel Wagner-Hall da417aa56d Allow non-guests to peek on rooms using /events 9 years ago
Daniel Wagner-Hall 93afb40cd4 Skip, rather than erroring, invalid guest requests 9 years ago
Daniel Wagner-Hall 2ef6de928d Skip, rather than erroring, invalid guest requests 9 years ago
Mark Haines f3948e001f Missing yield on guest access auth check 9 years ago
Daniel Wagner-Hall 468a2ed4ec Return non-room events from guest /events calls 9 years ago
Daniel Wagner-Hall ca2f90742d Open up /events to anonymous users for room events only 9 years ago
Daniel Wagner-Hall 192241cf2a Remove unused arguments and code 9 years ago
Mark Haines f40b0ed5e1 Inform the client of new room tags using v1 /events 9 years ago
Erik Johnston f8f3d72e2b Don't make pushers handle presence/typing events 9 years ago
Daniel Wagner-Hall 53d1174aa9 Improve naming 9 years ago
Erik Johnston bd1236c0ee Consolidate duplicate code in notifier 10 years ago
Erik Johnston ddf7979531 Add receipts_key to StreamToken 10 years ago
Erik Johnston 2f556e0c55 Fix typo 10 years ago
Erik Johnston 6f6ebd216d PEP8 10 years ago
Erik Johnston 73513ececc Documentation 10 years ago
Erik Johnston 1f24c2e589 Don't bother proxying lookups on _NotificationListener to underlying deferred 10 years ago
Erik Johnston 22049ea700 Refactor the notifier.wait_for_events code to be clearer. Add _NotifierUserStream.new_listener that accpets a token to avoid races. 10 years ago
Erik Johnston 050ebccf30 Fix notifier leak 10 years ago
Mark Haines 554c63ca60 Iterate over the user_streams not the user_ids 10 years ago
Mark Haines 88f1ea36ce Oops, get_rooms_for_user returns a namedtuple, not a room_id 10 years ago
Mark Haines ad31fa3040 Don't bother sorting by the room_stream_ids, it shouldn't matter which order they are notified in 10 years ago
Mark Haines 1e90715a3d Make sure the notifier stream token goes forward when it is updated. Sort the pending events by the correct room_stream_id 10 years ago
Mark Haines 0ad1c67234 Add some doc-strings to notifier 10 years ago
Mark Haines 084c365c3a Use the current token when timing out a notifier, make sure the user_id is a string in on_new_user_event 10 years ago
Mark Haines 3edd2d5c93 Fix v2 sync, update the last_notified_ms only if there was an active listener 10 years ago
Mark Haines 5e0c533672 Fix metric counter 10 years ago
Mark Haines f1b83d88a3 Discard unused NotifierUserStreams 10 years ago
Mark Haines 9af432257d Don't set a timer if there's already a result to return 10 years ago
Mark Haines df6db5c802 Don't bother checking for new events from a source if the stream token hasn't advanced for that source 10 years ago
Mark Haines 63878c0379 Don't bother checking for updates if the stream token hasn't advanced for a user 10 years ago
Mark Haines 2551b6645d Update the end_token correctly, otherwise the token doesn't advance and the client gets duplicate events 10 years ago
Mark Haines 5c75adff95 Add a NotifierUserStream to hold all the notification listeners for a user 10 years ago
Mark Haines e269c511f6 Don't bother passing the events to the notifier since it isn't using them 10 years ago
Mark Haines 5e3b254dc8 Use wait_for_events to implement 'get_events' 10 years ago
Erik Johnston 4ac1941592 PEP8 10 years ago
Erik Johnston 476899295f Change the way we do logging contexts so that they survive divergences 10 years ago
Erik Johnston 42c12c04f6 Remove some run_on_reactors 10 years ago
Erik Johnston e19f794fee Change from exception to warn 10 years ago