Skip to content

Commit 9828f39

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 # Conflicts: # RELEASE_NOTES.md # Conflicts: # RELEASE_NOTES.md
1 parent a4669a5 commit 9828f39

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
@@ -26,6 +26,8 @@
2626
- Renumber variants in the `Metric` enum to remove unnecessary gaps.
2727
- Added a new enum `ElectricalComponentControlMode` to define control modes for electrical components.
2828
- Renamed `metric_sample.proto` to `metrics.proto` to better reflect its content.
29+
- 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.
30+
- The oneof variant `ComponentCategoryMetadataVariant.metadata.grid` has been renamed to `ElectricalComponentCategorySpecificInfo.info.grid_connection_point` to better reflect its purpose.
2931

3032
## Bug Fixes
3133

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;
@@ -356,7 +356,7 @@ message ElectricalComponentCategoryMetadataVariant {
356356
ev_charger = 2;
357357
frequenz.api.common.v1.microgrid.electrical_components.Fuse fuse = 3;
358358
frequenz.api.common.v1.microgrid.electrical_components.GridConnectionPoint
359-
grid = 4;
359+
grid_connection_point = 4;
360360
frequenz.api.common.v1.microgrid.electrical_components.Inverter
361361
inverter = 5;
362362
frequenz.api.common.v1.microgrid.electrical_components.VoltageTransformer

0 commit comments

Comments
 (0)