mirror of
https://github.com/apache/superset.git
synced 2026-04-17 23:25:05 +00:00
chore: remove annotation layer FAB CRUD model view (#22178)
This commit is contained in:
committed by
GitHub
parent
d1567ba06d
commit
a77b2d6ebf
@@ -149,10 +149,7 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
from superset.security.api import SecurityRestApi
|
||||
from superset.views.access_requests import AccessRequestsModelView
|
||||
from superset.views.alerts import AlertView, ReportView
|
||||
from superset.views.annotations import (
|
||||
AnnotationLayerModelView,
|
||||
AnnotationModelView,
|
||||
)
|
||||
from superset.views.annotations import AnnotationLayerView
|
||||
from superset.views.api import Api
|
||||
from superset.views.chart.views import SliceAsync, SliceModelView
|
||||
from superset.views.core import Superset
|
||||
@@ -236,16 +233,6 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
category="Data",
|
||||
category_label=__("Data"),
|
||||
)
|
||||
|
||||
appbuilder.add_view(
|
||||
AnnotationLayerModelView,
|
||||
"Annotation Layers",
|
||||
label=__("Annotation Layers"),
|
||||
icon="fa-comment",
|
||||
category="Manage",
|
||||
category_label=__("Manage"),
|
||||
category_icon="",
|
||||
)
|
||||
appbuilder.add_view(
|
||||
DashboardModelView,
|
||||
"Dashboards",
|
||||
@@ -323,7 +310,6 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
appbuilder.add_view_no_menu(SliceAsync)
|
||||
appbuilder.add_view_no_menu(SqlLab)
|
||||
appbuilder.add_view_no_menu(SqlMetricInlineView)
|
||||
appbuilder.add_view_no_menu(AnnotationModelView)
|
||||
appbuilder.add_view_no_menu(Superset)
|
||||
appbuilder.add_view_no_menu(TableColumnInlineView)
|
||||
appbuilder.add_view_no_menu(TableModelView)
|
||||
@@ -401,6 +387,17 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
||||
menu_cond=lambda: feature_flag_manager.is_feature_enabled("ALERT_REPORTS"),
|
||||
)
|
||||
|
||||
appbuilder.add_view(
|
||||
AnnotationLayerView,
|
||||
"Annotation Layers",
|
||||
label=_("Annotation Layers"),
|
||||
href="/annotationlayer/list/",
|
||||
icon="fa-comment",
|
||||
category_icon="",
|
||||
category="Manage",
|
||||
category_label=__("Manage"),
|
||||
)
|
||||
|
||||
appbuilder.add_view(
|
||||
AccessRequestsModelView,
|
||||
"Access requests",
|
||||
|
||||
Reference in New Issue
Block a user