From 4dc3dd0942cffb4811f7546c596e6a2e35d8f8a6 Mon Sep 17 00:00:00 2001 From: Paul Rhodes Date: Mon, 23 Jun 2025 18:29:11 +0100 Subject: [PATCH] fix(api): Added uuid as a valid search column (#33833) --- superset/charts/api.py | 1 + superset/dashboards/api.py | 1 + superset/datasets/api.py | 1 + superset/queries/api.py | 1 + 4 files changed, 4 insertions(+) diff --git a/superset/charts/api.py b/superset/charts/api.py index 68b6f2cb0c9..7a15d6e5c3e 100644 --- a/superset/charts/api.py +++ b/superset/charts/api.py @@ -236,6 +236,7 @@ class ChartRestApi(BaseSupersetModelRestApi): "slice_name", "viz_type", "tags", + "uuid", ] base_order = ("changed_on", "desc") base_filters = [["id", ChartFilter, lambda: []]] diff --git a/superset/dashboards/api.py b/superset/dashboards/api.py index 65d8fbd662a..4b7cb41a10f 100644 --- a/superset/dashboards/api.py +++ b/superset/dashboards/api.py @@ -254,6 +254,7 @@ class DashboardRestApi(BaseSupersetModelRestApi): "roles", "slug", "tags", + "uuid", ) search_filters = { "dashboard_title": [DashboardTitleOrSlugFilter], diff --git a/superset/datasets/api.py b/superset/datasets/api.py index 9b84885b4ca..098e0f68289 100644 --- a/superset/datasets/api.py +++ b/superset/datasets/api.py @@ -277,6 +277,7 @@ class DatasetRestApi(BaseSupersetModelRestApi): "table_name", "created_by", "changed_by", + "uuid", ] allowed_rel_fields = {"database", "owners", "created_by", "changed_by"} allowed_distinct_fields = {"catalog", "schema"} diff --git a/superset/queries/api.py b/superset/queries/api.py index 7e383e95bc1..d29d52fd363 100644 --- a/superset/queries/api.py +++ b/superset/queries/api.py @@ -162,6 +162,7 @@ class QueryRestApi(BaseSupersetModelRestApi): "user", "start_time", "sql_editor_id", + "uuid", ] allowed_rel_fields = {"database", "user"}