emecii commented on code in PR #72901:
URL: https://github.com/apache/airflow/pull/72901#discussion_r4089603967


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/Logs.tsx:
##########
@@ -234,6 +235,24 @@ export const Logs = () => {
     wrap,
   };
 
+  const noLogsAlert =
+    taskInstance !== undefined &&
+    fetchedData !== undefined &&
+    !isLoadingLogs &&
+    error === null &&
+    logError === null &&
+    (tryNumber === 0 || parsedData.parsedLogs?.length === 0) ? (
+      <Alert data-testid="no-task-logs" status="info" 
title={translate("logs.noLogsTitle")}>
+        <Trans
+          components={{
+            AuditLogLink: <RouterLink to={getTaskInstanceLink(taskInstance, 
"events")} />,

Review Comment:
   The reproduction used mocked missing-log responses, so it did not establish 
useful TI audit entries in production. The scheduler source does record 
queued/heartbeat timeout events, but Dag scope also includes activity outside 
the TI.
   
   Changed in 4ed4e265168369918989942ea73c3060cc3e14d2: link to 
`/dags/{dagId}/events`, describe it as related activity, and remove the 
newsfragment. All 17 log-pane tests, lint/typecheck, build, and regular/manual 
prek checks pass.
   
   ---
   Drafted-by: Codex (GPT-6) (no human review before posting)



-- 
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