Skip to content

Commit

Permalink
use enum for ActionIngestLog action
Browse files Browse the repository at this point in the history
  • Loading branch information
ltucker committed Dec 16, 2024
1 parent 8fc170a commit d4d3104
Show file tree
Hide file tree
Showing 3 changed files with 175 additions and 745 deletions.
18 changes: 8 additions & 10 deletions diode-proto/diode/v1/reconciler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,15 @@ message RetrieveIngestionLogsResponse {

// The request to take action on an ingestion log
message ActionIngestionLogRequest {
message DiffAction {}
message ApplyAction {}
message RejectAction {}

oneof action {
DiffAction diff = 1;
ApplyAction apply = 2;
RejectAction reject = 3;
enum Action {
DIFF = 0;
APPLY = 1;
REJECT = 2;
}
string ingestion_log_id = 4;
optional string branch_id = 5;

Action action = 1;
string ingestion_log_id = 2;
optional string branch_id = 3;
}

// The response from the ActionIngestionLog request
Expand Down
Loading

0 comments on commit d4d3104

Please sign in to comment.