From 47cbc05962838084516ce42afcfd3bce5efb9594 Mon Sep 17 00:00:00 2001 From: VG Date: Sun, 8 Oct 2023 20:48:15 +0800 Subject: [PATCH] chore: revert deployments --- dozer-cli/src/cloud/client.rs | 9 +-------- dozer-types/protos/cloud.proto | 5 +++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/dozer-cli/src/cloud/client.rs b/dozer-cli/src/cloud/client.rs index 7225b65f38..2392a9cde5 100644 --- a/dozer-cli/src/cloud/client.rs +++ b/dozer-cli/src/cloud/client.rs @@ -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 => { diff --git a/dozer-types/protos/cloud.proto b/dozer-types/protos/cloud.proto index 883465a3b2..9d532a9ec2 100644 --- a/dozer-types/protos/cloud.proto +++ b/dozer-types/protos/cloud.proto @@ -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 {