eschutho commented on a change in pull request #18629:
URL: https://github.com/apache/superset/pull/18629#discussion_r807317276
##########
File path: superset/views/base.py
##########
@@ -365,6 +365,17 @@ def common_bootstrap_payload() -> Dict[str, Any]:
"extra_sequential_color_schemes":
conf["EXTRA_SEQUENTIAL_COLOR_SCHEMES"],
"extra_categorical_color_schemes":
conf["EXTRA_CATEGORICAL_COLOR_SCHEMES"],
"theme_overrides": conf["THEME_OVERRIDES"],
+ "allowed_extensions": {
+ "excel_extensions": bool(
+
conf["EXCEL_EXTENSIONS"].intersection(conf["ALLOWED_EXTENSIONS"])
+ ),
+ "csv_extensions": bool(
+ conf["CSV_EXTENSIONS"].intersection(conf["ALLOWED_EXTENSIONS"])
+ ),
+ "columnar_extensions": bool(
+
conf["COLUMNAR_EXTENSIONS"].intersection(conf["ALLOWED_EXTENSIONS"])
+ ),
+ },
Review comment:
to dry this up a bit more, you should be able to add these four conf
keys to `FRONTEND_CONF_KEYS` and they'll get passed through the conf param.
--
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]