Explore: Includes context parameter when invoking getExploreState() from Prometheus datasource (#17569)

Closes #17457
This commit is contained in:
kay delaney 2019-06-13 14:14:09 +01:00 committed by GitHub
parent c59f308414
commit e11edf3fc2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -581,6 +581,7 @@ export class PrometheusDatasource extends DataSourceApi<PromQuery, PromOptions>
const expandedQueries = queries.map(query => ({
...query,
expr: this.templateSrv.replace(query.expr, {}, this.interpolateQueryExpr),
context: 'explore',
// null out values we don't support in Explore yet
legendFormat: null,