Skip to content

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

Open
nhoening wants to merge 3 commits into
mainfrom
chore/make-tutorials-robust-wrt-asset-sensor-IDs
Open

chore: make toy tutorials robust against pre-existing IDs#2269
nhoening wants to merge 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?

},
]

# the site gets a similar dashboard (TODO: after #1801, add also capacity constraint)

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.

Could be a small bonus for this PR?

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