mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Queries: Move explore state out of query targets (#26203)
* Datasource/CloudWatch: Interal vars no longer sent with query requests Closes #26202
This commit is contained in:
@@ -124,7 +124,6 @@ export function buildQueryTransaction(
|
||||
scanning: boolean,
|
||||
timeZone?: TimeZone
|
||||
): QueryTransaction {
|
||||
const configuredQueries = queries.map(query => ({ ...query, ...queryOptions }));
|
||||
const key = queries.reduce((combinedKey, query) => {
|
||||
combinedKey += query.key;
|
||||
return combinedKey;
|
||||
@@ -149,7 +148,7 @@ export function buildQueryTransaction(
|
||||
// TODO: the query request expects number and we are using string here. Seems like it works so far but can create
|
||||
// issues down the road.
|
||||
panelId: panelId as any,
|
||||
targets: configuredQueries, // Datasources rely on DataQueries being passed under the targets key.
|
||||
targets: queries, // Datasources rely on DataQueries being passed under the targets key.
|
||||
range,
|
||||
requestId: 'explore',
|
||||
rangeRaw: range.raw,
|
||||
@@ -159,6 +158,9 @@ export function buildQueryTransaction(
|
||||
},
|
||||
maxDataPoints: queryOptions.maxDataPoints,
|
||||
exploreMode: queryOptions.mode,
|
||||
liveStreaming: queryOptions.liveStreaming,
|
||||
showingGraph: queryOptions.showingGraph,
|
||||
showingTable: queryOptions.showingTable,
|
||||
};
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user