Skip to content

fix: namespace user commitment names with a custom: prefix#2285

Open
Flix6x wants to merge 2 commits into
mainfrom
fix/namespace-user-commitment-names
Open

fix: namespace user commitment names with a custom: prefix#2285
Flix6x wants to merge 2 commits into
mainfrom
fix/namespace-user-commitment-names

Conversation

@Flix6x

@Flix6x Flix6x commented Jul 10, 2026

Copy link
Copy Markdown
Member

Description

Implements the internal namespacing proposed in #1572: a user commitment named e.g. electricity net energy would shadow the scheduler's internal commitment of the same name in the name-keyed commitment-costs dict of the scheduling results. StorageScheduler.convert_to_commitments now (idempotently) prefixes user-given names with custom:, so users can pick any name. The prefixed name is what shows up in the commitment costs.

  • Added changelog item in documentation/changelog.rst

How to test

pytest flexmeasures/data/models/planning/tests/test_commitments.py -k namespaced

Related Items

Prepares the commitments flex-context editor (#1572).

🤖 Generated with Claude Code

https://claude.ai/code/session_016MLCUiSdXDqDBmg8GbYp1B

A user commitment named e.g. 'electricity net energy' would shadow the
scheduler's internal commitment of the same name in the name-keyed
commitment-costs dict of the scheduling results. Prefix user names in
convert_to_commitments (idempotently), so users can pick any name.

Prepares the commitments editor (#1572), where users type free-form names.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016MLCUiSdXDqDBmg8GbYp1B
@read-the-docs-community

read-the-docs-community Bot commented Jul 10, 2026

Copy link
Copy Markdown

Documentation build overview

📚 flexmeasures | 🛠️ Build #33544040 | 📁 Comparing 0693273 against latest (922ecf6)

  🔍 Preview build  

3 files changed
± changelog.html
± _autosummary/flexmeasures.data.models.planning.storage.html
± api/v3_0.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant