Skip to content

Commit 496c781

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]>
1 parent ca51019 commit 496c781

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
@@ -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 `ComponentCategoryMetadataVariant` to `ElectricalComponentCategorySpecificInfo`.
26+
- Renamed field `ElectricalComponent.category_type` to `ElectricalComponent.category_specific_info` to better reflect its purpose.
2527

2628
## Bug Fixes
2729

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)