mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-12-27 18:23:49 +08:00
Add new protobuf message to report app deployment statuses (#2634)
This commit is contained in:
parent
829b6b2095
commit
f01e212c0a
4 changed files with 27 additions and 1 deletions
8
proto/lib/livebook_proto/app_deployment_status.pb.ex
Normal file
8
proto/lib/livebook_proto/app_deployment_status.pb.ex
Normal 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
|
|
@ -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
|
|
@ -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;
|
||||
|
|
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue