ephraimbuddy commented on PR #23510:
URL: https://github.com/apache/airflow/pull/23510#issuecomment-1119425409

   > I wonder if we could have the `resource_name_for_dag` return multiple 
resources, and then we check in turn util we find one of them?
   > 
   > So `resource_name_for_dag("team.dag")` would return `["DAG:team.dag", 
"DAG:team"]`?
   > 
   > I don't know if that is "safe" to do. Possibly not, as _if_ both `team` 
and `team.dag` are dags (but not subdags) and then you have access to `team` it 
would "mistakenly" give you access to team.dag too.
   
   I had a discussion with @norm about this, what do you think of informing 
people that using a dot in the name of a dag will cause permission issues if 
the dag is not a subdag, then plan on removing `subdag` from airflow? We only 
deprecated `subdag` but no mention of when to remove it 


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