You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jl...@apache.org on 2025/06/27 00:48:11 UTC
(superset) 01/05: feat(api): Added uuid to list api calls (#32414)
This is an automated email from the ASF dual-hosted git repository.
jli pushed a commit to branch 4.1
in repository https://gitbox.apache.org/repos/asf/superset.git
commit 8fd27b362abb15ed42e11b3c3542558fc25a66d2
Author: Paul Rhodes <wi...@users.noreply.github.com>
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 64177950b8..31bfdca455 100644
--- a/superset/charts/api.py
+++ b/superset/charts/api.py
@@ -201,6 +201,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 8b459fa945..0d1cbb4ebb 100644
--- a/superset/dashboards/api.py
+++ b/superset/dashboards/api.py
@@ -218,6 +218,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 f8f6bdc0b9..667121ac9b 100644
--- a/superset/datasets/api.py
+++ b/superset/datasets/api.py
@@ -123,6 +123,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 0887185619..e1c6589fa5 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