uranusjr commented on a change in pull request #19153:
URL: https://github.com/apache/airflow/pull/19153#discussion_r734397697



##########
File path: airflow/models/dagbag.py
##########
@@ -630,25 +631,24 @@ def _serialize_dag_capturing_errors(dag, session):
     @provide_session
     def _sync_perm_for_dag(self, dag, session: Optional[Session] = None):
         """Sync DAG specific permissions, if necessary"""
-        from flask_appbuilder.security.sqla import models as sqla_models
-
         from airflow.security.permissions import DAG_ACTIONS, 
resource_name_for_dag
+        from airflow.www.fab_security.sqla.models import Action, Permission

Review comment:
       Why do these need to be imported locally while `Resource` can be 
imported globally?




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