refactor: Removes the deprecated VERSIONED_EXPORT feature flag (#26347)

This commit is contained in:
Michael S. Molina
2024-01-19 15:21:14 -03:00
committed by GitHub
parent 649ff4dd61
commit f63e66be01
18 changed files with 417 additions and 742 deletions

View File

@@ -118,7 +118,6 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
# the global Flask app
#
# pylint: disable=import-outside-toplevel,too-many-locals,too-many-statements
from superset import security_manager
from superset.advanced_data_type.api import AdvancedDataTypeRestApi
from superset.annotation_layers.annotations.api import AnnotationRestApi
from superset.annotation_layers.api import AnnotationLayerRestApi
@@ -327,20 +326,6 @@ class SupersetAppInitializer: # pylint: disable=too-many-public-methods
#
# Add links
#
appbuilder.add_link(
"Import Dashboards",
label=__("Import Dashboards"),
href="/superset/import_dashboards/",
icon="fa-cloud-upload",
category="Manage",
category_label=__("Manage"),
category_icon="fa-wrench",
cond=lambda: (
security_manager.can_access("can_import_dashboards", "Superset")
and not feature_flag_manager.is_feature_enabled("VERSIONED_EXPORT")
),
)
appbuilder.add_link(
"SQL Editor",
label=__("SQL Lab"),