Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix: stage environment format (#16422)
p0ny35824060bb7c
diff --git a/backend/api/v1/rollout_service_converter.go b/backend/api/v1/rollout_service_converter.goindex 6bc2a37967..214aef33ff 100644--- a/backend/api/v1/rollout_service_converter.go+++ b/backend/api/v1/rollout_service_converter.go@@ -632,7 +632,7 @@ func convertToRollout(ctx context.Context, s *store.Store, project *store.Projecstages = append(stages, &v1pb.Stage{Name: common.FormatStage(project.ResourceID, rollout.ID, environment),Id: environment,- Environment: environment,+ Environment: common.FormatEnvironment(environment),Tasks: tasks,})}diff --git a/frontend/src/types/proto/v1/rollout_service.ts b/frontend/src/types/proto/v1/rollout_service.tsindex 5587dd5f41..831ce8510d 100644--- a/frontend/src/types/proto/v1/rollout_service.ts+++ b/frontend/src/types/proto/v1/rollout_service.ts@@ -223,9 +223,15 @@ export interface Rollout {export interface Stage {/** Format: projects/{project}/rollouts/{rollout}/stages/{stage} */name: string;- /** id is the environment id of the stage. */+ /**+ * id is the environment id of the stage.+ * e.g. "prod".+ */id: string;- /** environment is the environment of the stage. */+ /**+ * environment is the environment of the stage.+ * Format: environments/{environment}.+ */environment: string;tasks: Task[];}diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 61212b1be9..3bf64ea213 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -13172,10 +13172,14 @@ components:id:readOnly: truetype: string- description: id is the environment id of the stage.+ description: |-+ id is the environment id of the stage.+ e.g. "prod".environment:type: string- description: environment is the environment of the stage.+ description: |-+ environment is the environment of the stage.+ Format: environments/{environment}.tasks:type: arrayitems:diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 0014cc4e75..32c38a35cd 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) | | id is the environment id of the stage. |-| environment | [string](#string) | | environment is the environment of the stage. |+| id | [string](#string) | | id is the environment id of the stage. e.g. "prod". |+| environment | [string](#string) | | environment is the environment of the stage. Format: environments/{environment}. || tasks | [Task](#bytebase-v1-Task) | repeated | |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex f9f77a04cc..4cc9339541 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -27991,14 +27991,16 @@ Format: projects/{project}/issues/{issue} </p></td><td>id</td><td><a href="#string">string</a></td><td></td>- <td><p>id is the environment id of the stage. </p></td>+ <td><p>id is the environment id of the stage.+e.g. "prod". </p></td></tr><tr><td>environment</td><td><a href="#string">string</a></td><td></td>- <td><p>environment is the environment of the stage. </p></td>+ <td><p>environment is the environment of the stage.+Format: environments/{environment}. </p></td></tr><tr>diff --git a/proto/generated-go/v1/rollout_service.pb.go b/proto/generated-go/v1/rollout_service.pb.goindex 1527653b98..829322fbc3 100644--- a/proto/generated-go/v1/rollout_service.pb.go+++ b/proto/generated-go/v1/rollout_service.pb.go@@ -1371,8 +1371,10 @@ type Stage struct {// Format: projects/{project}/rollouts/{rollout}/stages/{stage}Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`// id is the environment id of the stage.+ // e.g. "prod".Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`// environment is the environment of the stage.+ // Format: environments/{environment}.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.UnknownFieldsdiff --git a/proto/v1/v1/rollout_service.proto b/proto/v1/v1/rollout_service.protoindex f8ba3a7988..76048362aa 100644--- a/proto/v1/v1/rollout_service.proto+++ b/proto/v1/v1/rollout_service.proto@@ -336,9 +336,11 @@ message Stage {string name = 1;// id is the environment id of the stage.+ // e.g. "prod".string id = 3 [(google.api.field_behavior) = OUTPUT_ONLY];// environment is the environment of the stage.+ // Format: environments/{environment}.string environment = 4;repeated Task tasks = 5;