api/ds/query: simplify data sources lookup for queries and expressions (#41172)
This commit is contained in:
@@ -89,7 +89,7 @@ func (aq *AlertQuery) setModelProps() error {
|
||||
|
||||
// IsExpression returns true if the alert query is an expression.
|
||||
func (aq *AlertQuery) IsExpression() (bool, error) {
|
||||
return aq.DatasourceUID == expr.DatasourceUID, nil
|
||||
return expr.IsDataSource(aq.DatasourceUID), nil
|
||||
}
|
||||
|
||||
// setMaxDatapoints sets the model maxDataPoints if it's missing or invalid
|
||||
|
||||
Reference in New Issue
Block a user