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

400 support passing a custom duration to /schedules/trigger [POST] #568

Merged

Conversation

Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Dec 30, 2022

  • Support passing a custom duration to /schedules/trigger [POST].
  • Allow SoC targets to exceed the default planning horizon, dynamically extending the planning window.
  • Introduce a new config setting: FLEXMEASURES_MAX_PLANNING_HORIZON.
  • Do not allow SoC targets to exceed the max planning horizon.

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…edulestrigger-post

Signed-off-by: F.N. Claessen <felix@seita.nl>

# Conflicts:
#	flexmeasures/api/v3_0/tests/test_sensor_schedules.py
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…gets

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
…X_PLANNING_HORIZON config setting

Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@coveralls
Copy link
Collaborator

coveralls commented Dec 30, 2022

Pull Request Test Coverage Report for Build 3807033946

  • 38 of 40 (95.0%) changed or added relevant lines in 5 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 65.65%

Changes Missing Coverage Covered Lines Changed/Added Lines %
flexmeasures/data/models/planning/storage.py 11 12 91.67%
flexmeasures/data/schemas/times.py 4 5 80.0%
Totals Coverage Status
Change from base Build 3805617287: 0.1%
Covered Lines: 6868
Relevant Lines: 9834

💛 - Coveralls

Copy link
Contributor

@nhoening nhoening left a comment

Choose a reason for hiding this comment

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

Looks very clean, great work!

flexmeasures/data/models/planning/storage.py Show resolved Hide resolved
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
Signed-off-by: F.N. Claessen <felix@seita.nl>
@Flix6x Flix6x merged commit da007ed into main Dec 30, 2022
@Flix6x Flix6x deleted the 400-support-passing-a-custom-duration-to-schedulestrigger-post branch December 30, 2022 13:12
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.

Support passing a custom duration to /schedules/trigger [POST]
3 participants