-
Notifications
You must be signed in to change notification settings - Fork 14
Extend the ElectricalComponentCategory enum with new variants
#378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Extend the ElectricalComponentCategory enum with new variants
#378
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR extends and reorganizes the ElectricalComponentCategory enum, adding new variants while renumbering existing ones and renaming one variant for clearer alignment with industry terminology.
- Renumbers enum variants
- Adds six new variants to the enum
- Renames the RELAY variant to BREAKER
- Updates documentation in RELEASE_NOTES.md to reflect the changes
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| proto/frequenz/api/common/v1alpha7/microgrid/electrical_components/electrical_components.proto | Updated enum definition with new variants, renumbering, and a renaming of the relay variant to breaker |
| RELEASE_NOTES.md | Updated release notes with the new enum name and variant changes |
proto/frequenz/api/common/v1alpha7/microgrid/electrical_components/electrical_components.proto
Outdated
Show resolved
Hide resolved
24a015f to
955ce0b
Compare
llucax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, if it is not too much work I would split the changes only improving docs in a separate commit, but if you are very busy I'm also good to merge as is.
thomas-nicolai-frequenz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
2ea4bf7
955ce0b to
2ea4bf7
Compare
thomas-nicolai-frequenz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Tiyash Basu <[email protected]> This commit - renumbers the variants in the `ElectricalComponentCategory` enum. - adds new variants to the `ElectricalComponentCategory` enum: - `ELECTRICAL_COMPONENT_CATEGORY_PLC` - `ELECTRICAL_COMPONENT_CATEGORY_STATIC_TRANSFER_SWITCH` - `ELECTRICAL_COMPONENT_CATEGORY_UNINTERRUPTIBLE_POWER_SUPPLY` - `ELECTRICAL_COMPONENT_CATEGORY_CAPACITOR_BANK` - `ELECTRICAL_COMPONENT_CATEGORY_SMART_LOAD` - `ELECTRICAL_COMPONENT_CATEGORY_WIND_TURBINE` - Renames the variant `ELECTRICAL_COMPONENT_CATEGORY_RELAY` to `ELECTRICAL_COMPONENT_CATEGORY_BREAKER` to better align with the common terminology used in electrical engineering.
2ea4bf7 to
940c1c1
Compare
thomas-nicolai-frequenz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This PR
ElectricalComponentCategoryenum.ElectricalComponentCategoryenum:ELECTRICAL_COMPONENT_CATEGORY_PLCELECTRICAL_COMPONENT_CATEGORY_STATIC_TRANSFER_SWITCHELECTRICAL_COMPONENT_CATEGORY_UNINTERRUPTIBLE_POWER_SUPPLYELECTRICAL_COMPONENT_CATEGORY_CAPACITOR_BANKELECTRICAL_COMPONENT_CATEGORY_SMART_LOADELECTRICAL_COMPONENT_CATEGORY_WIND_TURBINEELECTRICAL_COMPONENT_CATEGORY_RELAYtoELECTRICAL_COMPONENT_CATEGORY_BREAKERto better align with the common terminology used in electrical engineering.