Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add component states and error codes #44

Merged
merged 2 commits into from
Nov 20, 2024

Conversation

cyiallou
Copy link
Contributor

Add component state codes and error codes similar to #11

@cyiallou cyiallou requested a review from a team as a code owner November 14, 2024 12:20
@cyiallou cyiallou requested a review from shsms November 14, 2024 12:20
@github-actions github-actions bot added part:docs Affects the documentation part:tests Affects the unit, integration and performance (benchmarks) tests part:microgrid Affects the microgrid protobuf definitions labels Nov 14, 2024
github-merge-queue bot pushed a commit that referenced this pull request Nov 19, 2024
Removed the initialisation to None for the parameters `page_size` and
`page_token` in pagination `Params` as they are no longer optional due
to the change in
frequenz-floss/frequenz-api-common#232

This PR fixes the CI failures in #44
Signed-off-by: cyiallou - Costas <[email protected]>
Signed-off-by: cyiallou - Costas <[email protected]>
@cyiallou cyiallou force-pushed the add_component_states branch from 89e52e5 to dbc6d51 Compare November 19, 2024 09:40
@cyiallou
Copy link
Contributor Author

Rebased to latest main branch.

@shsms shsms requested review from llucax and removed request for shsms November 19, 2024 12:03
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.

LGTM.

I have done a more high-level abstraction of all microgrid components in the upgrade of the microgrid client to the microgrid API v0.17 (which also finally switches to the v1 in common), so this will probably change in a near future.

We need to talk to see if this abstraction I wrote makes sense for other services too, but in case you want to give some early feedback, it is part of this PR:

https://github.com/frequenz-floss/frequenz-client-microgrid-python/pull/94/files#diff-920815d585fffddae9f723936d74fbddddf8176ee16d4eb2a557e634d22e1d12

My idea is to basically move everything in src/frequenz/client/microgrid/component and metrics, as well as the top-level modules related to _id.py, _location.py, _microgrid_info.py, _lifetime.py and _delivery_area.py to this repo.

@cyiallou cyiallou added this pull request to the merge queue Nov 20, 2024
Merged via the queue into frequenz-floss:v0.x.x with commit 13dadc8 Nov 20, 2024
14 checks passed
@cyiallou cyiallou deleted the add_component_states branch November 20, 2024 08:44
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: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