Skip to content

Commit

Permalink
chore move calling configure_feature_flags more earlier (apache#15223)
Browse files Browse the repository at this point in the history
Co-authored-by: Ofeknielsen <ofek.israel@nieslen.com>
  • Loading branch information
2 people authored and cccs-RyanS committed Dec 17, 2021
1 parent 73c1b56 commit 6899dc8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superset/app.py
Expand Up @@ -553,7 +553,6 @@ def init_app_in_ctx(self) -> None:
"""
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()
Expand All @@ -576,6 +575,9 @@ def init_app(self) -> None:
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()
Expand Down

0 comments on commit 6899dc8

Please sign in to comment.