mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
refactor: Removes the deprecated VERSIONED_EXPORT feature flag (#26347)
This commit is contained in:
committed by
GitHub
parent
649ff4dd61
commit
f63e66be01
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user