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:
Daniel Vaz Gaspar
2022-03-24 09:16:53 +00:00
committed by GitHub
parent 2af2d00e85
commit f37fc1a7f0
21 changed files with 117 additions and 111 deletions

View File

@@ -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: