Repository navigation
Conversation
cwasicki
requested review from
Linus404 and
florian-wagner-frequenz
and
a balanced review from Copilot
and removed request for
a team
December 1, 2026 16:47
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues remain for the change rejecting overlapping standalone and microgrid market-location membership.
No open issues 🎉
What changed in this PR
This PR strengthens topology validation by rejecting overlapping relations that place a market location both standalone in a gridpool and within a microgrid. Non-overlapping relations remain valid, allowing transitions over time.
Changes:
- Add relation-overlap detection and reject ambiguous split gridpool membership.
- Test overlapping, timeless, adjacent, and disjoint validity periods, including different market participations.
- Document the constraint in the configuration API and release notes.
| File | Description |
|---|---|
| tests/test_topology.py | Tests rejected overlaps and permitted relation combinations. |
| src/frequenz/gridpool/config/_topology.py | Adds overlap detection and documents the relation constraint. |
| src/frequenz/gridpool/config/_assets.py | Enforces split-market-location validation during configuration checks. |
| RELEASE_NOTES.md | Announces the stricter validation and migration guidance. |
Review effort: Balanced
A market location tied to a microgrid joins a gridpool through the three-sided relation. A gridpool relation naming it without the microgrid, next to one naming the microgrid, leaves it unclear whether it trades standalone or as part of the microgrid. Only overlapping relations are rejected, so a market location may move from standalone to a microgrid over time. Signed-off-by: cwasicki <126617870+cwasicki@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A market location tied to a microgrid joins a gridpool through the three-sided relation. A gridpool relation naming it without the microgrid, next to one naming the microgrid, leaves it unclear whether it trades standalone or as part of the microgrid. Only overlapping relations are rejected, so a market location may move from standalone to a microgrid over time.