Skip to content

Commit 214ec91

Browse files
Remove "type" field from update request
Signed-off-by: Stefan Brus <[email protected]>
1 parent 7ffb609 commit 214ec91

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

RELEASE_NOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
- The field `create_time` has been removed from update requests.
44
- An `update_time` field has been added to the Dispatch object.
5+
- The `type` field has been removed from update requests, to prevent it from being modified after creation.

proto/frequenz/api/dispatch/dispatch.proto

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -185,27 +185,24 @@ message DispatchUpdateRequest {
185185
// The microgrid identifier
186186
optional uint64 microgrid_id = 2;
187187

188-
// The type of dispatch
189-
optional string type = 3;
190-
191188
// The start time
192189
// When updating a dispatch, ensure that the starting timestamp is set to
193190
// the current time or any future time.
194191
// Timestamps earlier than the current time are not allowed.
195-
google.protobuf.Timestamp start_time = 4;
192+
google.protobuf.Timestamp start_time = 3;
196193

197194
// The end time
198-
google.protobuf.Timestamp end_time = 5;
195+
google.protobuf.Timestamp end_time = 4;
199196

200197
// The component selector
201-
DispatchComponentSelector selector = 6;
198+
DispatchComponentSelector selector = 5;
202199

203200
// The "active" status
204-
optional bool is_active = 7;
201+
optional bool is_active = 6;
205202

206203
// The "dry run" status
207-
optional bool is_dry_run = 8;
204+
optional bool is_dry_run = 7;
208205

209206
// The dispatch payload
210-
google.protobuf.Struct payload = 9;
207+
google.protobuf.Struct payload = 8;
211208
}

0 commit comments

Comments
 (0)