From dac9574bf82f710b39c396b4d5c30b2f71aa576f Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Tue, 3 Dec 2019 13:52:05 +0000 Subject: [PATCH 1/3] [config] Enables swagger UI by default --- superset/config.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/superset/config.py b/superset/config.py index 1e6ff616044df..5fa525e5ddf93 100644 --- a/superset/config.py +++ b/superset/config.py @@ -103,7 +103,6 @@ def _try_json_readsha(filepath): SUPERSET_WEBSERVER_TIMEOUT = 60 SUPERSET_DASHBOARD_POSITION_DATA_LIMIT = 65535 -EMAIL_NOTIFICATIONS = False CUSTOM_SECURITY_MANAGER = None SQLALCHEMY_TRACK_MODIFICATIONS = False # --------------------------------------------------------- @@ -162,7 +161,9 @@ def _try_json_readsha(filepath): # Uncomment to specify where clicking the logo would take the user # e.g. setting it to '/welcome' would take the user to '/superset/welcome' LOGO_TARGET_PATH = None - +# Enables SWAGGER UI for superset openapi spec +# ex: http://localhost:8080/swaggerview/v1 +FAB_API_SWAGGER_UI = True # Druid query timezone # tz.tzutc() : Using utc timezone # tz.tzlocal() : Using local timezone From e6676602cec0e6b0959002943037e4bda77ef1f5 Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Tue, 3 Dec 2019 18:06:17 +0000 Subject: [PATCH 2/3] [config] Add missing blank lines --- superset/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/superset/config.py b/superset/config.py index 5fa525e5ddf93..400969978e9a0 100644 --- a/superset/config.py +++ b/superset/config.py @@ -161,9 +161,11 @@ def _try_json_readsha(filepath): # Uncomment to specify where clicking the logo would take the user # e.g. setting it to '/welcome' would take the user to '/superset/welcome' LOGO_TARGET_PATH = None + # Enables SWAGGER UI for superset openapi spec # ex: http://localhost:8080/swaggerview/v1 FAB_API_SWAGGER_UI = True + # Druid query timezone # tz.tzutc() : Using utc timezone # tz.tzlocal() : Using local timezone From 5ded0e5571cf492cc01661503dd74d164e0ac18f Mon Sep 17 00:00:00 2001 From: Daniel Gaspar Date: Wed, 4 Dec 2019 09:12:13 +0000 Subject: [PATCH 3/3] [docs] Update updating on swagger UI --- UPDATING.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UPDATING.md b/UPDATING.md index 2c8ce25a17c4b..48628cb707675 100644 --- a/UPDATING.md +++ b/UPDATING.md @@ -23,6 +23,10 @@ assists people when migrating to a new version. ## Next +* [8732](https://github.com/apache/incubator-superset/pull/8732): Swagger user interface is now enabled by default. +A new permission `show on SwaggerView` is created by `superset init` and given to the `Admin` Role. To disable the UI, +set `FAB_API_SWAGGER_UI = False` on config. + * [8721](https://github.com/apache/incubator-superset/pull/8721): When using the cache warmup Celery task you should now specify the `SUPERSET_WEBSERVER_PROTOCOL` variable in your configuration (probably either "http" or "https"). This defaults to "http".