uranusjr commented on code in PR #28208:
URL: https://github.com/apache/airflow/pull/28208#discussion_r1047972569
##########
airflow/www/views.py:
##########
@@ -389,6 +391,65 @@ def get_summary(dag_run, children):
"end_date": group_end_date,
}
+ def get_mapped_group_summaries(run_ids, children):
+ child_ids = [child["id"] for child in children]
+ mappedGroupQuery = session.query(
+ TaskInstance.task_id, TaskInstance.state, TaskInstance.run_id,
TaskInstance.map_index
+ ).filter(
+ TaskInstance.dag_id == dag.dag_id,
+ TaskInstance.task_id.in_(child_ids),
+ TaskInstance.run_id.in_(run_ids),
+ )
+
+ mapped_instances = list(mappedGroupQuery)
Review Comment:
```suggestion
mapped_instances = (
session
.query(
TaskInstance.task_id, TaskInstance.state,
TaskInstance.run_id, TaskInstance.map_index
)
.filter(
TaskInstance.dag_id == dag.dag_id,
TaskInstance.task_id.in_(child["id"] for child in
children),
TaskInstance.run_id.in_(run_ids),
)
)
```
--
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]