Skip to content

chore: make toy tutorials robust against pre-existing IDs - #2269

Merged
nhoening merged 3 commits into
mainfrom
chore/make-tutorials-robust-wrt-asset-sensor-IDs
Jul 11, 2026
Merged

chore: make toy tutorials robust against pre-existing IDs#2269
nhoening merged 3 commits into
mainfrom
chore/make-tutorials-robust-wrt-asset-sensor-IDs

Conversation

@nhoening

@nhoening nhoening commented Jul 6, 2026

Copy link
Copy Markdown
Member

Description

IDs of assets or sensors might already exist. I came across this in #2268.
This makes our tutorials inherently unstable in the docs and our CI scripts.
And users have to manually copy IDs if they ever run tutorials from a non-empty starting position.

  • CLI script for adding toy account can print out variable settings which users can choose to evaluate in their shell.
  • Adapt scripts and the docs to use this approach
  • Added changelog item in documentation/changelog.rst

Look & Feel

Not many changes in the tutorial flow, using var names instead of hard-coded IDs.

How to test

Run tutorials (also part of our CI)

… IDs, also less work for users

Signed-off-by: Nicolas Höning <nicolas@seita.nl>
@nhoening nhoening added this to the 1.0.0 milestone Jul 6, 2026
@nhoening nhoening self-assigned this Jul 6, 2026
nhoening added 2 commits July 6, 2026 15:25
Signed-off-by: Nicolas Höning <nicolas@seita.nl>
Signed-off-by: Nicolas Höning <nicolas@seita.nl>

@Flix6x Flix6x left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Did you successfully run the QA workflow against this branch?

Comment thread flexmeasures/cli/data_add.py
@nhoening

Copy link
Copy Markdown
Member Author

Did you successfully run the QA workflow against this branch?

No, where can I do that? Do you mean "QA (release)" - isn't that doing a release automatically?

@nhoening

Copy link
Copy Markdown
Member Author

Did you successfully run the QA workflow against this branch?

No, where can I do that? Do you mean "QA (release)" - isn't that doing a release automatically?

I checked the yaml. Unlike the name might suggest, it is not releasing. Running it now.

@nhoening

Copy link
Copy Markdown
Member Author

QA workflow is green for this branch

@nhoening
nhoening merged commit 4a5892f into main Jul 11, 2026
13 checks passed
@nhoening
nhoening deleted the chore/make-tutorials-robust-wrt-asset-sensor-IDs branch July 11, 2026 17:49
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.

2 participants