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

Removing all deprecated code #44

Conversation

tiyash-basu-frequenz
Copy link
Contributor

The following deprecated code has been removed:

  • The COMPONENT_CATEGORY_LOAD variant from the ComponentCategory enum.
  • The COMPONENT_CATEGORY_JUNCTION variant from the ComponentCategory enum.
  • The RPCs Charge and Discharge, in favour of RPC SetPowerActive.
  • The RPC SetBounds, in favour of RPCs AddExclusiveBounds and AddInclusiveBounds.

This removal also includes code that has been deprecated after the last major release. The reason to remove these deprecations now is to have a leaner API earlier, since we are already on the way for a major release now.

The following deprecated code has been removed:
* The `COMPONENT_CATEGORY_LOAD` variant from the `ComponentCategory` enum.
* The `COMPONENT_CATEGORY_JUNCTION` variant from the `ComponentCategory`
  enum.
* The RPCs `Charge` and `Discharge`, in favour of RPC `SetPowerActive`.
* The RPC `SetBounds`, in favour of RPCs `AddExclusiveBounds` and
  `AddInclusiveBounds`.

This removal also includes code that has been deprecated after the last
major release. The reason to remove these deprecations now is to have a
leaner API earlier, since we are already on the way for a major release
now.

Signed-off-by: Tiyash Basu <tiyash.basu@frequenz.com>
@tiyash-basu-frequenz tiyash-basu-frequenz added this to the v0.12.0 milestone Apr 21, 2023
@tiyash-basu-frequenz tiyash-basu-frequenz requested a review from a team as a code owner April 21, 2023 12:03
@tiyash-basu-frequenz tiyash-basu-frequenz self-assigned this Apr 21, 2023
@github-actions github-actions bot added part:docs Affects the documentation part:protobuf Affects the protocol buffer definition files labels Apr 21, 2023
Copy link

Choose a reason for hiding this comment

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

🔥

@leandro-lucarella-frequenz

I would be good to have other eyes here, though, more experience with the historical use of the microgrid API, I'm just approving from the POV of the diff but I'm not fully aware of all the implications. Maybe @sahas-subramanian-frequenz should take a look too.

Copy link

Choose a reason for hiding this comment

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

Yup, that looks good. The current SDK already doesn't use the LOAD and JUNCTION categories, and we now a SetPower method and non-streaming methods for setting bounds, all of which are great from the sdk point of view.

@tiyash-basu-frequenz tiyash-basu-frequenz merged commit 2beb674 into frequenz-floss:v0.x.x Apr 22, 2023
@tiyash-basu-frequenz tiyash-basu-frequenz deleted the remove_deprecations branch April 22, 2023 03:55
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants