Commit Graph

366 Commits (0268d40281313c9a89e7b4356ae2e5f77a622857)

Author SHA1 Message Date
Paul "LeoNerd" Evans 0268d40281 Have TypingNotificationEventSource.get_new_events_for_user() return a deferred, for consistency and extensibility 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
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
Kegan Dougal 1ead1caa18 Implement create_appservice_txn with tests. 10 years ago
Kegan Dougal 1c2dcf762a Partially implement txn store methods with tests. 10 years ago
Kegan Dougal 10766f1e93 Update UTs 10 years ago
Kegan Dougal 2602ddc379 Apply clarity and docstrings 10 years ago
Kegan Dougal 0354659f9d Finish synapse.appservice.scheduler implementation. 10 years ago
Kegan Dougal f260cb72cd Flesh out more stub functions. 10 years ago
Kegan Dougal 0fbfe1b08a Add more tests; fix bugs. 10 years ago
Kegan Dougal 192e228a98 Start adding some tests 10 years ago
Kegan Dougal de190e49d5 Add more unit tests for exclusive namespaces. 10 years ago
Kegan Dougal 127efeeb68 Update unit tests to use new format. 10 years ago
Kegan Dougal 0ebd632d39 Fix unit tests 10 years ago
Paul "LeoNerd" Evans f53fcbce97 Use cache.pop() instead of a separate membership test + del [] 10 years ago
Paul "LeoNerd" Evans e76d485e29 Allow @cached-wrapped functions to have a prefill method for setting entries 10 years ago
Erik Johnston 852816befe Fix presence tests 10 years ago
Paul "LeoNerd" Evans ebc3db295b Take named arguments to @cached() decorator, add a 'max_entries' limit 10 years ago
Erik Johnston 5f4c28d313 Update tests 10 years ago
Erik Johnston 5358966a87 Use git aware version string in User-Agent and Server headers 10 years ago
Kegan Dougal cb43fbeeb4 Fix tests which broke when event caching was introduced. 10 years ago
Mark Haines f5a70e0d2e Add a cache for get_event 10 years ago