Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
400 support passing a custom duration to /schedules/trigger [POST] (#568
) - 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. * Support passing a custom duration to /schedules/trigger/ [POST] Signed-off-by: F.N. Claessen <felix@seita.nl> * Refactor: load_default becomes class method Signed-off-by: F.N. Claessen <felix@seita.nl> * Amend length of schedule given the duration in the trigger message Signed-off-by: F.N. Claessen <felix@seita.nl> * Possibly expand duration given future-most target Signed-off-by: F.N. Claessen <felix@seita.nl> * Move extension of planning window to after deserialization of SoC targets Signed-off-by: F.N. Claessen <felix@seita.nl> * Test extension of planning window to accommodate targets Signed-off-by: F.N. Claessen <felix@seita.nl> * Limit extension of planning window by introducing the FLEXMEASURES_MAX_PLANNING_HORIZON config setting Signed-off-by: F.N. Claessen <felix@seita.nl> * Add missing API upgrade instruction Signed-off-by: F.N. Claessen <felix@seita.nl> * Update documentation, incl. API changelog Signed-off-by: F.N. Claessen <felix@seita.nl> * typo Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix type annotation Signed-off-by: F.N. Claessen <felix@seita.nl> * Test failing on target datetimes exceeding max planning horizon Signed-off-by: F.N. Claessen <felix@seita.nl> * Rewrite validator to be specific for soc-targets field Signed-off-by: F.N. Claessen <felix@seita.nl> * Clarify validation of target datetimes Signed-off-by: F.N. Claessen <felix@seita.nl> * black and mypy Signed-off-by: F.N. Claessen <felix@seita.nl> * Fix tests Signed-off-by: F.N. Claessen <felix@seita.nl> * Add todo Signed-off-by: F.N. Claessen <felix@seita.nl> * API changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * Changelog entry Signed-off-by: F.N. Claessen <felix@seita.nl> * Extra changelog entry for new config setting Signed-off-by: F.N. Claessen <felix@seita.nl> Signed-off-by: F.N. Claessen <felix@seita.nl>
- Loading branch information
Showing
10 changed files
with
148 additions
and
37 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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