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


##########
airflow-core/src/airflow/ui/src/pages/TaskInstance/Logs/utils.ts:
##########
@@ -60,6 +64,14 @@ export const getDownloadText = ({
       translate,
     }),
   );
+
+  const tiContext = extractTIContext(lines);
+
+  if (Object.keys(tiContext).length > 0) {
+    rendered.unshift(renderTIContextPreamble(tiContext, "text", "Task 
Identity") as string);
+  }
+
+  return rendered;

Review Comment:
   Ideally this should all happen in the same loop as lines.map() so that we're 
not iterating through multiple times. 



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