Commit b2d54669 by Hugo Häggmark Committed by GitHub

Elastic: Support request cancellation properly (Uses new backendSrv.fetch…

Elastic: Support request cancellation properly (Uses new backendSrv.fetch Observable request API) (#30009)

* Elastic: Fixes so templating queries work

* Chore: fixes test

* Fix: fixes getFields from metricFindQuery

* Elastic: Support request cancellation properly

* Refactor: refactors tests

Co-authored-by: Elfo404 <gio.ricci@grafana.com>
parent b0946211
...@@ -48,7 +48,7 @@ export const BucketAggregationEditor: FunctionComponent<QueryMetricEditorProps> ...@@ -48,7 +48,7 @@ export const BucketAggregationEditor: FunctionComponent<QueryMetricEditorProps>
} }
}; };
return (await get()).map(toSelectableValue); return (await get().toPromise()).map(toSelectableValue);
}; };
return ( return (
......
...@@ -83,7 +83,7 @@ export const MetricEditor: FunctionComponent<Props> = ({ value }) => { ...@@ -83,7 +83,7 @@ export const MetricEditor: FunctionComponent<Props> = ({ value }) => {
return datasource.getFields('number'); return datasource.getFields('number');
}; };
return (await get()).map(toSelectableValue); return (await get().toPromise()).map(toSelectableValue);
}; };
return ( return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment