feat(tags): move tags from navbar to settings (#24518)

Co-authored-by: Daniel Vaz Gaspar <danielvazgaspar@gmail.com>
This commit is contained in:
Hugh A. Miles II 2023-06-28 02:53:49 -04:00 committed by GitHub
parent 750113441c
commit a846e8a58d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 14 deletions

View File

@ -30,7 +30,6 @@ from superset.views.utils import get_dashboard_extra_filters, get_form_data, get
class ChartWarmUpCacheCommand(BaseCommand):
# pylint: disable=too-many-arguments
def __init__(
self,
chart_or_id: Union[int, Slice],

View File

@ -383,9 +383,7 @@ class DatabaseRestApi(BaseSupersetModelRestApi):
# Return SSH Tunnel and hide passwords if any
if item.get("ssh_tunnel"):
item["ssh_tunnel"] = mask_password_info(
new_model.ssh_tunnel # pylint: disable=no-member
)
item["ssh_tunnel"] = mask_password_info(new_model.ssh_tunnel)
return self.response(201, id=new_model.id, result=item)
except DatabaseInvalidError as ex:

View File

@ -28,7 +28,6 @@ from superset.models.slice import Slice
class DatasetWarmUpCacheCommand(BaseCommand):
# pylint: disable=too-many-arguments
def __init__(
self,
db_name: str,

View File

@ -156,7 +156,7 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
from superset.sqllab.api import SqlLabRestApi
from superset.tags.api import TagRestApi
from superset.views.alerts import AlertView, ReportView
from superset.views.all_entities import TaggedObjectsModelView, TaggedObjectView
from superset.views.all_entities import TaggedObjectView
from superset.views.annotations import AnnotationLayerView
from superset.views.api import Api
from superset.views.chart.views import SliceAsync, SliceModelView
@ -366,20 +366,13 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
category="SQL Lab",
category_label=__("SQL Lab"),
)
appbuilder.add_view(
TaggedObjectsModelView,
"All Entities",
label=__("All Entities"),
icon="",
category_icon="",
menu_cond=lambda: feature_flag_manager.is_feature_enabled("TAGGING_SYSTEM"),
)
appbuilder.add_view(
TagModelView,
"Tags",
label=__("Tags"),
icon="",
category_icon="",
category="Manage",
menu_cond=lambda: feature_flag_manager.is_feature_enabled("TAGGING_SYSTEM"),
)
appbuilder.add_api(LogRestApi)