Authored by anlambert on Feb 4 2019, 4:53 PM.
the associated number of origins and display it in the coverage widget.
all counts), execute it once per day and cache its results to database.
underlying long storage queries each time.
anlambert added a parent revision: D1075: Storage: Add origin_count method.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/117/ for more details.
Nitpick on the code style of swh/web/misc/coverage.py: each dict in the list should have an extra comma (so that line doesn't need to change next time we add a key-value to that dict).
As the extra height is for the text, it should be calc(65px + 1em). Or we could remove this property of .swh-coverage and set it to .swh-coverage-logo instead.
Same for gitlab.com, gitlab.inria.fr, and pypi.org.
Effectively, results will be more accurate when using regexps bu the count queries will take a little bit longer to execute.
But as count results are cached and are only executed once a day, I do not have any objection using regexps.
Thanks for the tip! It works great among all browsers.
Because when count results are not in cache or when the cache expires, the count queries need to be executed again and this can take a couple of minutes.
once the results are available.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/122/ for more details.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/123/ for more details.
See https://jenkins.softwareheritage.org/job/DWAPPS/job/tox/169/ for more details.