fix: remove feature flag for tags on Dashboard API for `Tags` (#23909)
This commit is contained in:
parent
a8e02cd851
commit
3528f4140c
|
|
@ -191,9 +191,11 @@ class DashboardRestApi(BaseSupersetModelRestApi):
|
|||
"roles.id",
|
||||
"roles.name",
|
||||
"is_managed_externally",
|
||||
"tags.id",
|
||||
"tags.name",
|
||||
"tags.type",
|
||||
]
|
||||
if is_feature_enabled("TAGGING_SYSTEM"):
|
||||
list_columns += ["tags.id", "tags.name", "tags.type"]
|
||||
|
||||
list_select_columns = list_columns + ["changed_on", "created_on", "changed_by_fk"]
|
||||
order_columns = [
|
||||
"changed_by.first_name",
|
||||
|
|
@ -219,36 +221,22 @@ class DashboardRestApi(BaseSupersetModelRestApi):
|
|||
edit_columns = add_columns
|
||||
|
||||
search_columns = (
|
||||
(
|
||||
"created_by",
|
||||
"changed_by",
|
||||
"dashboard_title",
|
||||
"id",
|
||||
"owners",
|
||||
"published",
|
||||
"roles",
|
||||
"slug",
|
||||
"tags",
|
||||
)
|
||||
if is_feature_enabled("TAGGING_SYSTEM")
|
||||
else (
|
||||
"created_by",
|
||||
"changed_by",
|
||||
"dashboard_title",
|
||||
"id",
|
||||
"owners",
|
||||
"published",
|
||||
"roles",
|
||||
"slug",
|
||||
)
|
||||
"created_by",
|
||||
"changed_by",
|
||||
"dashboard_title",
|
||||
"id",
|
||||
"owners",
|
||||
"published",
|
||||
"roles",
|
||||
"slug",
|
||||
"tags",
|
||||
)
|
||||
search_filters = {
|
||||
"dashboard_title": [DashboardTitleOrSlugFilter],
|
||||
"id": [DashboardFavoriteFilter, DashboardCertifiedFilter],
|
||||
"created_by": [DashboardCreatedByMeFilter, DashboardHasCreatedByFilter],
|
||||
"tags": [DashboardTagFilter],
|
||||
}
|
||||
if is_feature_enabled("TAGGING_SYSTEM"):
|
||||
search_filters["tags"] = [DashboardTagFilter]
|
||||
|
||||
base_order = ("changed_on", "desc")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue