uranusjr commented on code in PR #23510:
URL: https://github.com/apache/airflow/pull/23510#discussion_r884235865
##########
airflow/models/dagbag.py:
##########
@@ -640,8 +640,10 @@ def _sync_perm_for_dag(self, dag, session: Session = None):
from airflow.security.permissions import DAG_ACTIONS,
resource_name_for_dag
from airflow.www.fab_security.sqla.models import Action, Permission,
Resource
+ root_dag_id = dag.parent_dag.dag_id if dag.parent_dag else None
Review Comment:
Does this need to account for nested DAGs? (i.e. a subdag whose parent is
also a subdag. Is this a thing?)
--
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]