Skip to content

Conversation

@tar-viturawong-frequenz
Copy link
Contributor

@tar-viturawong-frequenz tar-viturawong-frequenz commented Mar 27, 2025

This change is in preparation for communication components to just the protobuf definition. The PR disambiguates electrical components by adding Electrical prefix to message/enum types, electrical_ to module and path names, and ELECTRICAL_ to enum fields.

I have not extensively updated the comments in the protobuf definitions a that would have created an unwieldy diff that obscures the substantive change. I can follow up on that afterwards.

@github-actions github-actions bot added part:protobuf Affects the protocol buffer definition files part:tests Affects the unit, integration and performance (benchmarks) tests labels Mar 27, 2025
@tar-viturawong-frequenz tar-viturawong-frequenz force-pushed the refactor/rename-electrical-components branch from ea3cfce to 913a6e1 Compare March 27, 2025 14:54
@tar-viturawong-frequenz tar-viturawong-frequenz force-pushed the refactor/rename-electrical-components branch from 913a6e1 to ff1d341 Compare March 27, 2025 14:57
@tar-viturawong-frequenz tar-viturawong-frequenz marked this pull request as ready for review March 27, 2025 14:58
@tar-viturawong-frequenz tar-viturawong-frequenz requested a review from a team as a code owner March 27, 2025 14:58
@tiyash-basu-frequenz tiyash-basu-frequenz added this to the v0.7.0 milestone Mar 31, 2025
@tiyash-basu-frequenz
Copy link
Contributor

Thanks @tar-viturawong-frequenz. Could you please add an entry to the RELEASE_NOTES file as well?

Copy link
Contributor

@tiyash-basu-frequenz tiyash-basu-frequenz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A release note entry would be great.

tar-viturawong-frequenz and others added 2 commits March 31, 2025 10:17
…lectrical_components.proto

Co-authored-by: Tiyash Basu <[email protected]>
Signed-off-by: Tar Viturawong <[email protected]>
Signed-off-by: Tar Viturawong <[email protected]>
@github-actions github-actions bot added the part:docs Affects the documentation label Mar 31, 2025
Signed-off-by: Tar Viturawong <[email protected]>
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.

The CI is failing here because you are missing a rename of py/frequenz/api/common/v1/microgrid/components to electrical_components too.

"""Test that the modules can be imported."""
# pylint: disable=import-outside-toplevel
from frequenz.api.common.v1.microgrid import components
from frequenz.api.common.v1.microgrid import electrical_components
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is really weird that these tests don't fail too, but I guess this is for a separate investigation/PR.

@github-actions github-actions bot added the part:python Affects the Python bindings label Apr 1, 2025
@tar-viturawong-frequenz tar-viturawong-frequenz added this pull request to the merge queue Apr 1, 2025
Merged via the queue into frequenz-floss:v0.x.x with commit acba2c9 Apr 1, 2025
11 checks passed
@tar-viturawong-frequenz tar-viturawong-frequenz deleted the refactor/rename-electrical-components branch April 1, 2025 12:18
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 part:python Affects the Python bindings part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants