Skip to content

Commit 7415739

Browse files
Rename category type field in ElectricalComponent
This commit renames the folowing: - `ComponentCatgoryMetadataVariant` to `ElectricalComponentCategorySpecificInfo` - `ElectricalComponent.category_type` to `ElectricalComponent.category_specific_info` These renames make the entity names better reflect their purpose. Signed-off-by: Tiyash Basu <[email protected]> # Conflicts: # RELEASE_NOTES.md
1 parent 997959c commit 7415739

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
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 `ComponentCategoryMetadataVariant` to `ElectricalComponentCategorySpecificInfo`.
28+
- Renamed field `ElectricalComponent.category_type` to `ElectricalComponent.category_specific_info` to better reflect its purpose.
2729

2830
## Bug Fixes
2931

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,8 @@ message MetricConfigBounds {
319319
}
320320

321321
// Metadata specific to a microgrid component.
322-
message ElectricalComponentCategoryMetadataVariant {
323-
oneof metadata {
322+
message ElectricalComponentCategorySpecificInfo {
323+
oneof info {
324324
frequenz.api.common.v1.microgrid.electrical_components.Battery battery = 1;
325325
frequenz.api.common.v1.microgrid.electrical_components.EvCharger
326326
ev_charger = 2;
@@ -349,7 +349,7 @@ message ElectricalComponent {
349349
ElectricalComponentCategory category = 4;
350350

351351
// The metadata specific to the component category type.
352-
ElectricalComponentCategoryMetadataVariant category_type = 5;
352+
ElectricalComponentCategorySpecificInfo category_specific_info = 5;
353353

354354
// The component manufacturer.
355355
string manufacturer = 6;

0 commit comments

Comments
 (0)