From da7b83c1bbae257893dc1e4cf7268e1ef4db5d54 Mon Sep 17 00:00:00 2001 From: Matias Chomicki Date: Tue, 1 Jul 2025 14:19:25 +0200 Subject: [PATCH] ControlledLogRows: pass filter levels (#107448) --- public/app/features/explore/Logs/Logs.tsx | 1 + .../features/logs/components/ControlledLogRows.tsx | 13 ++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/public/app/features/explore/Logs/Logs.tsx b/public/app/features/explore/Logs/Logs.tsx index acaa32584c1..c51cbfb7d4d 100644 --- a/public/app/features/explore/Logs/Logs.tsx +++ b/public/app/features/explore/Logs/Logs.tsx @@ -1035,6 +1035,7 @@ const UnthemedLogs: React.FunctionComponent = (props: Props) => { logOptionsStorageKey={SETTING_KEY_ROOT} onLogOptionsChange={onLogOptionsChange} hasUnescapedContent={hasUnescapedContent} + filterLevels={filterLevels} /> )} diff --git a/public/app/features/logs/components/ControlledLogRows.tsx b/public/app/features/logs/components/ControlledLogRows.tsx index 4ddaeb13648..189ce66dda9 100644 --- a/public/app/features/logs/components/ControlledLogRows.tsx +++ b/public/app/features/logs/components/ControlledLogRows.tsx @@ -7,6 +7,7 @@ import { DataFrame, EventBusSrv, ExploreLogsPanelState, + LogLevel, LogsMetaItem, LogsSortOrder, SplitOpen, @@ -32,6 +33,7 @@ export interface ControlledLogRowsProps extends Omit { logOptionsStorageKey?: string; onLogOptionsChange?: (option: keyof LogListControlOptions, value: string | boolean | string[]) => void; range: TimeRange; + filterLevels?: LogLevel[]; /** Props added for Table **/ visualisationType: LogsVisualisationType; @@ -45,7 +47,14 @@ export interface ControlledLogRowsProps extends Omit { export type LogRowsComponentProps = Omit< ControlledLogRowsProps, - 'app' | 'dedupStrategy' | 'showLabels' | 'showTime' | 'logsSortOrder' | 'prettifyLogMessage' | 'wrapLogMessage' + | 'app' + | 'dedupStrategy' + | 'filterLevels' + | 'showLabels' + | 'showTime' + | 'logsSortOrder' + | 'prettifyLogMessage' + | 'wrapLogMessage' >; export const ControlledLogRows = forwardRef( @@ -53,6 +62,7 @@ export const ControlledLogRows = forwardRef