vincbeck commented on code in PR #33213:
URL: https://github.com/apache/airflow/pull/33213#discussion_r1317392293


##########
airflow/auth/managers/base_auth_manager.py:
##########
@@ -102,3 +154,8 @@ def security_manager(self, security_manager: 
AirflowSecurityManager):
         :param security_manager: the security manager
         """
         self._security_manager = security_manager
+
+    @staticmethod
+    def is_dag_resource(resource_type: ResourceType) -> bool:
+        """Determines if a resource relates to a DAG."""
+        return resource_type == ResourceType.DAG

Review Comment:
   I'll remove this one, I am currently working on refactoring this PR



##########
airflow/auth/managers/base_auth_manager.py:
##########
@@ -102,3 +154,8 @@ def security_manager(self, security_manager: 
AirflowSecurityManager):
         :param security_manager: the security manager
         """
         self._security_manager = security_manager
+
+    @staticmethod
+    def is_dag_resource(resource_type: ResourceType) -> bool:
+        """Determines if a resource relates to a DAG."""
+        return resource_type == ResourceType.DAG

Review Comment:
   Putting it as draft for now



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