You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2022/07/14 21:56:06 UTC

[superset] 01/01: Update api.py

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

johnbodley pushed a commit to branch john-bodley--datasets-api-search-schema
in repository https://gitbox.apache.org/repos/asf/superset.git

commit bc2ceb65172c09756b27f18bb1996edab57b4525
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Thu Jul 14 14:55:57 2022 -0700

    Update api.py
---
 superset/datasets/api.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/datasets/api.py b/superset/datasets/api.py
index 6c4c896aec..d63aa35a20 100644
--- a/superset/datasets/api.py
+++ b/superset/datasets/api.py
@@ -204,7 +204,7 @@ class DatasetRestApi(BaseSupersetModelRestApi):
         "sql": [DatasetIsNullOrEmptyFilter],
         "id": [DatasetCertifiedFilter],
     }
-    search_columns = ["id", "database", "owners", "sql", "table_name"]
+    search_columns = ["id", "database", "owners", "schema", "sql", "table_name"]
     filter_rel_fields = {"database": [["id", DatabaseFilter, lambda: []]]}
     allowed_rel_fields = {"database", "owners"}
     allowed_distinct_fields = {"schema"}