mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
chore: bump majors on celery and Flask (#19168)
* chore: bump celery, Flask, flask-jwt-extended, pyJWT * fix pyJWT breaking change * fix pyJWT breaking change 2 * test * fixed test * fixed test * fixed test * revert since mypy won't pick the correct signature * lint 1 * fix test * fix test * docs and celery config migration * bump FAB to 4.0.0rc3, remove AUTH_STRICT_RESPONSE_CODES * update docs for new celery config keys * downgrade celery to 5.2.2 * ref FAB to final 4.0.0 release * remove conflict left over
This commit is contained in:
committed by
GitHub
parent
2af2d00e85
commit
f37fc1a7f0
@@ -64,7 +64,9 @@ if feature_flags.get("VERSIONED_EXPORT"):
|
||||
from superset.dashboards.commands.export import ExportDashboardsCommand
|
||||
from superset.models.dashboard import Dashboard
|
||||
|
||||
g.user = security_manager.find_user(username="admin")
|
||||
g.user = security_manager.find_user( # pylint: disable=assigning-non-slot
|
||||
username="admin"
|
||||
)
|
||||
|
||||
dashboard_ids = [id_ for (id_,) in db.session.query(Dashboard.id).all()]
|
||||
timestamp = datetime.now().strftime("%Y%m%dT%H%M%S")
|
||||
@@ -96,7 +98,9 @@ if feature_flags.get("VERSIONED_EXPORT"):
|
||||
from superset.connectors.sqla.models import SqlaTable
|
||||
from superset.datasets.commands.export import ExportDatasetsCommand
|
||||
|
||||
g.user = security_manager.find_user(username="admin")
|
||||
g.user = security_manager.find_user( # pylint: disable=assigning-non-slot
|
||||
username="admin"
|
||||
)
|
||||
|
||||
dataset_ids = [id_ for (id_,) in db.session.query(SqlaTable.id).all()]
|
||||
timestamp = datetime.now().strftime("%Y%m%dT%H%M%S")
|
||||
@@ -135,7 +139,9 @@ if feature_flags.get("VERSIONED_EXPORT"):
|
||||
)
|
||||
|
||||
if username is not None:
|
||||
g.user = security_manager.find_user(username=username)
|
||||
g.user = security_manager.find_user( # pylint: disable=assigning-non-slot
|
||||
username=username
|
||||
)
|
||||
if is_zipfile(path):
|
||||
with ZipFile(path) as bundle:
|
||||
contents = get_contents_from_bundle(bundle)
|
||||
@@ -299,7 +305,9 @@ else:
|
||||
elif path_object.exists() and recursive:
|
||||
files.extend(path_object.rglob("*.json"))
|
||||
if username is not None:
|
||||
g.user = security_manager.find_user(username=username)
|
||||
g.user = security_manager.find_user( # pylint: disable=assigning-non-slot
|
||||
username=username
|
||||
)
|
||||
contents = {}
|
||||
for path_ in files:
|
||||
with open(path_) as file:
|
||||
|
||||
Reference in New Issue
Block a user