Page MenuHomeSoftware Heritage

remove hardcoded historical values from the webapp
Closed, MigratedEdits Locked

Description

The webapp injects hardcoded historical values[1] on the historical data to fill the gap. It works pretty well on production but disturbs the rendering on other environments.

This patch should be removed and the data add on the static data used to generate the complete history.

[1] https://forge.softwareheritage.org/source/swh-web/browse/master/swh/web/misc/urls.py$31

Event Timeline

vsellier triaged this task as Normal priority.Apr 9 2021, 7:33 PM
vsellier created this task.
vsellier changed the task status from Open to Work in Progress.Apr 13 2021, 9:49 AM

The P1005 convert the data added by the webapp to json data that can be added to the /usr/local/share/swh-data/history-counters.munin.json file.
This content can be added on the file before the change on the webapp is released. it will just add few duplicate points to render, but with no effect on the final rendering

one additional point before releasing this, the puppet script making the aggregation need to be improved as it only merge the data for the content graph :
https://forge.softwareheritage.org/source/puppet-swh-site/browse/production/site-modules/profile/files/stats_exporter/export_archive_counters.py$109

The puppet script generating the aggragated data is updated and was run to refresh the data.
The webapp can be released with this diff now

swh-web v0.0.295 is released and deployed on staging and production.

There is no more hardcoded values added on the historical graphs and they are correctly displayed on staging without the dirty patch.