Skip to content

Commit 0c00322

Browse files
Revert dispatch settings to use protobuf Struct
The dispatch API should not care about any settings that are used by downstream apps. Signed-off-by: Stefan Brus <[email protected]>
1 parent 0b5e4d9 commit 0c00322

File tree

2 files changed

+4
-36
lines changed

2 files changed

+4
-36
lines changed

proto/frequenz/api/dispatch/dispatch.proto

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ package frequenz.api.dispatch;
1414

1515
import "google/api/annotations.proto";
1616
import "google/protobuf/empty.proto";
17+
import "google/protobuf/struct.proto";
1718
import "google/protobuf/timestamp.proto";
1819

1920
import "frequenz/api/common/components.proto";
2021

21-
import "frequenz/api/dispatch/fcr/prequalification.proto";
22-
2322
service DispatchService {
2423
// Returns a list of all dispatches
2524
rpc ListDispatches(DispatchFilter) returns (DispatchList) {
@@ -133,12 +132,6 @@ message DispatchFilter {
133132
TimeIntervalFilter time_interval = 5;
134133
}
135134

136-
message DispatchSettings {
137-
oneof settings {
138-
fcr.prequalification.FcrPrequalificationSettings fcr_prequal_settings = 1;
139-
}
140-
}
141-
142135
// Message representing one dispatch
143136
message Dispatch {
144137
// The dispatch identifier
@@ -166,7 +159,7 @@ message Dispatch {
166159
DispatchStatus status = 8;
167160

168161
// The dispatch settings
169-
DispatchSettings settings = 9;
162+
google.protobuf.Struct settings = 9;
170163
}
171164

172165
// A list of dispatches
@@ -196,7 +189,7 @@ message DispatchCreateRequest {
196189
DispatchStatus status = 6;
197190

198191
// The dispatch settings
199-
DispatchSettings settings = 7;
192+
google.protobuf.Struct settings = 7;
200193
}
201194

202195
// Message to update the dispatch with the given ID, with the given attributes
@@ -226,5 +219,5 @@ message DispatchUpdateRequest {
226219
optional DispatchStatus status = 8;
227220

228221
// The dispatch settings
229-
optional DispatchSettings settings = 9;
222+
optional google.protobuf.Struct settings = 9;
230223
}

proto/frequenz/api/dispatch/fcr/prequalification.proto

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)