mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
fix: bump FAB to 4.1.2 (#20483)
This commit is contained in:
committed by
GitHub
parent
bcc51400bd
commit
c56e37cda2
@@ -86,7 +86,7 @@ flask==2.0.3
|
||||
# flask-migrate
|
||||
# flask-sqlalchemy
|
||||
# flask-wtf
|
||||
flask-appbuilder==4.0.0
|
||||
flask-appbuilder==4.1.2
|
||||
# via apache-superset
|
||||
flask-babel==1.0.0
|
||||
# via flask-appbuilder
|
||||
|
||||
2
setup.py
2
setup.py
@@ -77,7 +77,7 @@ setup(
|
||||
"cryptography>=3.3.2",
|
||||
"deprecation>=2.1.0, <2.2.0",
|
||||
"flask>=2.0.0, <3.0.0",
|
||||
"flask-appbuilder>=4.0.0, <5.0.0",
|
||||
"flask-appbuilder>=4.1.2, <5.0.0",
|
||||
"flask-caching>=1.10.0",
|
||||
"flask-compress",
|
||||
"flask-talisman",
|
||||
|
||||
@@ -60,7 +60,9 @@ class SelectDataRequired(DataRequired): # pylint: disable=too-few-public-method
|
||||
field_flags = ()
|
||||
|
||||
|
||||
class TableColumnInlineView(CompactCRUDMixin, SupersetModelView):
|
||||
class TableColumnInlineView(
|
||||
CompactCRUDMixin, SupersetModelView
|
||||
): # pylint: disable=too-many-ancestors
|
||||
datamodel = SQLAInterface(models.TableColumn)
|
||||
# TODO TODO, review need for this on related_views
|
||||
class_permission_name = "Dataset"
|
||||
@@ -192,7 +194,9 @@ class TableColumnInlineView(CompactCRUDMixin, SupersetModelView):
|
||||
edit_form_extra_fields = add_form_extra_fields
|
||||
|
||||
|
||||
class SqlMetricInlineView(CompactCRUDMixin, SupersetModelView):
|
||||
class SqlMetricInlineView(
|
||||
CompactCRUDMixin, SupersetModelView
|
||||
): # pylint: disable=too-many-ancestors
|
||||
datamodel = SQLAInterface(models.SqlMetric)
|
||||
class_permission_name = "Dataset"
|
||||
method_permission_name = MODEL_VIEW_RW_METHOD_PERMISSION_MAP
|
||||
@@ -274,7 +278,9 @@ class RowLevelSecurityListWidget(
|
||||
super().__init__(**kwargs)
|
||||
|
||||
|
||||
class RowLevelSecurityFiltersModelView(SupersetModelView, DeleteMixin):
|
||||
class RowLevelSecurityFiltersModelView(
|
||||
SupersetModelView, DeleteMixin
|
||||
): # pylint: disable=too-many-ancestors
|
||||
datamodel = SQLAInterface(models.RowLevelSecurityFilter)
|
||||
|
||||
list_widget = cast(SupersetListWidget, RowLevelSecurityListWidget)
|
||||
|
||||
@@ -25,7 +25,9 @@ from superset.views.base import DeleteMixin, SupersetModelView
|
||||
from superset.views.core import DAR
|
||||
|
||||
|
||||
class AccessRequestsModelView(SupersetModelView, DeleteMixin):
|
||||
class AccessRequestsModelView(
|
||||
SupersetModelView, DeleteMixin
|
||||
): # pylint: disable=too-many-ancestors
|
||||
datamodel = SQLAInterface(DAR)
|
||||
include_route_methods = RouteMethod.CRUD_SET
|
||||
list_columns = [
|
||||
|
||||
@@ -47,7 +47,9 @@ class StartEndDttmValidator: # pylint: disable=too-few-public-methods
|
||||
)
|
||||
|
||||
|
||||
class AnnotationModelView(SupersetModelView, CompactCRUDMixin):
|
||||
class AnnotationModelView(
|
||||
SupersetModelView, CompactCRUDMixin
|
||||
): # pylint: disable=too-many-ancestors
|
||||
datamodel = SQLAInterface(Annotation)
|
||||
include_route_methods = RouteMethod.CRUD_SET | {"annotation"}
|
||||
|
||||
|
||||
@@ -25,7 +25,9 @@ from superset.superset_typing import FlaskResponse
|
||||
from superset.views.base import DeleteMixin, SupersetModelView
|
||||
|
||||
|
||||
class CssTemplateModelView(SupersetModelView, DeleteMixin):
|
||||
class CssTemplateModelView(
|
||||
SupersetModelView, DeleteMixin
|
||||
): # pylint: disable=too-many-ancestors
|
||||
datamodel = SQLAInterface(models.CssTemplate)
|
||||
include_route_methods = RouteMethod.CRUD_SET
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ from superset.views.base import SupersetModelView
|
||||
from . import LogMixin
|
||||
|
||||
|
||||
class LogModelView(LogMixin, SupersetModelView):
|
||||
class LogModelView(LogMixin, SupersetModelView): # pylint: disable=too-many-ancestors
|
||||
datamodel = SQLAInterface(models.Log)
|
||||
include_route_methods = {RouteMethod.LIST, RouteMethod.SHOW}
|
||||
class_permission_name = "Log"
|
||||
|
||||
@@ -35,7 +35,9 @@ from .base import BaseSupersetView, DeleteMixin, json_success, SupersetModelView
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class SavedQueryView(SupersetModelView, DeleteMixin):
|
||||
class SavedQueryView(
|
||||
SupersetModelView, DeleteMixin
|
||||
): # pylint: disable=too-many-ancestors
|
||||
datamodel = SQLAInterface(SavedQuery)
|
||||
include_route_methods = RouteMethod.CRUD_SET
|
||||
|
||||
|
||||
Reference in New Issue
Block a user