|
|
|
@ -108,9 +108,6 @@ export class PanelQueryRunner { |
|
|
|
delayStateNotification, |
|
|
|
delayStateNotification, |
|
|
|
} = options; |
|
|
|
} = options; |
|
|
|
|
|
|
|
|
|
|
|
// filter out hidden queries & deep clone them
|
|
|
|
|
|
|
|
const clonedAndFilteredQueries = cloneDeep(queries.filter(q => !q.hide)); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const request: DataQueryRequest = { |
|
|
|
const request: DataQueryRequest = { |
|
|
|
requestId: getNextRequestId(), |
|
|
|
requestId: getNextRequestId(), |
|
|
|
timezone, |
|
|
|
timezone, |
|
|
|
@ -120,7 +117,7 @@ export class PanelQueryRunner { |
|
|
|
timeInfo, |
|
|
|
timeInfo, |
|
|
|
interval: '', |
|
|
|
interval: '', |
|
|
|
intervalMs: 0, |
|
|
|
intervalMs: 0, |
|
|
|
targets: clonedAndFilteredQueries, |
|
|
|
targets: cloneDeep(queries), |
|
|
|
maxDataPoints: maxDataPoints || widthPixels, |
|
|
|
maxDataPoints: maxDataPoints || widthPixels, |
|
|
|
scopedVars: scopedVars || {}, |
|
|
|
scopedVars: scopedVars || {}, |
|
|
|
cacheTimeout, |
|
|
|
cacheTimeout, |
|
|
|
@ -135,6 +132,10 @@ export class PanelQueryRunner { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const ds = await getDataSource(datasource, request.scopedVars); |
|
|
|
const ds = await getDataSource(datasource, request.scopedVars); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (ds.meta && !ds.meta.hiddenQueries) { |
|
|
|
|
|
|
|
request.targets = request.targets.filter(q => !q.hide); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Attach the datasource name to each query
|
|
|
|
// Attach the datasource name to each query
|
|
|
|
request.targets = request.targets.map(query => { |
|
|
|
request.targets = request.targets.map(query => { |
|
|
|
if (!query.datasource) { |
|
|
|
if (!query.datasource) { |
|
|
|
|