bbovenzi commented on code in PR #64185:
URL: https://github.com/apache/airflow/pull/64185#discussion_r2989157487


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx:
##########
@@ -82,6 +82,17 @@ export const Logs = () => {
   const [fullscreen, setFullscreen] = useState(false);
   const [expanded, setExpanded] = useState(false);
 
+  const defaultLogSource = useConfig("default_ui_log_source") as string | 
undefined;
+
+  const sourceFilters =
+    sourceFiltersParam.length > 0
+      ? sourceFiltersParam.includes("all")
+        ? []
+        : sourceFiltersParam
+      : defaultLogSource !== undefined && defaultLogSource !== "" && 
defaultLogSource !== "All Sources"
+        ? [defaultLogSource]
+        : [];

Review Comment:
   Would love a UI unit test here to make sure that we properly respect config 
vs when a user manually changes the filter.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to