server icon indicating copy to clipboard operation
server copied to clipboard

How to configure a dashboard static range?

Open TheWiresharkGuy opened this issue 4 years ago • 13 comments

Have you read the documentation?

  • [ ] Yes, but it does not include related information regarding my question.
  • [ ] Yes, but the steps described in the documentation do not work on my machine.
  • [X] Yes, but I am having difficulty understanding it and want clarification.

You are setting up traggo in

  • [X] Docker
  • [ ] Linux native platform
  • [ ] Windows native platform

Describe your problem Hi, I'd like to know what to type to define a static range? What is the correct way to specify a date?

I've tried to use the example in the doc and other date formats, but none of them seemed to work (see screenshot)

image

(from https://traggo.net/terminology/#static-range)

Thanks in advance!

Any errors, logs, or other information that might help us identify your problem

Ex: docker-compose.yml, nginx.conf, browser requests, etc.

image

TheWiresharkGuy avatar Oct 27 '21 19:10 TheWiresharkGuy

Hey, this seems a little buggy because it is hardcoded and independent on the date locale. The format that should work is YYYY-MM-DD HH:mm. Example: 2021-10-10 14:11

So the time must be 24h based and PM / AM must be omitted.

jmattheis avatar Oct 27 '21 20:10 jmattheis

Uhh, this is still broken, the backend doesn't understand 2021-10-10 14:11.

jmattheis avatar Oct 27 '21 20:10 jmattheis

If someone wants to fix this, I'd be open for a PR. The backend expects the date range to be formatted like RFC3339, so the UI should only allow a static date range to be formatted in the RFC3339 format.

jmattheis avatar Oct 27 '21 20:10 jmattheis

Thanks for the quick explanation!

image

No more UX error, but indeed GraphQL complains afterwards :/

image

TheWiresharkGuy avatar Oct 27 '21 20:10 TheWiresharkGuy

@TheWiresharkGuy, I too struggled with this issue, the input really accepts only rfc3339 formated datetime - e.g. 2021-11-02T00:00:00Z

lifo9 avatar Nov 02 '21 09:11 lifo9

Hey, this seems a little buggy because it is hardcoded and independent on the date locale. The format that should work is YYYY-MM-DD HH:mm. Example: 2021-10-10 14:11

So the time must be 24h based and PM / AM must be omitted.

It would be nice to add this to the documentation, once the UI of the front-end has been fixed.

langfingaz avatar Nov 15 '21 12:11 langfingaz

I'm on 0.2.3@f31968c1 Currently rfc3339 format shows as invalid both in UI and in the logs, as does any other date format I've tried:

  • 2020-01-01T00:00:00Z
  • 2020-01-01 00:00 AM
  • 2020-01-01 00:00:00
  • 2020-01-01 00:00
  • 2020-01-01
  • 2020/01/01 00:00
  • 01/01/2020 00:00

Relative dates work just fine.

filcuk avatar Apr 26 '22 13:04 filcuk

Is it feasible to integrate a date picker UI? Just to make this process easier

pedrohba1 avatar Dec 29 '22 04:12 pedrohba1

I would like to submit a datepicker feauter if possible, although I believe the easy path would be just using a datepicker module from material-ui or something else to give the back-end what it wants.

pedrohba1 avatar Dec 29 '22 18:12 pedrohba1

Is it feasible to integrate a date picker UI? Just to make this process easier

Yes, but the first step would be to fix the bug. Afterward, we can think about improving the user experience.

jmattheis avatar Jan 02 '23 17:01 jmattheis

Any news on when this will be fixed? I want to use Traggo but this kind of makes it useless for my needs.

Doesn't look like there has been a release since April 2022?

marksie1988 avatar Jan 19 '23 11:01 marksie1988

I've stumbled across the same problem today, it's not working in:

  • range in a dashboard item
  • static range in dashboard
  • editable range in dashboard

However a friend helped me out to at least get it working when having an editable time range in a dashboard, with the following format (same as discussed above, but also including milliseconds):

2023-01-01T00:00:00.000Z

Maybe this could help fixing the bug in the time parser?

madotha avatar Jan 31 '23 17:01 madotha

a date picker would be greatly appreciated once this is resolved

c-nv-s avatar Apr 24 '23 19:04 c-nv-s