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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
Remove having filter (#3219)
vasukapil4753868298b9
diff --git a/frontend/src/container/LogExplorerQuerySection/index.tsx b/frontend/src/container/LogExplorerQuerySection/index.tsxindex 234d2b589f..165bc8c20f 100644--- a/frontend/src/container/LogExplorerQuerySection/index.tsx+++ b/frontend/src/container/LogExplorerQuerySection/index.tsx@@ -32,8 +32,10 @@ function LogExplorerQuerySection(): JSX.Element {const filterConfigs: QueryBuilderProps['filterConfigs'] = useMemo(() => {const isTable = panelTypes === PANEL_TYPES.TABLE;+ const isList = panelTypes === PANEL_TYPES.LIST;const config: QueryBuilderProps['filterConfigs'] = {stepInterval: { isHidden: isTable, isDisabled: true },+ having: { isHidden: isList, isDisabled: true },filters: {customKey: 'body',customOp: OPERATORS.CONTAINS,diff --git a/frontend/src/container/QueryBuilder/components/Query/Query.tsx b/frontend/src/container/QueryBuilder/components/Query/Query.tsxindex 4418daec5e..7f8b4c1cdc 100644--- a/frontend/src/container/QueryBuilder/components/Query/Query.tsx+++ b/frontend/src/container/QueryBuilder/components/Query/Query.tsx@@ -220,16 +220,19 @@ export const Query = memo(function Query({</Col></Row></Col>- <Col span={11}>- <Row gutter={[11, 5]}>- <Col flex="5.93rem">- <FilterLabel label="HAVING" />- </Col>- <Col flex="1 1 12.5rem">- <HavingFilter onChange={handleChangeHavingFilter} query={query} />- </Col>- </Row>- </Col>+ {!filterConfigs?.having?.isHidden && (+ <Col span={11}>+ <Row gutter={[11, 5]}>+ <Col flex="5.93rem">+ <FilterLabel label="HAVING" />+ </Col>+ <Col flex="1 1 12.5rem">+ <HavingFilter onChange={handleChangeHavingFilter} query={query} />+ </Col>+ </Row>+ </Col>+ )}+<Col span={11}><Row gutter={[11, 5]}><Col flex="5.93rem">@@ -248,6 +251,7 @@ export const Query = memo(function Query({panelType,isMetricsDataSource,query,+ filterConfigs?.having?.isHidden,handleChangeLimit,handleChangeHavingFilter,renderOrderByFilter,diff --git a/frontend/src/container/TracesExplorer/QuerySection/index.tsx b/frontend/src/container/TracesExplorer/QuerySection/index.tsxindex 81514b496d..80f2925b37 100644--- a/frontend/src/container/TracesExplorer/QuerySection/index.tsx+++ b/frontend/src/container/TracesExplorer/QuerySection/index.tsx@@ -17,12 +17,14 @@ function QuerySection(): JSX.Element {const panelTypes = useGetPanelTypesQueryParam(PANEL_TYPES.LIST);const filterConfigs: QueryBuilderProps['filterConfigs'] = useMemo(() => {+ const isList = panelTypes === PANEL_TYPES.LIST;const config: QueryBuilderProps['filterConfigs'] = {stepInterval: { isHidden: false, isDisabled: true },+ having: { isHidden: isList, isDisabled: true },};return config;- }, []);+ }, [panelTypes]);const renderOrderBy = useCallback(({ query, onChange }: OrderByFilterProps) => (