From e5c6d3e388a5effbd15e160d1dabe96a5d56ba8d Mon Sep 17 00:00:00 2001 From: Paul Rhodes Date: Thu, 6 Mar 2025 00:28:29 +0000 Subject: [PATCH] feat(api): Added uuid to list api calls (#32414) (cherry picked from commit 8decc9e45fafe1ca2d65832925b8e7fbae043c5c) --- superset/charts/api.py | 1 + superset/dashboards/api.py | 1 + superset/datasets/api.py | 1 + tests/integration_tests/datasets/api_tests.py | 1 + 4 files changed, 4 insertions(+) diff --git a/superset/charts/api.py b/superset/charts/api.py index 292575feac4..645f690d84c 100644 --- a/superset/charts/api.py +++ b/superset/charts/api.py @@ -206,6 +206,7 @@ class ChartRestApi(BaseSupersetModelRestApi): "tags.id", "tags.name", "tags.type", + "uuid", ] list_select_columns = list_columns + ["changed_by_fk", "changed_on"] order_columns = [ diff --git a/superset/dashboards/api.py b/superset/dashboards/api.py index 3d480c6c883..89242c14cb5 100644 --- a/superset/dashboards/api.py +++ b/superset/dashboards/api.py @@ -217,6 +217,7 @@ class DashboardRestApi(BaseSupersetModelRestApi): "tags.id", "tags.name", "tags.type", + "uuid", ] list_select_columns = list_columns + ["changed_on", "created_on", "changed_by_fk"] diff --git a/superset/datasets/api.py b/superset/datasets/api.py index b9094f30639..f01d41a8fc7 100644 --- a/superset/datasets/api.py +++ b/superset/datasets/api.py @@ -134,6 +134,7 @@ class DatasetRestApi(BaseSupersetModelRestApi): "schema", "sql", "table_name", + "uuid", ] list_select_columns = list_columns + ["changed_on", "changed_by_fk"] order_columns = [ diff --git a/tests/integration_tests/datasets/api_tests.py b/tests/integration_tests/datasets/api_tests.py index 6c6410feed4..f20d8f96ac9 100644 --- a/tests/integration_tests/datasets/api_tests.py +++ b/tests/integration_tests/datasets/api_tests.py @@ -253,6 +253,7 @@ class TestDatasetApi(SupersetTestCase): "schema", "sql", "table_name", + "uuid", ] assert sorted(list(response["result"][0].keys())) == expected_columns # noqa: C414