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

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


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

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

    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 292575feac..645f690d84 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 3d480c6c88..89242c14cb 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 b9094f3063..f01d41a8fc 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 6c6410feed..f20d8f96ac 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