Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage chart reports views and downloads as occurring one month before the month indicated by work metadata #225

Open
codycooperross opened this issue Jun 13, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@codycooperross
Copy link
Contributor

codycooperross commented Jun 13, 2022

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
Screen Shot 2022-06-13 at 3 11 22 PM

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 logo Front conversations

@codycooperross codycooperross added the bug Something isn't working label Jun 14, 2022
@svogt0511
Copy link
Contributor

For what it is worth, this is what is happening in the month-chart test that always fails in bracco.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants