diff --git a/superset/databases/api.py b/superset/databases/api.py index aced8e7c6fa..3f737ec4da1 100644 --- a/superset/databases/api.py +++ b/superset/databases/api.py @@ -115,6 +115,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi): base_filters = [["id", DatabaseFilter, lambda: []]] show_columns = [ "id", + "uuid", "database_name", "cache_timeout", "expose_in_sqllab", @@ -157,6 +158,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi): "extra", "force_ctas_schema", "id", + "uuid", "disable_data_preview", "engine_information", ] diff --git a/tests/integration_tests/databases/api_tests.py b/tests/integration_tests/databases/api_tests.py index 9698c7e42a6..8a96184b819 100644 --- a/tests/integration_tests/databases/api_tests.py +++ b/tests/integration_tests/databases/api_tests.py @@ -201,6 +201,7 @@ class TestDatabaseApi(SupersetTestCase): "extra", "force_ctas_schema", "id", + "uuid", ] self.assertGreater(response["count"], 0)