Commit Graph

341 Commits (0f86312c4cb262ad1b69207dd46712707dee75bb)

Author SHA1 Message Date
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
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
Erik Johnston 6d74e46621 Fix 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
Mark Haines d8324d5a2b Add a lru cache class 10 years ago
Mark Haines 896253e085 Factor out some of the common homeserver setup code into a 10 years ago
Kegan Dougal c7783d6fee Notify ASes for events sent by other users in a room which an AS user is a part of. 10 years ago
Erik Johnston 164f6b9256 Fix tests 10 years ago
Kegan Dougal ab3c897ce1 Remove unused imports. 10 years ago
Kegan Dougal 5a7dd05818 Modify auth.get_user_by_req for authing appservices directly. 10 years ago
Kegan Dougal 11e6b3d18b Dependency inject ApplicationServiceApi when creating ApplicationServicesHandler. 10 years ago
Kegan Dougal 131e036402 Fix unit tests. 10 years ago
Kegan Dougal bc658907f0 Add unit test for appservice_handler.query_room_alias_exists 10 years ago
Kegan Dougal f0c730252f Add unknown user ID check. Use store.get_aliases_for_room(room_id) when searching for services by alias. 10 years ago
Kegan Dougal 27091f146a Add hs_token column and generate a different token f.e application service. 10 years ago
Kegan Dougal 89f2e8fbdf Fix bug in store defer. Add more unit tests. 10 years ago
Kegan Dougal 525a218b2b Begin to add unit tests for appservice glue and regex testing. 10 years ago
Erik Johnston e7ca813dd4 Try to ensure we don't persist an event we have already persisted. In persist_event check if we already have the event, if so then update instead of replacing so that we don't cause a bump of the stream_ordering. 10 years ago
Mark Haines 93ed31dda2 Create a separate filter object to do the actual filtering, so that we can 10 years ago
Erik Johnston 78015948a7 Initial implementation of auth conflict resolution 10 years ago
Mark Haines 33391db5f8 Merge in auth changes from develop 10 years ago
Kegan Dougal 38b27bd2cb Add filter_room_state unit tests. 10 years ago
Kegan Dougal 83172487b0 Add basic filtering public API unit tests. Use defers in the right places. 10 years ago
Kegan Dougal 5561a87920 Add more unit tests for the filter algorithm. 10 years ago
Kegan Dougal 777d9914b5 Implement filter algorithm. Add basic event type unit tests to assert it works. 10 years ago
Mark Haines 388581e087 Extract the id token of the token when authing users, include the token and device_id in the internal meta data for the event along with the transaction id when sending events 10 years ago