Skip to content

Commit

Permalink
WIP ActionIngestionLog rpc for discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
ltucker committed Dec 16, 2024
1 parent a8b8ef7 commit 8fc170a
Show file tree
Hide file tree
Showing 5 changed files with 1,527 additions and 672 deletions.
28 changes: 28 additions & 0 deletions diode-proto/diode/v1/reconciler.proto
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,38 @@ message RetrieveIngestionLogsResponse {
string next_page_token = 3; // Token for the next page of results, if any
}

// 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;
}
string ingestion_log_id = 4;
optional string branch_id = 5;
}

// The response from the ActionIngestionLog request
message ActionIngestionLogResponse {
message Error {
string message = 1;
int32 code = 2;
}

IngestionLog log = 1;
repeated Error errors = 2;
}

// Reconciler service API
service ReconcilerService {
// Retrieves ingestion data sources
rpc RetrieveIngestionDataSources(RetrieveIngestionDataSourcesRequest) returns (RetrieveIngestionDataSourcesResponse) {}
// Retrieves ingestion logs
rpc RetrieveIngestionLogs(RetrieveIngestionLogsRequest) returns (RetrieveIngestionLogsResponse);
// Takes action on an ingestion log
rpc ActionIngestionLog(ActionIngestionLogRequest) returns (ActionIngestionLogResponse);
}
Loading

0 comments on commit 8fc170a

Please sign in to comment.