-
Notifications
You must be signed in to change notification settings - Fork 14
Rename leftover uses of component_id to electrical_component_id
#398
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
Rename leftover uses of component_id to electrical_component_id
#398
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 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
MicrogridComponentIDstoMicrogridElectricalComponentIDsand its field. - Rename
source_component_id/destination_component_idtosource_electrical_component_id/destination_electrical_component_idinElectricalComponentConnection. - Rename
component_idtoelectrical_component_idinElectricalComponentTelemetryand update example comments. - Update
RELEASE_NOTES.mdto 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`.
proto/frequenz/api/common/v1alpha8/microgrid/electrical_components/electrical_components.proto
Outdated
Show resolved
Hide resolved
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]>
97f5789 to
6fb6c43
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.
Comments are minor, so approving.
6fb6c43 to
62522a0
Compare
Signed-off-by: Tiyash Basu <[email protected]>
Signed-off-by: Tiyash Basu <[email protected]>
62522a0 to
7a02426
Compare
closes #395