754 deprecate flask env - #907
Merged
Merged
Conversation
added 3 commits
November 23, 2023 16:03
…_env Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Flix6x
reviewed
Nov 24, 2023
Signed-off-by: GustaafL <41048720+GustaafL@users.noreply.github.com>
Signed-off-by: GustaafL <41048720+GustaafL@users.noreply.github.com>
… variables Signed-off-by: GustaafL <guus@seita.nl>
…sures/flexmeasures into 754-depricate-flask-env
Signed-off-by: GustaafL <guus@seita.nl>
GustaafL
marked this pull request as ready for review
November 27, 2023 15:12
Signed-off-by: GustaafL <guus@seita.nl>
nhoening
requested changes
Dec 6, 2023
nhoening
left a comment
Member
There was a problem hiding this comment.
This approach seems to be reasonable.
We are not finished, though :)
- The docstring of
create()in app.py still mentionsFLASK_ENV. - A few mentions of
Flask_ENVare in the documentation (rungrep -r FLASK_ENV documentation), as well as indocker-compose.ymland should be updated.
added 2 commits
December 11, 2023 14:55
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
nhoening
requested changes
Dec 13, 2023
nhoening
left a comment
Member
There was a problem hiding this comment.
My comment from the last review (about several places where Flask_ENV is still mentioned or used) has not been addressed.
added 2 commits
December 18, 2023 10:01
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Contributor
Author
|
I've reviewed all the mentions of FLASK_ENV that were in the docs as well and changed them to FLEXMEASURES_ENV where it was relevant. |
nhoening
requested changes
Dec 18, 2023
nhoening
left a comment
Member
There was a problem hiding this comment.
As I wrote earlier, there is also Flask_ENVin docker-compose.yml.
I simply ran grep -r "FLASK_ENV" . to find places.
Also, there is a merge conflict, please resolve it.
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <41048720+GustaafL@users.noreply.github.com>
Flix6x
reviewed
Dec 19, 2023
nhoening
requested changes
Dec 19, 2023
nhoening
left a comment
Member
There was a problem hiding this comment.
I found one more issue worth our attention.
added 4 commits
December 19, 2023 10:34
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <41048720+GustaafL@users.noreply.github.com>
nhoening
requested changes
Jan 2, 2024
added 3 commits
January 3, 2024 09:05
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
nhoening
approved these changes
Jan 3, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR removes the need for FLASK_ENV, which is deprecated from Flask 2.3 on. Instead of FLASK_ENV use FLEXMEASURES_ENV with the same options.
Look & Feel
In the environment variables set "FLEXMEASURES_ENV"="development" instead of "FLASK_ENV"="development"
Further Improvements
Potential improvements to be done in the same PR or follow up Issues/Discussions/PRs.
Related Items
This closes #754