Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: relax Flask version constraint #23927

Closed
wants to merge 3 commits into from
Closed

Conversation

cwegener
Copy link
Contributor

@cwegener cwegener commented May 4, 2023

Flask 2.1 no longer seems to be receiving updates.

In order to keep receveiving critical Flask updates, the upper version
constraint for Flask should be raised to a compatible newer version.

I picked Flask 2.2 as the compatible version.

This only required addressing one single old Flask 2.0 deprecation
warning which is now a removed function in Flask 2.2

Flask 2.1 no longer seems to be receiving updates.

In order to keep receveiving critical Flask updates, the upper version
constraint for Flask should be raised to a compatible newer version.

I picked Flask 2.2 as the compatible version.

This only required addressing one single old Flask 2.0 deprecation
warning which is now a removed function in Flask 2.2
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on making your first PR and thank you for contributing to Superset! 🎉 ❤️

We hope to see you in our Slack community too! Not signed up? Use our Slack App to self-register.

@EugeneTorap
Copy link
Contributor

Thanks for this PR! Try to fix the CI tests.

cwegener added 2 commits May 4, 2023 18:08
I confirmed that both, cache_control=0 and max_age=0 are resulting in
the same 'Cache-Control: no-cache, max-age=0' response header.
@pull-request-size pull-request-size bot added size/M and removed size/S labels May 4, 2023
@cwegener
Copy link
Contributor Author

cwegener commented May 4, 2023

I missed a few send_file invocations which I've fixed.
Some DB engine integration tests are still failing. Not sure yet why. I'll need to look into it.

Mypy configuration looks broken to me though. I'm not sure if Mypy will even work the way we need it to work inside of pre-commit. Basically the problem is that some dependencies (e.g. Flask since version 2.0) have stubs include in their main distribution, while other dependencies require stubs to be installed vie the typeshed distribution. (i.e. the 'types-*' packages from PyPI).

Currently, the mypy pre-commit hook is set up to install ALL available typeshed stubs, which includes the Flask 1.x stubs, which are the wrong stubs for us ....

I'm trying to figure out if I can just explicitly define all the types-* packages in pre-commit that we need for Superset ... stay tuned.

@EugeneTorap EugeneTorap mentioned this pull request May 8, 2023
9 tasks
@EugeneTorap
Copy link
Contributor

superseded by #23965

@rusackas
Copy link
Member

Closing in favor of #23965, but happy to discuss further if needed.

@rusackas rusackas closed this May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants