grafana / grafana-infinity-datasource

CSV, JSON, GraphQL, XML and HTML datasource for grafana.
https://grafana.com/docs/plugins/yesoreyeram-infinity-datasource
Apache License 2.0
765 stars 103 forks source link

Does not reflect time picker selection #952

Closed gelicia closed 3 months ago

gelicia commented 3 months ago

Describe the bug

Infinity has the option to use the from and to values as defined in the time picker to be sent with the query for variable interpolation. It seems that the from and to values are not changed when the time range is changed in the picker.

Steps to reproduce

Using https://play.grafana.org/d/adsiw869wkykgd/infinity-demo?editPanel=24&tab=queries&from=now-7d&to=now

  1. Open the developer tools and open the network tab
  2. Run the query
  3. Look at the request payload, and copy the from data
  4. Note that the time range selected is from now-7d to now.
  5. Using https://www.unixtimestamp.com/ , note the from data is not 7 days ago.
  6. You can see using the queries[0].url field, the URL is using the from and to data sent in the payload.

Version Details:

gelicia commented 3 months ago

My mistake, this is fixed in later versions. Will reopen if the community member who reported it doesnt see the same results.