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
754 deprecate flask env #907
Conversation
…_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>
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>
Signed-off-by: GustaafL <guus@seita.nl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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_ENV
are in the documentation (rungrep -r FLASK_ENV documentation
), as well as indocker-compose.yml
and should be updated.
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment from the last review (about several places where Flask_ENV
is still mentioned or used) has not been addressed.
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I wrote earlier, there is also Flask_ENV
in 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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found one more issue worth our attention.
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>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just two small chores left!
Signed-off-by: GustaafL <guus@seita.nl>
Signed-off-by: GustaafL <guus@seita.nl>
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