Upgrade to microgrid API v0.18#9
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
Upgrade to microgrid API v0.18, updating protobuf definitions and adapting the codebase to use the new electrical component terminology and structure.
- Updates API submodule and protobuf versions from v1/v1 to v1alpha8/v1alpha18
- Renames component-related types to electrical component terminology (Component → ElectricalComponent, etc.)
- Updates metric names from AcActivePower/AcReactivePower to AcPowerActive/AcPowerReactive
Reviewed Changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| submodules/frequenz-api-microgrid | Updates submodule commit to new API version |
| src/proto/graph.rs | Adapts component graph implementation to new electrical component types and categories |
| src/proto.rs | Updates protobuf module structure to v1alpha8/v1alpha18 versions |
| src/logical_meter/metric.rs | Renames power metrics to new naming convention |
| src/logical_meter/logical_meter_handle.rs | Updates to use new electrical component API calls |
| src/logical_meter/logical_meter_actor.rs | Adapts telemetry handling to new electrical component structure |
| src/logical_meter/formula/*.rs | Updates import paths to new protobuf versions |
| src/client/*.rs | Renames all component methods to electrical component equivalents |
| examples/logical_meter.rs | Updates example to use new metric names |
| build.rs | Points to new protobuf file path |
| Cargo.toml | Updates component graph dependency to compatible version |
c498d14 to
2ce9f6c
Compare
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Rename functions, variables, and instructions related to streaming component data to use the more specific "electrical component telemetry". This change improves clarity and makes the client-side code more consistent with the gRPC service definitions. Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
Signed-off-by: Sahas Subramanian <sahas.subramanian@proton.me>
niklas-timpe
approved these changes
Aug 13, 2025
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.
No description provided.