{ti}))}
+ {affectedTasks.map((ti) => (
+ {ti}
+ ))}
+ {!affectedTasks.length && (
+
+ {parsedLogs}
+
+
+ );
+};
+
+export default LogBlock;
diff --git a/airflow/www/static/js/dag/details/taskInstance/Logs/index.tsx b/airflow/www/static/js/dag/details/taskInstance/Logs/index.tsx
index 43976a7b52974..0139d8e22392a 100644
--- a/airflow/www/static/js/dag/details/taskInstance/Logs/index.tsx
+++ b/airflow/www/static/js/dag/details/taskInstance/Logs/index.tsx
@@ -18,14 +18,13 @@
*/
import React, {
- useRef, useState, useEffect, useMemo,
+ useState, useEffect, useMemo,
} from 'react';
import {
Text,
Box,
Flex,
Divider,
- Code,
Button,
Checkbox,
} from '@chakra-ui/react';
@@ -36,12 +35,12 @@ import LinkButton from 'src/components/LinkButton';
import { useTimezone } from 'src/context/timezone';
import type { Dag, DagRun, TaskInstance } from 'src/types';
import MultiSelect from 'src/components/MultiSelect';
-import useOffsetHeight from 'src/utils/useOffsetHeight';
import URLSearchParamsWrapper from 'src/utils/URLSearchParamWrapper';
import LogLink from './LogLink';
import { LogLevel, logLevelColorMapping, parseLogs } from './utils';
+import LogBlock from './LogBlock';
interface LogLevelOption {
label: LogLevel;
@@ -108,10 +107,9 @@ const Logs = ({
const [logLevelFilters, setLogLevelFilters] = useState
- {isSuccess && (
- <>
- {parsedLogs}
-
- >
- )}
-
+ {!!parsedLogs && (
+ ${node.tooltip}
` : ''; diff --git a/airflow/www/templates/airflow/dag.html b/airflow/www/templates/airflow/dag.html index e6da97e68d5db..9fc7d516c0ae1 100644 --- a/airflow/www/templates/airflow/dag.html +++ b/airflow/www/templates/airflow/dag.html @@ -102,74 +102,78 @@ {% endif %}- Next Run: -
- {% endif %} - {% if dag_model is defined and dag_model.schedule_interval is defined and dag_model.schedule_interval == 'Dataset' %} - {%- with ds_info = dag_model.get_dataset_triggered_next_run_info() -%} - - + {% endif %} + {% if dag_model is defined and dag_model.schedule_interval is defined and dag_model.schedule_interval == 'Dataset' %} + {%- with ds_info = dag_model.get_dataset_triggered_next_run_info() -%} + + - - {%- endwith -%} - {% endif %} - + {%- endif %} + + + {%- endwith -%} + {% endif %} + +