|
2 | 2 |
|
3 | 3 | ## Summary |
4 | 4 |
|
5 | | -<!-- Here goes a general summary of what this release is about --> |
| 5 | +This release introduces a few breaking changes to the API. The changes consist |
| 6 | +of renaming RPCs, removing deprecated code, and introducing new features. |
| 7 | +Please refer to the following sections for details. |
6 | 8 |
|
7 | 9 | ## Upgrading |
8 | 10 |
|
9 | | -<!-- Here goes notes on how to upgrade from previous versions, including if there are any deprecations and what they should be replaced with --> |
| 11 | +* [Renamed RPCs](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/43) |
| 12 | + |
| 13 | + The following RPC has been renamed to make their objectives clearer: |
| 14 | + * `GetMetadata` -> `GetMicrogridMetadata` |
| 15 | + * `GetComponentData` -> `StreamComponentData` |
| 16 | + |
| 17 | +* [Removed deprecated code](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/44) |
| 18 | + |
| 19 | + The following deprecated code has been removed: |
| 20 | + * The `COMPONENT_CATEGORY_LOAD` variant from the `ComponentCategory` enum. |
| 21 | + * The `COMPONENT_CATEGORY_JUNCTION` variant from the `ComponentCategory` enum. |
| 22 | + * The RPCs `Charge` and `Discharge`, in favour of RPC `SetPowerActive`. |
| 23 | + * The RPC `SetBounds`, in favour of RPCs `AddExclusiveBounds` and |
| 24 | + `AddInclusiveBounds`. |
| 25 | + |
| 26 | + This removal also includes code that has been deprecated after the last major |
| 27 | + release. The reason to remove these deprecations now is to have a leaner API |
| 28 | + earlier, since we are already on the way for a major release now. |
10 | 29 |
|
11 | 30 | ## New Features |
12 | 31 |
|
13 | | -* [Added new RPC to return the microgrid metadata](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/30). |
| 32 | +* [Added new RPC to return the microgrid metadata](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/30) |
| 33 | + |
14 | 34 | The microgrid metadata consists of information about the overall microgrid, |
15 | 35 | as opposed to its components, e.g., the microgrid ID, location, etc. |
16 | 36 | This change adds a new RPC `GetMicrogridMetadata()` that allows users to fetch |
17 | 37 | microgrid metadata. The returned value is an instance of the message |
18 | 38 | `MicrogridMetadata`. |
19 | 39 |
|
20 | | - Further changes were introduced to this addition in [this PR](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/43). |
| 40 | + Further changes were introduced to this addition in PR [#43](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/43). |
| 41 | + |
| 42 | +* [Added enum variants for setting bounds on currents](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/33) |
21 | 43 |
|
22 | | -* [Added enum variants for setting bounds on currents](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/33). |
23 | 44 | This will allow clients to set bounds on a components |
24 | 45 | 1. DC electrical current, |
25 | 46 | 2. total AC electrical current, |
26 | 47 | 3. per-phase AC electrical currents. |
27 | 48 |
|
28 | | -* [Add RPC to set active power using a signed integer](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/35). |
| 49 | +* [Add RPC to set active power using a signed integer](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/35) |
| 50 | + |
29 | 51 | While reading power values, the passive sign convention is followed |
30 | 52 | (-ve for production, and +ve for consumption). This new method allows setting |
31 | 53 | active power values in the same convention, making the API more consistent. |
32 | 54 |
|
33 | | -* [Introduced component category-specific metadata](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/36). |
| 55 | +* [Introduced component category-specific metadata](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/36) |
| 56 | + |
34 | 57 | This metadata is returned in response to `ListComponents` calls, |
35 | 58 | in a new message variable `Component.metadata`. |
36 | 59 | This is a more general way of representing category-specific metadata, |
37 | 60 | like category-type, and removes `Component.type`. |
38 | 61 |
|
39 | | -* [Introduced grid max-current](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/38). |
| 62 | +* [Introduced grid max-current](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/38) |
| 63 | + |
40 | 64 | This change introduces a `grid.Metadata` message, which contains the item |
41 | 65 | `rated_fuse_current`. This is the rating of the fuse at the grid connection |
42 | 66 | point. |
|
45 | 69 | The current _i_ A at the grid connection point must comply with the |
46 | 70 | following constraint: : `-rated_fuse_current <= i <= rated_fuse_current` |
47 | 71 |
|
48 | | -* [Introduced exclusion bounds](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/39). |
| 72 | +* [Introduced exclusion bounds](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/39) |
| 73 | + |
49 | 74 | In the messages `common.Metric` and `common.MetricAggregation`, |
50 | 75 | `system_bounds` has now been replaced by `system_exclusion_bounds` and |
51 | 76 | `system_inclusion_bounds`. A metric's `value` now has to comply with the |
|
87 | 112 |
|
88 | 113 | The RPC `SetBounds` has been deprecated. |
89 | 114 |
|
90 | | -* [Renamed RPCs](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/43). |
91 | | - The following RPC has been renamed to make their objectives clearer: |
92 | | - * `GetMetadata` -> `GetMicrogridMetadata` |
93 | | - * `GetComponentData` -> `StreamComponentData` |
94 | | - |
95 | | -* [Removed deprecated code](https://github.com/frequenz-floss/frequenz-api-microgrid/pull/44) |
96 | | - The following deprecated code has been removed: |
97 | | - * The `COMPONENT_CATEGORY_LOAD` variant from the `ComponentCategory` enum. |
98 | | - * The `COMPONENT_CATEGORY_JUNCTION` variant from the `ComponentCategory` enum. |
99 | | - * The RPCs `Charge` and `Discharge`, in favour of RPC `SetPowerActive`. |
100 | | - * The RPC `SetBounds`, in favour of RPCs `AddExclusiveBounds` and |
101 | | - `AddInclusiveBounds`. |
102 | | - |
103 | | - This removal also includes code that has been deprecated after the last major |
104 | | - release. The reason to remove these deprecations now is to have a leaner API |
105 | | - earlier, since we are already on the way for a major release now. |
106 | | - |
107 | 115 | ## Bug Fixes |
108 | 116 |
|
109 | | -<!-- Here goes notable bug fixes that are worth a special mention or explanation --> |
| 117 | +None |
0 commit comments