feat(alerts/reports): remove SIP_34_UI feature flag (#12085)

This commit is contained in:
Moriah Kreeger 2020-12-17 23:03:03 -08:00 committed by GitHub
parent ddd2ec59af
commit 17cd174bbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -78,7 +78,7 @@ class AlertReportModelView(SupersetModelView):
def list(self) -> FlaskResponse:
if not (
is_feature_enabled("ENABLE_REACT_CRUD_VIEWS")
and is_feature_enabled("SIP_34_ALERTS_UI")
and is_feature_enabled("ALERT_REPORTS")
):
return super().list()
@ -89,7 +89,7 @@ class AlertReportModelView(SupersetModelView):
def log(self, pk: int) -> FlaskResponse: # pylint: disable=unused-argument
if not (
is_feature_enabled("ENABLE_REACT_CRUD_VIEWS")
and is_feature_enabled("SIP_34_ALERTS_UI")
and is_feature_enabled("ALERT_REPORTS")
):
return super().list()
@ -202,7 +202,7 @@ class AlertModelView(SupersetModelView): # pylint: disable=too-many-ancestors
def list(self) -> FlaskResponse:
if not (
is_feature_enabled("ENABLE_REACT_CRUD_VIEWS")
and is_feature_enabled("SIP_34_ALERTS_UI")
and is_feature_enabled("ALERT_REPORTS")
):
return super().list()
@ -213,7 +213,7 @@ class AlertModelView(SupersetModelView): # pylint: disable=too-many-ancestors
def log(self, pk: int) -> FlaskResponse: # pylint: disable=unused-argument
if not (
is_feature_enabled("ENABLE_REACT_CRUD_VIEWS")
and is_feature_enabled("SIP_34_ALERTS_UI")
and is_feature_enabled("ALERT_REPORTS")
):
return super().list()