Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

closes #395

Copilot AI review requested due to automatic review settings July 9, 2025 11:53
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner July 9, 2025 11:53
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Jul 9, 2025
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels Jul 9, 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 standardizes naming by renaming leftover component_id references to electrical_component_id across sensor, microgrid, and electrical component protobufs, and updates release notes accordingly.

  • Rename MicrogridComponentIDs to MicrogridElectricalComponentIDs and its field.
  • Rename source_component_id/destination_component_id to source_electrical_component_id/destination_electrical_component_id in ElectricalComponentConnection.
  • Rename component_id to electrical_component_id in ElectricalComponentTelemetry and update example comments.
  • Update RELEASE_NOTES.md to reflect these renames.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
proto/frequenz/api/common/v1alpha8/microgrid/sensors/sensors.proto Updated comment example to use state_snapshots instead of states
proto/frequenz/api/common/v1alpha8/microgrid/microgrid.proto Renamed MicrogridComponentIDs to MicrogridElectricalComponentIDs and its field
proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto Renamed connection and telemetry fields to use electrical_component_id and updated comments
RELEASE_NOTES.md Added entries for field and message renames
Comments suppressed due to low confidence (3)

RELEASE_NOTES.md:16

  • Reference uses 'ElectricalComponentConnections' (plural), but the actual message is named 'ElectricalComponentConnection' (singular).
  - `ElectricalComponentConnections.source_component_id` has been renamed to `ElectricalComponentConnections.source_electrical_component_id`

RELEASE_NOTES.md:17

  • Reference uses 'ElectricalComponentConnections' (plural), but the actual message is named 'ElectricalComponentConnection' (singular).
  - `ElectricalComponentConnections.destination_component_id` has been renamed to `ElectricalComponentConnections.destination_electrical_component_id`

RELEASE_NOTES.md:19

  • Inconsistent casing: the message is 'MicrogridComponentIDs' with capital 'IDs'. Update release notes to match the exact type names.
  - `microgrid.MicrogridComponentIds` has been renamed to `microgrid.MicrogridElectricalComponentIds`.

The following changes have been made to the proto file
`electrical_components.proto`:
- `ElectricalComponentConnections.source_component_id` has been
  renamed to `ElectricalComponentConnections.source_electrical_component_id`
- `ElectricalComponentConnections.destination_component_id` has been
  renamed to
  `ElectricalComponentConnections.destination_electrical_component_id`
- `ElectricalComponentStateSnapshot.component_id` has been renamed to
  `ElectricalComponentStateSnapshot.electrical_component_id`

Additionally, a few documentation comments have been updated to reflect
the change from "component" to "electrical component".

Signed-off-by: Tiyash Basu <[email protected]>
@tiyash-basu-frequenz tiyash-basu-frequenz force-pushed the 395_electrical_component_rename branch from 97f5789 to 6fb6c43 Compare July 9, 2025 11:59
llucax
llucax previously approved these changes Jul 9, 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.

Comments are minor, so approving.

@tiyash-basu-frequenz tiyash-basu-frequenz force-pushed the 395_electrical_component_rename branch from 62522a0 to 7a02426 Compare July 9, 2025 12:25
@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Jul 9, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 1b848be Jul 9, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the 395_electrical_component_rename branch July 9, 2025 12:43
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.

ElectricalComponentConnection fields are named inconsistently

2 participants