Skip to content

Commit 223315c

Browse files
authored
Update code and api-common submodule to use v1 paths (#138)
Otherwise we can't use other code that uses v1. paths. ~Depends on #137
2 parents 6c36da5 + 2a57a3c commit 223315c

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

RELEASE_NOTES.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
## Upgrading
88

9-
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
9+
- Queries that compare against a time interval filter should check for the end time inside the recurrence rule.
10+
- `end_time` has been renamed `until` and is mutually exclusive with `count`.
11+
- Update request handlers should check the field mask for which attributes to update.
12+
- The common api dependency has been udpated so that the `v1` paths for `ComponentCategory` is used.
1013

1114
## New Features
1215

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ plugins:
114114
import:
115115
# See https://mkdocstrings.github.io/python/usage/#import for details
116116
- https://docs.python.org/3/objects.inv
117-
- https://frequenz-floss.github.io/frequenz-api-common/v0.3/objects.inv
117+
- https://frequenz-floss.github.io/frequenz-api-common/v0.5/objects.inv
118118
- https://grpc.github.io/grpc/python/objects.inv
119119
- https://typing-extensions.readthedocs.io/en/stable/objects.inv
120120
# Note this plugin must be loaded after mkdocstrings to be able to use macros

proto/frequenz/api/dispatch/v1/dispatch.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import "google/protobuf/field_mask.proto";
1717
import "google/protobuf/struct.proto";
1818
import "google/protobuf/timestamp.proto";
1919

20-
import "frequenz/api/common/components.proto";
20+
import "frequenz/api/common/v1/microgrid/components/components.proto";
2121

2222
// Service providing operations related to dispatching microgrid components.
2323
//
@@ -150,7 +150,7 @@ message ComponentSelector {
150150
ComponentIDs component_ids = 1;
151151

152152
// Component category
153-
frequenz.api.common.components.ComponentCategory component_category = 2;
153+
frequenz.api.common.v1.microgrid.components.ComponentCategory component_category = 2;
154154
}
155155
}
156156

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ requires-python = ">= 3.11, < 4"
2828
dependencies = [
2929
"frequenz-api-common >= 0.5.4, < 0.6",
3030
"googleapis-common-protos >= 1.56.4, < 2",
31-
"grpcio >= 1.51.1, < 2",
31+
"grpcio >= 1.54.2, < 2",
3232
]
3333
dynamic = ["version"]
3434

submodules/frequenz-api-common

Submodule frequenz-api-common updated 66 files

0 commit comments

Comments
 (0)