v0.3.0
Frequenz Common API Release Notes
Summary
This release includes renaming the EVChargerType enum to EvChargerType and
the addition of the MetricAggregation message.
Upgrading
-
The submodule URL was changed to use HTTPS instead of SSH (to avoid problems trying to unlock SSH keys to do updates, etc.).
Make sure you sync your submodules to the new URL:
$ git submodule sync Synchronizing submodule url for 'submodules/api-common-protos'
-
The enum with the oder variants was compiled into the following rust enum
(by prost):pub enum EvChargerType { /// Default type. EvchargerTypeUnspecified = 0, /// The EV charging station supports AC charging only. EvchargerTypeAc = 1, /// The EV charging station supports DC charging only. EvchargerTypeDc = 2, /// The EV charging station supports both AC and DC. EvchargerTypeHybrid = 3, }
Here the enum variants were unnecessarily prefixed with
EvchargerType.
This lead to accessing the enum variants in a very verbose manner, e.g.,
EvChargerType::EvchargerTypeHybrid.The changed version of the enum in this commit results in the following
rust enum:pub enum EvChargerType { /// Default type. Unspecified = 0, /// The EV charging station supports AC charging only. Ac = 1, /// The EV charging station supports DC charging only. Dc = 2, /// The EV charging station supports both AC and DC. Hybrid = 3, }
Here the unnecessary prefix
EvchargerTypeis absent. This reduces the
verbosity while accessing the enum variants, making the resulting rust code
more readable, e.g., asEvChargerType::Hybrid.This change also leads to renaming the enum from
EVChargerTypeto
EvChargerType, to satisfy protolint requirements.
New Features
-
Added
MetricAggregationmessageThe message
MetricAggregationhas been copied from frequenz-api-microgrid
into this repository, so that it can be used by other APIs as well.
Bug Fixes
None
What's Changed
- Use HTTPS URL for the submodule by @leandro-lucarella-frequenz in #17
- Bump actions/labeler from 4.0.3 to 4.0.4 by @dependabot in #18
- Bump frequenz-repo-config[api] from 0.1.0 to 0.2.0 by @dependabot in #19
- Bump actions/labeler from 4.0.4 to 4.1.0 by @dependabot in #20
- Refactor
EVChargerTypeenum variants by @tiyash-basu-frequenz in #21 - Add
MetricAggregationmessage by @tiyash-basu-frequenz in #22 - Prepare for release v0.3.0 by @tiyash-basu-frequenz in #23
New Contributors
- @tiyash-basu-frequenz made their first contribution in #21
Full Changelog: v0.2.0...v0.3.0