Skip to content

Conversation

llucax
Copy link
Contributor

@llucax llucax commented Jun 27, 2025

  • Use ComponentCategory from frequenz-client-common
  • Allow for unknown categories in Component
  • Use enum_from_proto() from frequenz-client-common

Fixes #160.

llucax added 5 commits June 27, 2025 10:36
Signed-off-by: Leandro Lucarella <[email protected]>
This allows for better interoperability with other API clients.

Signed-off-by: Leandro Lucarella <[email protected]>
Now an `unknown` category will be stored as a raw `int` instead of
being converted to `UNSPECIFIED`.

Signed-off-by: Leandro Lucarella <[email protected]>
This means we can remove `component_category_from_protobuf()` and now
unknown categories will be preserved.

Signed-off-by: Leandro Lucarella <[email protected]>
Signed-off-by: Leandro Lucarella <[email protected]>
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) part:client Affects the client code labels Jun 27, 2025
@llucax llucax added the type:enhancement New feature or enhancement visitble to users label Jun 27, 2025
@llucax llucax self-assigned this Jun 27, 2025
@llucax llucax requested a review from Marenz June 27, 2025 09:09
@llucax
Copy link
Contributor Author

llucax commented Jun 27, 2025

@llucax llucax modified the milestone: v0.10.0 Jun 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
part:client Affects the client code part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:tooling Affects the development tooling (CI, deployment, dependency management, etc.) type:enhancement New feature or enhancement visitble to users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use ComponentCategory from frequenz.client.common
1 participant