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

API returns NULL when there are zero page views #3

Closed
MusikAnimal opened this Issue Feb 9, 2016 · 1 comment

Comments

Projects
None yet
1 participant
@MusikAnimal
Owner

MusikAnimal commented Feb 9, 2016

For any data over a day old, if the API returns null we should treat it as 0. If it's within a day it might because the data is not yet available.

See https://wikitech.wikimedia.org/wiki/Analytics/AQS/Pageview_API#Gotchas

@MusikAnimal MusikAnimal added the bug label Feb 9, 2016

@MusikAnimal

This comment has been minimized.

Show comment
Hide comment
@MusikAnimal

MusikAnimal Feb 11, 2016

Owner

I think this is fixed. The "solution" was to treat any null values from the API prior to the current day as being zero. Within a day's time, it's left as null and assumed that the data just isn't there yet. This is not fool-proof. It is possible older data may be missing, but this should be accurate most of the time.

Owner

MusikAnimal commented Feb 11, 2016

I think this is fixed. The "solution" was to treat any null values from the API prior to the current day as being zero. Within a day's time, it's left as null and assumed that the data just isn't there yet. This is not fool-proof. It is possible older data may be missing, but this should be accurate most of the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment