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

visual fallback if no data in default date range #136

Open
Floppy opened this issue Jul 1, 2016 · 5 comments
Open

visual fallback if no data in default date range #136

Floppy opened this issue Jul 1, 2016 · 5 comments

Comments

@Floppy
Copy link
Contributor

Floppy commented Jul 1, 2016

The default date range is often the last month. For instance, the link from the root list on the sport england metrics server goes to https://sport-england-bothan.herokuapp.com/metrics/inactivity/2016-06-01T16:08:34+00:00/2016-07-01T16:08:34+00:00. That gives a server error as there is no data in that range.

I'd expect, instead, the system to show the current value at that time (i.e. the most recent single data item).

@quadrophobiac
Copy link
Collaborator

So PR 200 has created a fallback where any date range error results in No data detected for selected range, please customise date range via the Dates tab below being presented to the user.

@Floppy I'm trying to get a sense of what the ideal expected behaviour is, what presumptions are safe to make.
Steps to reproduce

Steps: Part 2

For the link that you've given there's only 3 data points in the entire endpoint, so viewing the entire range of available data isn't a problem. But that won't be the case for every endpoint. It seems like there is a bug in how the chart visualisation handles the type of data returned by the latest endpoint alias. I think this needs to be fixed first so that there can be a generic fallback in place where
if JSON.data for last 30 days = 0 then go to endpoint/latest instead

@Floppy
Copy link
Contributor Author

Floppy commented Jul 26, 2017

yeah, tricky. The error message might be enough, but if we do want to do something automatically in chart view, perhaps we should show the last 10 values or something. No date range will work for all metrics - they could be per-second or per-year.

@quadrophobiac quadrophobiac changed the title Server error if no data in date range visual fallback if no data in date range Jul 26, 2017
@quadrophobiac
Copy link
Collaborator

I like that solution of last N values - maybe 30 or 24 (or some other number that maps to longer intervals of time) should be the number.

@quadrophobiac
Copy link
Collaborator

@Floppy renaming this issue to be more descriptive of what it should resolve, please edit it back if you think its straying from specification

@quadrophobiac
Copy link
Collaborator

separate ticket #253 opened to investigate whether there is a bug in play

@quadrophobiac quadrophobiac changed the title visual fallback if no data in date range visual fallback if no data in default date range Jul 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants