Skip to content

Conversation

@tiyash-basu-frequenz
Copy link
Contributor

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)

Copilot AI review requested due to automatic review settings April 15, 2025 12:41
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner April 15, 2025 12:42
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Apr 15, 2025
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels Apr 15, 2025
@tiyash-basu-frequenz tiyash-basu-frequenz added this to the v0.7.0 milestone Apr 15, 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.

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

llucax
llucax previously approved these changes Apr 15, 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 copilot said, otherwise LGTM.

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.

Signed-off-by: Tiyash Basu <[email protected]>
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.

Copilot reviewed 2 out of 2 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:485

  • Ensure that the renaming from ElectricalComponentError to ElectricalComponentDiagnostic is consistent throughout the file, including all associated enums and documentation comments.
message ElectricalComponentDiagnostic {

RELEASE_NOTES.md:17

  • [nitpick] Verify that the release notes reference the correct original identifier; if the proto file was renamed from ElectricalComponentErrorCode, update this line to match that naming for clarity.
The enum `ComponentErrorCode` has now been renamed to `ElectricalComponentDiagnosticCode` to better reflect its shared usage with warnings and errors.

@tiyash-basu-frequenz tiyash-basu-frequenz added this pull request to the merge queue Apr 15, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit 2e89add Apr 15, 2025
6 checks passed
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the rename_elec_component_err_enum branch April 15, 2025 12:49
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.

2 participants