fix: add back view for report reload error (#19522)
* fix: add back view for report reload error * remove print * run black
This commit is contained in:
parent
c2fae82fa6
commit
79abd23f48
|
|
@ -151,7 +151,7 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
|||
from superset.reports.logs.api import ReportExecutionLogRestApi
|
||||
from superset.security.api import SecurityRestApi
|
||||
from superset.views.access_requests import AccessRequestsModelView
|
||||
from superset.views.alerts import AlertView
|
||||
from superset.views.alerts import AlertView, ReportView
|
||||
from superset.views.annotations import (
|
||||
AnnotationLayerModelView,
|
||||
AnnotationModelView,
|
||||
|
|
@ -445,6 +445,7 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
|
|||
and self.config["DRUID_METADATA_LINKS_ENABLED"]
|
||||
),
|
||||
)
|
||||
appbuilder.add_view_no_menu(ReportView)
|
||||
appbuilder.add_link(
|
||||
"Refresh Druid Metadata",
|
||||
label=__("Refresh Druid Metadata"),
|
||||
|
|
|
|||
|
|
@ -52,3 +52,8 @@ class BaseAlertReportView(BaseSupersetView):
|
|||
class AlertView(BaseAlertReportView):
|
||||
route_base = "/alert"
|
||||
class_permission_name = "ReportSchedule"
|
||||
|
||||
|
||||
class ReportView(BaseAlertReportView):
|
||||
route_base = "/report"
|
||||
class_permission_name = "ReportSchedule"
|
||||
|
|
|
|||
Loading…
Reference in New Issue