Skip to content

Forbid implicit Metric to protobuf conversion#142

Merged
llucax merged 1 commit into
frequenz-floss:v0.x.xfrom
llucax:no-implicit-conversion
May 4, 2026
Merged

Forbid implicit Metric to protobuf conversion#142
llucax merged 1 commit into
frequenz-floss:v0.x.xfrom
llucax:no-implicit-conversion

Conversation

@llucax
Copy link
Copy Markdown
Contributor

@llucax llucax commented Jan 23, 2026

Replace Metric enum values with plain ints.

@llucax llucax requested a review from a team as a code owner January 23, 2026 13:09
@llucax llucax requested review from shsms and removed request for a team January 23, 2026 13:09
@github-actions github-actions Bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:metrics Affects the metrics protobuf definitions labels Jan 23, 2026
@llucax
Copy link
Copy Markdown
Contributor Author

llucax commented Jan 23, 2026

Based on #140, part of #141.

Marenz
Marenz previously approved these changes Jan 26, 2026
@llucax llucax force-pushed the no-implicit-conversion branch from a790a8c to bd16934 Compare April 27, 2026 07:34
@llucax llucax added this to the v0.3.8 milestone Apr 30, 2026
@llucax llucax force-pushed the no-implicit-conversion branch from bd16934 to e4f340d Compare April 30, 2026 09:29
This ensures that enum values are not accidentally passed to protobuf
functions without conversion.

Signed-off-by: Leandro Lucarella <luca-frequenz@llucax.com>
@llucax llucax force-pushed the no-implicit-conversion branch from e4f340d to 7da06ee Compare May 4, 2026 08:11
@llucax llucax enabled auto-merge May 4, 2026 08:12
@llucax llucax added this pull request to the merge queue May 4, 2026
Merged via the queue into frequenz-floss:v0.x.x with commit 7eea15b May 4, 2026
8 checks passed
@llucax llucax deleted the no-implicit-conversion branch May 4, 2026 08: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:metrics Affects the metrics 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