Skip to content

Commit 9071c8e

Browse files
authored
Merge pull request #20 from sandovalrr/feat/rename-rpc-methods
refactor: rename electrical components rpc methods to align with the new naming convention
2 parents 18db2d9 + 34dc343 commit 9071c8e

5 files changed

Lines changed: 13 additions & 15 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
The Frequenz Platform Assets API allows for the retrieval of platform assets information. Unlike CRUD-centric
1010
APIs, the focus here is on accessing already registered assets ranging from microgrids and gridpools to
11-
individual components within these structures, such as sensors and their respective electrical connections.
11+
individual electrical components within these structures, such as sensors and their respective electrical connections.
1212

1313
## Objective
1414

@@ -19,15 +19,15 @@ across multiple microgrids, optimizing spot market trading based on real-time gr
1919
## Key Features
2020

2121
- Asset Retrieval: Provides programmatic access to a wide range of platform assets, including microgrids,
22-
gridpools, components, sensors, and connections.
22+
gridpools, electrical components, and connections.
2323
- Data-Driven Optimization: Facilitates the development of applications that can read asset information and
2424
statuses for real-time decision making.
2525
- Scheduling Insights: Enables applications to understand and adapt to gridpool schedules for improved spot
2626
market trading.
2727

2828
## Scope and Limitations
2929

30-
- Retrieval of detailed asset data for various entities such as microgrids, gridpools, and their components.
30+
- Retrieval of detailed asset data for various entities such as microgrids, gridpools, and their electrical components.
3131
- Enabling advanced analytics and data-driven decisions for cloud applications.
3232
- Read-Only: The API is designed for data retrieval and doesn't support CRUD operations for assets.
3333
- Dependence on Platform: The quality and timeliness of data are dependent on the capabilities of the underlying platform.

RELEASE_NOTES.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@
22

33
## Summary
44

5-
<!-- Here goes a general summary of what this release is about -->
5+
Adjusted the RPC names to align with the new naming convention, and updated the `frequenz-api-common` dependency.
6+
67

78
## Upgrading
89

9-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
10+
- Update the `frequenz-api-common` dependency
1011

1112
## New Features
1213

13-
<!-- Here goes the main new features and examples or instructions on how to use them -->
14-
15-
## Bug Fixes
14+
- Renamed `ListMicrogridComponents` to `ListMicrogridElectricalComponents` and `ListMicrogridComponentConnections` to `ListMicrogridElectricalComponentConnections`.
1615

17-
<!-- Here goes notable bug fixes that are worth a special mention or explanation -->

proto/frequenz/api/assets/v1/assets.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ syntax = "proto3";
1414

1515
package frequenz.api.assets.v1;
1616

17-
import "frequenz/api/common/v1/microgrid/components/components.proto";
17+
import "frequenz/api/common/v1/microgrid/electrical_components/electrical_components.proto";
1818
import "frequenz/api/common/v1/microgrid/microgrid.proto";
1919

2020
// Service providing access to manage and retrieve information
@@ -58,7 +58,7 @@ message ListMicrogridElectricalComponentsRequest {
5858
repeated uint64 component_ids = 2;
5959

6060
// Return components that have the specified categories only.
61-
repeated frequenz.api.common.v1.microgrid.components.ComponentCategory categories = 3;
61+
repeated frequenz.api.common.v1.microgrid.electrical_components.ElectricalComponentCategory categories = 3;
6262
}
6363

6464
// A message containing a list of electrical components.
@@ -67,7 +67,7 @@ message ListMicrogridElectricalComponentsResponse {
6767
uint64 microgrid_id = 1;
6868

6969
// List of electrical components matching the filter criteria.
70-
repeated frequenz.api.common.v1.microgrid.components.Component components = 2;
70+
repeated frequenz.api.common.v1.microgrid.electrical_components.ElectricalComponent components = 2;
7171
}
7272

7373
// ListMicrogridElectricalComponentConnectionsRequest is used for filtering and listing
@@ -115,5 +115,5 @@ message ListMicrogridElectricalComponentConnectionsResponse {
115115
uint64 microgrid_id = 1;
116116

117117
// Contains the list of connections that match the filtering criteria.
118-
repeated frequenz.api.common.v1.microgrid.components.ComponentConnection connections =2;
118+
repeated frequenz.api.common.v1.microgrid.electrical_components.ElectricalComponentConnection connections =2;
119119
}

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ classifiers = [
4545
]
4646
requires-python = ">= 3.11, < 4"
4747
dependencies = [
48-
"frequenz-api-common >= 0.6.3, < 0.7.0",
48+
"frequenz-api-common @ git+https://github.com/frequenz-floss/frequenz-api-common.git@2e89add6a16d42b23612f0f791a499919f3738ed",
4949
# We can't widen beyond the current value unless we bump the minimum
5050
# requirements too because of protobuf cross-version runtime guarantees:
5151
# https://protobuf.dev/support/cross-version-runtime-guarantee/#major

0 commit comments

Comments
 (0)