Skip to content

Commit

Permalink
CLDN-1710 including schema in search columns for datasets api (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-nik authored and cccs-RyanK committed Apr 20, 2023
1 parent bf02421 commit 553d8ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions superset/datasets/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ class DatasetRestApi(BaseSupersetModelRestApi):
"id": [DatasetCertifiedFilter],
}
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"}

Expand Down

0 comments on commit 553d8ad

Please sign in to comment.