Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

@tiyash-basu-frequenz tiyash-basu-frequenz commented Jun 19, 2025

This commit moves all the electrical component types from their individual files into electrical_components.proto.

closes #377

Copilot AI review requested due to automatic review settings June 19, 2025 14:13
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner June 19, 2025 14:13
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files part:tests Affects the unit, integration and performance (benchmarks) tests labels Jun 19, 2025
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Jun 19, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR consolidates all electrical component types into a single proto file (electrical_components.proto) to simplify maintenance and usage across the codebase.

  • Merges definitions for Battery, EvCharger, Fuse, Inverter, GridConnectionPoint, and VoltageTransformer into electrical_components.proto.
  • Updates tests to use the consolidated definitions and removes individual import statements from their original files.
  • Removes the obsolete proto files for each individual component and updates the release notes accordingly.

Reviewed Changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated no comments.

File Description
pytests/test_common_v1alpha7.py Updated test imports to reference the consolidated electrical_components.proto definitions.
transformer.proto, inverter.proto, grid.proto, fuse.proto, ev_charger.proto, battery.proto Removed individual proto files containing electrical component definitions.
electrical_components.proto Contains the consolidated definitions for all electrical components.
RELEASE_NOTES.md Updated release notes to document the move of electrical component definitions.

shsms
shsms previously approved these changes Jun 19, 2025
This commit moves all the electrical component types from their
individual files into `electrical_components.proto`.

Signed-off-by: Tiyash Basu <[email protected]>
@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Jun 19, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 72cdffe Jun 19, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the 377_elec_component_types branch June 19, 2025 14:57
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:protobuf Affects the protocol buffer definition files part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move InverterType and other *Type messages to electrical_components.proto

2 participants