Add new protobuf message to report app deployment statuses (#2634)

This commit is contained in:
Alexandre de Souza 2024-06-03 14:15:11 -03:00 committed by GitHub
parent 829b6b2095
commit f01e212c0a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,8 @@
defmodule LivebookProto.AppDeploymentStatus do
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :id, 1, type: :string
field :deployment_group_id, 2, type: :string, json_name: "deploymentGroupId"
field :version, 3, type: :string
field :status, 4, type: :string
end

View file

@ -0,0 +1,8 @@
defmodule LivebookProto.AppDeploymentStatusReport do
use Protobuf, syntax: :proto3, protoc_gen_elixir_version: "0.12.0"
field :app_deployment_statuses, 1,
repeated: true,
type: LivebookProto.AppDeploymentStatus,
json_name: "appDeploymentStatuses"
end

View file

@ -159,6 +159,17 @@ message Agent {
string deployment_group_id = 4;
}
message AppDeploymentStatus {
string id = 1;
string deployment_group_id = 2;
string version = 3;
string status = 4;
}
message AppDeploymentStatusReport {
repeated AppDeploymentStatus app_deployment_statuses = 1;
}
message Event {
oneof type {
SecretCreated secret_created = 1;

View file

@ -657,7 +657,6 @@ defmodule Livebook.Hubs.TeamClientTest do
# Since the app deployment struct generation is from Livebook side,
# we don't have yet the information about who deployed the app,
# so we need to add it ourselves.
app_deployment = %{
app_deployment
| id: to_string(teams_app_deployment.id),