From e5105cefdeda8f2646957c6c3158830bc450ceb7 Mon Sep 17 00:00:00 2001 From: Sara Burns Date: Thu, 27 Mar 2025 11:33:09 -0400 Subject: [PATCH] docs: Superset config patch --- .../technical_documentation/how-tos/index.rst | 1 + .../how-tos/superset_config_docker.rst | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 docs/technical_documentation/how-tos/superset_config_docker.rst diff --git a/docs/technical_documentation/how-tos/index.rst b/docs/technical_documentation/how-tos/index.rst index fa241aa..e7036c0 100644 --- a/docs/technical_documentation/how-tos/index.rst +++ b/docs/technical_documentation/how-tos/index.rst @@ -15,6 +15,7 @@ How-Tos Superset extra row level security Superset extra jinja filters Superset custom roles + Superset custom config settings Clickhouse extra SQL Connect to external Clickhouse database Extending dbt diff --git a/docs/technical_documentation/how-tos/superset_config_docker.rst b/docs/technical_documentation/how-tos/superset_config_docker.rst new file mode 100644 index 0000000..66ddb74 --- /dev/null +++ b/docs/technical_documentation/how-tos/superset_config_docker.rst @@ -0,0 +1,28 @@ +.. _superset-config-docker: + +Superset Custom Production Config Settings +****************************************** + +To add or override production config settings in Superset, you can use the patch +`superset-config-docker`. For example, to disable any custom color schemes: + +.. code-block:: + + FEATURE_FLAGS = { + "EXTRA_CATEGORICAL_COLOR_SCHEMES": False + } + +Or to add a new custom color scheme: + +.. code-block:: + + EXTRA_CATEGORICAL_COLOR_SCHEMES.append( + { + "id": 'your_new_palette', + "description": 'Custom color scheme for Company', + "label": 'Custom Colors', + "colors": ['#11406A', '#F4661F'] + }, + ) + +These changes will take effect on restart. To override *local* config settings, use `superset-config` patch instead. \ No newline at end of file