mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: remove SIP_34_ANNOTATIONS_UI feature flag (#11727)
This commit is contained in:
@@ -99,10 +99,7 @@ class AnnotationModelView(
|
||||
@expose("/<pk>/annotation/", methods=["GET"])
|
||||
@has_access
|
||||
def annotation(self, pk: int) -> FlaskResponse: # pylint: disable=unused-argument
|
||||
if not (
|
||||
is_feature_enabled("ENABLE_REACT_CRUD_VIEWS")
|
||||
and is_feature_enabled("SIP_34_ANNOTATIONS_UI")
|
||||
):
|
||||
if not is_feature_enabled("ENABLE_REACT_CRUD_VIEWS"):
|
||||
return super().list()
|
||||
|
||||
return super().render_app_template()
|
||||
@@ -126,10 +123,7 @@ class AnnotationLayerModelView(SupersetModelView): # pylint: disable=too-many-a
|
||||
@expose("/list/")
|
||||
@has_access
|
||||
def list(self) -> FlaskResponse:
|
||||
if not (
|
||||
is_feature_enabled("ENABLE_REACT_CRUD_VIEWS")
|
||||
and is_feature_enabled("SIP_34_ANNOTATIONS_UI")
|
||||
):
|
||||
if not is_feature_enabled("ENABLE_REACT_CRUD_VIEWS"):
|
||||
return super().list()
|
||||
|
||||
return super().render_app_template()
|
||||
|
||||
Reference in New Issue
Block a user