Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore(proto): update stage comment (#16417)

p0nyb6f733f0f842
diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.ts
index a6d50a66d0..5587dd5f41 100644
--- a/frontend/src/types/proto/v1/rollout_service.ts
+++ b/frontend/src/types/proto/v1/rollout_service.ts
@@ -223,12 +223,9 @@ export interface Rollout {
export interface Stage {
/** Format: projects/{project}/rollouts/{rollout}/stages/{stage} */
name: string;
- /**
- * The id comes from the deployment config.
- * Format: UUID
- * Empty for legacy stages.
- */
+ /** id is the environment id of the stage. */
id: string;
+ /** environment is the environment of the stage. */
environment: string;
tasks: Task[];
}
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 30d1513370..7f62884563 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -13329,12 +13329,10 @@ components:
id:
readOnly: true
type: string
- description: |-
- The id comes from the deployment config.
- Format: UUID
- Empty for legacy stages.
+ description: id is the environment id of the stage.
environment:
type: string
+ description: environment is the environment of the stage.
tasks:
type: array
items:
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 4b987d6d2b..0014cc4e75 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -10186,8 +10186,8 @@ When paginating, all other parameters provided to `ListTaskRuns` must match the
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | Format: projects/{project}/rollouts/{rollout}/stages/{stage} |
-| id | [string](#string) | | The id comes from the deployment config. Format: UUID Empty for legacy stages. |
-| environment | [string](#string) | | |
+| id | [string](#string) | | id is the environment id of the stage. |
+| environment | [string](#string) | | environment is the environment of the stage. |
| tasks | [Task](#bytebase-v1-Task) | repeated | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 68f6876739..f9f77a04cc 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -27991,16 +27991,14 @@ Format: projects/{project}/issues/{issue} </p></td>
<td>id</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p>The id comes from the deployment config.
-Format: UUID
-Empty for legacy stages. </p></td>
+ <td><p>id is the environment id of the stage. </p></td>
</tr>
<tr>
<td>environment</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>environment is the environment of the stage. </p></td>
</tr>
<tr>
diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.go
index 17099a9e77..1527653b98 100644
--- a/proto/generated-go/v1/rollout_service.pb.go
+++ b/proto/generated-go/v1/rollout_service.pb.go
@@ -1370,10 +1370,9 @@ type Stage struct {
state protoimpl.MessageState `protogen:"open.v1"`
// Format: projects/{project}/rollouts/{rollout}/stages/{stage}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
- // The id comes from the deployment config.
- // Format: UUID
- // Empty for legacy stages.
- Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
+ // id is the environment id of the stage.
+ Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
+ // environment is the environment of the stage.
Environment string `protobuf:"bytes,4,opt,name=environment,proto3" json:"environment,omitempty"`
Tasks []*Task `protobuf:"bytes,5,rep,name=tasks,proto3" json:"tasks,omitempty"`
unknownFields protoimpl.UnknownFields
diff --git a/proto/v1/v1/rollout_service.proto b/proto/v1/v1/rollout_service.proto
index ad28b1c416..f8ba3a7988 100644
--- a/proto/v1/v1/rollout_service.proto
+++ b/proto/v1/v1/rollout_service.proto
@@ -335,11 +335,10 @@ message Stage {
// Format: projects/{project}/rollouts/{rollout}/stages/{stage}
string name = 1;
- // The id comes from the deployment config.
- // Format: UUID
- // Empty for legacy stages.
+ // id is the environment id of the stage.
string id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
+ // environment is the environment of the stage.
string environment = 4;
repeated Task tasks = 5;