From 471f6ee7a062602b07fefeed006d21bc1cb2d081 Mon Sep 17 00:00:00 2001 From: Bhargav Date: Thu, 3 Jul 2025 16:48:01 +0530 Subject: [PATCH] fix: disable search around for aggregation query (#7441) --- web/src/composables/useLogs.ts | 8 +++++++- web/src/plugins/logs/DetailTable.vue | 12 +++++++++--- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/web/src/composables/useLogs.ts b/web/src/composables/useLogs.ts index 38cb6bdec1..43f44084c8 100644 --- a/web/src/composables/useLogs.ts +++ b/web/src/composables/useLogs.ts @@ -2247,6 +2247,11 @@ const useLogs = () => { } } } + + if(searchObj.data.query.toLowerCase().includes("group by")) { + return true; + } + return false; // No aggregation function or non-null groupby property found } @@ -6621,7 +6626,8 @@ const useLogs = () => { getStream, initialLogsState, clearSearchObj, - setCommunicationMethod + setCommunicationMethod, + hasAggregation, }; }; diff --git a/web/src/plugins/logs/DetailTable.vue b/web/src/plugins/logs/DetailTable.vue index be3b270ed4..5c3d43a3fc 100644 --- a/web/src/plugins/logs/DetailTable.vue +++ b/web/src/plugins/logs/DetailTable.vue @@ -288,7 +288,8 @@ along with this program. If not, see .
@@ -335,7 +336,7 @@ along with this program. If not, see .