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:
Phillip Kelley-Dotson 2022-04-04 15:31:53 -07:00 committed by GitHub
parent c2fae82fa6
commit 79abd23f48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -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"),

View File

@ -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"