Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Protobuf comments and field order
Browse files Browse the repository at this point in the history
  • Loading branch information
izaaklauer committed Jun 4, 2021
1 parent 9deecd5 commit 4c3d1b4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion internal/cli/deployment_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (c *DeploymentListCommand) Run(args []string) int {
Workspace: wsRef,
})

if status.Code(err) == codes.NotFound {
if status.Code(err) == codes.NotFound || status.Code(err) == codes.Unimplemented{
err = nil
statusReportsResp = nil
}
Expand Down
5 changes: 4 additions & 1 deletion internal/server/gen/server.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions internal/server/proto/server.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2368,12 +2368,18 @@ message StatusReport {
// This message is a StatusReport proto that exists inside the SDK
google.protobuf.Any status_report = 7;

// The overall health of the deployment or release as reported by the plugin
// The overall health of the deployment or release as reported by the plugin.
// Copied from the plugin generated raw SDK status report for convenient API access.
Health health = 8;

// A health report of all of the resources that make up the report.
// Copied from the plugin generated raw SDK status report for convenient API access.
repeated Health resources_health = 9;

// the time when this report was generated
// Copied from the plugin generated raw SDK status report for convenient API access.
google.protobuf.Timestamp generated_time = 10;

message Health {
// the overall health of the report for a resource
string health_status = 1;
Expand All @@ -2387,9 +2393,6 @@ message StatusReport {
// Resource id
string id = 4;
}

// the time when this report was generated
google.protobuf.Timestamp generated_time = 10;
}

/********************************************************************
Expand Down

0 comments on commit 4c3d1b4

Please sign in to comment.