pkdotson commented on a change in pull request #18629:
URL: https://github.com/apache/superset/pull/18629#discussion_r808575389
##########
File path: superset/views/base.py
##########
@@ -346,6 +346,16 @@ def common_bootstrap_payload() -> Dict[str, Any]:
# should not expose API TOKEN to frontend
frontend_config = {k: conf.get(k) for k in FRONTEND_CONF_KEYS}
+ frontend_config["EXCEL_EXTENSIONS"] = bool(
+
bool(conf["EXCEL_EXTENSIONS"].intersection(conf["ALLOWED_EXTENSIONS"])),
+ )
+ frontend_config["CSV_EXTENSIONS"] = bool(
+ bool(conf["CSV_EXTENSIONS"].intersection(conf["ALLOWED_EXTENSIONS"])),
+ )
+ frontend_config["COLUMNAR_EXTENSIONS"] = bool(
+
bool(conf["COLUMNAR_EXTENSIONS"].intersection(conf["ALLOWED_EXTENSIONS"])),
Review comment:
However I'm going to mark this as a follow up as this will add some
testing layer on frontend I think.
--
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]