Skip to content

Commit 6a49253

Browse files
Remove ability to update microgrid ID on existing dispatch
Fixes #26 Signed-off-by: Stefan Brus <[email protected]>
1 parent 1e4099e commit 6a49253

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
@@ -5,3 +5,4 @@
55
- The `type` field has been removed from update requests, to prevent it from being modified after creation.
66
- `DispatchFilter` has been replaced by `DispatchListRequest` as a parameter for `ListDispatches`.
77
- The filter has additionally been re-designed, with fields that lack use cases being removed.
8+
- Removed the ability to update `microgrid_id` on an existing dispatch.

proto/frequenz/api/dispatch/dispatch.proto

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -177,27 +177,24 @@ message DispatchUpdateRequest {
177177
// The dispatch identifier
178178
uint64 id = 1;
179179

180-
// The microgrid identifier
181-
optional uint64 microgrid_id = 2;
182-
183180
// The start time
184181
// When updating a dispatch, ensure that the starting timestamp is set to
185182
// the current time or any future time.
186183
// Timestamps earlier than the current time are not allowed.
187-
google.protobuf.Timestamp start_time = 3;
184+
google.protobuf.Timestamp start_time = 2;
188185

189186
// The end time
190-
google.protobuf.Timestamp end_time = 4;
187+
google.protobuf.Timestamp end_time = 3;
191188

192189
// The component selector
193-
DispatchComponentSelector selector = 5;
190+
DispatchComponentSelector selector = 4;
194191

195192
// The "active" status
196-
optional bool is_active = 6;
193+
optional bool is_active = 5;
197194

198195
// The "dry run" status
199-
optional bool is_dry_run = 7;
196+
optional bool is_dry_run = 6;
200197

201198
// The dispatch payload
202-
google.protobuf.Struct payload = 8;
199+
google.protobuf.Struct payload = 7;
203200
}

0 commit comments

Comments
 (0)