https://forge.softwareheritage.org/source/swh-counters

sort by:
Revision Author Date Message Commit Date
6a44a84 tox: Add sphinx environments to check sane doc build Enable to check package documentation can be built without producing sphinx warnings. The sphinx environment is designed to be used in continuous integration in order to prevent breaking documentation build when committing changes. The sphinx-dev environment is designed to be used inside a full swh development environment. Related to T3258 26 April 2021, 14:11:28 UTC
85cac36 Remove 'journal_type' argument from the CLI Motivation: * This simplifies the CLI, and stops leaking implementation details (what field the implementation reads, what keys contains, that keys exist at all, etc.) through this interface. * It also removes the need to have two clients, both reading revisions and releases. This preserves the optimization of not deserializing unneeded values, by passing raw message values to the worker functions; which can deserialize it themselves if needed. Additionally, this commit fixes some mistakes in type annotations. 22 April 2021, 18:21:37 UTC
5cae9b7 Implement the jounal client counting an internal property of an object and use it to count the persons inside the releases and revisions. Via an new argument 'keys'/'messages' supported by the cli, different journal client implemtations and worker functions are used. 'keys' is the old behavior counting only the different message keys of a given topic. Related to T3251 22 April 2021, 12:37:36 UTC
0e5d551 Make the project usable in the webapp tests Add an in memory implementatiom that will be used in the webapp's tests Related to T3231 14 April 2021, 09:17:47 UTC
15f72b7 Fix duplicate reference target 13 April 2021, 20:00:51 UTC
38eab38 Add a method get several counter values at once It allow the webapp to retrieve all the values it needs for the homepage in only one rpc call Related to T3231 13 April 2021, 15:59:55 UTC
46d1d61 Fix history endpoint path It has no effect on pip version but it's not working with on debian stable Related to T3165 08 April 2021, 21:49:07 UTC
9958f40 Let flask manage json response by itself Flask versions between stable (1.0.2) and pip(1.1.2) have different behaviors. The oldest version does not automatically handle a dict as return value. Related to T3165 08 April 2021, 17:24:14 UTC
dd8ad46 attempt to fix the stable debian build Related to T3165 08 April 2021, 07:05:24 UTC
f2fba43 Use an intermediate temporary file to generate the historical data It will avoid the erase the file in case of problem and ensure the webapp can't download it while it's not completely writtent on disk Related to T3165 07 April 2021, 14:51:00 UTC
42157fd Allow the webapp to retrieve the history file via a GET endpoint Related to T3165 07 April 2021, 14:47:13 UTC
1b262c3 Manage and expose the historical data - Convert the former script managed by puppet to a tested implementation of this module - Add the api endpoint needed by the webapp to retrieve the file with static historical data and the live data from prometheus aggregated - Add the api endpoint to build these files, it will be called regularly by a crontab Related to T3165 07 April 2021, 10:05:50 UTC
2fef22b Fix documentation headers 26 March 2021, 11:46:17 UTC
32796c3 docs: Unify doc and git READMEs 25 March 2021, 16:27:38 UTC
c62e4dc README: Update description This gets more synchronized with the docs description Related to T3172 25 March 2021, 12:52:08 UTC
7dbe186 Allow prometheus to retrieve the counter values - Add a method to get the list of counters on the backend - Add an endpoint on the rpc to expose the counters values in the prometheus format - The way redis was instantiated by the fixture needed to be changed to always start a new test with an empty redis Related to T3164 24 March 2021, 16:23:47 UTC
d882786 Implement remote service Related to T2912 16 March 2021, 15:04:58 UTC
d90ee19 Implement counters pipeline Related to T2912 15 March 2021, 17:48:10 UTC
826c30e Implement the cli skeleton The counters logic is not yet implemented Related to T2912 12 March 2021, 08:46:32 UTC
142fff8 Update template defauts 05 March 2021, 10:43:44 UTC
ae8cfbf import template from swh-py-template (init-py-repo) 05 March 2021, 10:31:43 UTC
back to top