Skip to content

Commit

Permalink
chore: revert deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
v3g42 committed Oct 8, 2023
1 parent 96fc4a2 commit 47cbc05
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
9 changes: 1 addition & 8 deletions dozer-cli/src/cloud/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,10 @@ impl DozerGrpcCloudClient for CloudClient {
.map_err(map_tonic_error)?
.into_inner();

let deployment_response = client
.list_deployments(ListDeploymentRequest {
app_id: response.app_id.clone(),
})
.await
.map_err(map_tonic_error)?
.into_inner();
let mut table = table!();
table.set_titles(row!["Deployment", "Version", "Status"]);

for deployment in deployment_response.deployments.iter() {
for deployment in response.deployments.iter() {
fn deployment_status(status: i32) -> &'static str {
match status {
_ if status == DeploymentStatus::Pending as i32 => {
Expand Down
5 changes: 3 additions & 2 deletions dozer-types/protos/cloud.proto
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ message DeployAppResponse {
message AppResponse {
string app_id = 1;
string app_name = 2;
google.protobuf.Timestamp created_at = 5;
google.protobuf.Timestamp updated_at = 6;
repeated DeploymentInfo deployments = 3;
google.protobuf.Timestamp created_at = 4;
google.protobuf.Timestamp updated_at = 5;
}

message ConnectionInfo {
Expand Down

0 comments on commit 47cbc05

Please sign in to comment.