Skip to content

Fix component type enums#219

Merged
llucax merged 2 commits into
frequenz-floss:v0.x.xfrom
llucax:comp-type-enums
Jun 18, 2026
Merged

Fix component type enums#219
llucax merged 2 commits into
frequenz-floss:v0.x.xfrom
llucax:comp-type-enums

Conversation

@llucax

@llucax llucax commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Use integer literals for component type enums and add proto converters and parity tests.

Part of #203.

llucax added 2 commits June 18, 2026 14:50
Add converters and enum parity tests for the component type enums before
switching their pure wrappers away from protobuf constants.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
Remove protobuf imports from the pure component type enum modules and
rely on the parity tests to keep the integer literals aligned with the
proto values.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax requested a review from a team as a code owner June 18, 2026 12:52
@llucax llucax requested review from daniel-zullo-frequenz and tiyash-basu-frequenz and removed request for a team June 18, 2026 12:52
@llucax llucax self-assigned this Jun 18, 2026
@github-actions github-actions Bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:microgrid Affects the microgrid protobuf definitions labels Jun 18, 2026
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jun 18, 2026
@llucax llucax added this to the v0.4.1 milestone Jun 18, 2026
@llucax llucax added this pull request to the merge queue Jun 18, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit c1c51cb Jun 18, 2026
12 of 13 checks passed
@llucax llucax deleted the comp-type-enums branch June 18, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:microgrid Affects the microgrid protobuf definitions part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants