Expr: fix failure to execute due to OrgID (#29653)
* Expr: fix failure to execute due to OrgID Get orgID from the plugin context, which makes more sense anyways. makes expressions work again after https://github.com/grafana/grafana/pull/29449 changes. * Do not save organisation on its alert query model Co-authored-by: Sofia Papagiannaki <sofia@grafana.com>
This commit is contained in:
co-authored by
Sofia Papagiannaki
parent
fee0d44e5c
commit
6d64c603c2
+2
-2
@@ -19,8 +19,8 @@ type Service struct {
|
||||
}
|
||||
|
||||
// BuildPipeline builds a pipeline from a request.
|
||||
func (s *Service) BuildPipeline(queries []backend.DataQuery) (DataPipeline, error) {
|
||||
return buildPipeline(queries)
|
||||
func (s *Service) BuildPipeline(req *backend.QueryDataRequest) (DataPipeline, error) {
|
||||
return buildPipeline(req)
|
||||
}
|
||||
|
||||
// ExecutePipeline executes an expression pipeline and returns all the results.
|
||||
|
||||
Reference in New Issue
Block a user