Skip to content

Commit

Permalink
Added "slim" mode for changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanratcliffe committed Sep 30, 2024
1 parent c5f3851 commit 8758833
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions changes.proto
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ service ChangesService {
rpc CreateChange(CreateChangeRequest) returns (CreateChangeResponse);
// Gets the details of an existing change
rpc GetChange(GetChangeRequest) returns (GetChangeResponse);
// Gets a summary of information related to a change, this results in a
// smaller response, but could be missing some information relative to
// `GetChange`
rpc GetChangeSummary(GetChangeSummaryRequest) returns (GetChangeSummaryResponse);
// Gets the risks and risk calculation status of an existing change
rpc GetChangeRisks(GetChangeRisksRequest) returns (GetChangeRisksResponse);
// Gets the all data of an existing change for archival
Expand Down Expand Up @@ -723,6 +727,14 @@ message CreateChangeResponse {
// get the details of a specific change
message GetChangeRequest {
bytes UUID = 1;

// Return a slimmed down version of the change. This will exclude the
// following data:
// * `rawPlan`: The entire Terraform plan output
// * `codeChanges`: The code changes that created this change
// * `plannedChanges.before`: The item before the change
// * `plannedChanges.after`: The item after the change
bool slim = 2;
}

message GetChangeResponse {
Expand Down

0 comments on commit 8758833

Please sign in to comment.