Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

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

This commit renames the following:

  • ComponentData.state to ElectricalComponentTelemetry.state_snapshots
  • SensorData.states to SensorTelemetry.state_snapshots

closes #366

Copilot AI review requested due to automatic review settings June 13, 2025 13:04
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner June 13, 2025 13:04
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 renames telemetry fields in the proto files to better clarify their purpose.

  • Renames SensorData.states to SensorTelemetry.state_snapshot in sensors.proto
  • Renames ComponentData.state to ElectricalComponentTelemetry.state_snapshot in electrical_components.proto
  • Updates RELEASE_NOTES.md to document the changes

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto Updated field name in SensorTelemetry to state_snapshot
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto Updated field name in ElectricalComponentTelemetry to state_snapshot
RELEASE_NOTES.md Documented telemetry field renames
Comments suppressed due to low confidence (2)

proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto:185

  • Update the comment to reflect the new field name. For example, change it to "List of sensor state snapshots for a specific microgrid sensor."
// List of states of a specific microgrid sensor.

proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto:583

  • Consider revising the comment to align with the new field name, for instance: "List of electrical component state snapshots for a specific microgrid component."
// List of states of a specific microgrid component.

@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels Jun 13, 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.

What the linter said :D

This commit renames the following:
- `ComponentData.state` to `ElectricalComponentTelemetry.state_snapshot`
- `SensorData.states` to `SensorTelemetry.state_snapshot`

Signed-off-by: Tiyash Basu <[email protected]>
@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Jun 13, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit dd26752 Jun 13, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the 366_state_snapshot branch June 13, 2025 13:11
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 states to state_snapshots in *Telemetry

2 participants