From 8decc9e45fafe1ca2d65832925b8e7fbae043c5c 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) --- 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 f8f59c875b5..68b6f2cb0c9 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 f5979095e25..c7becfe8a16 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 b41f6395bd7..2cb3dc3f1be 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 4f6aacfca6f..20642391406 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