mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Explore: Moves PromContext from query level to DataQueryRequest level (#21260)
Closes #19598 Fixes bug introduced recently where the new PromQueryEditor did not preserve the PromContext.Explore set on the query model by PromQueryField which caused the table to be empty for Prometheus in explore.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { DataQueryRequest, DataQuery } from '@grafana/data';
|
||||
import { DataQueryRequest, DataQuery, CoreApp } from '@grafana/data';
|
||||
import { dateTime } from '@grafana/data';
|
||||
|
||||
export function getQueryOptions<TQuery extends DataQuery>(
|
||||
@@ -9,6 +9,7 @@ export function getQueryOptions<TQuery extends DataQuery>(
|
||||
|
||||
const defaults: DataQueryRequest<TQuery> = {
|
||||
requestId: 'TEST',
|
||||
app: CoreApp.Dashboard,
|
||||
range: range,
|
||||
targets: [],
|
||||
scopedVars: {},
|
||||
|
||||
Reference in New Issue
Block a user