You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/04 15:30:24 UTC

[GitHub] [airflow] ephraimbuddy commented on a diff in pull request #24156: Create new databases from the ORM

ephraimbuddy commented on code in PR #24156:
URL: https://github.com/apache/airflow/pull/24156#discussion_r913104704


##########
tests/conftest.py:
##########
@@ -194,9 +194,11 @@ def pytest_addoption(parser):
 
 def initial_db_init():
     from airflow.utils import db
+    from airflow.www.app import create_app
 
     db.resetdb()
     db.bootstrap_dagbag()
+    create_app(config={'UPDATE_FAB_PERMS': True})

Review Comment:
   This is to create the permissions. Before now, it was done through `airflow db upgrade`, at this migration: https://github.com/apache/airflow/blob/e2fd41f7b14adef2c3a88dde14d088b5ef93b460/airflow/migrations/versions/0084_2_1_0_resource_based_permissions_for_default_.py#L142 whenever we run tests.
   Looking at it now,  'UPDATE_FAB_PERMS' is set to False



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org