Closed ode2code95 closed 11 months ago
Hi @ode2code95
Thank you for the report.
The dashboard time range and grouping is set by the dashboards UI (top right), so it is not possible to specify a grouping in the query. Similarly, a limit would cause part of the visualization to be missing, without the user being aware.
Oh I see, so it was user error. 🤦
Would you consider updating the "Query" tab inputs to disallow editing the fields that won't be used anyway?
Limits can be used for some, but not all, chart types, and you can group by anything other than time.
It is tricky because changing the chart type changes the type of query that is valid.
Good point. For now, I'd say your explanation suffices for a resolution. This user will need to read the documentation more carefully next time.
Describe the bug When creating a new chart, the Group-by-time and Limit properties are not editable from the Query view.
To Reproduce Steps to reproduce the behavior:
where
to@Timestamp >= Now() - 15d
,group by
totime(1d)
, andlimit
to some value other than10,000
.Expected behavior The Time and Limit fields in the SQL query are updated.
Screenshots
Environment (please complete the following information):
Additional context This bug is also reproduceable when trying to save a custom query with group-by intervals and limits different from the defaults to a chart. These parts of the query are not preserved when the chart is created.