Skip to content

Commit 2f7e20d

Browse files
Rename grid to grid_connection_point in electrical_components.proto
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]>
1 parent ca51019 commit 2f7e20d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

RELEASE_NOTES.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
- Added new message `CommunicationComponentDiagnostic` to represent warnings and errors in microgrid communication components.
2323
- Added new message `CommunicationComponentStateSnapshot` to represent the state of communication components.
2424
- Added new message definitions for streaming events (Deleted, Created, Updated)
25+
- Renamed electrical component category `COMPONENT_CATEGORY_GRID` to `ELECTRICAL_COMPONENT_CATEGORY_GRID_CONNECTION_POINT` to clarify its meaning. Note that the change in the enum change is a part of a larger refactoring of the electrical component category enum.
26+
- The oneof variant `ComponentCategoryMetadataVariant.metadata.grid` has been renamed to `ElectricalComponentCategorySpecificInfo.info.grid_connection_point` to better reflect its purpose.
2527

2628
## Bug Fixes
2729

proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ enum ElectricalComponentCategory {
3030
ELECTRICAL_COMPONENT_CATEGORY_UNSPECIFIED = 0;
3131

3232
// The point where the local microgrid is connected to the grid.
33-
ELECTRICAL_COMPONENT_CATEGORY_GRID = 1;
33+
ELECTRICAL_COMPONENT_CATEGORY_GRID_CONNECTION_POINT = 1;
3434

3535
// A meter, for measuring electrical metrics, e.g., current, voltage, etc.
3636
ELECTRICAL_COMPONENT_CATEGORY_METER = 2;
@@ -326,7 +326,7 @@ message ElectricalComponentCategoryMetadataVariant {
326326
ev_charger = 2;
327327
frequenz.api.common.v1.microgrid.electrical_components.Fuse fuse = 3;
328328
frequenz.api.common.v1.microgrid.electrical_components.GridConnectionPoint
329-
grid = 4;
329+
grid_connection_point = 4;
330330
frequenz.api.common.v1.microgrid.electrical_components.Inverter
331331
inverter = 5;
332332
frequenz.api.common.v1.microgrid.electrical_components.VoltageTransformer

0 commit comments

Comments
 (0)