Commit Graph

397 Commits (f0583f65e18925cda99a7d761cfaf3ce9a3ac2f9)

Author SHA1 Message Date
Erik Johnston 55bf90b9e4 Don't needlessly compute prev_state 10 years ago
Erik Johnston 1c3d844e73 Don't needlessly compute context 10 years ago
Erik Johnston d8866d7277 Caches should be bound to instances. 10 years ago
Mark Haines 17167898c8 Fix the presence tests 10 years ago
Mark Haines f43544eecc Make the appservice use 'users_in_room' rather than get_room_members since it is cached 10 years ago
Mark Haines 88f1ea36ce Oops, get_rooms_for_user returns a namedtuple, not a room_id 10 years ago
Mark Haines 8eca5bd50a Fix the presence tests 10 years ago
Erik Johnston a2c4f3f150 Fix daedlock 10 years ago
Mark Haines c5d1b4986b Remove unused arguments and doc PresenceHandler.push_update_to_clients 10 years ago
Mark Haines f1b83d88a3 Discard unused NotifierUserStreams 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
Erik Johnston 43c2e8deae Add support for using executemany 10 years ago
Paul "LeoNerd" Evans e1e5e53127 Remove users from the remote_offline_serials list (and clean up empty elements) when they go online again 10 years ago
Paul "LeoNerd" Evans 8a785c3006 Store a list of the presence serial number at which remote users went offline, so that when we delete them from the cachemap, we can still synthesize OFFLINE events for them (SYN-261) 10 years ago
Paul "LeoNerd" Evans 04c7f3576e Various minor fixes to unit-test structure around typing notifications 10 years ago
Paul "LeoNerd" Evans 0268d40281 Have TypingNotificationEventSource.get_new_events_for_user() return a deferred, for consistency and extensibility 10 years ago
Erik Johnston 22d7a59306 Fix tests after commit 9a0579 10 years ago
Erik Johnston 9236136f3a Make work in both Maria and SQLite. Fix tests 10 years ago
Kegan Dougal 09cbff174a Fix thinko whereby events *for the AS specifically* were not passed on. 10 years ago
Kegan Dougal cf1fa59f4b Use a sender localpart instead of a user ID. 10 years ago
Kegan Dougal c217504949 Edit SQL schema to use string IDs not ints. Use token as ID. Update tests. 10 years ago
Kegan Dougal b59aa74556 Fix tests and missing returns on deferreds. 10 years ago
Kegan Dougal d33ae65efc Remove more reg/unreg methods. Read config not database for cache. 10 years ago
Paul "LeoNerd" Evans 9ba6487b3f Allow a choice of LRU behaviour for Cache() by using LruCache() or OrderedDict() 10 years ago
Paul "LeoNerd" Evans 7ab9f91a60 Unit-test that Cache() key eviction is ordered 10 years ago
David Baker ce2766d19c Fix tests 10 years ago
David Baker 438a21c87b Don't test exact equality of the list: as long as it has the fields we expect, that's just fine. I added the user_id (as in database pkey) and it broke: no point testing what that comes out as: it's determined by the db. 10 years ago
Paul "LeoNerd" Evans 0f86312c4c Pull out the cache logic from the @cached wrapper into its own class we can reuse 10 years ago
Erik Johnston 7e282a53a5 Tidy up _simple_... methods 10 years ago
Erik Johnston 6df319b6f0 Fix tests 10 years ago
Kegan Dougal d04fa1f712 Implement ServiceQueuer with tests. 10 years ago
Kegan Dougal 6279285b2a Replace EventGrouper for ServiceQueuer to move to push-based txns. Fix tests and add stub tests for ServiceQueuer. 10 years ago
Kegan Dougal 835e01fc70 Minor PR comment tweaks. 10 years ago
Erik Johnston e7ce5d8b06 Fix test 10 years ago
Paul "LeoNerd" Evans c1cdd7954d Add an .inc_by() method to CounterMetric; implement DistributionMetric a neater way 10 years ago
Paul "LeoNerd" Evans f1fbe3e09f Rename TimerMetric to DistributionMetric; as it could count more than just time 10 years ago
Paul "LeoNerd" Evans cbc0406be8 Export CacheMetric as hits+total, rather than hits+misses, as it's easier to derive hit ratio from that 10 years ago
Paul "LeoNerd" Evans 0e847540c3 Prometheus needs "escaped" label values 10 years ago
Paul "LeoNerd" Evans b3a0179d64 Bugfix to rendering output of vectored TimerMetrics 10 years ago
Paul "LeoNerd" Evans f9478e475b Rename Metrics' "keys" to "labels" 10 years ago
Paul "LeoNerd" Evans 72625f2f4d Initial hack at a TimerMetric; for storing counts + duration accumulators 10 years ago
Paul "LeoNerd" Evans 23ab0c68c2 Implement vector CallbackMetrics 10 years ago
Paul "LeoNerd" Evans 8664599af7 Rename CacheCounterMetric to just CacheMetric; add a CallbackMetric component to give the size of the cache 10 years ago
Paul "LeoNerd" Evans d8caa5454d Initial attempt at a scalar callback-based metric to give instantaneous snapshot gauges 10 years ago
Paul "LeoNerd" Evans ce8b5769f7 Create the concept of a cachecounter metric; generating two counters specific to caches 10 years ago
Paul "LeoNerd" Evans e7420a3bef Initial tiny attempt at (vectorable) counter metrics 10 years ago
Kegan Dougal b98cd03193 Use event IDs instead of dumping event content in the txns table. 10 years ago
Kegan Dougal 21fd84dcb8 Use seconds; start gluing in the AS scheduler into the AS handler. 10 years ago
Erik Johnston 6d74e46621 Fix tests 10 years ago
Kegan Dougal 0a60bbf4fa Finish appservice txn storage impl and tests. 10 years ago