From 5c393db668a673256b6c6c2720056dc9aec5c398 Mon Sep 17 00:00:00 2001 From: Eric Harmeling Date: Tue, 7 Mar 2023 12:28:10 -0500 Subject: [PATCH] ui: extend stmt details link timescale window to match txn details link Fixes #97952. This commit extends the window of the timeScale set by clicking the statement details link from the Insight Overview and Statement Insight Details pages to 65 minutes, to match the behavior of the transaction details link. Epic: none Release note: None --- .../src/insights/workloadInsights/util/detailsLinks.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/ui/workspaces/cluster-ui/src/insights/workloadInsights/util/detailsLinks.tsx b/pkg/ui/workspaces/cluster-ui/src/insights/workloadInsights/util/detailsLinks.tsx index ba0050d6617b..049a60d66cb4 100644 --- a/pkg/ui/workspaces/cluster-ui/src/insights/workloadInsights/util/detailsLinks.tsx +++ b/pkg/ui/workspaces/cluster-ui/src/insights/workloadInsights/util/detailsLinks.tsx @@ -49,7 +49,7 @@ export function StatementDetailsLink( implicitTxn: insightDetails.implicitTxn, }; const timeScale: TimeScale = { - windowSize: moment.duration(insightDetails.elapsedTimeMillis), + windowSize: moment.duration(65, "minutes"), fixedWindowEnd: insightDetails.endTime, sampleSize: moment.duration(1, "hour"), key: "Custom",