Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

@tiyash-basu-frequenz tiyash-basu-frequenz commented Jun 17, 2025

This PR

  • 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.

@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Jun 17, 2025
Copilot AI review requested due to automatic review settings June 17, 2025 11:22
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner June 17, 2025 11:22
@tiyash-basu-frequenz tiyash-basu-frequenz added this to the v0.7.0 milestone Jun 17, 2025
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels Jun 17, 2025
Copy link
Contributor

Copilot AI left a 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

@tiyash-basu-frequenz tiyash-basu-frequenz force-pushed the electrical_components branch 2 times, most recently from 24a015f to 955ce0b Compare June 17, 2025 11:28
llucax
llucax previously approved these changes Jun 17, 2025
Copy link
Contributor

@llucax llucax left a 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.

Copy link
Contributor

@thomas-nicolai-frequenz thomas-nicolai-frequenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@thomas-nicolai-frequenz thomas-nicolai-frequenz left a 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.
Copy link
Contributor

@thomas-nicolai-frequenz thomas-nicolai-frequenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Jun 17, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit a5750fc Jun 17, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the electrical_components branch June 17, 2025 16:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rename component category Relay to Contactor or CircuitBreaker

3 participants