Commit Graph

380 Commits (3c224f4d0ef653685cc8d20fd48d9ad62d7050e3)

Author SHA1 Message Date
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
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