Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

This commit renames the electrical component category COMPONENT_CATEGORY_GRID to
ELECTRICAL_COMPONENT_CATEGORY_GRID_CONNECTION_POINT in the proto file. (the name change of the enum is part of a larger refactoring of the electrical component category enum).

The oneof variant ComponentCategoryMetadataVariant.metadata.grid has also been renamed to
ElectricalComponentCategorySpecificInfo.info.grid_connection_point to better reflect its purpose.

closes #255

Copilot AI review requested due to automatic review settings May 19, 2025 11:05
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner May 19, 2025 11:05
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels May 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 updates naming in electrical_components.proto to rename the electrical component category from GRID to GRID_CONNECTION_POINT and adjusts the corresponding oneof variant field accordingly.

  • Renamed the enum constant ELECTRICAL_COMPONENT_CATEGORY_GRID to ELECTRICAL_COMPONENT_CATEGORY_GRID_CONNECTION_POINT.
  • Updated the oneof variant field from grid to grid_connection_point.
  • Updated RELEASE_NOTES.md to document these naming changes.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto Renaming of enum constant and oneof field to better reflect their purpose.
RELEASE_NOTES.md Updated notes to reflect the renaming changes.

llucax
llucax previously approved these changes May 19, 2025
@tiyash-basu-frequenz
Copy link
Contributor Author

Rebased. Needs another look 🙏

This commit renames the electrical component category
`COMPONENT_CATEGORY_GRID` to
`ELECTRICAL_COMPONENT_CATEGORY_GRID_CONNECTION_POINT` in the proto file.
(the name change of the enum is part of a larger refactoring of the
electrical component category enum).

The oneof variant `ComponentCategoryMetadataVariant.metadata.grid` has
also been renamed to
`ElectricalComponentCategorySpecificInfo.info.grid_connection_point` to
better reflect its purpose.

Signed-off-by: Tiyash Basu <[email protected]>
@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue May 20, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit a5188c0 May 20, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the 255_grid branch May 20, 2025 09:52
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mismatch between category GRID and metadata GridConnectionPoint

2 participants