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/15 01:51:36 UTC
[superset] branch master updated: Update api.py (#20711)
This is an automated email from the ASF dual-hosted git repository.
johnbodley 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 5285f3d640 Update api.py (#20711)
5285f3d640 is described below
commit 5285f3d640128ed24dda0f6ca9a9272efe179ab2
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Thu Jul 14 18:51:24 2022 -0700
Update api.py (#20711)
---
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"}