XD-DENG commented on a change in pull request #14581:
URL: https://github.com/apache/airflow/pull/14581#discussion_r588625377



##########
File path: 
airflow/migrations/versions/2c6edca13270_resource_based_permissions.py
##########
@@ -30,7 +30,7 @@
 
 # revision identifiers, used by Alembic.
 revision = '2c6edca13270'
-down_revision = '849da589634d'
+down_revision = '2e42bb497a22'

Review comment:
       I guess changing this (part of `create_dag_specific_permissions` which 
is invoked by `2c6edca13270` (`Resource based permissions`.)) 
https://github.com/apache/airflow/blob/33910d6c699b5528db4be40d31199626dafed912/airflow/www/security.py#L478
 may help. Currently it queries `DagModel` so it get all columns unnecessarily.
   
   I will give a try.




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to