chore move calling configure_feature_flags more earlier (#15223)

Co-authored-by: Ofeknielsen <ofek.israel@nieslen.com>
This commit is contained in:
ofekisr 2021-06-21 10:35:18 +03:00 committed by GitHub
parent 14598d4d5d
commit b1689aa93b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -553,7 +553,6 @@ class SupersetAppInitializer:
"""
Runs init logic in the context of the app
"""
self.configure_feature_flags()
self.configure_fab()
self.configure_url_map_converters()
self.configure_data_sources()
@ -576,6 +575,9 @@ class SupersetAppInitializer:
self.pre_init()
# Configuration of logging must be done first to apply the formatter properly
self.configure_logging()
# Configuration of feature_flags must be done first to allow init features
# conditionally
self.configure_feature_flags()
self.configure_db_encrypt()
self.setup_db()
self.configure_celery()