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

FLEXMEASURES_PLUGINS configurable from env #660

Merged
merged 7 commits into from May 5, 2023

Conversation

nhoening
Copy link
Contributor

@nhoening nhoening commented May 2, 2023

The FLEXMEASURES_PLUGINS settings should also be possible as an env var. This is handy for devs, who simply want to add their own logic, but are not busy with how FlexMeasures works or is deployed. For example, they use a docker-compose or Kubernetes setup and just add their logic.

Signed-off-by: Nicolas Höning <nicolas@seita.nl>
…parated string; document wich settings are also read as env vars

Signed-off-by: Nicolas Höning <nicolas@seita.nl>
@nhoening nhoening changed the title Plugin config from env Plugin configurable from env May 2, 2023
…RES_PLUGINS setting

Signed-off-by: Nicolas Höning <nicolas@seita.nl>
@nhoening nhoening changed the title Plugin configurable from env FLEXMEASURES_PLUGINS configurable from env May 3, 2023
@nhoening nhoening marked this pull request as ready for review May 3, 2023 16:19
Copy link
Contributor

@Flix6x Flix6x left a comment

Choose a reason for hiding this comment

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

Still needs an actual changelog entry, I think. And we might need to update some plugin documentation if anything still uses the sunset way. I also noticed the deprecation notice was set to "debug" level, which may have been too subtle to notice. I'd recommend not sunsetting right now and increasing the logging level instead first.

documentation/plugin/customisation.rst Outdated Show resolved Hide resolved
documentation/plugin/customisation.rst Outdated Show resolved Hide resolved
Copy link
Contributor

@victorgarcia98 victorgarcia98 left a comment

Choose a reason for hiding this comment

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

Thanks for this new add-on!

I haven't tested this procedure yet, but it looks clean and I don't think it will give any problems (I'll try it this week, though).

flexmeasures/utils/plugin_utils.py Outdated Show resolved Hide resolved
flexmeasures/utils/config_defaults.py Outdated Show resolved Hide resolved
documentation/plugin/customisation.rst Show resolved Hide resolved
documentation/plugin/customisation.rst Show resolved Hide resolved
@nhoening
Copy link
Contributor Author

nhoening commented May 4, 2023

@Flix6x I agree in principle that we should pre-announce removal of config settings. In this case, it lived only a few weeks about 18 months ago. We did, however, mention it in the Readmes of the entsoe- and zinfo-plugins. The former might have been implemented by somebody, so I will upgrade the log level and warn in the release notes.

Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Copy link
Contributor

@victorgarcia98 victorgarcia98 left a comment

Choose a reason for hiding this comment

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

Looks good to me 😄

@nhoening nhoening merged commit 5addb0d into main May 5, 2023
5 of 7 checks passed
@nhoening nhoening deleted the plugin-config-from-outside branch May 5, 2023 10:30
@Flix6x Flix6x added this to the 0.14.0 milestone Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants