-
Notifications
You must be signed in to change notification settings - Fork 14
Remove SensorCategory enum
#352
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
Remove SensorCategory enum
#352
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 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 |
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
2fb2c88 to
43a0dff
Compare
|
Rebased |
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 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;
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.
Bye bye! 👋
thomas-nicolai-frequenz
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.
LGTM
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