mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fix: Pass missing maxDataPoints to query in Explore (#16513)
Fixes: #16490
This commit is contained in:
@@ -141,6 +141,7 @@ export function buildQueryTransaction(
|
||||
__interval: { text: interval, value: interval },
|
||||
__interval_ms: { text: intervalMs, value: intervalMs },
|
||||
},
|
||||
maxDataPoints: queryOptions.maxDataPoints,
|
||||
};
|
||||
|
||||
return {
|
||||
|
||||
@@ -536,6 +536,7 @@ export function runQueries(exploreId: ExploreId, ignoreUIState = false): ThunkRe
|
||||
supportsLogs,
|
||||
supportsTable,
|
||||
datasourceError,
|
||||
containerWidth,
|
||||
} = getState().explore[exploreId];
|
||||
|
||||
if (datasourceError) {
|
||||
@@ -579,6 +580,7 @@ export function runQueries(exploreId: ExploreId, ignoreUIState = false): ThunkRe
|
||||
interval,
|
||||
format: 'time_series',
|
||||
instant: false,
|
||||
maxDataPoints: containerWidth,
|
||||
},
|
||||
makeTimeSeriesList
|
||||
)
|
||||
|
||||
@@ -317,6 +317,7 @@ export interface QueryOptions {
|
||||
hinting?: boolean;
|
||||
instant?: boolean;
|
||||
valueWithRefId?: boolean;
|
||||
maxDataPoints?: number;
|
||||
}
|
||||
|
||||
export interface QueryTransaction {
|
||||
|
||||
Reference in New Issue
Block a user