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

CLI/add quantity or sensor storage scheduler #966

Merged

Conversation

victorgarcia98
Copy link
Contributor

@victorgarcia98 victorgarcia98 commented Jan 26, 2024

Description

So far, the flex-model fields of type QuantityOrSensor could only be used trough the API. This PR introduces them in command flexmeasures add schedule for-storage.

How to test?

This PR introduces a new end-to-end test to check if we can trigger the storage schedule via the CLI. It is tagged to run only on a local dev environment, therefore, I would like if the reviewer could try (him/her)self the test locally.

TODO

  • Create and end-to-end test for the command flexmeasures add schedule for-storage.
  • Changelog entry.
  • CLI changelog entry.

Related Items

Closes #935


  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on code under GPL or other license that is incompatible with FlexMeasures

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
…scheduler

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
…eatures/cli/add-quantity-or-sensor-storage-scheduler
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
…eatures/cli/add-quantity-or-sensor-storage-scheduler
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
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.

Code review only; I have yet to try the new CLI test locally.

flexmeasures/cli/data_add.py Outdated Show resolved Hide resolved
flexmeasures/cli/tests/conftest.py Show resolved Hide resolved
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
…eatures/cli/add-quantity-or-sensor-storage-scheduler

Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
…eatures/cli/add-quantity-or-sensor-storage-scheduler
Signed-off-by: Victor Garcia Reolid <victor@seita.nl>
@Flix6x Flix6x added this to the 0.19.0 milestone Feb 5, 2024
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.

New CLI test passes locally.

Base automatically changed from feature/planning/storage-efficiency-from-sensor to main February 6, 2024 12:00
…scheduler

Signed-off-by: Victor <victor@seita.nl>
@victorgarcia98 victorgarcia98 merged commit 248b6dc into main Feb 6, 2024
9 checks passed
@victorgarcia98 victorgarcia98 deleted the features/cli/add-quantity-or-sensor-storage-scheduler branch February 6, 2024 12:33
@nhoening nhoening changed the title add quantity or sensor storage scheduler CLI/add quantity or sensor storage scheduler Feb 12, 2024
@Flix6x Flix6x added this to In progress in More powerful scheduling of sensors via automation Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

Let users pass QuantityOrSensor field types to flexmeasures add schedule for-storage
2 participants