Skip to content

Fix: forecasting CLI for v0.31#2007

Merged
Flix6x merged 14 commits intomainfrom
fix/forecasting-cli-for-v0.31
Mar 6, 2026
Merged

Fix: forecasting CLI for v0.31#2007
Flix6x merged 14 commits intomainfrom
fix/forecasting-cli-for-v0.31

Conversation

@Flix6x
Copy link
Contributor

@Flix6x Flix6x commented Mar 6, 2026

Description

  • Fix the CLI command flexmeasures add forecasts
  • Cover the actual CLI call in a test
  • Added changelog item in documentation/changelog.rst

Look & Feel

...

How to test

Run pytest -k test_add_forecast

Further Improvements

I decided to lose the CLI option type annotations in favour of fixing the CLI command. That means when running flexmeasures add forecasts --help most of the CLI options are now shown as TEXT rather than, for instance, as AwareDateTimeOrDateField or PlanningDurationField. I have not yet figured out a long-term solution for this.

Related Items

Closes #2005

Flix6x added 3 commits March 4, 2026 17:58
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Signed-off-by: F.N. Claessen <claessen@seita.nl>
@Flix6x Flix6x added this to the 0.31.1 milestone Mar 6, 2026
@Flix6x Flix6x self-assigned this Mar 6, 2026
@Flix6x Flix6x added bug Something isn't working CLI labels Mar 6, 2026
@read-the-docs-community
Copy link

read-the-docs-community bot commented Mar 6, 2026

Documentation build overview

📚 flexmeasures | 🛠️ Build #31693766 | 📁 Comparing cc34fac against latest (07e42d3)


🔍 Preview build

Show files changed (4 files in total): 📝 4 modified | ➕ 0 added | ➖ 0 deleted
File Status
changelog.html 📝 modified
_autosummary/flexmeasures.ui.error_handlers.html 📝 modified
api/v3_0.html 📝 modified
cli/change_log.html 📝 modified

Flix6x added 6 commits March 6, 2026 15:33
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Signed-off-by: F.N. Claessen <claessen@seita.nl>
@Flix6x Flix6x merged commit ccfd069 into main Mar 6, 2026
7 checks passed
@Flix6x Flix6x deleted the fix/forecasting-cli-for-v0.31 branch March 6, 2026 14:42
Flix6x added a commit that referenced this pull request Mar 6, 2026
* fix: CLI options require serialized defaults

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

* fix: pass already deserialized config to forecaster

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

* dev: fix import issue for Python 3.10

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

* feat: add test to cover CLI command execution with minimal options

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

* Revert "dev: fix import issue for Python 3.10"

This reverts commit 1558573.

* Revert "fix: pass already deserialized config to forecaster"

This reverts commit 980591d.

* Revert "fix: CLI options require serialized defaults"

This reverts commit 1624d47.

* fix: prefer tested and working forecasting CLI over CLI help type annotations

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

* style: itemize symbol

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

* docs: changelog entry

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

* docs: add release date for v0.31.1

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

* docs: add API changelog entry

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

* docs: elaborate API changelog entry

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

---------

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

(cherry picked from commit ccfd069)
Signed-off-by: F.N. Claessen <claessen@seita.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CLI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Broken forecasting CLI in v0.31.0

1 participant