From b1689aa93b3695be38bd4c0b0a0c02cd9dea86ec Mon Sep 17 00:00:00 2001 From: ofekisr <35701650+ofekisr@users.noreply.github.com> Date: Mon, 21 Jun 2021 10:35:18 +0300 Subject: [PATCH] chore move calling configure_feature_flags more earlier (#15223) Co-authored-by: Ofeknielsen --- superset/app.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/superset/app.py b/superset/app.py index 7b984df036..6a6deb0275 100644 --- a/superset/app.py +++ b/superset/app.py @@ -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()