chronograf icon indicating copy to clipboard operation
chronograf copied to clipboard

Moving Time Ranges

Open cryptoquick opened this issue 9 years ago • 8 comments

In #1681 the capability to do fixed custom time ranges was implemented. We should probably also do moving time ranges, in some sort of calendar interface.

Some possible moving time range suggestions, thanks to @gianarb and @samubd :

  • [ ] today so far
  • [ ] this week so far
  • [ ] yesterday
  • [ ] last week

cryptoquick avatar Jul 04 '17 15:07 cryptoquick

Thanks Samuele for the initial feedback

gianarb avatar Jul 04 '17 15:07 gianarb

You are welcome! Thanks for the effort!

samubd avatar Jul 04 '17 15:07 samubd

Does it make sense to have some TempVars for these a la :dashboardTime:? Could have a dropdown or something for the user to choose from

:lastWeek:
:yesterday:
:todaySoFar:
:thisWeekSoFar:

alexpaxton avatar Jul 05 '17 19:07 alexpaxton

In our IPM, we determined it wasn't a good idea to have tempvars for every choice, due to the fact that we'd have a heck of a lot of them. we'd need to improve our custom tempvar code, too, since it's pretty hardcoded right now. That said, if a good use case for this is introduced, I'm sure we'd be open to considering it.

cryptoquick avatar Jul 06 '17 15:07 cryptoquick

For a start we can just do, "last week", "year to date", "last month" and "last year". We can add more ranges as needed.

nhaugo avatar Jul 10 '17 23:07 nhaugo

Probably should re-evaluate / re-define this issue

alexpaxton avatar Aug 18 '17 19:08 alexpaxton

I believe the designs for this issue are in https://github.com/influxdata/chronograf/pull/1744 -- could you confirm, @alexpaxton? If so, I believe this should be ready for implementation.

jaredscheib avatar Aug 18 '17 22:08 jaredscheib

Just saw that @alexpaxton created #1824. This issue should probably be closed in deference to that one, but I'll leave that up to @nhaugo.

jaredscheib avatar Aug 18 '17 23:08 jaredscheib