dpgaspar commented on code in PR #24404:
URL: https://github.com/apache/superset/pull/24404#discussion_r1230772242


##########
superset/views/base.py:
##########
@@ -334,6 +334,30 @@ def render_app_template(self) -> FlaskResponse:
         )
 
 
+def get_environment_tag() -> dict[str, Any]:
+    # Whether flask is in debug mode (--debug)
+    debug = appbuilder.app.config.get("DEBUG")

Review Comment:
   you can just use `superset_app` here



##########
superset/views/base.py:
##########
@@ -334,6 +334,30 @@ def render_app_template(self) -> FlaskResponse:
         )
 
 
+def get_environment_tag() -> dict[str, Any]:
+    # Whether flask is in debug mode (--debug)
+    debug = appbuilder.app.config.get("DEBUG")
+
+    # Getting the configuration option for ENVIRONMENT_TAG_CONFIG
+    env_tag_config = appbuilder.app.config.get("ENVIRONMENT_TAG_CONFIG")

Review Comment:
   we assume config keys are always defined
   `superset_app.config["ENVIRONMENT_TAG_CONFIG"]`
   



-- 
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: [email protected]

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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to