You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Upgrade FAB to 4.1.1
The Flask Application Builder have been updated recently to
support a number of newer dependencies. This PR is the
attempt to migrate FAB to newer version.
This includes:
* update setup.py and setup.cfg upper and lower bounds to
account for proper version of dependencies that
FAB < 4.0.0 was blocking from upgrade
* added typed Flask application retrieval with a custom
application fields available for MyPy typing checks.
* fix typing to account for typing hints added in multiple
upgraded libraries optional values and content of request
returned as Mapping
* switch to PyJWT 2.* by using non-deprecated "required" claim as
list rather than separate fields
* add possibiliyt to install providers without constraints
so that we could avoid errors on conflicting constraints when
upgrade-to-newer-dependencies is used
* add pre-commit to check that 2.4+ only get_airflow_app is not
used in providers
* avoid Bad Request in case the request sent to Flask 2.0 is not
JSon content type
* switch imports of internal classes to direct packages
where classes are available rather than from "airflow.models" to
satisfy MyPY
* synchronize changes of FAB Security Manager 4.1.1 with our copy
of the Security Manager.
* add error handling for a few "None" cases detected by MyPY
* corrected test cases that were broken by immutability of
Flask 2 objects and better escaping done by Flask 2
* updated test cases to account for redirection to "path" rather
than full URL by Flask2
Fixes: #22397
* fixup! Upgrade FAB to 4.1.1
Copy file name to clipboardExpand all lines: Dockerfile.ci
+27-9Lines changed: 27 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -686,29 +686,47 @@ if [[ ${SKIP_ENVIRONMENT_INITIALIZATION=} != "true" ]]; then
686
686
echo "${COLOR_BLUE}Uninstalling airflow and providers"
687
687
echo
688
688
uninstall_airflow_and_providers
689
-
echo "${COLOR_BLUE}Install airflow from wheel package with extras: '${AIRFLOW_EXTRAS}' and constraints reference ${AIRFLOW_CONSTRAINTS_REFERENCE}.${COLOR_RESET}"
echo "${COLOR_BLUE}Install airflow from wheel package with extras: '${AIRFLOW_EXTRAS}' and constraints reference ${AIRFLOW_CONSTRAINTS_REFERENCE}.${COLOR_RESET}"
elif [[ ${USE_AIRFLOW_VERSION} == "sdist" ]]; then
694
700
echo
695
701
echo "${COLOR_BLUE}Uninstalling airflow and providers"
696
702
echo
697
703
uninstall_airflow_and_providers
698
704
echo
699
-
echo "${COLOR_BLUE}Install airflow from sdist package with extras: '${AIRFLOW_EXTRAS}' and constraints reference ${AIRFLOW_CONSTRAINTS_REFERENCE}.${COLOR_RESET}"
echo "${COLOR_BLUE}Install airflow from sdist package with extras: '${AIRFLOW_EXTRAS}' and constraints reference ${AIRFLOW_CONSTRAINTS_REFERENCE}.${COLOR_RESET}"
echo "${COLOR_BLUE}Uninstalling airflow and providers"
706
718
echo
707
719
uninstall_airflow_and_providers
708
720
echo
709
-
echo "${COLOR_BLUE}Install released airflow from PyPI with extras: '${AIRFLOW_EXTRAS}' and constraints reference ${AIRFLOW_CONSTRAINTS_REFERENCE}.${COLOR_RESET}"
echo "${COLOR_BLUE}Install released airflow from PyPI with extras: '${AIRFLOW_EXTRAS}' and constraints reference ${AIRFLOW_CONSTRAINTS_REFERENCE}.${COLOR_RESET}"
0 commit comments