Skip to content

feat(config): read microgrid entries from assets.microgrid - #124

Merged
cwasicki merged 1 commit into
frequenz-floss:v0.x.xfrom
cwasicki:prefix
Aug 18, 2026
Merged

feat(config): read microgrid entries from assets.microgrid#124
cwasicki merged 1 commit into
frequenz-floss:v0.x.xfrom
cwasicki:prefix

Conversation

@cwasicki

Copy link
Copy Markdown
Collaborator

Microgrids are only the first entity these files describe; gridpools, market locations and the relations between them follow, and bare numeric top-level keys leave nowhere to put them.

The namespace also makes the file mergeable with other config sources. A key like 23.meta.name claims the top level outright and says nothing about what it identifies, so it can collide with unrelated settings and is unreadable as a deployment override. Under assets the generated inventory stays apart from the operator settings in app.*, and two sources writing the same key now genuinely mean the same microgrid.

Top-level entries still load, with a deprecation warning, until the config files have migrated. A file carrying both layouts is rejected: it is a half-finished migration rather than a merge.

@cwasicki
cwasicki requested review from a team as code owners August 17, 2026 18:42
@cwasicki
cwasicki requested review from Mohammad-Tayyab-Frequenz and llucax and removed request for a team August 17, 2026 18:42
@github-actions github-actions Bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests labels Aug 17, 2026
Microgrids are only the first entity these files describe; gridpools,
market locations and the relations between them follow, and bare numeric
top-level keys leave nowhere to put them.

The namespace also makes the file mergeable with other config sources. A
key like `23.meta.name` claims the top level outright and says nothing
about what it identifies, so it can collide with unrelated settings and
is unreadable as a deployment override. Under `assets` the generated
inventory stays apart from the operator settings in `app.*`, and two
sources writing the same key now genuinely mean the same microgrid.

Top-level entries still load, with a deprecation warning, until the
config files have migrated. A file carrying both layouts is rejected: it
is a half-finished migration rather than a merge.

Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
@cwasicki

Copy link
Copy Markdown
Collaborator Author

Renamed the field to microgrids.

@cwasicki
cwasicki added this pull request to the merge queue Aug 18, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit 0b2bd42 Aug 18, 2026
9 checks passed
@cwasicki
cwasicki deleted the prefix branch August 18, 2026 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants