You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/28 10:08:21 UTC

[GitHub] [airflow] ashb commented on a diff in pull request #25323: Add `operator` and `has_outlet_datasets` to `/grid_data`

ashb commented on code in PR #25323:
URL: https://github.com/apache/airflow/pull/25323#discussion_r932030957


##########
airflow/www/views.py:
##########
@@ -353,6 +354,8 @@ def set_overall_state(record):
                 'label': item.label,
                 'extra_links': item.extra_links,
                 'is_mapped': item.is_mapped,
+                'has_outlet_datasets': any(isinstance(i, Dataset) for i in getattr(item, "_outlets", [])),

Review Comment:
   I suspect they are disconnected for no good reason (or no reason that exists anymore) and `_outlets` should just be removed (which we can do, as it's a private attribute after all)



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org