This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 8decc9e45f feat(api): Added uuid to list api calls (#32414)
8decc9e45f is described below

commit 8decc9e45fafe1ca2d65832925b8e7fbae043c5c
Author: Paul Rhodes <[email protected]>
AuthorDate: Thu Mar 6 00:28:29 2025 +0000

    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 f8f59c875b..68b6f2cb0c 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 f5979095e2..c7becfe8a1 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 b41f6395bd..2cb3dc3f1b 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 4f6aacfca6..2064239140 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
 

Reply via email to