Dashboard: Run requests with correct app type (#60010)

Dashboard: Run quries with correct core app
This commit is contained in:
Ivana Huckova
2022-12-08 11:52:28 +01:00
committed by GitHub
parent 4b56493789
commit e2077e9659
2 changed files with 5 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ export interface QueryRunnerOptions<
scopedVars?: ScopedVars;
cacheTimeout?: string | null;
transformations?: DataTransformerConfig[];
app?: CoreApp;
}
let counter = 100;
@@ -213,6 +214,7 @@ export class PanelQueryRunner {
maxDataPoints,
scopedVars,
minInterval,
app,
} = options;
if (isSharedDashboardQuery(datasource)) {
@@ -221,7 +223,7 @@ export class PanelQueryRunner {
}
const request: DataQueryRequest = {
app: CoreApp.Dashboard,
app: app ?? CoreApp.Dashboard,
requestId: getNextRequestId(),
timezone,
panelId,