uranusjr commented on code in PR #23813:
URL: https://github.com/apache/airflow/pull/23813#discussion_r877698564


##########
airflow/www/utils.py:
##########
@@ -127,13 +128,22 @@ def get_mapped_summary(parent_instance, task_instances):
     }
 
 
-def encode_ti(
-    task_instance: Optional[TaskInstance], is_mapped: Optional[bool], session: 
Optional[Session]
-) -> Optional[Dict[str, Any]]:
+def encode_ti(dag_run: DagRun, task, session: Session) -> Optional[Dict[str, 
Any]]:

Review Comment:
   I feel it may be better to either rename this function, or move logic 
obtaining the ti out of this function.



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