Skip to content

Commit 619317d

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]> # Conflicts: # RELEASE_NOTES.md
1 parent 997959c commit 619317d

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
@@ -24,6 +24,8 @@
2424
- Added new message definitions for streaming events (Deleted, Created, Updated)
2525
- Remove unnecessary gap in numbering in the `ElectricalComponentCategory` enum.
2626
- Renumber variants in the `Metric` enum to remove unnecessary gaps.
27+
- 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.
28+
- The oneof variant `ComponentCategoryMetadataVariant.metadata.grid` has been renamed to `ElectricalComponentCategorySpecificInfo.info.grid_connection_point` to better reflect its purpose.
2729

2830
## Bug Fixes
2931

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)