You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usage charts in Commons are reporting view and download counts for the month before they've occurred. For example, this chart here reports 8 downloads for December 2019 when the metadata indicates that the downloads occurred in January 2020.
Describe the bug
Usage charts in Commons are reporting view and download counts for the month before they've occurred. For example, this chart here reports 8 downloads for December 2019 when the metadata indicates that the downloads occurred in January 2020.
Chart
Metadata
{ "yearMonth": "2019-12", "total": 1, "__typename": "YearMonthTotal" }, { "yearMonth": "2020-01", "total": 8, "__typename": "YearMonthTotal" }
Expected Behaviour
Download and view counts should be reflected in usage charts for the months they occur.
Current Behaviour
Download and view counts are reflected in usage charts for the month before they occur.
Steps to Reproduce
See https://commons.datacite.org/doi.org/10.5061/dryad.8085 and https://commons.datacite.org/doi.org/10.34848/FK2_leshmania_ds
Proposal
Hypothesis
Investigate date conversions in UsageChart component as well as how VegaLite interprets date data. https://github.com/datacite/akita/blob/cba787766810b8ccb81364b64aa2d1097c6d0045/src/components/UsageChart/UsageChart.tsx
Front conversations
The text was updated successfully, but these errors were encountered: