Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

This enumeration was not useful and potentially confusing. Sensors can report different sensor metrics, and they could belong to several of these categories simultaneously. This defeats the purpose of having singular categories for sensors. We need to rethink how to categorize sensors. Until then, having it does not add any value, and therefore it has been removed.

closes #348

@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this May 23, 2025
Copilot AI review requested due to automatic review settings May 23, 2025 09:18
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner May 23, 2025 09:18
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels May 23, 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 removes the SensorCategory enum since it was deemed unhelpful and potentially confusing, and updates the release notes accordingly.

  • Removed the SensorCategory enum and the associated "category" field from the Sensor message in sensors.proto.
  • Updated RELEASE_NOTES.md to reflect the removal.

Reviewed Changes

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

File Description
proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto Removed SensorCategory enum and the Sensor category field
RELEASE_NOTES.md Added note explaining removal of SensorCategory enum

llucax
llucax previously approved these changes May 23, 2025
This enumeration was not useful and potentially confusing. Sensors can
report different sensor metrics, and they could belong to several of
these categories simultaneously. This defeats the purpose of having
singular categories for sensors. We need to rethink how to categorize
sensors. Until then, having it does not add any value, and therefore it
has been removed.

Signed-off-by: Tiyash Basu <[email protected]>

# Conflicts:
#	RELEASE_NOTES.md
@tiyash-basu-frequenz
Copy link
Contributor Author

Rebased

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 removes the SensorCategory enum and its associated field in the Sensor message from the proto file because the enum was deemed potentially confusing and not sufficiently useful.

  • Removed SensorCategory enum and its usage from the proto file.
  • Updated RELEASE_NOTES.md to document the removal.

Reviewed Changes

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

File Description
proto/frequenz/api/common/v1/microgrid/sensors/sensors.proto Removed SensorCategory enum and the corresponding Sensor message field.
RELEASE_NOTES.md Added an entry documenting the removal of SensorCategory.
Comments suppressed due to low confidence (1)

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

  • Removing a field from a public proto message can be a breaking change; please ensure that all dependent services are updated and that you provide a migration path or clear documentation for the change.
SensorCategory category = 4;

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.

Bye bye! 👋

@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue May 28, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 6fcb858 May 28, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the 348_sensor_category branch May 28, 2025 12:45
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

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.

SensorCategory is being used inconsistently w.r.t. practical use cases

3 participants