You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What happened:
During the work with #60218 I saw that we have duplicated logic for how to create and change queries. We have some logic used by alerting and some other logic being used by the dashboards/panel edit.
Currently, in alerting, we are not supporting changing data source properly. We keep some of the values in the query model even if you change to a data source of a completely different type. This can cause the query editor to break or behave unexpectedly.
What you expected to happen:
I think it would be a good idea to align the logic for creating and clearing queries when changing data sources or adding a new query. We should also apply the default values provided by the data source when clearing/adding queries.
What happened:
During the work with #60218 I saw that we have duplicated logic for how to create and change queries. We have some logic used by alerting and some other logic being used by the dashboards/panel edit.
Currently, in alerting, we are not supporting changing data source properly. We keep some of the values in the query model even if you change to a data source of a completely different type. This can cause the query editor to break or behave unexpectedly.
What you expected to happen:
I think it would be a good idea to align the logic for creating and clearing queries when changing data sources or adding a new query. We should also apply the default values provided by the data source when clearing/adding queries.
References:
The text was updated successfully, but these errors were encountered: