-
Notifications
You must be signed in to change notification settings - Fork 14
Add an ElectricalComponentError message
#308
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
Add an ElectricalComponentError message
#308
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (2)
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto:505
- The warnings field type has been changed from ElectricalComponentErrorCode to ElectricalComponentError. Please verify that all downstream implementations consuming this field are updated accordingly to handle the extended error information.
// List of non-critical warnings detected for the component.
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto:516
- The errors field type has been updated to ElectricalComponentError. Ensure that consumers expecting only error codes are capable of processing the additional error context provided by the new message schema.
// No duplicate error codes allowed.
8908df4 to
5ba78ea
Compare
5ba78ea to
6b6ea04
Compare
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!
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
Show resolved
Hide resolved
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
Show resolved
Hide resolved
proto/frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto
Show resolved
Hide resolved
|
Probably for another PR, but maybe it can be renamed to |
Sure. I have a few more contenders:
Also, I would also extend this to the enum name as well. Will create an issue depending upon how the discussions in this PR go. |
|
I prefer issue or diagnostic. |
This commit adds the `ElectricalComponentError` message to the `electrical_components.proto` file. This message is designed to represent error or warning conditions reported by microgrid electrical components. It extends a standardized error code with contextual information useful for diagnostics or vendor-specific insights. Signed-off-by: Tiyash Basu <[email protected]>
6b6ea04 to
c447367
Compare
Would align well with other APIs. |
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
ktickner
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
…309) This commit improves the naming of the `ElectricalComponentError` message to `ElectricalComponentDiagnostic`, to better reflect its purpose of representing both warnings and errors in microgrid electrical components. Followed up from this comment: #308 (comment)
This commit adds the
ElectricalComponentErrormessage to theelectrical_components.protofile. This message is designed to represent error or warning conditions reported by microgrid electrical components. It extends a standardized error code with contextual information useful for diagnostics or vendor-specific insights.