Skip to content

Prepare for release#37

Merged
shsms merged 3 commits into
frequenz-floss:v0.x.xfrom
shsms:prepare-for-release
May 11, 2026
Merged

Prepare for release#37
shsms merged 3 commits into
frequenz-floss:v0.x.xfrom
shsms:prepare-for-release

Conversation

@shsms
Copy link
Copy Markdown
Collaborator

@shsms shsms commented May 11, 2026

No description provided.

@shsms shsms requested a review from simonvoelcker May 11, 2026 13:25
shsms added 3 commits May 11, 2026 15:28
The graph crate's `ComponentGraphConfig` switched from a struct literal
to a builder, and grew several new policy knobs whose defaults differ
from the values that were previously hardcoded inside
`build_component_graph` (`allow_component_validation_failures`,
`allow_unconnected_components`, plus the new
`prefer_meters_in_component_formulas` and
`include_phantom_loads_in_consumer_formula`).

Add a `component_graph_config` field on `LogicalMeterConfig`, settable
via `with_component_graph_config`, defaulting to
`ComponentGraphConfig::default()`.  `build_component_graph` now takes
`&ComponentGraphConfig` from that field, so callers can pin whichever
behavior they need without further plumbing changes.  The two
formula-pinning tests build a `ComponentGraphConfig` inline so their
expected formula strings and resampled values stay valid.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Also include some documentation fixes.

Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
@shsms shsms force-pushed the prepare-for-release branch from b513c89 to 1744d5b Compare May 11, 2026 13:28
Copy link
Copy Markdown
Contributor

@simonvoelcker simonvoelcker left a comment

Choose a reason for hiding this comment

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

Just nitpicks / questions

Comment thread README.md

For more information, please visit the [documentation
website](https://docs.rs/frequenz-microgrid).
Support for controlling components is coming soon.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Announcements like this one usually don't age well, in my experience. And why ourselves under pressure? 😏

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Oh, because microgrid-rs is supposed to read and control. This lets them know that it is not there yet. Also, this is the next big thing for me, multiple things are blocked until we get this.

Comment thread README.md
check out the [Contributing Guide](CONTRIBUTING.md).
See the [Contributing Guide](https://github.com/frequenz-floss/frequenz-microgrid-rs/blob/HEAD/CONTRIBUTING.md).

[`ComponentGraph`]: https://docs.rs/frequenz-microgrid-component-graph/latest/frequenz_microgrid_component_graph/struct.ComponentGraph.html
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What is this list of docs links about? It does not look related to "Contributing", the previous headline ...?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

No, they're the link references. So all occurrences of [ComponentGraph] in the text above will point to this link.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

And don't show up in the rendered markdown.

@shsms shsms added this pull request to the merge queue May 11, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit bec1e76 May 11, 2026
3 checks passed
@shsms shsms deleted the prepare-for-release branch May 11, 2026 14:07
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.

2 participants