Skip to content

Commit

Permalink
feat(tags): move tags from navbar to settings (#24518)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Vaz Gaspar <[email protected]>
  • Loading branch information
hughhhh and dpgaspar authored Jun 28, 2023
1 parent 7501134 commit a846e8a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 14 deletions.
1 change: 0 additions & 1 deletion superset/charts/commands/warm_up_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@


class ChartWarmUpCacheCommand(BaseCommand):
# pylint: disable=too-many-arguments
def __init__(
self,
chart_or_id: Union[int, Slice],
Expand Down
4 changes: 1 addition & 3 deletions superset/databases/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,9 +383,7 @@ def post(self) -> FlaskResponse:

# 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:
Expand Down
1 change: 0 additions & 1 deletion superset/datasets/commands/warm_up_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@


class DatasetWarmUpCacheCommand(BaseCommand):
# pylint: disable=too-many-arguments
def __init__(
self,
db_name: str,
Expand Down
11 changes: 2 additions & 9 deletions superset/initialization/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def init_views(self) -> None:
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
Expand Down Expand Up @@ -366,20 +366,13 @@ def init_views(self) -> None:
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)
Expand Down

0 comments on commit a846e8a

Please sign in to comment.