Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: time preference from the panel should be used to fetch data (#4836)

Yunus M872ed9e963c4
diff --git a/frontend/src/container/GridCardLayout/GridCard/FullView/index.tsx b/frontend/src/container/GridCardLayout/GridCard/FullView/index.tsx
index e4f14e8e19..84df755964 100644
--- a/frontend/src/container/GridCardLayout/GridCard/FullView/index.tsx
+++ b/frontend/src/container/GridCardLayout/GridCard/FullView/index.tsx
@@ -86,7 +86,7 @@ function FullView({
return {
query: updatedQuery,
graphType: PANEL_TYPES.LIST,
- selectedTime: 'GLOBAL_TIME',
+ selectedTime: widget?.timePreferance || 'GLOBAL_TIME',
globalSelectedInterval: globalSelectedTime,
tableParams: {
pagination: {
diff --git a/frontend/src/container/GridCardLayout/GridCard/index.tsx b/frontend/src/container/GridCardLayout/GridCard/index.tsx
index 363cba7f76..5755447d29 100644
--- a/frontend/src/container/GridCardLayout/GridCard/index.tsx
+++ b/frontend/src/container/GridCardLayout/GridCard/index.tsx
@@ -106,7 +106,7 @@ function GridCardGraph({
return {
query: updatedQuery,
graphType: PANEL_TYPES.LIST,
- selectedTime: 'GLOBAL_TIME',
+ selectedTime: widget.timePreferance || 'GLOBAL_TIME',
globalSelectedInterval,
tableParams: {
pagination: {
@@ -121,7 +121,7 @@ function GridCardGraph({
{
...requestData,
variables: getDashboardVariables(variables),
- selectedTime: 'GLOBAL_TIME',
+ selectedTime: widget.timePreferance || 'GLOBAL_TIME',
globalSelectedInterval,
},
version || DEFAULT_ENTITY_VERSION,