Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
refactor: remove execution events from issue timeline (#18485)
boojack312e2f074cab
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yamlindex 2ec1bc5423..eed9a8cd47 100644--- a/backend/api/mcp/gen/openapi.yaml+++ b/backend/api/mcp/gen/openapi.yaml@@ -11041,29 +11041,13 @@ components:required:- issueUpdate- properties:- stageEnd:- title: stage_end- description: Stage end event.- $ref: '#/components/schemas/bytebase.v1.IssueComment.StageEnd'- title: stage_end+ planSpecUpdate:+ title: plan_spec_update+ description: Plan spec update event.+ $ref: '#/components/schemas/bytebase.v1.IssueComment.PlanSpecUpdate'+ title: plan_spec_updaterequired:- - stageEnd- - properties:- taskPriorBackup:- title: task_prior_backup- description: Task prior backup event.- $ref: '#/components/schemas/bytebase.v1.IssueComment.TaskPriorBackup'- title: task_prior_backup- required:- - taskPriorBackup- - properties:- taskUpdate:- title: task_update- description: Task update event.- $ref: '#/components/schemas/bytebase.v1.IssueComment.TaskUpdate'- title: task_update- required:- - taskUpdate+ - planSpecUpdatetitle: IssueCommentadditionalProperties: falsedescription: A comment on an issue.@@ -11126,98 +11110,32 @@ components:title: IssueUpdateadditionalProperties: falsedescription: Issue update event information.- bytebase.v1.IssueComment.StageEnd:- type: object- properties:- stage:- type: string- title: stage- description: The stage that ended.- title: StageEnd- additionalProperties: false- description: Stage end event information.- bytebase.v1.IssueComment.TaskPriorBackup:- type: object- properties:- task:- type: string- title: task- description: The task for which backup was performed.- tables:- type: array- items:- $ref: '#/components/schemas/bytebase.v1.IssueComment.TaskPriorBackup.Table'- title: tables- description: The tables that were backed up.- originalLine:- type: integer- title: original_line- format: int32- description: The original line number in the statement.- nullable: true- database:- type: string- title: database- description: The database that was backed up.- error:- type: string- title: error- description: Error message if backup failed.- title: TaskPriorBackup- additionalProperties: false- description: Task prior backup event information.- bytebase.v1.IssueComment.TaskPriorBackup.Table:+ bytebase.v1.IssueComment.PlanSpecUpdate:type: objectproperties:- schema:- type: string- title: schema- description: The schema name.- table:+ spec:type: string- title: table- description: The table name.- title: Table- additionalProperties: false- description: Table identification.- bytebase.v1.IssueComment.TaskUpdate:- type: object- properties:- tasks:- type: array- items:- type: string- title: tasks- description: The tasks that were updated.+ title: spec+ description: |-+ The spec that was updated.+ Format: projects/{project}/plans/{plan}/specs/{spec}fromSheet:type: stringtitle: from_sheet- description: 'Format: projects/{project}/sheets/{sheet}'+ description: |-+ The previous sheet.+ Format: projects/{project}/sheets/{sheet}nullable: truetoSheet:type: stringtitle: to_sheet- description: 'Format: projects/{project}/sheets/{sheet}'- nullable: true- toStatus:- title: to_status+ description: |-+ The new sheet.+ Format: projects/{project}/sheets/{sheet}nullable: true- $ref: '#/components/schemas/bytebase.v1.IssueComment.TaskUpdate.Status'- title: TaskUpdate+ title: PlanSpecUpdateadditionalProperties: false- description: Task update event information.- bytebase.v1.IssueComment.TaskUpdate.Status:- type: string- title: Status- enum:- - STATUS_UNSPECIFIED- - PENDING- - RUNNING- - DONE- - FAILED- - SKIPPED- - CANCELED- description: Task status values.+ description: Plan spec update event information (tracks sheet changes to plan specs).bytebase.v1.IssueStatus:type: stringtitle: IssueStatusdiff --git a/backend/api/v1/issue_service_converter.go b/backend/api/v1/issue_service_converter.goindex fa87b60f59..01c78c48a1 100644--- a/backend/api/v1/issue_service_converter.go+++ b/backend/api/v1/issue_service_converter.go@@ -359,12 +359,8 @@ func convertToIssueComment(issueName string, ic *store.IssueCommentMessage) *v1pr.Event = convertToIssueCommentEventApproval(e)case *storepb.IssueCommentPayload_IssueUpdate_:r.Event = convertToIssueCommentEventIssueUpdate(e)- case *storepb.IssueCommentPayload_StageEnd_:- r.Event = convertToIssueCommentEventStageEnd(e)- case *storepb.IssueCommentPayload_TaskUpdate_:- r.Event = convertToIssueCommentEventTaskUpdate(e)- case *storepb.IssueCommentPayload_TaskPriorBackup_:- r.Event = convertToIssueCommentEventTaskPriorBackup(e)+ case *storepb.IssueCommentPayload_PlanSpecUpdate_:+ r.Event = convertToIssueCommentEventPlanSpecUpdate(e)}return r@@ -393,14 +389,6 @@ func convertToIssueCommentEventIssueUpdate(u *storepb.IssueCommentPayload_IssueU}}-func convertToIssueCommentEventStageEnd(e *storepb.IssueCommentPayload_StageEnd_) *v1pb.IssueComment_StageEnd_ {- return &v1pb.IssueComment_StageEnd_{- StageEnd: &v1pb.IssueComment_StageEnd{- Stage: e.StageEnd.Stage,- },- }-}-func convertToIssueCommentPayloadIssueUpdateIssueStatus(s *v1pb.IssueStatus) *storepb.Issue_Status {if s == nil {return nil@@ -456,64 +444,12 @@ func convertToIssueCommentEventApprovalStatus(s storepb.IssuePayloadApproval_App}}-func convertToIssueCommentEventTaskUpdate(u *storepb.IssueCommentPayload_TaskUpdate_) *v1pb.IssueComment_TaskUpdate_ {- return &v1pb.IssueComment_TaskUpdate_{- TaskUpdate: &v1pb.IssueComment_TaskUpdate{- Tasks: u.TaskUpdate.Tasks,- FromSheet: u.TaskUpdate.FromSheet,- ToSheet: u.TaskUpdate.ToSheet,- ToStatus: convertToIssueCommentEventTaskUpdateStatus(u.TaskUpdate.ToStatus),- },- }-}--func convertToIssueCommentEventTaskUpdateStatus(s *storepb.TaskRun_Status) *v1pb.IssueComment_TaskUpdate_Status {- if s == nil {- return nil- }- var r v1pb.IssueComment_TaskUpdate_Status- //exhaustive:enforce- switch *s {- case storepb.TaskRun_DONE:- r = v1pb.IssueComment_TaskUpdate_DONE- case storepb.TaskRun_CANCELED:- r = v1pb.IssueComment_TaskUpdate_CANCELED- case storepb.TaskRun_FAILED:- r = v1pb.IssueComment_TaskUpdate_FAILED- case storepb.TaskRun_PENDING:- r = v1pb.IssueComment_TaskUpdate_PENDING- case storepb.TaskRun_RUNNING:- r = v1pb.IssueComment_TaskUpdate_RUNNING- case storepb.TaskRun_SKIPPED:- r = v1pb.IssueComment_TaskUpdate_SKIPPED- case storepb.TaskRun_NOT_STARTED:- r = v1pb.IssueComment_TaskUpdate_STATUS_UNSPECIFIED- case storepb.TaskRun_STATUS_UNSPECIFIED:- r = v1pb.IssueComment_TaskUpdate_STATUS_UNSPECIFIED- default:- r = v1pb.IssueComment_TaskUpdate_STATUS_UNSPECIFIED- }- return &r-}--func convertToIssueCommentEventTaskPriorBackup(b *storepb.IssueCommentPayload_TaskPriorBackup_) *v1pb.IssueComment_TaskPriorBackup_ {- return &v1pb.IssueComment_TaskPriorBackup_{- TaskPriorBackup: &v1pb.IssueComment_TaskPriorBackup{- Task: b.TaskPriorBackup.Task,- Tables: convertToIssueCommentEventTaskPriorBackupTables(b.TaskPriorBackup.Tables),- Database: b.TaskPriorBackup.Database,- OriginalLine: b.TaskPriorBackup.OriginalLine,- Error: b.TaskPriorBackup.Error,+func convertToIssueCommentEventPlanSpecUpdate(u *storepb.IssueCommentPayload_PlanSpecUpdate_) *v1pb.IssueComment_PlanSpecUpdate_ {+ return &v1pb.IssueComment_PlanSpecUpdate_{+ PlanSpecUpdate: &v1pb.IssueComment_PlanSpecUpdate{+ Spec: u.PlanSpecUpdate.Spec,+ FromSheet: u.PlanSpecUpdate.FromSheet,+ ToSheet: u.PlanSpecUpdate.ToSheet,},}}--func convertToIssueCommentEventTaskPriorBackupTables(tables []*storepb.IssueCommentPayload_TaskPriorBackup_Table) (r []*v1pb.IssueComment_TaskPriorBackup_Table) {- for _, t := range tables {- r = append(r, &v1pb.IssueComment_TaskPriorBackup_Table{- Schema: t.Schema,- Table: t.Table,- })- }- return r-}diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.goindex cfca002f00..db46d9f9bb 100644--- a/backend/api/v1/plan_service.go+++ b/backend/api/v1/plan_service.go@@ -628,9 +628,9 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *connect.Request[vissueCommentCreates = append(issueCommentCreates, &store.IssueCommentMessage{IssueUID: issue.UID,Payload: &storepb.IssueCommentPayload{- Event: &storepb.IssueCommentPayload_TaskUpdate_{- TaskUpdate: &storepb.IssueCommentPayload_TaskUpdate{- Tasks: []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, task.Environment, task.ID)},+ Event: &storepb.IssueCommentPayload_PlanSpecUpdate_{+ PlanSpecUpdate: &storepb.IssueCommentPayload_PlanSpecUpdate{+ Spec: common.FormatSpec(issue.Project.ResourceID, oldPlan.UID, specID),FromSheet: &oldSheet,ToSheet: &newSheet,},diff --git a/backend/api/v1/rollout_service.go b/backend/api/v1/rollout_service.goindex be7f8879b2..88a6531431 100644--- a/backend/api/v1/rollout_service.go+++ b/backend/api/v1/rollout_service.go@@ -3,7 +3,6 @@ package v1import ("context""database/sql"- "log/slog""slices""strings""time"@@ -14,7 +13,6 @@ import ("google.golang.org/protobuf/types/known/timestamppb""github.com/bytebase/bytebase/backend/common"- "github.com/bytebase/bytebase/backend/common/log""github.com/bytebase/bytebase/backend/component/config""github.com/bytebase/bytebase/backend/component/dbfactory""github.com/bytebase/bytebase/backend/component/iam"@@ -735,11 +733,6 @@ func (s *RolloutService) BatchSkipTasks(ctx context.Context, req *connect.Requess.stateCfg.TaskSkippedOrDoneChan <- task.ID}- if issueN != nil {- if err := s.store.CreateIssueCommentTaskUpdateStatus(ctx, issueN.UID, request.Tasks, storepb.TaskRun_SKIPPED, user.Email, request.Reason); err != nil {- slog.Warn("failed to create issue comment", "issueUID", issueN.UID, log.BBError(err))- }- }s.webhookManager.CreateEvent(ctx, &webhook.Event{Actor: user,Type: storepb.Activity_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE,diff --git a/backend/common/resource_name.go b/backend/common/resource_name.goindex ecf26753c3..6dc4e2c0a9 100644--- a/backend/common/resource_name.go+++ b/backend/common/resource_name.go@@ -30,6 +30,7 @@ const (TaskRunPrefix = "taskRuns/"PlanPrefix = "plans/"PlanCheckRunPrefix = "planCheckRuns/"+ SpecPrefix = "specs/"RolePrefix = "roles/"WebhookIDPrefix = "webhooks/"SheetIDPrefix = "sheets/"@@ -616,6 +617,10 @@ func FormatPlanCheckRun(projectID string, planUID, runUID int64) string {return fmt.Sprintf("%s/%s%d", FormatPlan(projectID, planUID), PlanCheckRunPrefix, runUID)}+func FormatSpec(projectID string, planUID int64, specID string) string {+ return fmt.Sprintf("%s/%s%s", FormatPlan(projectID, planUID), SpecPrefix, specID)+}+func GetPolicyResourceTypeAndResource(requestName string) (storepb.Policy_Resource, *string, error) {if requestName == "" {return storepb.Policy_WORKSPACE, nil, nildiff --git a/backend/generated-go/store/issue_comment.pb.go b/backend/generated-go/store/issue_comment.pb.goindex b771bfe75f..96f69f9d7a 100644--- a/backend/generated-go/store/issue_comment.pb.go+++ b/backend/generated-go/store/issue_comment.pb.go@@ -28,9 +28,7 @@ type IssueCommentPayload struct {//// *IssueCommentPayload_Approval_// *IssueCommentPayload_IssueUpdate_- // *IssueCommentPayload_StageEnd_- // *IssueCommentPayload_TaskUpdate_- // *IssueCommentPayload_TaskPriorBackup_+ // *IssueCommentPayload_PlanSpecUpdate_Event isIssueCommentPayload_Event `protobuf_oneof:"event"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache@@ -98,28 +96,10 @@ func (x *IssueCommentPayload) GetIssueUpdate() *IssueCommentPayload_IssueUpdatereturn nil}-func (x *IssueCommentPayload) GetStageEnd() *IssueCommentPayload_StageEnd {+func (x *IssueCommentPayload) GetPlanSpecUpdate() *IssueCommentPayload_PlanSpecUpdate {if x != nil {- if x, ok := x.Event.(*IssueCommentPayload_StageEnd_); ok {- return x.StageEnd- }- }- return nil-}--func (x *IssueCommentPayload) GetTaskUpdate() *IssueCommentPayload_TaskUpdate {- if x != nil {- if x, ok := x.Event.(*IssueCommentPayload_TaskUpdate_); ok {- return x.TaskUpdate- }- }- return nil-}--func (x *IssueCommentPayload) GetTaskPriorBackup() *IssueCommentPayload_TaskPriorBackup {- if x != nil {- if x, ok := x.Event.(*IssueCommentPayload_TaskPriorBackup_); ok {- return x.TaskPriorBackup+ if x, ok := x.Event.(*IssueCommentPayload_PlanSpecUpdate_); ok {+ return x.PlanSpecUpdate}}return nil@@ -137,27 +117,15 @@ type IssueCommentPayload_IssueUpdate_ struct {IssueUpdate *IssueCommentPayload_IssueUpdate `protobuf:"bytes,3,opt,name=issue_update,json=issueUpdate,proto3,oneof"`}-type IssueCommentPayload_StageEnd_ struct {- StageEnd *IssueCommentPayload_StageEnd `protobuf:"bytes,4,opt,name=stage_end,json=stageEnd,proto3,oneof"`-}--type IssueCommentPayload_TaskUpdate_ struct {- TaskUpdate *IssueCommentPayload_TaskUpdate `protobuf:"bytes,5,opt,name=task_update,json=taskUpdate,proto3,oneof"`-}--type IssueCommentPayload_TaskPriorBackup_ struct {- TaskPriorBackup *IssueCommentPayload_TaskPriorBackup `protobuf:"bytes,6,opt,name=task_prior_backup,json=taskPriorBackup,proto3,oneof"`+type IssueCommentPayload_PlanSpecUpdate_ struct {+ PlanSpecUpdate *IssueCommentPayload_PlanSpecUpdate `protobuf:"bytes,7,opt,name=plan_spec_update,json=planSpecUpdate,proto3,oneof"`}func (*IssueCommentPayload_Approval_) isIssueCommentPayload_Event() {}func (*IssueCommentPayload_IssueUpdate_) isIssueCommentPayload_Event() {}-func (*IssueCommentPayload_StageEnd_) isIssueCommentPayload_Event() {}--func (*IssueCommentPayload_TaskUpdate_) isIssueCommentPayload_Event() {}--func (*IssueCommentPayload_TaskPriorBackup_) isIssueCommentPayload_Event() {}+func (*IssueCommentPayload_PlanSpecUpdate_) isIssueCommentPayload_Event() {}type IssueCommentPayload_Approval struct {state protoimpl.MessageState `protogen:"open.v1"`@@ -303,77 +271,35 @@ func (x *IssueCommentPayload_IssueUpdate) GetToLabels() []string {return nil}-type IssueCommentPayload_StageEnd struct {- state protoimpl.MessageState `protogen:"open.v1"`- Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *IssueCommentPayload_StageEnd) Reset() {- *x = IssueCommentPayload_StageEnd{}- mi := &file_store_issue_comment_proto_msgTypes[3]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *IssueCommentPayload_StageEnd) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*IssueCommentPayload_StageEnd) ProtoMessage() {}--func (x *IssueCommentPayload_StageEnd) ProtoReflect() protoreflect.Message {- mi := &file_store_issue_comment_proto_msgTypes[3]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use IssueCommentPayload_StageEnd.ProtoReflect.Descriptor instead.-func (*IssueCommentPayload_StageEnd) Descriptor() ([]byte, []int) {- return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 2}-}--func (x *IssueCommentPayload_StageEnd) GetStage() string {- if x != nil {- return x.Stage- }- return ""-}--type IssueCommentPayload_TaskUpdate struct {+// Plan spec update event (tracks sheet changes to plan specs)+type IssueCommentPayload_PlanSpecUpdate struct {state protoimpl.MessageState `protogen:"open.v1"`- Tasks []string `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`+ // The spec that was updated+ // Format: projects/{project}/plans/{plan}/specs/{spec}+ Spec string `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`// Format: projects/{project}/sheets/{sheet}FromSheet *string `protobuf:"bytes,2,opt,name=from_sheet,json=fromSheet,proto3,oneof" json:"from_sheet,omitempty"`// Format: projects/{project}/sheets/{sheet}- ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`- ToStatus *TaskRun_Status `protobuf:"varint,6,opt,name=to_status,json=toStatus,proto3,enum=bytebase.store.TaskRun_Status,oneof" json:"to_status,omitempty"`+ ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}-func (x *IssueCommentPayload_TaskUpdate) Reset() {- *x = IssueCommentPayload_TaskUpdate{}- mi := &file_store_issue_comment_proto_msgTypes[4]+func (x *IssueCommentPayload_PlanSpecUpdate) Reset() {+ *x = IssueCommentPayload_PlanSpecUpdate{}+ mi := &file_store_issue_comment_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *IssueCommentPayload_TaskUpdate) String() string {+func (x *IssueCommentPayload_PlanSpecUpdate) String() string {return protoimpl.X.MessageStringOf(x)}-func (*IssueCommentPayload_TaskUpdate) ProtoMessage() {}+func (*IssueCommentPayload_PlanSpecUpdate) ProtoMessage() {}-func (x *IssueCommentPayload_TaskUpdate) ProtoReflect() protoreflect.Message {- mi := &file_store_issue_comment_proto_msgTypes[4]+func (x *IssueCommentPayload_PlanSpecUpdate) ProtoReflect() protoreflect.Message {+ mi := &file_store_issue_comment_proto_msgTypes[3]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -384,180 +310,42 @@ func (x *IssueCommentPayload_TaskUpdate) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use IssueCommentPayload_TaskUpdate.ProtoReflect.Descriptor instead.-func (*IssueCommentPayload_TaskUpdate) Descriptor() ([]byte, []int) {- return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 3}+// Deprecated: Use IssueCommentPayload_PlanSpecUpdate.ProtoReflect.Descriptor instead.+func (*IssueCommentPayload_PlanSpecUpdate) Descriptor() ([]byte, []int) {+ return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 2}}-func (x *IssueCommentPayload_TaskUpdate) GetTasks() []string {+func (x *IssueCommentPayload_PlanSpecUpdate) GetSpec() string {if x != nil {- return x.Tasks+ return x.Spec}- return nil+ return ""}-func (x *IssueCommentPayload_TaskUpdate) GetFromSheet() string {+func (x *IssueCommentPayload_PlanSpecUpdate) GetFromSheet() string {if x != nil && x.FromSheet != nil {return *x.FromSheet}return ""}-func (x *IssueCommentPayload_TaskUpdate) GetToSheet() string {+func (x *IssueCommentPayload_PlanSpecUpdate) GetToSheet() string {if x != nil && x.ToSheet != nil {return *x.ToSheet}return ""}-func (x *IssueCommentPayload_TaskUpdate) GetToStatus() TaskRun_Status {- if x != nil && x.ToStatus != nil {- return *x.ToStatus- }- return TaskRun_STATUS_UNSPECIFIED-}--type IssueCommentPayload_TaskPriorBackup struct {- state protoimpl.MessageState `protogen:"open.v1"`- Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`- Tables []*IssueCommentPayload_TaskPriorBackup_Table `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`- OriginalLine *int32 `protobuf:"varint,3,opt,name=original_line,json=originalLine,proto3,oneof" json:"original_line,omitempty"`- Database string `protobuf:"bytes,4,opt,name=database,proto3" json:"database,omitempty"`- Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *IssueCommentPayload_TaskPriorBackup) Reset() {- *x = IssueCommentPayload_TaskPriorBackup{}- mi := &file_store_issue_comment_proto_msgTypes[5]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *IssueCommentPayload_TaskPriorBackup) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*IssueCommentPayload_TaskPriorBackup) ProtoMessage() {}--func (x *IssueCommentPayload_TaskPriorBackup) ProtoReflect() protoreflect.Message {- mi := &file_store_issue_comment_proto_msgTypes[5]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use IssueCommentPayload_TaskPriorBackup.ProtoReflect.Descriptor instead.-func (*IssueCommentPayload_TaskPriorBackup) Descriptor() ([]byte, []int) {- return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 4}-}--func (x *IssueCommentPayload_TaskPriorBackup) GetTask() string {- if x != nil {- return x.Task- }- return ""-}--func (x *IssueCommentPayload_TaskPriorBackup) GetTables() []*IssueCommentPayload_TaskPriorBackup_Table {- if x != nil {- return x.Tables- }- return nil-}--func (x *IssueCommentPayload_TaskPriorBackup) GetOriginalLine() int32 {- if x != nil && x.OriginalLine != nil {- return *x.OriginalLine- }- return 0-}--func (x *IssueCommentPayload_TaskPriorBackup) GetDatabase() string {- if x != nil {- return x.Database- }- return ""-}--func (x *IssueCommentPayload_TaskPriorBackup) GetError() string {- if x != nil {- return x.Error- }- return ""-}--type IssueCommentPayload_TaskPriorBackup_Table struct {- state protoimpl.MessageState `protogen:"open.v1"`- Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`- Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *IssueCommentPayload_TaskPriorBackup_Table) Reset() {- *x = IssueCommentPayload_TaskPriorBackup_Table{}- mi := &file_store_issue_comment_proto_msgTypes[6]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *IssueCommentPayload_TaskPriorBackup_Table) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*IssueCommentPayload_TaskPriorBackup_Table) ProtoMessage() {}--func (x *IssueCommentPayload_TaskPriorBackup_Table) ProtoReflect() protoreflect.Message {- mi := &file_store_issue_comment_proto_msgTypes[6]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use IssueCommentPayload_TaskPriorBackup_Table.ProtoReflect.Descriptor instead.-func (*IssueCommentPayload_TaskPriorBackup_Table) Descriptor() ([]byte, []int) {- return file_store_issue_comment_proto_rawDescGZIP(), []int{0, 4, 0}-}--func (x *IssueCommentPayload_TaskPriorBackup_Table) GetSchema() string {- if x != nil {- return x.Schema- }- return ""-}--func (x *IssueCommentPayload_TaskPriorBackup_Table) GetTable() string {- if x != nil {- return x.Table- }- return ""-}-var File_store_issue_comment_proto protoreflect.FileDescriptorconst file_store_issue_comment_proto_rawDesc = "" +"\n" +- "\x19store/issue_comment.proto\x12\x0ebytebase.store\x1a\x14store/approval.proto\x1a\x11store/issue.proto\x1a\x14store/task_run.proto\"\xa2\f\n" ++ "\x19store/issue_comment.proto\x12\x0ebytebase.store\x1a\x14store/approval.proto\x1a\x11store/issue.proto\"\xef\a\n" +"\x13IssueCommentPayload\x12\x18\n" +"\acomment\x18\x01 \x01(\tR\acomment\x12J\n" +"\bapproval\x18\x02 \x01(\v2,.bytebase.store.IssueCommentPayload.ApprovalH\x00R\bapproval\x12T\n" +- "\fissue_update\x18\x03 \x01(\v2/.bytebase.store.IssueCommentPayload.IssueUpdateH\x00R\vissueUpdate\x12K\n" +- "\tstage_end\x18\x04 \x01(\v2,.bytebase.store.IssueCommentPayload.StageEndH\x00R\bstageEnd\x12Q\n" +- "\vtask_update\x18\x05 \x01(\v2..bytebase.store.IssueCommentPayload.TaskUpdateH\x00R\n" +- "taskUpdate\x12a\n" +- "\x11task_prior_backup\x18\x06 \x01(\v23.bytebase.store.IssueCommentPayload.TaskPriorBackupH\x00R\x0ftaskPriorBackup\x1aX\n" ++ "\fissue_update\x18\x03 \x01(\v2/.bytebase.store.IssueCommentPayload.IssueUpdateH\x00R\vissueUpdate\x12^\n" ++ "\x10plan_spec_update\x18\a \x01(\v22.bytebase.store.IssueCommentPayload.PlanSpecUpdateH\x00R\x0eplanSpecUpdate\x1aX\n" +"\bApproval\x12L\n" +"\x06status\x18\x01 \x01(\x0e24.bytebase.store.IssuePayloadApproval.Approver.StatusR\x06status\x1a\xd1\x03\n" +"\vIssueUpdate\x12\"\n" +@@ -578,30 +366,14 @@ const file_store_issue_comment_proto_rawDesc = "" +"\x0f_to_descriptionB\x0e\n" +"\f_from_statusB\f\n" +"\n" +- "_to_status\x1a \n" +- "\bStageEnd\x12\x14\n" +- "\x05stage\x18\x01 \x01(\tR\x05stage\x1a\xd2\x01\n" +- "\n" +- "TaskUpdate\x12\x14\n" +- "\x05tasks\x18\x01 \x03(\tR\x05tasks\x12\"\n" ++ "_to_status\x1a\x84\x01\n" ++ "\x0ePlanSpecUpdate\x12\x12\n" ++ "\x04spec\x18\x01 \x01(\tR\x04spec\x12\"\n" +"\n" +"from_sheet\x18\x02 \x01(\tH\x00R\tfromSheet\x88\x01\x01\x12\x1e\n" +- "\bto_sheet\x18\x03 \x01(\tH\x01R\atoSheet\x88\x01\x01\x12@\n" +- "\tto_status\x18\x06 \x01(\x0e2\x1e.bytebase.store.TaskRun.StatusH\x02R\btoStatus\x88\x01\x01B\r\n" ++ "\bto_sheet\x18\x03 \x01(\tH\x01R\atoSheet\x88\x01\x01B\r\n" +"\v_from_sheetB\v\n" +- "\t_to_sheetB\f\n" +- "\n" +- "_to_status\x1a\x9d\x02\n" +- "\x0fTaskPriorBackup\x12\x12\n" +- "\x04task\x18\x01 \x01(\tR\x04task\x12Q\n" +- "\x06tables\x18\x02 \x03(\v29.bytebase.store.IssueCommentPayload.TaskPriorBackup.TableR\x06tables\x12(\n" +- "\roriginal_line\x18\x03 \x01(\x05H\x00R\foriginalLine\x88\x01\x01\x12\x1a\n" +- "\bdatabase\x18\x04 \x01(\tR\bdatabase\x12\x14\n" +- "\x05error\x18\x05 \x01(\tR\x05error\x1a5\n" +- "\x05Table\x12\x16\n" +- "\x06schema\x18\x01 \x01(\tR\x06schema\x12\x14\n" +- "\x05table\x18\x02 \x01(\tR\x05tableB\x10\n" +- "\x0e_original_lineB\a\n" ++ "\t_to_sheetB\a\n" +"\x05eventB\x94\x01\n" +"\x12com.bytebase.storeB\x11IssueCommentProtoP\x01Z\x12generated-go/store\xa2\x02\x03BSX\xaa\x02\x0eBytebase.Store\xca\x02\x0eBytebase\\Store\xe2\x02\x1aBytebase\\Store\\GPBMetadata\xea\x02\x0fBytebase::Storeb\x06proto3"@@ -617,35 +389,27 @@ func file_store_issue_comment_proto_rawDescGZIP() []byte {return file_store_issue_comment_proto_rawDescData}-var file_store_issue_comment_proto_msgTypes = make([]protoimpl.MessageInfo, 7)+var file_store_issue_comment_proto_msgTypes = make([]protoimpl.MessageInfo, 4)var file_store_issue_comment_proto_goTypes = []any{- (*IssueCommentPayload)(nil), // 0: bytebase.store.IssueCommentPayload- (*IssueCommentPayload_Approval)(nil), // 1: bytebase.store.IssueCommentPayload.Approval- (*IssueCommentPayload_IssueUpdate)(nil), // 2: bytebase.store.IssueCommentPayload.IssueUpdate- (*IssueCommentPayload_StageEnd)(nil), // 3: bytebase.store.IssueCommentPayload.StageEnd- (*IssueCommentPayload_TaskUpdate)(nil), // 4: bytebase.store.IssueCommentPayload.TaskUpdate- (*IssueCommentPayload_TaskPriorBackup)(nil), // 5: bytebase.store.IssueCommentPayload.TaskPriorBackup- (*IssueCommentPayload_TaskPriorBackup_Table)(nil), // 6: bytebase.store.IssueCommentPayload.TaskPriorBackup.Table- (IssuePayloadApproval_Approver_Status)(0), // 7: bytebase.store.IssuePayloadApproval.Approver.Status- (Issue_Status)(0), // 8: bytebase.store.Issue.Status- (TaskRun_Status)(0), // 9: bytebase.store.TaskRun.Status+ (*IssueCommentPayload)(nil), // 0: bytebase.store.IssueCommentPayload+ (*IssueCommentPayload_Approval)(nil), // 1: bytebase.store.IssueCommentPayload.Approval+ (*IssueCommentPayload_IssueUpdate)(nil), // 2: bytebase.store.IssueCommentPayload.IssueUpdate+ (*IssueCommentPayload_PlanSpecUpdate)(nil), // 3: bytebase.store.IssueCommentPayload.PlanSpecUpdate+ (IssuePayloadApproval_Approver_Status)(0), // 4: bytebase.store.IssuePayloadApproval.Approver.Status+ (Issue_Status)(0), // 5: bytebase.store.Issue.Status}var file_store_issue_comment_proto_depIdxs = []int32{- 1, // 0: bytebase.store.IssueCommentPayload.approval:type_name -> bytebase.store.IssueCommentPayload.Approval- 2, // 1: bytebase.store.IssueCommentPayload.issue_update:type_name -> bytebase.store.IssueCommentPayload.IssueUpdate- 3, // 2: bytebase.store.IssueCommentPayload.stage_end:type_name -> bytebase.store.IssueCommentPayload.StageEnd- 4, // 3: bytebase.store.IssueCommentPayload.task_update:type_name -> bytebase.store.IssueCommentPayload.TaskUpdate- 5, // 4: bytebase.store.IssueCommentPayload.task_prior_backup:type_name -> bytebase.store.IssueCommentPayload.TaskPriorBackup- 7, // 5: bytebase.store.IssueCommentPayload.Approval.status:type_name -> bytebase.store.IssuePayloadApproval.Approver.Status- 8, // 6: bytebase.store.IssueCommentPayload.IssueUpdate.from_status:type_name -> bytebase.store.Issue.Status- 8, // 7: bytebase.store.IssueCommentPayload.IssueUpdate.to_status:type_name -> bytebase.store.Issue.Status- 9, // 8: bytebase.store.IssueCommentPayload.TaskUpdate.to_status:type_name -> bytebase.store.TaskRun.Status- 6, // 9: bytebase.store.IssueCommentPayload.TaskPriorBackup.tables:type_name -> bytebase.store.IssueCommentPayload.TaskPriorBackup.Table- 10, // [10:10] is the sub-list for method output_type- 10, // [10:10] is the sub-list for method input_type- 10, // [10:10] is the sub-list for extension type_name- 10, // [10:10] is the sub-list for extension extendee- 0, // [0:10] is the sub-list for field type_name+ 1, // 0: bytebase.store.IssueCommentPayload.approval:type_name -> bytebase.store.IssueCommentPayload.Approval+ 2, // 1: bytebase.store.IssueCommentPayload.issue_update:type_name -> bytebase.store.IssueCommentPayload.IssueUpdate+ 3, // 2: bytebase.store.IssueCommentPayload.plan_spec_update:type_name -> bytebase.store.IssueCommentPayload.PlanSpecUpdate+ 4, // 3: bytebase.store.IssueCommentPayload.Approval.status:type_name -> bytebase.store.IssuePayloadApproval.Approver.Status+ 5, // 4: bytebase.store.IssueCommentPayload.IssueUpdate.from_status:type_name -> bytebase.store.Issue.Status+ 5, // 5: bytebase.store.IssueCommentPayload.IssueUpdate.to_status:type_name -> bytebase.store.Issue.Status+ 6, // [6:6] is the sub-list for method output_type+ 6, // [6:6] is the sub-list for method input_type+ 6, // [6:6] is the sub-list for extension type_name+ 6, // [6:6] is the sub-list for extension extendee+ 0, // [0:6] is the sub-list for field type_name}func init() { file_store_issue_comment_proto_init() }@@ -655,24 +419,20 @@ func file_store_issue_comment_proto_init() {}file_store_approval_proto_init()file_store_issue_proto_init()- file_store_task_run_proto_init()file_store_issue_comment_proto_msgTypes[0].OneofWrappers = []any{(*IssueCommentPayload_Approval_)(nil),(*IssueCommentPayload_IssueUpdate_)(nil),- (*IssueCommentPayload_StageEnd_)(nil),- (*IssueCommentPayload_TaskUpdate_)(nil),- (*IssueCommentPayload_TaskPriorBackup_)(nil),+ (*IssueCommentPayload_PlanSpecUpdate_)(nil),}file_store_issue_comment_proto_msgTypes[2].OneofWrappers = []any{}- file_store_issue_comment_proto_msgTypes[4].OneofWrappers = []any{}- file_store_issue_comment_proto_msgTypes[5].OneofWrappers = []any{}+ file_store_issue_comment_proto_msgTypes[3].OneofWrappers = []any{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_issue_comment_proto_rawDesc), len(file_store_issue_comment_proto_rawDesc)),NumEnums: 0,- NumMessages: 7,+ NumMessages: 4,NumExtensions: 0,NumServices: 0,},diff --git a/backend/generated-go/store/issue_comment_equal.pb.go b/backend/generated-go/store/issue_comment_equal.pb.goindex 4bf3bbc2fd..42a3e283ef 100644--- a/backend/generated-go/store/issue_comment_equal.pb.go+++ b/backend/generated-go/store/issue_comment_equal.pb.go@@ -60,89 +60,22 @@ func (x *IssueCommentPayload_IssueUpdate) Equal(y *IssueCommentPayload_IssueUpdareturn true}-func (x *IssueCommentPayload_StageEnd) Equal(y *IssueCommentPayload_StageEnd) bool {+func (x *IssueCommentPayload_PlanSpecUpdate) Equal(y *IssueCommentPayload_PlanSpecUpdate) bool {if x == y {return true}if x == nil || y == nil {return x == nil && y == nil}- if x.Stage != y.Stage {+ if x.Spec != y.Spec {return false}- return true-}--func (x *IssueCommentPayload_TaskUpdate) Equal(y *IssueCommentPayload_TaskUpdate) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if len(x.Tasks) != len(y.Tasks) {- return false- }- for i := 0; i < len(x.Tasks); i++ {- if x.Tasks[i] != y.Tasks[i] {- return false- }- }if p, q := x.FromSheet, y.FromSheet; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {return false}if p, q := x.ToSheet, y.ToSheet; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {return false}- if p, q := x.ToStatus, y.ToStatus; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {- return false- }- return true-}--func (x *IssueCommentPayload_TaskPriorBackup_Table) Equal(y *IssueCommentPayload_TaskPriorBackup_Table) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if x.Schema != y.Schema {- return false- }- if x.Table != y.Table {- return false- }- return true-}--func (x *IssueCommentPayload_TaskPriorBackup) Equal(y *IssueCommentPayload_TaskPriorBackup) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if x.Task != y.Task {- return false- }- if len(x.Tables) != len(y.Tables) {- return false- }- for i := 0; i < len(x.Tables); i++ {- if !x.Tables[i].Equal(y.Tables[i]) {- return false- }- }- if p, q := x.OriginalLine, y.OriginalLine; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {- return false- }- if x.Database != y.Database {- return false- }- if x.Error != y.Error {- return false- }return true}@@ -162,13 +95,7 @@ func (x *IssueCommentPayload) Equal(y *IssueCommentPayload) bool {if !x.GetIssueUpdate().Equal(y.GetIssueUpdate()) {return false}- if !x.GetStageEnd().Equal(y.GetStageEnd()) {- return false- }- if !x.GetTaskUpdate().Equal(y.GetTaskUpdate()) {- return false- }- if !x.GetTaskPriorBackup().Equal(y.GetTaskPriorBackup()) {+ if !x.GetPlanSpecUpdate().Equal(y.GetPlanSpecUpdate()) {return false}return truediff --git a/backend/generated-go/v1/issue_service.pb.go b/backend/generated-go/v1/issue_service.pb.goindex ce0ad49b8b..ec4de87767 100644--- a/backend/generated-go/v1/issue_service.pb.go+++ b/backend/generated-go/v1/issue_service.pb.go@@ -324,75 +324,6 @@ func (IssueComment_Approval_Status) EnumDescriptor() ([]byte, []int) {return file_v1_issue_service_proto_rawDescGZIP(), []int{20, 0, 0}}-// Task status values.-type IssueComment_TaskUpdate_Status int32--const (- // Unspecified status.- IssueComment_TaskUpdate_STATUS_UNSPECIFIED IssueComment_TaskUpdate_Status = 0- // Task is pending.- IssueComment_TaskUpdate_PENDING IssueComment_TaskUpdate_Status = 1- // Task is running.- IssueComment_TaskUpdate_RUNNING IssueComment_TaskUpdate_Status = 2- // Task is done.- IssueComment_TaskUpdate_DONE IssueComment_TaskUpdate_Status = 3- // Task failed.- IssueComment_TaskUpdate_FAILED IssueComment_TaskUpdate_Status = 4- // Task was skipped.- IssueComment_TaskUpdate_SKIPPED IssueComment_TaskUpdate_Status = 5- // Task was canceled.- IssueComment_TaskUpdate_CANCELED IssueComment_TaskUpdate_Status = 6-)--// Enum value maps for IssueComment_TaskUpdate_Status.-var (- IssueComment_TaskUpdate_Status_name = map[int32]string{- 0: "STATUS_UNSPECIFIED",- 1: "PENDING",- 2: "RUNNING",- 3: "DONE",- 4: "FAILED",- 5: "SKIPPED",- 6: "CANCELED",- }- IssueComment_TaskUpdate_Status_value = map[string]int32{- "STATUS_UNSPECIFIED": 0,- "PENDING": 1,- "RUNNING": 2,- "DONE": 3,- "FAILED": 4,- "SKIPPED": 5,- "CANCELED": 6,- }-)--func (x IssueComment_TaskUpdate_Status) Enum() *IssueComment_TaskUpdate_Status {- p := new(IssueComment_TaskUpdate_Status)- *p = x- return p-}--func (x IssueComment_TaskUpdate_Status) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (IssueComment_TaskUpdate_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_issue_service_proto_enumTypes[5].Descriptor()-}--func (IssueComment_TaskUpdate_Status) Type() protoreflect.EnumType {- return &file_v1_issue_service_proto_enumTypes[5]-}--func (x IssueComment_TaskUpdate_Status) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use IssueComment_TaskUpdate_Status.Descriptor instead.-func (IssueComment_TaskUpdate_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_issue_service_proto_rawDescGZIP(), []int{20, 3, 0}-}-type GetIssueRequest struct {state protoimpl.MessageState `protogen:"open.v1"`// The name of the issue to retrieve.@@ -1834,9 +1765,7 @@ type IssueComment struct {//// *IssueComment_Approval_// *IssueComment_IssueUpdate_- // *IssueComment_StageEnd_- // *IssueComment_TaskUpdate_- // *IssueComment_TaskPriorBackup_+ // *IssueComment_PlanSpecUpdate_Event isIssueComment_Event `protobuf_oneof:"event"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache@@ -1939,28 +1868,10 @@ func (x *IssueComment) GetIssueUpdate() *IssueComment_IssueUpdate {return nil}-func (x *IssueComment) GetStageEnd() *IssueComment_StageEnd {- if x != nil {- if x, ok := x.Event.(*IssueComment_StageEnd_); ok {- return x.StageEnd- }- }- return nil-}--func (x *IssueComment) GetTaskUpdate() *IssueComment_TaskUpdate {+func (x *IssueComment) GetPlanSpecUpdate() *IssueComment_PlanSpecUpdate {if x != nil {- if x, ok := x.Event.(*IssueComment_TaskUpdate_); ok {- return x.TaskUpdate- }- }- return nil-}--func (x *IssueComment) GetTaskPriorBackup() *IssueComment_TaskPriorBackup {- if x != nil {- if x, ok := x.Event.(*IssueComment_TaskPriorBackup_); ok {- return x.TaskPriorBackup+ if x, ok := x.Event.(*IssueComment_PlanSpecUpdate_); ok {+ return x.PlanSpecUpdate}}return nil@@ -1980,30 +1891,16 @@ type IssueComment_IssueUpdate_ struct {IssueUpdate *IssueComment_IssueUpdate `protobuf:"bytes,8,opt,name=issue_update,json=issueUpdate,proto3,oneof"`}-type IssueComment_StageEnd_ struct {- // Stage end event.- StageEnd *IssueComment_StageEnd `protobuf:"bytes,9,opt,name=stage_end,json=stageEnd,proto3,oneof"`-}--type IssueComment_TaskUpdate_ struct {- // Task update event.- TaskUpdate *IssueComment_TaskUpdate `protobuf:"bytes,10,opt,name=task_update,json=taskUpdate,proto3,oneof"`-}--type IssueComment_TaskPriorBackup_ struct {- // Task prior backup event.- TaskPriorBackup *IssueComment_TaskPriorBackup `protobuf:"bytes,11,opt,name=task_prior_backup,json=taskPriorBackup,proto3,oneof"`+type IssueComment_PlanSpecUpdate_ struct {+ // Plan spec update event.+ PlanSpecUpdate *IssueComment_PlanSpecUpdate `protobuf:"bytes,12,opt,name=plan_spec_update,json=planSpecUpdate,proto3,oneof"`}func (*IssueComment_Approval_) isIssueComment_Event() {}func (*IssueComment_IssueUpdate_) isIssueComment_Event() {}-func (*IssueComment_StageEnd_) isIssueComment_Event() {}--func (*IssueComment_TaskUpdate_) isIssueComment_Event() {}--func (*IssueComment_TaskPriorBackup_) isIssueComment_Event() {}+func (*IssueComment_PlanSpecUpdate_) isIssueComment_Event() {}// Approvers and their approval status for the issue.type Issue_Approver struct {@@ -2207,29 +2104,36 @@ func (x *IssueComment_IssueUpdate) GetToLabels() []string {return nil}-// Stage end event information.-type IssueComment_StageEnd struct {+// Plan spec update event information (tracks sheet changes to plan specs).+type IssueComment_PlanSpecUpdate struct {state protoimpl.MessageState `protogen:"open.v1"`- // The stage that ended.- Stage string `protobuf:"bytes,1,opt,name=stage,proto3" json:"stage,omitempty"`+ // The spec that was updated.+ // Format: projects/{project}/plans/{plan}/specs/{spec}+ Spec string `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`+ // The previous sheet.+ // Format: projects/{project}/sheets/{sheet}+ FromSheet *string `protobuf:"bytes,2,opt,name=from_sheet,json=fromSheet,proto3,oneof" json:"from_sheet,omitempty"`+ // The new sheet.+ // Format: projects/{project}/sheets/{sheet}+ ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}-func (x *IssueComment_StageEnd) Reset() {- *x = IssueComment_StageEnd{}+func (x *IssueComment_PlanSpecUpdate) Reset() {+ *x = IssueComment_PlanSpecUpdate{}mi := &file_v1_issue_service_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *IssueComment_StageEnd) String() string {+func (x *IssueComment_PlanSpecUpdate) String() string {return protoimpl.X.MessageStringOf(x)}-func (*IssueComment_StageEnd) ProtoMessage() {}+func (*IssueComment_PlanSpecUpdate) ProtoMessage() {}-func (x *IssueComment_StageEnd) ProtoReflect() protoreflect.Message {+func (x *IssueComment_PlanSpecUpdate) ProtoReflect() protoreflect.Message {mi := &file_v1_issue_service_proto_msgTypes[25]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))@@ -2241,227 +2145,32 @@ func (x *IssueComment_StageEnd) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use IssueComment_StageEnd.ProtoReflect.Descriptor instead.-func (*IssueComment_StageEnd) Descriptor() ([]byte, []int) {+// Deprecated: Use IssueComment_PlanSpecUpdate.ProtoReflect.Descriptor instead.+func (*IssueComment_PlanSpecUpdate) Descriptor() ([]byte, []int) {return file_v1_issue_service_proto_rawDescGZIP(), []int{20, 2}}-func (x *IssueComment_StageEnd) GetStage() string {+func (x *IssueComment_PlanSpecUpdate) GetSpec() string {if x != nil {- return x.Stage+ return x.Spec}return ""}-// Task update event information.-type IssueComment_TaskUpdate struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The tasks that were updated.- Tasks []string `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"`- // Format: projects/{project}/sheets/{sheet}- FromSheet *string `protobuf:"bytes,2,opt,name=from_sheet,json=fromSheet,proto3,oneof" json:"from_sheet,omitempty"`- // Format: projects/{project}/sheets/{sheet}- ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`- ToStatus *IssueComment_TaskUpdate_Status `protobuf:"varint,6,opt,name=to_status,json=toStatus,proto3,enum=bytebase.v1.IssueComment_TaskUpdate_Status,oneof" json:"to_status,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *IssueComment_TaskUpdate) Reset() {- *x = IssueComment_TaskUpdate{}- mi := &file_v1_issue_service_proto_msgTypes[26]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *IssueComment_TaskUpdate) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*IssueComment_TaskUpdate) ProtoMessage() {}--func (x *IssueComment_TaskUpdate) ProtoReflect() protoreflect.Message {- mi := &file_v1_issue_service_proto_msgTypes[26]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use IssueComment_TaskUpdate.ProtoReflect.Descriptor instead.-func (*IssueComment_TaskUpdate) Descriptor() ([]byte, []int) {- return file_v1_issue_service_proto_rawDescGZIP(), []int{20, 3}-}--func (x *IssueComment_TaskUpdate) GetTasks() []string {- if x != nil {- return x.Tasks- }- return nil-}--func (x *IssueComment_TaskUpdate) GetFromSheet() string {+func (x *IssueComment_PlanSpecUpdate) GetFromSheet() string {if x != nil && x.FromSheet != nil {return *x.FromSheet}return ""}-func (x *IssueComment_TaskUpdate) GetToSheet() string {+func (x *IssueComment_PlanSpecUpdate) GetToSheet() string {if x != nil && x.ToSheet != nil {return *x.ToSheet}return ""}-func (x *IssueComment_TaskUpdate) GetToStatus() IssueComment_TaskUpdate_Status {- if x != nil && x.ToStatus != nil {- return *x.ToStatus- }- return IssueComment_TaskUpdate_STATUS_UNSPECIFIED-}--// Task prior backup event information.-type IssueComment_TaskPriorBackup struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The task for which backup was performed.- Task string `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`- // The tables that were backed up.- Tables []*IssueComment_TaskPriorBackup_Table `protobuf:"bytes,2,rep,name=tables,proto3" json:"tables,omitempty"`- // The original line number in the statement.- OriginalLine *int32 `protobuf:"varint,3,opt,name=original_line,json=originalLine,proto3,oneof" json:"original_line,omitempty"`- // The database that was backed up.- Database string `protobuf:"bytes,4,opt,name=database,proto3" json:"database,omitempty"`- // Error message if backup failed.- Error string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *IssueComment_TaskPriorBackup) Reset() {- *x = IssueComment_TaskPriorBackup{}- mi := &file_v1_issue_service_proto_msgTypes[27]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *IssueComment_TaskPriorBackup) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*IssueComment_TaskPriorBackup) ProtoMessage() {}--func (x *IssueComment_TaskPriorBackup) ProtoReflect() protoreflect.Message {- mi := &file_v1_issue_service_proto_msgTypes[27]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use IssueComment_TaskPriorBackup.ProtoReflect.Descriptor instead.-func (*IssueComment_TaskPriorBackup) Descriptor() ([]byte, []int) {- return file_v1_issue_service_proto_rawDescGZIP(), []int{20, 4}-}--func (x *IssueComment_TaskPriorBackup) GetTask() string {- if x != nil {- return x.Task- }- return ""-}--func (x *IssueComment_TaskPriorBackup) GetTables() []*IssueComment_TaskPriorBackup_Table {- if x != nil {- return x.Tables- }- return nil-}--func (x *IssueComment_TaskPriorBackup) GetOriginalLine() int32 {- if x != nil && x.OriginalLine != nil {- return *x.OriginalLine- }- return 0-}--func (x *IssueComment_TaskPriorBackup) GetDatabase() string {- if x != nil {- return x.Database- }- return ""-}--func (x *IssueComment_TaskPriorBackup) GetError() string {- if x != nil {- return x.Error- }- return ""-}--// Table identification.-type IssueComment_TaskPriorBackup_Table struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The schema name.- Schema string `protobuf:"bytes,1,opt,name=schema,proto3" json:"schema,omitempty"`- // The table name.- Table string `protobuf:"bytes,2,opt,name=table,proto3" json:"table,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *IssueComment_TaskPriorBackup_Table) Reset() {- *x = IssueComment_TaskPriorBackup_Table{}- mi := &file_v1_issue_service_proto_msgTypes[28]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *IssueComment_TaskPriorBackup_Table) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*IssueComment_TaskPriorBackup_Table) ProtoMessage() {}--func (x *IssueComment_TaskPriorBackup_Table) ProtoReflect() protoreflect.Message {- mi := &file_v1_issue_service_proto_msgTypes[28]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use IssueComment_TaskPriorBackup_Table.ProtoReflect.Descriptor instead.-func (*IssueComment_TaskPriorBackup_Table) Descriptor() ([]byte, []int) {- return file_v1_issue_service_proto_rawDescGZIP(), []int{20, 4, 0}-}--func (x *IssueComment_TaskPriorBackup_Table) GetSchema() string {- if x != nil {- return x.Schema- }- return ""-}--func (x *IssueComment_TaskPriorBackup_Table) GetTable() string {- if x != nil {- return x.Table- }- return ""-}-var File_v1_issue_service_proto protoreflect.FileDescriptorconst file_v1_issue_service_proto_rawDesc = "" +@@ -2602,7 +2311,7 @@ const file_v1_issue_service_proto_rawDesc = "" +"\rissue_comment\x18\x02 \x01(\v2\x19.bytebase.v1.IssueCommentR\fissueComment\x12@\n" +"\vupdate_mask\x18\x03 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +"updateMask\x12#\n" +- "\rallow_missing\x18\x04 \x01(\bR\fallowMissing\"\xee\x0e\n" ++ "\rallow_missing\x18\x04 \x01(\bR\fallowMissing\"\xdf\t\n" +"\fIssueComment\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x12#\n" +"\acomment\x18\x02 \x01(\tB\t\xbaH\x06r\x04\x18\x80\x80\x04R\acomment\x12\x18\n" +@@ -2613,12 +2322,8 @@ const file_v1_issue_service_proto_rawDesc = "" +"updateTime\x12\x1d\n" +"\acreator\x18\x06 \x01(\tB\x03\xe0A\x03R\acreator\x12@\n" +"\bapproval\x18\a \x01(\v2\".bytebase.v1.IssueComment.ApprovalH\x00R\bapproval\x12J\n" +- "\fissue_update\x18\b \x01(\v2%.bytebase.v1.IssueComment.IssueUpdateH\x00R\vissueUpdate\x12A\n" +- "\tstage_end\x18\t \x01(\v2\".bytebase.v1.IssueComment.StageEndH\x00R\bstageEnd\x12G\n" +- "\vtask_update\x18\n" +- " \x01(\v2$.bytebase.v1.IssueComment.TaskUpdateH\x00R\n" +- "taskUpdate\x12W\n" +- "\x11task_prior_backup\x18\v \x01(\v2).bytebase.v1.IssueComment.TaskPriorBackupH\x00R\x0ftaskPriorBackup\x1a\x98\x01\n" ++ "\fissue_update\x18\b \x01(\v2%.bytebase.v1.IssueComment.IssueUpdateH\x00R\vissueUpdate\x12T\n" ++ "\x10plan_spec_update\x18\f \x01(\v2(.bytebase.v1.IssueComment.PlanSpecUpdateH\x00R\x0eplanSpecUpdate\x1a\x98\x01\n" +"\bApproval\x12A\n" +"\x06status\x18\x01 \x01(\x0e2).bytebase.v1.IssueComment.Approval.StatusR\x06status\"I\n" +"\x06Status\x12\x16\n" +@@ -2644,39 +2349,14 @@ const file_v1_issue_service_proto_rawDesc = "" +"\x0f_to_descriptionB\x0e\n" +"\f_from_statusB\f\n" +"\n" +- "_to_status\x1a \n" +- "\bStageEnd\x12\x14\n" +- "\x05stage\x18\x01 \x01(\tR\x05stage\x1a\xcc\x02\n" +- "\n" +- "TaskUpdate\x12\x14\n" +- "\x05tasks\x18\x01 \x03(\tR\x05tasks\x12\"\n" ++ "_to_status\x1a\x84\x01\n" ++ "\x0ePlanSpecUpdate\x12\x12\n" ++ "\x04spec\x18\x01 \x01(\tR\x04spec\x12\"\n" +"\n" +"from_sheet\x18\x02 \x01(\tH\x00R\tfromSheet\x88\x01\x01\x12\x1e\n" +- "\bto_sheet\x18\x03 \x01(\tH\x01R\atoSheet\x88\x01\x01\x12M\n" +- "\tto_status\x18\x06 \x01(\x0e2+.bytebase.v1.IssueComment.TaskUpdate.StatusH\x02R\btoStatus\x88\x01\x01\"k\n" +- "\x06Status\x12\x16\n" +- "\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +- "\aPENDING\x10\x01\x12\v\n" +- "\aRUNNING\x10\x02\x12\b\n" +- "\x04DONE\x10\x03\x12\n" +- "\n" +- "\x06FAILED\x10\x04\x12\v\n" +- "\aSKIPPED\x10\x05\x12\f\n" +- "\bCANCELED\x10\x06B\r\n" ++ "\bto_sheet\x18\x03 \x01(\tH\x01R\atoSheet\x88\x01\x01B\r\n" +"\v_from_sheetB\v\n" +- "\t_to_sheetB\f\n" +- "\n" +- "_to_status\x1a\x93\x02\n" +- "\x0fTaskPriorBackup\x12\x12\n" +- "\x04task\x18\x01 \x01(\tR\x04task\x12G\n" +- "\x06tables\x18\x02 \x03(\v2/.bytebase.v1.IssueComment.TaskPriorBackup.TableR\x06tables\x12(\n" +- "\roriginal_line\x18\x03 \x01(\x05H\x00R\foriginalLine\x88\x01\x01\x12\x1a\n" +- "\bdatabase\x18\x04 \x01(\tR\bdatabase\x12\x14\n" +- "\x05error\x18\x05 \x01(\tR\x05error\x1a5\n" +- "\x05Table\x12\x16\n" +- "\x06schema\x18\x01 \x01(\tR\x06schema\x12\x14\n" +- "\x05table\x18\x02 \x01(\tR\x05tableB\x10\n" +- "\x0e_original_lineB\a\n" ++ "\t_to_sheetB\a\n" +"\x05event*M\n" +"\vIssueStatus\x12\x1c\n" +"\x18ISSUE_STATUS_UNSPECIFIED\x10\x00\x12\b\n" +@@ -2711,116 +2391,108 @@ func file_v1_issue_service_proto_rawDescGZIP() []byte {return file_v1_issue_service_proto_rawDescData}-var file_v1_issue_service_proto_enumTypes = make([]protoimpl.EnumInfo, 6)-var file_v1_issue_service_proto_msgTypes = make([]protoimpl.MessageInfo, 29)+var file_v1_issue_service_proto_enumTypes = make([]protoimpl.EnumInfo, 5)+var file_v1_issue_service_proto_msgTypes = make([]protoimpl.MessageInfo, 26)var file_v1_issue_service_proto_goTypes = []any{- (IssueStatus)(0), // 0: bytebase.v1.IssueStatus- (Issue_Type)(0), // 1: bytebase.v1.Issue.Type- (Issue_ApprovalStatus)(0), // 2: bytebase.v1.Issue.ApprovalStatus- (Issue_Approver_Status)(0), // 3: bytebase.v1.Issue.Approver.Status- (IssueComment_Approval_Status)(0), // 4: bytebase.v1.IssueComment.Approval.Status- (IssueComment_TaskUpdate_Status)(0), // 5: bytebase.v1.IssueComment.TaskUpdate.Status- (*GetIssueRequest)(nil), // 6: bytebase.v1.GetIssueRequest- (*CreateIssueRequest)(nil), // 7: bytebase.v1.CreateIssueRequest- (*ListIssuesRequest)(nil), // 8: bytebase.v1.ListIssuesRequest- (*ListIssuesResponse)(nil), // 9: bytebase.v1.ListIssuesResponse- (*SearchIssuesRequest)(nil), // 10: bytebase.v1.SearchIssuesRequest- (*SearchIssuesResponse)(nil), // 11: bytebase.v1.SearchIssuesResponse- (*UpdateIssueRequest)(nil), // 12: bytebase.v1.UpdateIssueRequest- (*BatchUpdateIssuesStatusRequest)(nil), // 13: bytebase.v1.BatchUpdateIssuesStatusRequest- (*BatchUpdateIssuesStatusResponse)(nil), // 14: bytebase.v1.BatchUpdateIssuesStatusResponse- (*ApproveIssueRequest)(nil), // 15: bytebase.v1.ApproveIssueRequest- (*RejectIssueRequest)(nil), // 16: bytebase.v1.RejectIssueRequest- (*RequestIssueRequest)(nil), // 17: bytebase.v1.RequestIssueRequest- (*Issue)(nil), // 18: bytebase.v1.Issue- (*GrantRequest)(nil), // 19: bytebase.v1.GrantRequest- (*ApprovalTemplate)(nil), // 20: bytebase.v1.ApprovalTemplate- (*ApprovalFlow)(nil), // 21: bytebase.v1.ApprovalFlow- (*ListIssueCommentsRequest)(nil), // 22: bytebase.v1.ListIssueCommentsRequest- (*ListIssueCommentsResponse)(nil), // 23: bytebase.v1.ListIssueCommentsResponse- (*CreateIssueCommentRequest)(nil), // 24: bytebase.v1.CreateIssueCommentRequest- (*UpdateIssueCommentRequest)(nil), // 25: bytebase.v1.UpdateIssueCommentRequest- (*IssueComment)(nil), // 26: bytebase.v1.IssueComment- (*Issue_Approver)(nil), // 27: bytebase.v1.Issue.Approver- nil, // 28: bytebase.v1.Issue.TaskStatusCountEntry- (*IssueComment_Approval)(nil), // 29: bytebase.v1.IssueComment.Approval- (*IssueComment_IssueUpdate)(nil), // 30: bytebase.v1.IssueComment.IssueUpdate- (*IssueComment_StageEnd)(nil), // 31: bytebase.v1.IssueComment.StageEnd- (*IssueComment_TaskUpdate)(nil), // 32: bytebase.v1.IssueComment.TaskUpdate- (*IssueComment_TaskPriorBackup)(nil), // 33: bytebase.v1.IssueComment.TaskPriorBackup- (*IssueComment_TaskPriorBackup_Table)(nil), // 34: bytebase.v1.IssueComment.TaskPriorBackup.Table- (*fieldmaskpb.FieldMask)(nil), // 35: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 36: google.protobuf.Timestamp- (RiskLevel)(0), // 37: bytebase.v1.RiskLevel- (*expr.Expr)(nil), // 38: google.type.Expr- (*durationpb.Duration)(nil), // 39: google.protobuf.Duration+ (IssueStatus)(0), // 0: bytebase.v1.IssueStatus+ (Issue_Type)(0), // 1: bytebase.v1.Issue.Type+ (Issue_ApprovalStatus)(0), // 2: bytebase.v1.Issue.ApprovalStatus+ (Issue_Approver_Status)(0), // 3: bytebase.v1.Issue.Approver.Status+ (IssueComment_Approval_Status)(0), // 4: bytebase.v1.IssueComment.Approval.Status+ (*GetIssueRequest)(nil), // 5: bytebase.v1.GetIssueRequest+ (*CreateIssueRequest)(nil), // 6: bytebase.v1.CreateIssueRequest+ (*ListIssuesRequest)(nil), // 7: bytebase.v1.ListIssuesRequest+ (*ListIssuesResponse)(nil), // 8: bytebase.v1.ListIssuesResponse+ (*SearchIssuesRequest)(nil), // 9: bytebase.v1.SearchIssuesRequest+ (*SearchIssuesResponse)(nil), // 10: bytebase.v1.SearchIssuesResponse+ (*UpdateIssueRequest)(nil), // 11: bytebase.v1.UpdateIssueRequest+ (*BatchUpdateIssuesStatusRequest)(nil), // 12: bytebase.v1.BatchUpdateIssuesStatusRequest+ (*BatchUpdateIssuesStatusResponse)(nil), // 13: bytebase.v1.BatchUpdateIssuesStatusResponse+ (*ApproveIssueRequest)(nil), // 14: bytebase.v1.ApproveIssueRequest+ (*RejectIssueRequest)(nil), // 15: bytebase.v1.RejectIssueRequest+ (*RequestIssueRequest)(nil), // 16: bytebase.v1.RequestIssueRequest+ (*Issue)(nil), // 17: bytebase.v1.Issue+ (*GrantRequest)(nil), // 18: bytebase.v1.GrantRequest+ (*ApprovalTemplate)(nil), // 19: bytebase.v1.ApprovalTemplate+ (*ApprovalFlow)(nil), // 20: bytebase.v1.ApprovalFlow+ (*ListIssueCommentsRequest)(nil), // 21: bytebase.v1.ListIssueCommentsRequest+ (*ListIssueCommentsResponse)(nil), // 22: bytebase.v1.ListIssueCommentsResponse+ (*CreateIssueCommentRequest)(nil), // 23: bytebase.v1.CreateIssueCommentRequest+ (*UpdateIssueCommentRequest)(nil), // 24: bytebase.v1.UpdateIssueCommentRequest+ (*IssueComment)(nil), // 25: bytebase.v1.IssueComment+ (*Issue_Approver)(nil), // 26: bytebase.v1.Issue.Approver+ nil, // 27: bytebase.v1.Issue.TaskStatusCountEntry+ (*IssueComment_Approval)(nil), // 28: bytebase.v1.IssueComment.Approval+ (*IssueComment_IssueUpdate)(nil), // 29: bytebase.v1.IssueComment.IssueUpdate+ (*IssueComment_PlanSpecUpdate)(nil), // 30: bytebase.v1.IssueComment.PlanSpecUpdate+ (*fieldmaskpb.FieldMask)(nil), // 31: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 32: google.protobuf.Timestamp+ (RiskLevel)(0), // 33: bytebase.v1.RiskLevel+ (*expr.Expr)(nil), // 34: google.type.Expr+ (*durationpb.Duration)(nil), // 35: google.protobuf.Duration}var file_v1_issue_service_proto_depIdxs = []int32{- 18, // 0: bytebase.v1.CreateIssueRequest.issue:type_name -> bytebase.v1.Issue- 18, // 1: bytebase.v1.ListIssuesResponse.issues:type_name -> bytebase.v1.Issue- 18, // 2: bytebase.v1.SearchIssuesResponse.issues:type_name -> bytebase.v1.Issue- 18, // 3: bytebase.v1.UpdateIssueRequest.issue:type_name -> bytebase.v1.Issue- 35, // 4: bytebase.v1.UpdateIssueRequest.update_mask:type_name -> google.protobuf.FieldMask+ 17, // 0: bytebase.v1.CreateIssueRequest.issue:type_name -> bytebase.v1.Issue+ 17, // 1: bytebase.v1.ListIssuesResponse.issues:type_name -> bytebase.v1.Issue+ 17, // 2: bytebase.v1.SearchIssuesResponse.issues:type_name -> bytebase.v1.Issue+ 17, // 3: bytebase.v1.UpdateIssueRequest.issue:type_name -> bytebase.v1.Issue+ 31, // 4: bytebase.v1.UpdateIssueRequest.update_mask:type_name -> google.protobuf.FieldMask0, // 5: bytebase.v1.BatchUpdateIssuesStatusRequest.status:type_name -> bytebase.v1.IssueStatus1, // 6: bytebase.v1.Issue.type:type_name -> bytebase.v1.Issue.Type0, // 7: bytebase.v1.Issue.status:type_name -> bytebase.v1.IssueStatus- 27, // 8: bytebase.v1.Issue.approvers:type_name -> bytebase.v1.Issue.Approver- 20, // 9: bytebase.v1.Issue.approval_template:type_name -> bytebase.v1.ApprovalTemplate- 36, // 10: bytebase.v1.Issue.create_time:type_name -> google.protobuf.Timestamp- 36, // 11: bytebase.v1.Issue.update_time:type_name -> google.protobuf.Timestamp- 19, // 12: bytebase.v1.Issue.grant_request:type_name -> bytebase.v1.GrantRequest- 37, // 13: bytebase.v1.Issue.risk_level:type_name -> bytebase.v1.RiskLevel- 28, // 14: bytebase.v1.Issue.task_status_count:type_name -> bytebase.v1.Issue.TaskStatusCountEntry+ 26, // 8: bytebase.v1.Issue.approvers:type_name -> bytebase.v1.Issue.Approver+ 19, // 9: bytebase.v1.Issue.approval_template:type_name -> bytebase.v1.ApprovalTemplate+ 32, // 10: bytebase.v1.Issue.create_time:type_name -> google.protobuf.Timestamp+ 32, // 11: bytebase.v1.Issue.update_time:type_name -> google.protobuf.Timestamp+ 18, // 12: bytebase.v1.Issue.grant_request:type_name -> bytebase.v1.GrantRequest+ 33, // 13: bytebase.v1.Issue.risk_level:type_name -> bytebase.v1.RiskLevel+ 27, // 14: bytebase.v1.Issue.task_status_count:type_name -> bytebase.v1.Issue.TaskStatusCountEntry2, // 15: bytebase.v1.Issue.approval_status:type_name -> bytebase.v1.Issue.ApprovalStatus- 38, // 16: bytebase.v1.GrantRequest.condition:type_name -> google.type.Expr- 39, // 17: bytebase.v1.GrantRequest.expiration:type_name -> google.protobuf.Duration- 21, // 18: bytebase.v1.ApprovalTemplate.flow:type_name -> bytebase.v1.ApprovalFlow- 26, // 19: bytebase.v1.ListIssueCommentsResponse.issue_comments:type_name -> bytebase.v1.IssueComment- 26, // 20: bytebase.v1.CreateIssueCommentRequest.issue_comment:type_name -> bytebase.v1.IssueComment- 26, // 21: bytebase.v1.UpdateIssueCommentRequest.issue_comment:type_name -> bytebase.v1.IssueComment- 35, // 22: bytebase.v1.UpdateIssueCommentRequest.update_mask:type_name -> google.protobuf.FieldMask- 36, // 23: bytebase.v1.IssueComment.create_time:type_name -> google.protobuf.Timestamp- 36, // 24: bytebase.v1.IssueComment.update_time:type_name -> google.protobuf.Timestamp- 29, // 25: bytebase.v1.IssueComment.approval:type_name -> bytebase.v1.IssueComment.Approval- 30, // 26: bytebase.v1.IssueComment.issue_update:type_name -> bytebase.v1.IssueComment.IssueUpdate- 31, // 27: bytebase.v1.IssueComment.stage_end:type_name -> bytebase.v1.IssueComment.StageEnd- 32, // 28: bytebase.v1.IssueComment.task_update:type_name -> bytebase.v1.IssueComment.TaskUpdate- 33, // 29: bytebase.v1.IssueComment.task_prior_backup:type_name -> bytebase.v1.IssueComment.TaskPriorBackup- 3, // 30: bytebase.v1.Issue.Approver.status:type_name -> bytebase.v1.Issue.Approver.Status- 4, // 31: bytebase.v1.IssueComment.Approval.status:type_name -> bytebase.v1.IssueComment.Approval.Status- 0, // 32: bytebase.v1.IssueComment.IssueUpdate.from_status:type_name -> bytebase.v1.IssueStatus- 0, // 33: bytebase.v1.IssueComment.IssueUpdate.to_status:type_name -> bytebase.v1.IssueStatus- 5, // 34: bytebase.v1.IssueComment.TaskUpdate.to_status:type_name -> bytebase.v1.IssueComment.TaskUpdate.Status- 34, // 35: bytebase.v1.IssueComment.TaskPriorBackup.tables:type_name -> bytebase.v1.IssueComment.TaskPriorBackup.Table- 6, // 36: bytebase.v1.IssueService.GetIssue:input_type -> bytebase.v1.GetIssueRequest- 7, // 37: bytebase.v1.IssueService.CreateIssue:input_type -> bytebase.v1.CreateIssueRequest- 8, // 38: bytebase.v1.IssueService.ListIssues:input_type -> bytebase.v1.ListIssuesRequest- 10, // 39: bytebase.v1.IssueService.SearchIssues:input_type -> bytebase.v1.SearchIssuesRequest- 12, // 40: bytebase.v1.IssueService.UpdateIssue:input_type -> bytebase.v1.UpdateIssueRequest- 22, // 41: bytebase.v1.IssueService.ListIssueComments:input_type -> bytebase.v1.ListIssueCommentsRequest- 24, // 42: bytebase.v1.IssueService.CreateIssueComment:input_type -> bytebase.v1.CreateIssueCommentRequest- 25, // 43: bytebase.v1.IssueService.UpdateIssueComment:input_type -> bytebase.v1.UpdateIssueCommentRequest- 13, // 44: bytebase.v1.IssueService.BatchUpdateIssuesStatus:input_type -> bytebase.v1.BatchUpdateIssuesStatusRequest- 15, // 45: bytebase.v1.IssueService.ApproveIssue:input_type -> bytebase.v1.ApproveIssueRequest- 16, // 46: bytebase.v1.IssueService.RejectIssue:input_type -> bytebase.v1.RejectIssueRequest- 17, // 47: bytebase.v1.IssueService.RequestIssue:input_type -> bytebase.v1.RequestIssueRequest- 18, // 48: bytebase.v1.IssueService.GetIssue:output_type -> bytebase.v1.Issue- 18, // 49: bytebase.v1.IssueService.CreateIssue:output_type -> bytebase.v1.Issue- 9, // 50: bytebase.v1.IssueService.ListIssues:output_type -> bytebase.v1.ListIssuesResponse- 11, // 51: bytebase.v1.IssueService.SearchIssues:output_type -> bytebase.v1.SearchIssuesResponse- 18, // 52: bytebase.v1.IssueService.UpdateIssue:output_type -> bytebase.v1.Issue- 23, // 53: bytebase.v1.IssueService.ListIssueComments:output_type -> bytebase.v1.ListIssueCommentsResponse- 26, // 54: bytebase.v1.IssueService.CreateIssueComment:output_type -> bytebase.v1.IssueComment- 26, // 55: bytebase.v1.IssueService.UpdateIssueComment:output_type -> bytebase.v1.IssueComment- 14, // 56: bytebase.v1.IssueService.BatchUpdateIssuesStatus:output_type -> bytebase.v1.BatchUpdateIssuesStatusResponse- 18, // 57: bytebase.v1.IssueService.ApproveIssue:output_type -> bytebase.v1.Issue- 18, // 58: bytebase.v1.IssueService.RejectIssue:output_type -> bytebase.v1.Issue- 18, // 59: bytebase.v1.IssueService.RequestIssue:output_type -> bytebase.v1.Issue- 48, // [48:60] is the sub-list for method output_type- 36, // [36:48] is the sub-list for method input_type- 36, // [36:36] is the sub-list for extension type_name- 36, // [36:36] is the sub-list for extension extendee- 0, // [0:36] is the sub-list for field type_name+ 34, // 16: bytebase.v1.GrantRequest.condition:type_name -> google.type.Expr+ 35, // 17: bytebase.v1.GrantRequest.expiration:type_name -> google.protobuf.Duration+ 20, // 18: bytebase.v1.ApprovalTemplate.flow:type_name -> bytebase.v1.ApprovalFlow+ 25, // 19: bytebase.v1.ListIssueCommentsResponse.issue_comments:type_name -> bytebase.v1.IssueComment+ 25, // 20: bytebase.v1.CreateIssueCommentRequest.issue_comment:type_name -> bytebase.v1.IssueComment+ 25, // 21: bytebase.v1.UpdateIssueCommentRequest.issue_comment:type_name -> bytebase.v1.IssueComment+ 31, // 22: bytebase.v1.UpdateIssueCommentRequest.update_mask:type_name -> google.protobuf.FieldMask+ 32, // 23: bytebase.v1.IssueComment.create_time:type_name -> google.protobuf.Timestamp+ 32, // 24: bytebase.v1.IssueComment.update_time:type_name -> google.protobuf.Timestamp+ 28, // 25: bytebase.v1.IssueComment.approval:type_name -> bytebase.v1.IssueComment.Approval+ 29, // 26: bytebase.v1.IssueComment.issue_update:type_name -> bytebase.v1.IssueComment.IssueUpdate+ 30, // 27: bytebase.v1.IssueComment.plan_spec_update:type_name -> bytebase.v1.IssueComment.PlanSpecUpdate+ 3, // 28: bytebase.v1.Issue.Approver.status:type_name -> bytebase.v1.Issue.Approver.Status+ 4, // 29: bytebase.v1.IssueComment.Approval.status:type_name -> bytebase.v1.IssueComment.Approval.Status+ 0, // 30: bytebase.v1.IssueComment.IssueUpdate.from_status:type_name -> bytebase.v1.IssueStatus+ 0, // 31: bytebase.v1.IssueComment.IssueUpdate.to_status:type_name -> bytebase.v1.IssueStatus+ 5, // 32: bytebase.v1.IssueService.GetIssue:input_type -> bytebase.v1.GetIssueRequest+ 6, // 33: bytebase.v1.IssueService.CreateIssue:input_type -> bytebase.v1.CreateIssueRequest+ 7, // 34: bytebase.v1.IssueService.ListIssues:input_type -> bytebase.v1.ListIssuesRequest+ 9, // 35: bytebase.v1.IssueService.SearchIssues:input_type -> bytebase.v1.SearchIssuesRequest+ 11, // 36: bytebase.v1.IssueService.UpdateIssue:input_type -> bytebase.v1.UpdateIssueRequest+ 21, // 37: bytebase.v1.IssueService.ListIssueComments:input_type -> bytebase.v1.ListIssueCommentsRequest+ 23, // 38: bytebase.v1.IssueService.CreateIssueComment:input_type -> bytebase.v1.CreateIssueCommentRequest+ 24, // 39: bytebase.v1.IssueService.UpdateIssueComment:input_type -> bytebase.v1.UpdateIssueCommentRequest+ 12, // 40: bytebase.v1.IssueService.BatchUpdateIssuesStatus:input_type -> bytebase.v1.BatchUpdateIssuesStatusRequest+ 14, // 41: bytebase.v1.IssueService.ApproveIssue:input_type -> bytebase.v1.ApproveIssueRequest+ 15, // 42: bytebase.v1.IssueService.RejectIssue:input_type -> bytebase.v1.RejectIssueRequest+ 16, // 43: bytebase.v1.IssueService.RequestIssue:input_type -> bytebase.v1.RequestIssueRequest+ 17, // 44: bytebase.v1.IssueService.GetIssue:output_type -> bytebase.v1.Issue+ 17, // 45: bytebase.v1.IssueService.CreateIssue:output_type -> bytebase.v1.Issue+ 8, // 46: bytebase.v1.IssueService.ListIssues:output_type -> bytebase.v1.ListIssuesResponse+ 10, // 47: bytebase.v1.IssueService.SearchIssues:output_type -> bytebase.v1.SearchIssuesResponse+ 17, // 48: bytebase.v1.IssueService.UpdateIssue:output_type -> bytebase.v1.Issue+ 22, // 49: bytebase.v1.IssueService.ListIssueComments:output_type -> bytebase.v1.ListIssueCommentsResponse+ 25, // 50: bytebase.v1.IssueService.CreateIssueComment:output_type -> bytebase.v1.IssueComment+ 25, // 51: bytebase.v1.IssueService.UpdateIssueComment:output_type -> bytebase.v1.IssueComment+ 13, // 52: bytebase.v1.IssueService.BatchUpdateIssuesStatus:output_type -> bytebase.v1.BatchUpdateIssuesStatusResponse+ 17, // 53: bytebase.v1.IssueService.ApproveIssue:output_type -> bytebase.v1.Issue+ 17, // 54: bytebase.v1.IssueService.RejectIssue:output_type -> bytebase.v1.Issue+ 17, // 55: bytebase.v1.IssueService.RequestIssue:output_type -> bytebase.v1.Issue+ 44, // [44:56] is the sub-list for method output_type+ 32, // [32:44] is the sub-list for method input_type+ 32, // [32:32] is the sub-list for extension type_name+ 32, // [32:32] is the sub-list for extension extendee+ 0, // [0:32] is the sub-list for field type_name}func init() { file_v1_issue_service_proto_init() }@@ -2833,20 +2505,17 @@ func file_v1_issue_service_proto_init() {file_v1_issue_service_proto_msgTypes[20].OneofWrappers = []any{(*IssueComment_Approval_)(nil),(*IssueComment_IssueUpdate_)(nil),- (*IssueComment_StageEnd_)(nil),- (*IssueComment_TaskUpdate_)(nil),- (*IssueComment_TaskPriorBackup_)(nil),+ (*IssueComment_PlanSpecUpdate_)(nil),}file_v1_issue_service_proto_msgTypes[24].OneofWrappers = []any{}- file_v1_issue_service_proto_msgTypes[26].OneofWrappers = []any{}- file_v1_issue_service_proto_msgTypes[27].OneofWrappers = []any{}+ file_v1_issue_service_proto_msgTypes[25].OneofWrappers = []any{}type x struct{}out := protoimpl.TypeBuilder{File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_issue_service_proto_rawDesc), len(file_v1_issue_service_proto_rawDesc)),- NumEnums: 6,- NumMessages: 29,+ NumEnums: 5,+ NumMessages: 26,NumExtensions: 0,NumServices: 1,},diff --git a/backend/generated-go/v1/issue_service_equal.pb.go b/backend/generated-go/v1/issue_service_equal.pb.goindex 2a7815893b..a34b70bbfb 100644--- a/backend/generated-go/v1/issue_service_equal.pb.go+++ b/backend/generated-go/v1/issue_service_equal.pb.go@@ -548,89 +548,22 @@ func (x *IssueComment_IssueUpdate) Equal(y *IssueComment_IssueUpdate) bool {return true}-func (x *IssueComment_StageEnd) Equal(y *IssueComment_StageEnd) bool {+func (x *IssueComment_PlanSpecUpdate) Equal(y *IssueComment_PlanSpecUpdate) bool {if x == y {return true}if x == nil || y == nil {return x == nil && y == nil}- if x.Stage != y.Stage {+ if x.Spec != y.Spec {return false}- return true-}--func (x *IssueComment_TaskUpdate) Equal(y *IssueComment_TaskUpdate) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if len(x.Tasks) != len(y.Tasks) {- return false- }- for i := 0; i < len(x.Tasks); i++ {- if x.Tasks[i] != y.Tasks[i] {- return false- }- }if p, q := x.FromSheet, y.FromSheet; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {return false}if p, q := x.ToSheet, y.ToSheet; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {return false}- if p, q := x.ToStatus, y.ToStatus; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {- return false- }- return true-}--func (x *IssueComment_TaskPriorBackup_Table) Equal(y *IssueComment_TaskPriorBackup_Table) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if x.Schema != y.Schema {- return false- }- if x.Table != y.Table {- return false- }- return true-}--func (x *IssueComment_TaskPriorBackup) Equal(y *IssueComment_TaskPriorBackup) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if x.Task != y.Task {- return false- }- if len(x.Tables) != len(y.Tables) {- return false- }- for i := 0; i < len(x.Tables); i++ {- if !x.Tables[i].Equal(y.Tables[i]) {- return false- }- }- if p, q := x.OriginalLine, y.OriginalLine; (p == nil && q != nil) || (p != nil && (q == nil || *p != *q)) {- return false- }- if x.Database != y.Database {- return false- }- if x.Error != y.Error {- return false- }return true}@@ -665,13 +598,7 @@ func (x *IssueComment) Equal(y *IssueComment) bool {if !x.GetIssueUpdate().Equal(y.GetIssueUpdate()) {return false}- if !x.GetStageEnd().Equal(y.GetStageEnd()) {- return false- }- if !x.GetTaskUpdate().Equal(y.GetTaskUpdate()) {- return false- }- if !x.GetTaskPriorBackup().Equal(y.GetTaskPriorBackup()) {+ if !x.GetPlanSpecUpdate().Equal(y.GetPlanSpecUpdate()) {return false}return truediff --git a/backend/migrator/migration/3.13/0030##remove_execution_events_from_issue_comment.sql b/backend/migrator/migration/3.13/0030##remove_execution_events_from_issue_comment.sqlnew file mode 100644index 0000000000..2152fba112--- /dev/null+++ b/backend/migrator/migration/3.13/0030##remove_execution_events_from_issue_comment.sql@@ -0,0 +1,49 @@+-- Migration: Remove execution events from issue_comment+--+-- This migration:+-- 1. Deletes stageEnd comments (derivable from task statuses)+-- 2. Deletes taskPriorBackup comments (tracked in task_run_log)+-- 3. Deletes taskUpdate comments with toStatus (execution status tracked in task_run)+-- 4. Migrates taskUpdate comments with sheet changes to planSpecUpdate++-- Step 1: Delete stageEnd comments+DELETE FROM issue_comment WHERE payload ? 'stageEnd';++-- Step 2: Delete taskPriorBackup comments+DELETE FROM issue_comment WHERE payload ? 'taskPriorBackup';++-- Step 3: Delete taskUpdate comments that only have status changes (no sheet changes)+DELETE FROM issue_comment+WHERE payload ? 'taskUpdate'+ AND (payload->'taskUpdate') ? 'toStatus'+ AND NOT ((payload->'taskUpdate') ? 'fromSheet' OR (payload->'taskUpdate') ? 'toSheet');++-- Step 4: Migrate taskUpdate comments with sheet changes to planSpecUpdate+-- The task name format is: projects/{project}/rollouts/{rollout}/stages/{stage}/tasks/{task_id}+-- The spec format is: projects/{project}/plans/{plan_id}/specs/{spec_id}+UPDATE issue_comment ic+SET payload = jsonb_build_object(+ 'planSpecUpdate', jsonb_build_object(+ 'spec', 'projects/' || i.project || '/plans/' || i.plan_id || '/specs/' || COALESCE(t.payload->>'specId', ''),+ 'fromSheet', ic.payload->'taskUpdate'->>'fromSheet',+ 'toSheet', ic.payload->'taskUpdate'->>'toSheet'+ )+)+FROM issue i, task t+WHERE ic.payload ? 'taskUpdate'+ AND ((ic.payload->'taskUpdate') ? 'fromSheet' OR (ic.payload->'taskUpdate') ? 'toSheet')+ AND ic.issue_id = i.id+ AND i.plan_id IS NOT NULL+ AND t.id = (+ SELECT CAST(+ split_part(+ ic.payload->'taskUpdate'->'tasks'->>0,+ '/tasks/',+ 2+ ) AS INTEGER+ )+ );++-- Step 5: Delete any remaining taskUpdate comments that couldn't be migrated+DELETE FROM issue_comment+WHERE payload ? 'taskUpdate';diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.goindex 1e96fd8968..61275d5285 100644--- a/backend/migrator/migrator_test.go+++ b/backend/migrator/migrator_test.go@@ -12,7 +12,7 @@ import (func TestLatestVersion(t *testing.T) {files, err := getSortedVersionedFiles()require.NoError(t, err)- require.Equal(t, semver.MustParse("3.13.29"), *files[len(files)-1].version)+ require.Equal(t, semver.MustParse("3.13.30"), *files[len(files)-1].version)}func TestVersionUnique(t *testing.T) {diff --git a/backend/runner/taskrun/scheduler.go b/backend/runner/taskrun/scheduler.goindex 362345c2ce..ed5ebb8fb2 100644--- a/backend/runner/taskrun/scheduler.go+++ b/backend/runner/taskrun/scheduler.go@@ -245,12 +245,6 @@ func (s *Scheduler) scheduleAutoRolloutTask(ctx context.Context, taskUID int) erreturn errors.Wrapf(err, "failed to create pending task runs")}- if issue != nil {- tasks := []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, common.FormatStageID(task.Environment), taskUID)}- if err := s.store.CreateIssueCommentTaskUpdateStatus(ctx, issue.UID, tasks, storepb.TaskRun_PENDING, common.SystemBotEmail, ""); err != nil {- slog.Warn("failed to create issue comment", "issueUID", issue.UID, log.BBError(err))- }- }s.webhookManager.CreateEvent(ctx, &webhook.Event{Actor: store.SystemBotUser,Type: storepb.Activity_ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE,@@ -648,21 +642,6 @@ func (s *Scheduler) runTaskRunOnce(ctx context.Context, taskRun *store.TaskRunMe)return}- if err := func() error {- issue, err := s.store.GetIssue(ctx, &store.FindIssueMessage{- PipelineID: &task.PipelineID,- })- if err != nil {- return errors.Wrap(err, "failed to get issue")- }- if issue == nil {- return nil- }- tasks := []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, common.FormatStageID(task.Environment), task.ID)}- return s.store.CreateIssueCommentTaskUpdateStatus(ctx, issue.UID, tasks, storepb.TaskRun_FAILED, common.SystemBotEmail, "")- }(); err != nil {- slog.Warn("failed to create issue comment", log.BBError(err))- }s.createActivityForTaskRunStatusUpdate(ctx, task, storepb.TaskRun_FAILED, taskRunResult.Detail)return@@ -692,21 +671,6 @@ func (s *Scheduler) runTaskRunOnce(ctx context.Context, taskRun *store.TaskRunMe)return}- if err := func() error {- issue, err := s.store.GetIssue(ctx, &store.FindIssueMessage{- PipelineID: &task.PipelineID,- })- if err != nil {- return errors.Wrap(err, "failed to get issue")- }- if issue == nil {- return nil- }- tasks := []string{common.FormatTask(issue.Project.ResourceID, task.PipelineID, common.FormatStageID(task.Environment), task.ID)}- return s.store.CreateIssueCommentTaskUpdateStatus(ctx, issue.UID, tasks, storepb.TaskRun_DONE, common.SystemBotEmail, "")- }(); err != nil {- slog.Warn("failed to create issue comment", log.BBError(err))- }s.createActivityForTaskRunStatusUpdate(ctx, task, storepb.TaskRun_DONE, "")s.stateCfg.TaskSkippedOrDoneChan <- task.IDreturn@@ -851,26 +815,6 @@ func (s *Scheduler) ListenTaskSkippedOrDone(ctx context.Context) {},})- if err := func() error {- p := &storepb.IssueCommentPayload{- Event: &storepb.IssueCommentPayload_StageEnd_{- StageEnd: &storepb.IssueCommentPayload_StageEnd{- Stage: common.FormatStage(project.ResourceID, task.PipelineID, common.FormatStageID(task.Environment)),- },- },- }- if issueN != nil {- _, err := s.store.CreateIssueComment(ctx, &store.IssueCommentMessage{- IssueUID: issueN.UID,- Payload: p,- }, common.SystemBotEmail)- return err- }- return nil- }(); err != nil {- slog.Warn("failed to create issue comment", log.BBError(err))- }-// create "notify pipeline rollout" activity.if err := func() error {if nextEnvironment == "" {diff --git a/backend/store/issue_comment.go b/backend/store/issue_comment.goindex c9db9f9b63..c98d37cdf3 100644--- a/backend/store/issue_comment.go+++ b/backend/store/issue_comment.go@@ -118,24 +118,6 @@ func (s *Store) ListIssueComment(ctx context.Context, find *FindIssueCommentMessreturn issueComments, nil}-func (s *Store) CreateIssueCommentTaskUpdateStatus(ctx context.Context, issueUID int, tasks []string, status storepb.TaskRun_Status, creator string, comment string) error {- create := &IssueCommentMessage{- IssueUID: issueUID,- Payload: &storepb.IssueCommentPayload{- Comment: comment,- Event: &storepb.IssueCommentPayload_TaskUpdate_{- TaskUpdate: &storepb.IssueCommentPayload_TaskUpdate{- Tasks: tasks,- ToStatus: &status,- },- },- },- }-- _, err := s.CreateIssueComment(ctx, create, creator)- return err-}-func (s *Store) CreateIssueComment(ctx context.Context, create *IssueCommentMessage, creator string) (*IssueCommentMessage, error) {payload, err := protojson.Marshal(create.Payload)if err != nil {diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionIcon.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionIcon.vueindex b7ecfb6630..7314edf74e 100644--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionIcon.vue+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionIcon.vue@@ -124,10 +124,7 @@ import {useUserStore,} from "@/store";import type { IssueComment } from "@/types/proto-es/v1/issue_service_pb";-import {- IssueComment_Approval_Status,- IssueComment_TaskUpdate_Status,-} from "@/types/proto-es/v1/issue_service_pb";+import { IssueComment_Approval_Status } from "@/types/proto-es/v1/issue_service_pb";type ActionIconType =| "avatar"@@ -171,43 +168,6 @@ const icon = computed((): ActionIconType => {case IssueComment_Approval_Status.PENDING:return "re-request-review";}- } else if (commentType === IssueCommentType.STAGE_END) {- return "complete";- } else if (- commentType === IssueCommentType.TASK_UPDATE &&- issueComment.event?.case === "taskUpdate"- ) {- const { toStatus } = issueComment.event.value;- let action: ActionIconType = "update";- if (toStatus !== undefined) {- switch (toStatus) {- case IssueComment_TaskUpdate_Status.PENDING: {- action = "rollout";- break;- }- case IssueComment_TaskUpdate_Status.RUNNING: {- action = "run";- break;- }- case IssueComment_TaskUpdate_Status.DONE: {- action = "complete";- break;- }- case IssueComment_TaskUpdate_Status.FAILED: {- action = "fail";- break;- }- case IssueComment_TaskUpdate_Status.SKIPPED: {- action = "skip";- break;- }- case IssueComment_TaskUpdate_Status.CANCELED: {- action = "cancel";- break;- }- }- }- return action;} else if (commentType === IssueCommentType.ISSUE_UPDATE &&issueComment.event?.case === "issueUpdate"@@ -223,16 +183,8 @@ const icon = computed((): ActionIconType => {return "update";}// Otherwise, show avatar icon based on the creator.- } else if (- commentType === IssueCommentType.TASK_PRIOR_BACKUP &&- issueComment.event?.case === "taskPriorBackup"- ) {- const taskPriorBackup = issueComment.event.value;- if (taskPriorBackup.error !== "") {- return "fail";- } else {- return "complete";- }+ } else if (commentType === IssueCommentType.PLAN_SPEC_UPDATE) {+ return "update";}return extractUserId(issueComment.creator) == userStore.systemBotUser?.emaildiff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionSentence.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionSentence.vueindex fe553414b6..e7460c897c 100644--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionSentence.vue+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionSentence.vue@@ -3,7 +3,6 @@</template><script lang="tsx" setup>-import type { h } from "vue";import { defineComponent } from "vue";import { Translation, useI18n } from "vue-i18n";import {@@ -12,30 +11,34 @@ import {IssueCommentType,useUserStore,} from "@/store";-import { type ComposedIssue } from "@/types";import type { IssueComment } from "@/types/proto-es/v1/issue_service_pb";import {IssueComment_Approval_Status,- IssueComment_TaskUpdate_Status,IssueStatus,} from "@/types/proto-es/v1/issue_service_pb";-import { findStageByName, findTaskByName } from "@/utils";-import StageName from "./StageName.vue";import StatementUpdate from "./StatementUpdate.vue";-import TaskName from "./TaskName.vue";--type RenderedContent = string | ReturnType<typeof h>;const props = defineProps<{- issue: ComposedIssue;issueComment: IssueComment;}>();const { t } = useI18n();const userStore = useUserStore();+const maybeAutomaticallyVerb = (+ issueComment: IssueComment,+ verb: string+): string => {+ if (extractUserId(issueComment.creator) !== userStore.systemBotUser?.email) {+ return verb;+ }+ return t("activity.sentence.xxx-automatically", {+ verb,+ });+};+const renderActionSentence = () => {- const { issueComment, issue } = props;+ const { issueComment } = props;const commentType = getIssueCommentType(issueComment);if (commentType === IssueCommentType.APPROVAL &&@@ -88,70 +91,11 @@ const renderActionSentence = () => {return t("activity.sentence.changed-labels");}} else if (- commentType === IssueCommentType.STAGE_END &&- issueComment.event?.case === "stageEnd"- ) {- const { stage } = issueComment.event.value;- const stageEntity = findStageByName(issue.rolloutEntity, stage);- const params: VerbTypeTarget = {- issueComment,- type: t("common.stage"),- target: <StageName stage={stageEntity} />,- verb: t("activity.sentence.completed"),- };- return renderVerbTypeTarget(params);- } else if (- commentType === IssueCommentType.TASK_UPDATE &&- issueComment.event?.case === "taskUpdate"+ commentType === IssueCommentType.PLAN_SPEC_UPDATE &&+ issueComment.event?.case === "planSpecUpdate") {- const { tasks, fromSheet, toSheet, toStatus } = issueComment.event.value;-- if (toStatus !== undefined) {- const params: VerbTypeTarget = {- issueComment,- verb: "",- type: t("common.task"),- target: "",- };- switch (toStatus) {- case IssueComment_TaskUpdate_Status.PENDING: {- params.verb = maybeAutomaticallyVerb(- issueComment,- t("activity.sentence.rolled-out")- );- break;- }- case IssueComment_TaskUpdate_Status.RUNNING: {- params.verb = t("activity.sentence.started");- break;- }- case IssueComment_TaskUpdate_Status.DONE: {- params.verb = t("activity.sentence.completed");- break;- }- case IssueComment_TaskUpdate_Status.FAILED: {- params.verb = t("activity.sentence.failed");- break;- }- case IssueComment_TaskUpdate_Status.CANCELED: {- params.verb = t("activity.sentence.canceled");- break;- }- case IssueComment_TaskUpdate_Status.SKIPPED: {- params.verb = t("activity.sentence.skipped");- break;- }- default:- params.verb = t("activity.sentence.changed");- }- const taskEntities = tasks.map((task) =>- findTaskByName(issue.rolloutEntity, task)- );- if (taskEntities.length > 0) {- params.target = <TaskName issue={issue} task={taskEntities[0]} />;- }- return renderVerbTypeTarget(params);- } else if (fromSheet !== undefined && toSheet !== undefined) {+ const { fromSheet, toSheet } = issueComment.event.value;+ if (fromSheet !== undefined && toSheet !== undefined) {return (<Translation keypath="dynamic.activity.sentence.changed-x-link">{{@@ -163,86 +107,10 @@ const renderActionSentence = () => {</Translation>);}- } else if (- commentType === IssueCommentType.TASK_PRIOR_BACKUP &&- issueComment.event?.case === "taskPriorBackup"- ) {- const { task, tables, originalLine, database, error } =- issueComment.event.value;- if (error) {- return t("activity.sentence.failed-to-backup", { error });- }-- const taskEntity = findTaskByName(issue.rolloutEntity, task);- let verb = t("activity.sentence.prior-back-table", {- database: database.length > 0 ? database : "bbdataarchive",- tables: tables- .map((table) =>- table.schema ? `${table.schema}.${table.table}` : table.table- )- .join(", "),- });- if (originalLine) {- verb = t("activity.sentence.prior-back-table-for-line", {- database: database.length > 0 ? database : "bbdataarchive",- tables: tables- .map((table) =>- table.schema ? `${table.schema}.${table.table}` : table.table- )- .join(", "),- line: originalLine,- });- }- const params: VerbTypeTarget = {- issueComment,- verb: verb,- type: t("common.task"),- target: "",- };- if (task) {- params.target = <TaskName issue={issue} task={taskEntity} />;- }- return renderVerbTypeTarget(params);}return "";};-const maybeAutomaticallyVerb = (- issueComment: IssueComment,- verb: string-): string => {- if (extractUserId(issueComment.creator) !== userStore.systemBotUser?.email) {- return verb;- }- return t("activity.sentence.xxx-automatically", {- verb,- });-};--type VerbTypeTarget = {- issueComment: IssueComment;- verb: RenderedContent;- type: RenderedContent;- target?: RenderedContent;-};--const renderVerbTypeTarget = (params: VerbTypeTarget, props: object = {}) => {- const keypath =- extractUserId(params.issueComment.creator) ===- userStore.systemBotUser?.email- ? "dynamic.activity.sentence.verb-type-target-by-system-bot"- : "dynamic.activity.sentence.verb-type-target-by-people";- return (- <Translation {...props} keypath={keypath}>- {{- verb: () => params.verb,- type: () => params.type,- target: () => params.target,- }}- </Translation>- );-};-const Renderer = defineComponent({name: "ActionSentenceRenderer",render: () => <span>{renderActionSentence()}</span>,diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/common.ts b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/common.tsindex 69b391c9d5..4b6fc371c6 100644--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/common.ts+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/common.ts@@ -17,24 +17,18 @@ export const isSimilarIssueComment = (return false;}- if (aType === IssueCommentType.TASK_UPDATE) {- const fromTaskUpdate =- a.event?.case === "taskUpdate" ? a.event.value : null;- const toTaskUpdate = b.event?.case === "taskUpdate" ? b.event.value : null;- if (!fromTaskUpdate || !toTaskUpdate) {+ if (aType === IssueCommentType.PLAN_SPEC_UPDATE) {+ const fromPlanSpecUpdate =+ a.event?.case === "planSpecUpdate" ? a.event.value : null;+ const toPlanSpecUpdate =+ b.event?.case === "planSpecUpdate" ? b.event.value : null;+ if (!fromPlanSpecUpdate || !toPlanSpecUpdate) {return false;}- // Group task updates by status or sheet changes, regardless of specific task IDs- // This allows grouping of "completed Task d1", "completed Task d2", etc.+ // Group plan spec updates by sheet changesif (- fromTaskUpdate.toSheet &&- fromTaskUpdate.toSheet === toTaskUpdate.toSheet- ) {- return true;- }- if (- fromTaskUpdate.toStatus &&- fromTaskUpdate.toStatus === toTaskUpdate.toStatus+ fromPlanSpecUpdate.toSheet &&+ fromPlanSpecUpdate.toSheet === toPlanSpecUpdate.toSheet) {return true;}diff --git a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/ActionIcon.vue b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/ActionIcon.vueindex d31a7d706d..bf9b801754 100644--- a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/ActionIcon.vue+++ b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/ActionIcon.vue@@ -53,10 +53,7 @@ import {useUserStore,} from "@/store";import type { IssueComment } from "@/types/proto-es/v1/issue_service_pb";-import {- IssueComment_Approval_Status,- IssueComment_TaskUpdate_Status,-} from "@/types/proto-es/v1/issue_service_pb";+import { IssueComment_Approval_Status } from "@/types/proto-es/v1/issue_service_pb";type ActionIconType =| "avatar"@@ -189,33 +186,6 @@ const iconType = computed((): ActionIconType => {}}- if (commentType === IssueCommentType.STAGE_END) {- return "complete";- }-- if (- commentType === IssueCommentType.TASK_UPDATE &&- issueComment.event?.case === "taskUpdate"- ) {- const { toStatus } = issueComment.event.value;- if (toStatus !== undefined) {- const statusToIcon: Record<- IssueComment_TaskUpdate_Status,- ActionIconType- > = {- [IssueComment_TaskUpdate_Status.STATUS_UNSPECIFIED]: "update",- [IssueComment_TaskUpdate_Status.PENDING]: "rollout",- [IssueComment_TaskUpdate_Status.RUNNING]: "run",- [IssueComment_TaskUpdate_Status.DONE]: "complete",- [IssueComment_TaskUpdate_Status.FAILED]: "fail",- [IssueComment_TaskUpdate_Status.SKIPPED]: "skip",- [IssueComment_TaskUpdate_Status.CANCELED]: "cancel",- };- return statusToIcon[toStatus] ?? "update";- }- return "update";- }-if (commentType === IssueCommentType.ISSUE_UPDATE &&issueComment.event?.case === "issueUpdate"@@ -232,11 +202,8 @@ const iconType = computed((): ActionIconType => {}}- if (- commentType === IssueCommentType.TASK_PRIOR_BACKUP &&- issueComment.event?.case === "taskPriorBackup"- ) {- return issueComment.event.value.error !== "" ? "fail" : "complete";+ if (commentType === IssueCommentType.PLAN_SPEC_UPDATE) {+ return "update";}return extractUserId(issueComment.creator) === userStore.systemBotUser?.emaildiff --git a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/ActionSentence.vue b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/ActionSentence.vueindex d63f3758f9..d25b272296 100644--- a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/ActionSentence.vue+++ b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/ActionSentence.vue@@ -3,10 +3,8 @@</template><script lang="tsx" setup>-import type { h } from "vue";import { defineComponent } from "vue";import { Translation, useI18n } from "vue-i18n";-import { usePlanContext } from "@/components/Plan/logic";import {extractUserId,getIssueCommentType,@@ -16,24 +14,29 @@ import {import type { IssueComment } from "@/types/proto-es/v1/issue_service_pb";import {IssueComment_Approval_Status,- IssueComment_TaskUpdate_Status,IssueStatus,} from "@/types/proto-es/v1/issue_service_pb";-import { findStageByName, findTaskByName } from "@/utils";-import StageName from "./StageName.vue";import StatementUpdate from "./StatementUpdate.vue";-import TaskName from "./TaskName.vue";--type RenderedContent = string | ReturnType<typeof h>;const props = defineProps<{issueComment: IssueComment;}>();-const { plan, rollout } = usePlanContext();const { t } = useI18n();const userStore = useUserStore();+const maybeAutomaticallyVerb = (+ issueComment: IssueComment,+ verb: string+): string => {+ if (extractUserId(issueComment.creator) !== userStore.systemBotUser?.email) {+ return verb;+ }+ return t("activity.sentence.xxx-automatically", {+ verb,+ });+};+const renderActionSentence = () => {const { issueComment } = props;const commentType = getIssueCommentType(issueComment);@@ -87,72 +90,11 @@ const renderActionSentence = () => {return t("activity.sentence.changed-labels");}} else if (- commentType === IssueCommentType.STAGE_END &&- issueComment.event?.case === "stageEnd"+ commentType === IssueCommentType.PLAN_SPEC_UPDATE &&+ issueComment.event?.case === "planSpecUpdate") {- const { stage } = issueComment.event.value;- const stageEntity = rollout.value- ? findStageByName(rollout.value, stage)- : undefined;- const params: VerbTypeTarget = {- issueComment,- type: t("common.stage"),- target: stageEntity ? <StageName stage={stageEntity} /> : "",- verb: t("activity.sentence.completed"),- };- return renderVerbTypeTarget(params);- } else if (- commentType === IssueCommentType.TASK_UPDATE &&- issueComment.event?.case === "taskUpdate"- ) {- const { tasks, fromSheet, toSheet, toStatus } = issueComment.event.value;-- if (toStatus !== undefined) {- const params: VerbTypeTarget = {- issueComment,- verb: "",- type: t("common.task"),- target: "",- };- switch (toStatus) {- case IssueComment_TaskUpdate_Status.PENDING: {- params.verb = maybeAutomaticallyVerb(- issueComment,- t("activity.sentence.rolled-out")- );- break;- }- case IssueComment_TaskUpdate_Status.RUNNING: {- params.verb = t("activity.sentence.started");- break;- }- case IssueComment_TaskUpdate_Status.DONE: {- params.verb = t("activity.sentence.completed");- break;- }- case IssueComment_TaskUpdate_Status.FAILED: {- params.verb = t("activity.sentence.failed");- break;- }- case IssueComment_TaskUpdate_Status.CANCELED: {- params.verb = t("activity.sentence.canceled");- break;- }- case IssueComment_TaskUpdate_Status.SKIPPED: {- params.verb = t("activity.sentence.skipped");- break;- }- default:- params.verb = t("activity.sentence.changed");- }- const taskEntities = rollout.value- ? tasks.map((task) => findTaskByName(rollout.value!, task))- : [];- if (taskEntities.length > 0 && taskEntities[0]) {- params.target = <TaskName plan={plan.value} task={taskEntities[0]} />;- }- return renderVerbTypeTarget(params);- } else if (fromSheet !== undefined && toSheet !== undefined) {+ const { fromSheet, toSheet } = issueComment.event.value;+ if (fromSheet !== undefined && toSheet !== undefined) {return (<Translation keypath="dynamic.activity.sentence.changed-x-link">{{@@ -164,88 +106,10 @@ const renderActionSentence = () => {</Translation>);}- } else if (- commentType === IssueCommentType.TASK_PRIOR_BACKUP &&- issueComment.event?.case === "taskPriorBackup"- ) {- const { task, tables, originalLine, database, error } =- issueComment.event.value;- if (error) {- return t("activity.sentence.failed-to-backup", { error });- }-- const taskEntity = rollout.value- ? findTaskByName(rollout.value, task)- : undefined;- let verb = t("activity.sentence.prior-back-table", {- database: database.length > 0 ? database : "bbdataarchive",- tables: tables- .map((table) =>- table.schema ? `${table.schema}.${table.table}` : table.table- )- .join(", "),- });- if (originalLine) {- verb = t("activity.sentence.prior-back-table-for-line", {- database: database.length > 0 ? database : "bbdataarchive",- tables: tables- .map((table) =>- table.schema ? `${table.schema}.${table.table}` : table.table- )- .join(", "),- line: originalLine,- });- }- const params: VerbTypeTarget = {- issueComment,- verb: verb,- type: t("common.task"),- target: "",- };- if (task && taskEntity) {- params.target = <TaskName plan={plan.value} task={taskEntity} />;- }- return renderVerbTypeTarget(params);}return "";};-const maybeAutomaticallyVerb = (- issueComment: IssueComment,- verb: string-): string => {- if (extractUserId(issueComment.creator) !== userStore.systemBotUser?.email) {- return verb;- }- return t("activity.sentence.xxx-automatically", {- verb,- });-};--type VerbTypeTarget = {- issueComment: IssueComment;- verb: RenderedContent;- type: RenderedContent;- target?: RenderedContent;-};--const renderVerbTypeTarget = (params: VerbTypeTarget, props: object = {}) => {- const keypath =- extractUserId(params.issueComment.creator) ===- userStore.systemBotUser?.email- ? "dynamic.activity.sentence.verb-type-target-by-system-bot"- : "dynamic.activity.sentence.verb-type-target-by-people";- return (- <Translation {...props} keypath={keypath}>- {{- verb: () => params.verb,- type: () => params.type,- target: () => params.target,- }}- </Translation>- );-};-const Renderer = defineComponent({name: "ActionSentenceRenderer",render: () => <span>{renderActionSentence()}</span>,diff --git a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/common.ts b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/common.tsindex 1752b2ca03..f6b7ecb88c 100644--- a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/common.ts+++ b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/IssueCommentView/common.ts@@ -7,23 +7,18 @@ export interface DistinctIssueComment {similar: IssueComment[];}-const isSimilarTaskUpdate = (a: IssueComment, b: IssueComment): boolean => {- const fromTaskUpdate = a.event?.case === "taskUpdate" ? a.event.value : null;- const toTaskUpdate = b.event?.case === "taskUpdate" ? b.event.value : null;- if (!fromTaskUpdate || !toTaskUpdate) {+const isSimilarPlanSpecUpdate = (a: IssueComment, b: IssueComment): boolean => {+ const fromPlanSpecUpdate =+ a.event?.case === "planSpecUpdate" ? a.event.value : null;+ const toPlanSpecUpdate =+ b.event?.case === "planSpecUpdate" ? b.event.value : null;+ if (!fromPlanSpecUpdate || !toPlanSpecUpdate) {return false;}- // Group task updates by status or sheet changes, regardless of specific task IDs- // This allows grouping of "completed Task d1", "completed Task d2", etc.+ // Group plan spec updates by sheet changesif (- fromTaskUpdate.toSheet &&- fromTaskUpdate.toSheet === toTaskUpdate.toSheet- ) {- return true;- }- if (- fromTaskUpdate.toStatus &&- fromTaskUpdate.toStatus === toTaskUpdate.toStatus+ fromPlanSpecUpdate.toSheet &&+ fromPlanSpecUpdate.toSheet === toPlanSpecUpdate.toSheet) {return true;}@@ -64,8 +59,8 @@ export const isSimilarIssueComment = (return false;}- if (aType === IssueCommentType.TASK_UPDATE) {- return isSimilarTaskUpdate(a, b);+ if (aType === IssueCommentType.PLAN_SPEC_UPDATE) {+ return isSimilarPlanSpecUpdate(a, b);}if (aType === IssueCommentType.ISSUE_UPDATE) {return isSimilarIssueUpdate(a, b);diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 6d7ddc896f..e740bb9120 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -907,17 +907,7 @@"reopened-issue": "reopened issue","resolved-issue": "resolved issue","canceled-issue": "canceled issue",- "changed": "changed",- "canceled": "canceled",- "started": "started",- "completed": "completed",- "failed": "failed",- "skipped": "skipped",- "rolled-out": "rolled out",- "xxx-automatically": "{verb} automatically",- "failed-to-backup": "Failed to backup data: {error}",- "prior-back-table": "Data backup to database {database} and tables {tables}",- "prior-back-table-for-line": "Data backup to database {database} and table {tables} for DML in line {line}"+ "xxx-automatically": "{verb} automatically"},"n-similar-activities": "({count} similar activity) | ({count} similar activities)"},diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex a8a421b1c9..3c3626757d 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -907,17 +907,7 @@"reopened-issue": "incidencia reabierta","resolved-issue": "incidencia resuelta","canceled-issue": "incidencia cancelada",- "changed": "cambio",- "canceled": "cancelado",- "started": "iniciado",- "completed": "completado",- "failed": "fallido",- "skipped": "omitido",- "rolled-out": "implementado",- "xxx-automatically": "{verb} automáticamente",- "failed-to-backup": "No se pudo realizar la copia de seguridad de los datos: {error}",- "prior-back-table": "Copia de seguridad de datos en la base de datos {database} y tablas {tables}",- "prior-back-table-for-line": "Copia de seguridad de datos en la base de datos {database} y la tabla {tables} para DML en la línea {line}"+ "xxx-automatically": "{verb} automáticamente"},"n-similar-activities": "({count} actividad similar) | ({count} actividades similares)"},diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex b9d9b1fae7..dabbaa9b27 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -907,17 +907,7 @@"reopened-issue": "イシューを再開する","resolved-issue": "イシューを完了する","canceled-issue": "イシューをキャンセルする",- "changed": "改訂",- "canceled": "キャンセル",- "started": "始める",- "completed": "仕上げる",- "failed": "失敗",- "skipped": "飛び越える",- "rolled-out": "リリース",- "xxx-automatically": "自動{verb}",- "failed-to-backup": "データのバックアップに失敗しました: {error}",- "prior-back-table": "データベース {database} のテーブル {tables} にバックアップされました",- "prior-back-table-for-line": "DML のデータベース {database} とテーブル {tables} の行 {line} へのデータのバックアップ"+ "xxx-automatically": "自動{verb}"},"n-similar-activities": "({count} 件の同様のイベント)"},diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex ed71a20ce6..ce7e6eccc4 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -907,17 +907,7 @@"reopened-issue": "đã mở lại vấn đề","resolved-issue": "đã giải quyết vấn đề","canceled-issue": "đã hủy vấn đề",- "changed": "đã thay đổi",- "canceled": "đã hủy",- "started": "đã bắt đầu",- "completed": "đã hoàn thành",- "failed": "đã thất bại",- "skipped": "đã bỏ qua",- "rolled-out": "đã triển khai",- "xxx-automatically": "{verb} tự động",- "failed-to-backup": "Không thể sao lưu dữ liệu: {error}",- "prior-back-table": "Sao lưu dữ liệu vào cơ sở dữ liệu {database} và các bảng {tables}",- "prior-back-table-for-line": "Sao lưu dữ liệu vào cơ sở dữ liệu {database} và bảng {tables} cho DML ở dòng {line}"+ "xxx-automatically": "{verb} tự động"},"n-similar-activities": "({count} hoạt động tương tự) | ({count} hoạt động tương tự)"},diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 77517be4fd..02ceded493 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -907,17 +907,7 @@"reopened-issue": "重开工单","resolved-issue": "完成工单","canceled-issue": "取消工单",- "changed": "修改",- "canceled": "取消",- "started": "开始",- "completed": "完成",- "failed": "失败",- "skipped": "跳过",- "rolled-out": "发布",- "xxx-automatically": "自动{verb}",- "failed-to-backup": "数据备份失败:{error}",- "prior-back-table": "已备份到数据库 {database} 中表 {tables}",- "prior-back-table-for-line": "数据备份到数据库 {database} 和表 {tables},用于第 {line} 行的DML"+ "xxx-automatically": "自动{verb}"},"n-similar-activities": "({count} 个相似的活动)"},diff --git a/frontend/src/store/modules/v1/issueComment.ts b/frontend/src/store/modules/v1/issueComment.tsindex bc4a85d50c..f483d0b29a 100644--- a/frontend/src/store/modules/v1/issueComment.ts+++ b/frontend/src/store/modules/v1/issueComment.ts@@ -22,9 +22,7 @@ export enum IssueCommentType {USER_COMMENT = "USER_COMMENT",APPROVAL = "APPROVAL",ISSUE_UPDATE = "ISSUE_UPDATE",- STAGE_END = "STAGE_END",- TASK_UPDATE = "TASK_UPDATE",- TASK_PRIOR_BACKUP = "TASK_PRIOR_BACKUP",+ PLAN_SPEC_UPDATE = "PLAN_SPEC_UPDATE",}export const getIssueCommentType = (@@ -34,12 +32,8 @@ export const getIssueCommentType = (return IssueCommentType.APPROVAL;} else if (issueComment.event?.case === "issueUpdate") {return IssueCommentType.ISSUE_UPDATE;- } else if (issueComment.event?.case === "stageEnd") {- return IssueCommentType.STAGE_END;- } else if (issueComment.event?.case === "taskUpdate") {- return IssueCommentType.TASK_UPDATE;- } else if (issueComment.event?.case === "taskPriorBackup") {- return IssueCommentType.TASK_PRIOR_BACKUP;+ } else if (issueComment.event?.case === "planSpecUpdate") {+ return IssueCommentType.PLAN_SPEC_UPDATE;}return IssueCommentType.USER_COMMENT;};diff --git a/frontend/src/types/proto-es/v1/issue_service_pb.d.ts b/frontend/src/types/proto-es/v1/issue_service_pb.d.tsindex 23e2a8c3f8..0b31911bab 100644--- a/frontend/src/types/proto-es/v1/issue_service_pb.d.ts+++ b/frontend/src/types/proto-es/v1/issue_service_pb.d.ts@@ -1028,28 +1028,12 @@ export declare type IssueComment = Message<"bytebase.v1.IssueComment"> & {case: "issueUpdate";} | {/**- * Stage end event.+ * Plan spec update event.*- * @generated from field: bytebase.v1.IssueComment.StageEnd stage_end = 9;+ * @generated from field: bytebase.v1.IssueComment.PlanSpecUpdate plan_spec_update = 12;*/- value: IssueComment_StageEnd;- case: "stageEnd";- } | {- /**- * Task update event.- *- * @generated from field: bytebase.v1.IssueComment.TaskUpdate task_update = 10;- */- value: IssueComment_TaskUpdate;- case: "taskUpdate";- } | {- /**- * Task prior backup event.- *- * @generated from field: bytebase.v1.IssueComment.TaskPriorBackup task_prior_backup = 11;- */- value: IssueComment_TaskPriorBackup;- case: "taskPriorBackup";+ value: IssueComment_PlanSpecUpdate;+ case: "planSpecUpdate";} | { case: undefined; value?: undefined };};@@ -1173,39 +1157,21 @@ export declare type IssueComment_IssueUpdate = Message<"bytebase.v1.IssueCommentexport declare const IssueComment_IssueUpdateSchema: GenMessage<IssueComment_IssueUpdate>;/**- * Stage end event information.+ * Plan spec update event information (tracks sheet changes to plan specs).*- * @generated from message bytebase.v1.IssueComment.StageEnd+ * @generated from message bytebase.v1.IssueComment.PlanSpecUpdate*/-export declare type IssueComment_StageEnd = Message<"bytebase.v1.IssueComment.StageEnd"> & {+export declare type IssueComment_PlanSpecUpdate = Message<"bytebase.v1.IssueComment.PlanSpecUpdate"> & {/**- * The stage that ended.+ * The spec that was updated.+ * Format: projects/{project}/plans/{plan}/specs/{spec}*- * @generated from field: string stage = 1;+ * @generated from field: string spec = 1;*/- stage: string;-};--/**- * Describes the message bytebase.v1.IssueComment.StageEnd.- * Use `create(IssueComment_StageEndSchema)` to create a new message.- */-export declare const IssueComment_StageEndSchema: GenMessage<IssueComment_StageEnd>;--/**- * Task update event information.- *- * @generated from message bytebase.v1.IssueComment.TaskUpdate- */-export declare type IssueComment_TaskUpdate = Message<"bytebase.v1.IssueComment.TaskUpdate"> & {- /**- * The tasks that were updated.- *- * @generated from field: repeated string tasks = 1;- */- tasks: string[];+ spec: string;/**+ * The previous sheet.* Format: projects/{project}/sheets/{sheet}** @generated from field: optional string from_sheet = 2;@@ -1213,159 +1179,19 @@ export declare type IssueComment_TaskUpdate = Message<"bytebase.v1.IssueComment.fromSheet?: string;/**+ * The new sheet.* Format: projects/{project}/sheets/{sheet}** @generated from field: optional string to_sheet = 3;*/toSheet?: string;-- /**- * @generated from field: optional bytebase.v1.IssueComment.TaskUpdate.Status to_status = 6;- */- toStatus?: IssueComment_TaskUpdate_Status;-};--/**- * Describes the message bytebase.v1.IssueComment.TaskUpdate.- * Use `create(IssueComment_TaskUpdateSchema)` to create a new message.- */-export declare const IssueComment_TaskUpdateSchema: GenMessage<IssueComment_TaskUpdate>;--/**- * Task status values.- *- * @generated from enum bytebase.v1.IssueComment.TaskUpdate.Status- */-export enum IssueComment_TaskUpdate_Status {- /**- * Unspecified status.- *- * @generated from enum value: STATUS_UNSPECIFIED = 0;- */- STATUS_UNSPECIFIED = 0,-- /**- * Task is pending.- *- * @generated from enum value: PENDING = 1;- */- PENDING = 1,-- /**- * Task is running.- *- * @generated from enum value: RUNNING = 2;- */- RUNNING = 2,-- /**- * Task is done.- *- * @generated from enum value: DONE = 3;- */- DONE = 3,-- /**- * Task failed.- *- * @generated from enum value: FAILED = 4;- */- FAILED = 4,-- /**- * Task was skipped.- *- * @generated from enum value: SKIPPED = 5;- */- SKIPPED = 5,-- /**- * Task was canceled.- *- * @generated from enum value: CANCELED = 6;- */- CANCELED = 6,-}--/**- * Describes the enum bytebase.v1.IssueComment.TaskUpdate.Status.- */-export declare const IssueComment_TaskUpdate_StatusSchema: GenEnum<IssueComment_TaskUpdate_Status>;--/**- * Task prior backup event information.- *- * @generated from message bytebase.v1.IssueComment.TaskPriorBackup- */-export declare type IssueComment_TaskPriorBackup = Message<"bytebase.v1.IssueComment.TaskPriorBackup"> & {- /**- * The task for which backup was performed.- *- * @generated from field: string task = 1;- */- task: string;-- /**- * The tables that were backed up.- *- * @generated from field: repeated bytebase.v1.IssueComment.TaskPriorBackup.Table tables = 2;- */- tables: IssueComment_TaskPriorBackup_Table[];-- /**- * The original line number in the statement.- *- * @generated from field: optional int32 original_line = 3;- */- originalLine?: number;-- /**- * The database that was backed up.- *- * @generated from field: string database = 4;- */- database: string;-- /**- * Error message if backup failed.- *- * @generated from field: string error = 5;- */- error: string;-};--/**- * Describes the message bytebase.v1.IssueComment.TaskPriorBackup.- * Use `create(IssueComment_TaskPriorBackupSchema)` to create a new message.- */-export declare const IssueComment_TaskPriorBackupSchema: GenMessage<IssueComment_TaskPriorBackup>;--/**- * Table identification.- *- * @generated from message bytebase.v1.IssueComment.TaskPriorBackup.Table- */-export declare type IssueComment_TaskPriorBackup_Table = Message<"bytebase.v1.IssueComment.TaskPriorBackup.Table"> & {- /**- * The schema name.- *- * @generated from field: string schema = 1;- */- schema: string;-- /**- * The table name.- *- * @generated from field: string table = 2;- */- table: string;};/**- * Describes the message bytebase.v1.IssueComment.TaskPriorBackup.Table.- * Use `create(IssueComment_TaskPriorBackup_TableSchema)` to create a new message.+ * Describes the message bytebase.v1.IssueComment.PlanSpecUpdate.+ * Use `create(IssueComment_PlanSpecUpdateSchema)` to create a new message.*/-export declare const IssueComment_TaskPriorBackup_TableSchema: GenMessage<IssueComment_TaskPriorBackup_Table>;+export declare const IssueComment_PlanSpecUpdateSchema: GenMessage<IssueComment_PlanSpecUpdate>;/*** The status of an issue.diff --git a/frontend/src/types/proto-es/v1/issue_service_pb.js b/frontend/src/types/proto-es/v1/issue_service_pb.jsindex 8aedf74180..5a411d22dd 100644--- a/frontend/src/types/proto-es/v1/issue_service_pb.js+++ b/frontend/src/types/proto-es/v1/issue_service_pb.js@@ -17,7 +17,7 @@ import { file_v1_common } from "./common_pb";* Describes the file v1/issue_service.proto.*/export const file_v1_issue_service = /*@__PURE__*/- fileDesc("ChZ2M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dGF0dXNSZXF1ZXN0GiwuYnl0ZWJhc2UudjEuQmF0Y2hVcGRhdGVJc3N1ZXNTdGF0dXNSZXNwb25zZSJXiuowEGJiLmlzc3Vlcy51cGRhdGWQ6jABmOowAYLT5JMCNToBKiIwL3YxL3twYXJlbnQ9cHJvamVjdHMvKn0vaXNzdWVzOmJhdGNoVXBkYXRlU3RhdHVzEn8KDEFwcHJvdmVJc3N1ZRIgLmJ5dGViYXNlLnYxLkFwcHJvdmVJc3N1ZVJlcXVlc3QaEi5ieXRlYmFzZS52MS5Jc3N1ZSI5kOowApjqMAGC0+STAis6ASoiJi92MS97bmFtZT1wcm9qZWN0cy8qL2lzc3Vlcy8qfTphcHByb3ZlEnwKC1JlamVjdElzc3VlEh8uYnl0ZWJhc2UudjEuUmVqZWN0SXNzdWVSZXF1ZXN0GhIuYnl0ZWJhc2UudjEuSXNzdWUiOJDqMAKY6jABgtPkkwIqOgEqIiUvdjEve25hbWU9cHJvamVjdHMvKi9pc3N1ZXMvKn06cmVqZWN0En8KDFJlcXVlc3RJc3N1ZRIgLmJ5dGViYXNlLnYxLlJlcXVlc3RJc3N1ZVJlcXVlc3QaEi5ieXRlYmFzZS52MS5Jc3N1ZSI5kOowApjqMAGC0+STAis6ASoiJi92MS97bmFtZT1wcm9qZWN0cy8qL2lzc3Vlcy8qfTpyZXF1ZXN0QqcBCg9jb20uYnl0ZWJhc2UudjFCEUlzc3VlU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file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y8qL2lzc3Vlcy8qfTpyZXF1ZXN0QqcBCg9jb20uYnl0ZWJhc2UudjFCEUlzc3VlU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_duration, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_google_type_expr, file_v1_annotation, file_v1_common]);/*** Describes the message bytebase.v1.GetIssueRequest.@@ -244,47 +244,12 @@ export const IssueComment_IssueUpdateSchema = /*@__PURE__*/messageDesc(file_v1_issue_service, 20, 1);/**- * Describes the message bytebase.v1.IssueComment.StageEnd.- * Use `create(IssueComment_StageEndSchema)` to create a new message.+ * Describes the message bytebase.v1.IssueComment.PlanSpecUpdate.+ * Use `create(IssueComment_PlanSpecUpdateSchema)` to create a new message.*/-export const IssueComment_StageEndSchema = /*@__PURE__*/+export const IssueComment_PlanSpecUpdateSchema = /*@__PURE__*/messageDesc(file_v1_issue_service, 20, 2);-/**- * Describes the message bytebase.v1.IssueComment.TaskUpdate.- * Use `create(IssueComment_TaskUpdateSchema)` to create a new message.- */-export const IssueComment_TaskUpdateSchema = /*@__PURE__*/- messageDesc(file_v1_issue_service, 20, 3);--/**- * Describes the enum bytebase.v1.IssueComment.TaskUpdate.Status.- */-export const IssueComment_TaskUpdate_StatusSchema = /*@__PURE__*/- enumDesc(file_v1_issue_service, 20, 3, 0);--/**- * Task status values.- *- * @generated from enum bytebase.v1.IssueComment.TaskUpdate.Status- */-export const IssueComment_TaskUpdate_Status = /*@__PURE__*/- tsEnum(IssueComment_TaskUpdate_StatusSchema);--/**- * Describes the message bytebase.v1.IssueComment.TaskPriorBackup.- * Use `create(IssueComment_TaskPriorBackupSchema)` to create a new message.- */-export const IssueComment_TaskPriorBackupSchema = /*@__PURE__*/- messageDesc(file_v1_issue_service, 20, 4);--/**- * Describes the message bytebase.v1.IssueComment.TaskPriorBackup.Table.- * Use `create(IssueComment_TaskPriorBackup_TableSchema)` to create a new message.- */-export const IssueComment_TaskPriorBackup_TableSchema = /*@__PURE__*/- messageDesc(file_v1_issue_service, 20, 4, 0);-/*** Describes the enum bytebase.v1.IssueStatus.*/diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex bdb114200a..ec29aa68a8 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -11024,18 +11024,10 @@ components:allOf:- $ref: '#/components/schemas/IssueComment_IssueUpdate'description: Issue update event.- stageEnd:+ planSpecUpdate:allOf:- - $ref: '#/components/schemas/IssueComment_StageEnd'- description: Stage end event.- taskUpdate:- allOf:- - $ref: '#/components/schemas/IssueComment_TaskUpdate'- description: Task update event.- taskPriorBackup:- allOf:- - $ref: '#/components/schemas/IssueComment_TaskPriorBackup'- description: Task prior backup event.+ - $ref: '#/components/schemas/IssueComment_PlanSpecUpdate'+ description: Plan spec update event.description: A comment on an issue.IssueComment_Approval:type: object@@ -11086,61 +11078,25 @@ components:items:type: stringdescription: Issue update event information.- IssueComment_StageEnd:- type: object- properties:- stage:- type: string- description: The stage that ended.- description: Stage end event information.- IssueComment_TaskPriorBackup:+ IssueComment_PlanSpecUpdate:type: objectproperties:- task:- type: string- description: The task for which backup was performed.- tables:- type: array- items:- $ref: '#/components/schemas/TaskPriorBackup_Table'- description: The tables that were backed up.- originalLine:- type: integer- description: The original line number in the statement.- format: int32- database:- type: string- description: The database that was backed up.- error:+ spec:type: string- description: Error message if backup failed.- description: Task prior backup event information.- IssueComment_TaskUpdate:- type: object- properties:- tasks:- type: array- items:- type: string- description: The tasks that were updated.+ description: |-+ The spec that was updated.+ Format: projects/{project}/plans/{plan}/specs/{spec}fromSheet:type: string- description: 'Format: projects/{project}/sheets/{sheet}'+ description: |-+ The previous sheet.+ Format: projects/{project}/sheets/{sheet}toSheet:type: string- description: 'Format: projects/{project}/sheets/{sheet}'- toStatus:- enum:- - STATUS_UNSPECIFIED- - PENDING- - RUNNING- - DONE- - FAILED- - SKIPPED- - CANCELED- type: string- format: enum- description: Task update event information.+ description: |-+ The new sheet.+ Format: projects/{project}/sheets/{sheet}+ description: Plan spec update event information (tracks sheet changes to plan specs).Issue_Approver:type: objectproperties:@@ -14568,16 +14524,6 @@ components:definition:type: stringdescription: The definition of the task.- TaskPriorBackup_Table:- type: object- properties:- schema:- type: string- description: The schema name.- table:- type: string- description: The table name.- description: Table identification.TaskRun:type: objectproperties:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex d1e2a70c17..a106d57d51 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -146,25 +146,11 @@- [Issue.Status](#bytebase-store-Issue-Status)- [Issue.Type](#bytebase-store-Issue-Type)-- [store/task_run.proto](#store_task_run-proto)- - [PriorBackupDetail](#bytebase-store-PriorBackupDetail)- - [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item)- - [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table)- - [SchedulerInfo](#bytebase-store-SchedulerInfo)- - [SchedulerInfo.WaitingCause](#bytebase-store-SchedulerInfo-WaitingCause)- - [TaskRun](#bytebase-store-TaskRun)- - [TaskRunResult](#bytebase-store-TaskRunResult)-- - [TaskRun.Status](#bytebase-store-TaskRun-Status)-- [store/issue_comment.proto](#store_issue_comment-proto)- [IssueCommentPayload](#bytebase-store-IssueCommentPayload)- [IssueCommentPayload.Approval](#bytebase-store-IssueCommentPayload-Approval)- [IssueCommentPayload.IssueUpdate](#bytebase-store-IssueCommentPayload-IssueUpdate)- - [IssueCommentPayload.StageEnd](#bytebase-store-IssueCommentPayload-StageEnd)- - [IssueCommentPayload.TaskPriorBackup](#bytebase-store-IssueCommentPayload-TaskPriorBackup)- - [IssueCommentPayload.TaskPriorBackup.Table](#bytebase-store-IssueCommentPayload-TaskPriorBackup-Table)- - [IssueCommentPayload.TaskUpdate](#bytebase-store-IssueCommentPayload-TaskUpdate)+ - [IssueCommentPayload.PlanSpecUpdate](#bytebase-store-IssueCommentPayload-PlanSpecUpdate)- [store/oauth2.proto](#store_oauth2-proto)- [OAuth2AuthorizationCodeConfig](#bytebase-store-OAuth2AuthorizationCodeConfig)@@ -303,6 +289,17 @@- [Task.Type](#bytebase-store-Task-Type)+- [store/task_run.proto](#store_task_run-proto)+ - [PriorBackupDetail](#bytebase-store-PriorBackupDetail)+ - [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item)+ - [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table)+ - [SchedulerInfo](#bytebase-store-SchedulerInfo)+ - [SchedulerInfo.WaitingCause](#bytebase-store-SchedulerInfo-WaitingCause)+ - [TaskRun](#bytebase-store-TaskRun)+ - [TaskRunResult](#bytebase-store-TaskRunResult)++ - [TaskRun.Status](#bytebase-store-TaskRun-Status)+- [store/task_run_log.proto](#store_task_run_log-proto)- [TaskRunLog](#bytebase-store-TaskRunLog)- [TaskRunLog.CommandExecute](#bytebase-store-TaskRunLog-CommandExecute)@@ -2634,154 +2631,6 @@ Type represents the category of issue.-<a name="store_task_run-proto"></a>-<p align="right"><a href="#top">Top</a></p>--## store/task_run.proto----<a name="bytebase-store-PriorBackupDetail"></a>--### PriorBackupDetail-PriorBackupDetail contains information about automatic backups created before migration.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| items | [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item) | repeated | List of backup operations performed. |-------<a name="bytebase-store-PriorBackupDetail-Item"></a>--### PriorBackupDetail.Item-Item represents a single backup operation for a table.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| source_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The original table that was backed up. |-| target_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The backup table where data was copied. |-| start_position | [Position](#bytebase-store-Position) | | Starting position in SQL for this backup operation. |-| end_position | [Position](#bytebase-store-Position) | | Ending position in SQL for this backup operation. |-------<a name="bytebase-store-PriorBackupDetail-Item-Table"></a>--### PriorBackupDetail.Item.Table-Table identifies a database table.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| database | [string](#string) | | The database containing the table. Format: instances/{instance}/databases/{database} |-| schema | [string](#string) | | Schema name (for databases that support schemas). |-| table | [string](#string) | | Table name. |-------<a name="bytebase-store-SchedulerInfo"></a>--### SchedulerInfo-SchedulerInfo contains information about task scheduling and execution delays.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| report_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Timestamp when the scheduler reported this information. |-| waiting_cause | [SchedulerInfo.WaitingCause](#bytebase-store-SchedulerInfo-WaitingCause) | | Reason why the task run is currently waiting. |-------<a name="bytebase-store-SchedulerInfo-WaitingCause"></a>--### SchedulerInfo.WaitingCause-WaitingCause indicates why a task run is waiting to execute.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| connection_limit | [bool](#bool) | | Task is waiting due to database connection limit. |-| task_uid | [int32](#int32) | | Task is waiting for another task to complete. |-| parallel_tasks_limit | [bool](#bool) | | Task is waiting due to parallel execution limit. |-------<a name="bytebase-store-TaskRun"></a>--### TaskRun-TaskRun represents an execution attempt of a task.-------<a name="bytebase-store-TaskRunResult"></a>--### TaskRunResult-TaskRunResult contains the outcome and metadata from a task run execution.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| detail | [string](#string) | | Detailed execution information or error message. |-| version | [string](#string) | | Schema version after the migration was applied. |-| start_position | [Position](#bytebase-store-Position) | | Starting position in the SQL statement where an error occurred. |-| end_position | [Position](#bytebase-store-Position) | | Ending position in the SQL statement where an error occurred. |-| export_archive_uid | [int32](#int32) | | UID of the export archive generated for export tasks. |-| prior_backup_detail | [PriorBackupDetail](#bytebase-store-PriorBackupDetail) | | Backup details that can be used to rollback changes. |-| changelog | [string](#string) | | Resource name of the changelog entry created by this run. Format: instances/{instance}/databases/{database}/changelogs/{changelog} |---------<a name="bytebase-store-TaskRun-Status"></a>--### TaskRun.Status-Status represents the current execution state of a task run.--| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | |-| PENDING | 1 | Task run is queued and waiting to execute. |-| RUNNING | 2 | Task run is currently executing. |-| DONE | 3 | Task run completed successfully. |-| FAILED | 4 | Task run encountered an error and failed. |-| CANCELED | 5 | Task run was canceled by user or system. |-| NOT_STARTED | 6 | Task run has not started yet. |-| SKIPPED | 7 | Task run was skipped and will not execute. |----------<a name="store_issue_comment-proto"></a><p align="right"><a href="#top">Top</a></p>@@ -2800,9 +2649,7 @@ Status represents the current execution state of a task run.| comment | [string](#string) | | || approval | [IssueCommentPayload.Approval](#bytebase-store-IssueCommentPayload-Approval) | | || issue_update | [IssueCommentPayload.IssueUpdate](#bytebase-store-IssueCommentPayload-IssueUpdate) | | |-| stage_end | [IssueCommentPayload.StageEnd](#bytebase-store-IssueCommentPayload-StageEnd) | | |-| task_update | [IssueCommentPayload.TaskUpdate](#bytebase-store-IssueCommentPayload-TaskUpdate) | | |-| task_prior_backup | [IssueCommentPayload.TaskPriorBackup](#bytebase-store-IssueCommentPayload-TaskPriorBackup) | | |+| plan_spec_update | [IssueCommentPayload.PlanSpecUpdate](#bytebase-store-IssueCommentPayload-PlanSpecUpdate) | | |@@ -2846,68 +2693,17 @@ Status represents the current execution state of a task run.-<a name="bytebase-store-IssueCommentPayload-StageEnd"></a>--### IssueCommentPayload.StageEnd+<a name="bytebase-store-IssueCommentPayload-PlanSpecUpdate"></a>+### IssueCommentPayload.PlanSpecUpdate+Plan spec update event (tracks sheet changes to plan specs)| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| stage | [string](#string) | | |-------<a name="bytebase-store-IssueCommentPayload-TaskPriorBackup"></a>--### IssueCommentPayload.TaskPriorBackup----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| task | [string](#string) | | |-| tables | [IssueCommentPayload.TaskPriorBackup.Table](#bytebase-store-IssueCommentPayload-TaskPriorBackup-Table) | repeated | |-| original_line | [int32](#int32) | optional | |-| database | [string](#string) | | |-| error | [string](#string) | | |-------<a name="bytebase-store-IssueCommentPayload-TaskPriorBackup-Table"></a>--### IssueCommentPayload.TaskPriorBackup.Table----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | |-| table | [string](#string) | | |-------<a name="bytebase-store-IssueCommentPayload-TaskUpdate"></a>--### IssueCommentPayload.TaskUpdate----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| tasks | [string](#string) | repeated | |+| spec | [string](#string) | | The spec that was updated Format: projects/{project}/plans/{plan}/specs/{spec} || from_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} || to_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |-| to_status | [TaskRun.Status](#bytebase-store-TaskRun-Status) | optional | |@@ -4993,6 +4789,154 @@ Type represents the type of database operation to perform.+<a name="store_task_run-proto"></a>+<p align="right"><a href="#top">Top</a></p>++## store/task_run.proto++++<a name="bytebase-store-PriorBackupDetail"></a>++### PriorBackupDetail+PriorBackupDetail contains information about automatic backups created before migration.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| items | [PriorBackupDetail.Item](#bytebase-store-PriorBackupDetail-Item) | repeated | List of backup operations performed. |+++++++<a name="bytebase-store-PriorBackupDetail-Item"></a>++### PriorBackupDetail.Item+Item represents a single backup operation for a table.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| source_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The original table that was backed up. |+| target_table | [PriorBackupDetail.Item.Table](#bytebase-store-PriorBackupDetail-Item-Table) | | The backup table where data was copied. |+| start_position | [Position](#bytebase-store-Position) | | Starting position in SQL for this backup operation. |+| end_position | [Position](#bytebase-store-Position) | | Ending position in SQL for this backup operation. |+++++++<a name="bytebase-store-PriorBackupDetail-Item-Table"></a>++### PriorBackupDetail.Item.Table+Table identifies a database table.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| database | [string](#string) | | The database containing the table. Format: instances/{instance}/databases/{database} |+| schema | [string](#string) | | Schema name (for databases that support schemas). |+| table | [string](#string) | | Table name. |+++++++<a name="bytebase-store-SchedulerInfo"></a>++### SchedulerInfo+SchedulerInfo contains information about task scheduling and execution delays.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| report_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | Timestamp when the scheduler reported this information. |+| waiting_cause | [SchedulerInfo.WaitingCause](#bytebase-store-SchedulerInfo-WaitingCause) | | Reason why the task run is currently waiting. |+++++++<a name="bytebase-store-SchedulerInfo-WaitingCause"></a>++### SchedulerInfo.WaitingCause+WaitingCause indicates why a task run is waiting to execute.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| connection_limit | [bool](#bool) | | Task is waiting due to database connection limit. |+| task_uid | [int32](#int32) | | Task is waiting for another task to complete. |+| parallel_tasks_limit | [bool](#bool) | | Task is waiting due to parallel execution limit. |+++++++<a name="bytebase-store-TaskRun"></a>++### TaskRun+TaskRun represents an execution attempt of a task.+++++++<a name="bytebase-store-TaskRunResult"></a>++### TaskRunResult+TaskRunResult contains the outcome and metadata from a task run execution.+++| Field | Type | Label | Description |+| ----- | ---- | ----- | ----------- |+| detail | [string](#string) | | Detailed execution information or error message. |+| version | [string](#string) | | Schema version after the migration was applied. |+| start_position | [Position](#bytebase-store-Position) | | Starting position in the SQL statement where an error occurred. |+| end_position | [Position](#bytebase-store-Position) | | Ending position in the SQL statement where an error occurred. |+| export_archive_uid | [int32](#int32) | | UID of the export archive generated for export tasks. |+| prior_backup_detail | [PriorBackupDetail](#bytebase-store-PriorBackupDetail) | | Backup details that can be used to rollback changes. |+| changelog | [string](#string) | | Resource name of the changelog entry created by this run. Format: instances/{instance}/databases/{database}/changelogs/{changelog} |+++++++++<a name="bytebase-store-TaskRun-Status"></a>++### TaskRun.Status+Status represents the current execution state of a task run.++| Name | Number | Description |+| ---- | ------ | ----------- |+| STATUS_UNSPECIFIED | 0 | |+| PENDING | 1 | Task run is queued and waiting to execute. |+| RUNNING | 2 | Task run is currently executing. |+| DONE | 3 | Task run completed successfully. |+| FAILED | 4 | Task run encountered an error and failed. |+| CANCELED | 5 | Task run was canceled by user or system. |+| NOT_STARTED | 6 | Task run has not started yet. |+| SKIPPED | 7 | Task run was skipped and will not execute. |++++++++++<a name="store_task_run_log-proto"></a><p align="right"><a href="#top">Top</a></p>diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex fdc326e8fa..658b32c7f1 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -739,49 +739,6 @@</li>- <li>- <a href="#store%2ftask_run.proto">store/task_run.proto</a>- <ul>-- <li>- <a href="#bytebase.store.PriorBackupDetail"><span class="badge">M</span>PriorBackupDetail</a>- </li>-- <li>- <a href="#bytebase.store.PriorBackupDetail.Item"><span class="badge">M</span>PriorBackupDetail.Item</a>- </li>-- <li>- <a href="#bytebase.store.PriorBackupDetail.Item.Table"><span class="badge">M</span>PriorBackupDetail.Item.Table</a>- </li>-- <li>- <a href="#bytebase.store.SchedulerInfo"><span class="badge">M</span>SchedulerInfo</a>- </li>-- <li>- <a href="#bytebase.store.SchedulerInfo.WaitingCause"><span class="badge">M</span>SchedulerInfo.WaitingCause</a>- </li>-- <li>- <a href="#bytebase.store.TaskRun"><span class="badge">M</span>TaskRun</a>- </li>-- <li>- <a href="#bytebase.store.TaskRunResult"><span class="badge">M</span>TaskRunResult</a>- </li>--- <li>- <a href="#bytebase.store.TaskRun.Status"><span class="badge">E</span>TaskRun.Status</a>- </li>---- </ul>- </li>--<li><a href="#store%2fissue_comment.proto">store/issue_comment.proto</a><ul>@@ -799,19 +756,7 @@</li><li>- <a href="#bytebase.store.IssueCommentPayload.StageEnd"><span class="badge">M</span>IssueCommentPayload.StageEnd</a>- </li>-- <li>- <a href="#bytebase.store.IssueCommentPayload.TaskPriorBackup"><span class="badge">M</span>IssueCommentPayload.TaskPriorBackup</a>- </li>-- <li>- <a href="#bytebase.store.IssueCommentPayload.TaskPriorBackup.Table"><span class="badge">M</span>IssueCommentPayload.TaskPriorBackup.Table</a>- </li>-- <li>- <a href="#bytebase.store.IssueCommentPayload.TaskUpdate"><span class="badge">M</span>IssueCommentPayload.TaskUpdate</a>+ <a href="#bytebase.store.IssueCommentPayload.PlanSpecUpdate"><span class="badge">M</span>IssueCommentPayload.PlanSpecUpdate</a></li>@@ -1387,6 +1332,49 @@</li>+ <li>+ <a href="#store%2ftask_run.proto">store/task_run.proto</a>+ <ul>++ <li>+ <a href="#bytebase.store.PriorBackupDetail"><span class="badge">M</span>PriorBackupDetail</a>+ </li>++ <li>+ <a href="#bytebase.store.PriorBackupDetail.Item"><span class="badge">M</span>PriorBackupDetail.Item</a>+ </li>++ <li>+ <a href="#bytebase.store.PriorBackupDetail.Item.Table"><span class="badge">M</span>PriorBackupDetail.Item.Table</a>+ </li>++ <li>+ <a href="#bytebase.store.SchedulerInfo"><span class="badge">M</span>SchedulerInfo</a>+ </li>++ <li>+ <a href="#bytebase.store.SchedulerInfo.WaitingCause"><span class="badge">M</span>SchedulerInfo.WaitingCause</a>+ </li>++ <li>+ <a href="#bytebase.store.TaskRun"><span class="badge">M</span>TaskRun</a>+ </li>++ <li>+ <a href="#bytebase.store.TaskRunResult"><span class="badge">M</span>TaskRunResult</a>+ </li>+++ <li>+ <a href="#bytebase.store.TaskRun.Status"><span class="badge">E</span>TaskRun.Status</a>+ </li>++++ </ul>+ </li>++<li><a href="#store%2ftask_run_log.proto">store/task_run_log.proto</a><ul>@@ -7886,37 +7874,13 @@ Format: users/{email}. </p></td><div class="file-heading">- <h2 id="store/task_run.proto">store/task_run.proto</h2><a href="#title">Top</a>+ <h2 id="store/issue_comment.proto">store/issue_comment.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.store.PriorBackupDetail">PriorBackupDetail</h3>- <p>PriorBackupDetail contains information about automatic backups created before migration.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>items</td>- <td><a href="#bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</a></td>- <td>repeated</td>- <td><p>List of backup operations performed. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</h3>- <p>Item represents a single backup operation for a table.</p>+ <h3 id="bytebase.store.IssueCommentPayload">IssueCommentPayload</h3>+ <p></p><table class="field-table">@@ -7926,31 +7890,31 @@ Format: users/{email}. </p></td><tbody><tr>- <td>source_table</td>- <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td>+ <td>comment</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The original table that was backed up. </p></td>+ <td><p> </p></td></tr><tr>- <td>target_table</td>- <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td>+ <td>approval</td>+ <td><a href="#bytebase.store.IssueCommentPayload.Approval">IssueCommentPayload.Approval</a></td><td></td>- <td><p>The backup table where data was copied. </p></td>+ <td><p> </p></td></tr><tr>- <td>start_position</td>- <td><a href="#bytebase.store.Position">Position</a></td>+ <td>issue_update</td>+ <td><a href="#bytebase.store.IssueCommentPayload.IssueUpdate">IssueCommentPayload.IssueUpdate</a></td><td></td>- <td><p>Starting position in SQL for this backup operation. </p></td>+ <td><p> </p></td></tr><tr>- <td>end_position</td>- <td><a href="#bytebase.store.Position">Position</a></td>+ <td>plan_spec_update</td>+ <td><a href="#bytebase.store.IssueCommentPayload.PlanSpecUpdate">IssueCommentPayload.PlanSpecUpdate</a></td><td></td>- <td><p>Ending position in SQL for this backup operation. </p></td>+ <td><p> </p></td></tr></tbody>@@ -7960,8 +7924,8 @@ Format: users/{email}. </p></td>- <h3 id="bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</h3>- <p>Table identifies a database table.</p>+ <h3 id="bytebase.store.IssueCommentPayload.Approval">IssueCommentPayload.Approval</h3>+ <p></p><table class="field-table">@@ -7971,25 +7935,10 @@ Format: users/{email}. </p></td><tbody><tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The database containing the table.-Format: instances/{instance}/databases/{database} </p></td>- </tr>-- <tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Schema name (for databases that support schemas). </p></td>- </tr>-- <tr>- <td>table</td>- <td><a href="#string">string</a></td>+ <td>status</td>+ <td><a href="#bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</a></td><td></td>- <td><p>Table name. </p></td>+ <td><p> </p></td></tr></tbody>@@ -7999,8 +7948,8 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.store.SchedulerInfo">SchedulerInfo</h3>- <p>SchedulerInfo contains information about task scheduling and execution delays.</p>+ <h3 id="bytebase.store.IssueCommentPayload.IssueUpdate">IssueCommentPayload.IssueUpdate</h3>+ <p></p><table class="field-table">@@ -8010,17 +7959,59 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>report_time</td>- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>- <td></td>- <td><p>Timestamp when the scheduler reported this information. </p></td>+ <td>from_title</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>waiting_cause</td>- <td><a href="#bytebase.store.SchedulerInfo.WaitingCause">SchedulerInfo.WaitingCause</a></td>- <td></td>- <td><p>Reason why the task run is currently waiting. </p></td>+ <td>to_title</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>from_description</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>to_description</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>from_status</td>+ <td><a href="#bytebase.store.Issue.Status">Issue.Status</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>to_status</td>+ <td><a href="#bytebase.store.Issue.Status">Issue.Status</a></td>+ <td>optional</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>from_labels</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>to_labels</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr></tbody>@@ -8030,8 +8021,8 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.store.SchedulerInfo.WaitingCause">SchedulerInfo.WaitingCause</h3>- <p>WaitingCause indicates why a task run is waiting to execute.</p>+ <h3 id="bytebase.store.IssueCommentPayload.PlanSpecUpdate">IssueCommentPayload.PlanSpecUpdate</h3>+ <p>Plan spec update event (tracks sheet changes to plan specs)</p><table class="field-table">@@ -8041,24 +8032,25 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>connection_limit</td>- <td><a href="#bool">bool</a></td>+ <td>spec</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Task is waiting due to database connection limit. </p></td>+ <td><p>The spec that was updated+Format: projects/{project}/plans/{plan}/specs/{spec} </p></td></tr><tr>- <td>task_uid</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>Task is waiting for another task to complete. </p></td>+ <td>from_sheet</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>parallel_tasks_limit</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Task is waiting due to parallel execution limit. </p></td>+ <td>to_sheet</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>Format: projects/{project}/sheets/{sheet} </p></td></tr></tbody>@@ -8068,15 +8060,22 @@ Format: instances/{instance}/databases/{database} </p></td>- <h3 id="bytebase.store.TaskRun">TaskRun</h3>- <p>TaskRun represents an execution attempt of a task.</p>-+-- <h3 id="bytebase.store.TaskRunResult">TaskRunResult</h3>- <p>TaskRunResult contains the outcome and metadata from a task run execution.</p>+++++ <div class="file-heading">+ <h2 id="store/oauth2.proto">store/oauth2.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.store.OAuth2AuthorizationCodeConfig">OAuth2AuthorizationCodeConfig</h3>+ <p></p><table class="field-table">@@ -8086,53 +8085,24 @@ Format: instances/{instance}/databases/{database} </p></td><tbody><tr>- <td>detail</td>+ <td>redirect_uri</td><td><a href="#string">string</a></td><td></td>- <td><p>Detailed execution information or error message. </p></td>+ <td><p> </p></td></tr><tr>- <td>version</td>+ <td>code_challenge</td><td><a href="#string">string</a></td><td></td>- <td><p>Schema version after the migration was applied. </p></td>- </tr>-- <tr>- <td>start_position</td>- <td><a href="#bytebase.store.Position">Position</a></td>- <td></td>- <td><p>Starting position in the SQL statement where an error occurred. </p></td>- </tr>-- <tr>- <td>end_position</td>- <td><a href="#bytebase.store.Position">Position</a></td>- <td></td>- <td><p>Ending position in the SQL statement where an error occurred. </p></td>- </tr>-- <tr>- <td>export_archive_uid</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>UID of the export archive generated for export tasks. </p></td>- </tr>-- <tr>- <td>prior_backup_detail</td>- <td><a href="#bytebase.store.PriorBackupDetail">PriorBackupDetail</a></td>- <td></td>- <td><p>Backup details that can be used to rollback changes. </p></td>+ <td><p> </p></td></tr><tr>- <td>changelog</td>+ <td>code_challenge_method</td><td><a href="#string">string</a></td><td></td>- <td><p>Resource name of the changelog entry created by this run.-Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></td>+ <td><p> </p></td></tr></tbody>@@ -8142,80 +8112,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t--- <h3 id="bytebase.store.TaskRun.Status">TaskRun.Status</h3>- <p>Status represents the current execution state of a task run.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PENDING</td>- <td>1</td>- <td><p>Task run is queued and waiting to execute.</p></td>- </tr>-- <tr>- <td>RUNNING</td>- <td>2</td>- <td><p>Task run is currently executing.</p></td>- </tr>-- <tr>- <td>DONE</td>- <td>3</td>- <td><p>Task run completed successfully.</p></td>- </tr>-- <tr>- <td>FAILED</td>- <td>4</td>- <td><p>Task run encountered an error and failed.</p></td>- </tr>-- <tr>- <td>CANCELED</td>- <td>5</td>- <td><p>Task run was canceled by user or system.</p></td>- </tr>-- <tr>- <td>NOT_STARTED</td>- <td>6</td>- <td><p>Task run has not started yet.</p></td>- </tr>-- <tr>- <td>SKIPPED</td>- <td>7</td>- <td><p>Task run was skipped and will not execute.</p></td>- </tr>-- </tbody>- </table>-------- <div class="file-heading">- <h2 id="store/issue_comment.proto">store/issue_comment.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.store.IssueCommentPayload">IssueCommentPayload</h3>+ <h3 id="bytebase.store.OAuth2ClientConfig">OAuth2ClientConfig</h3><p></p>@@ -8226,43 +8123,29 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>comment</td>+ <td>client_name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>approval</td>- <td><a href="#bytebase.store.IssueCommentPayload.Approval">IssueCommentPayload.Approval</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>issue_update</td>- <td><a href="#bytebase.store.IssueCommentPayload.IssueUpdate">IssueCommentPayload.IssueUpdate</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>stage_end</td>- <td><a href="#bytebase.store.IssueCommentPayload.StageEnd">IssueCommentPayload.StageEnd</a></td>- <td></td>+ <td>redirect_uris</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>task_update</td>- <td><a href="#bytebase.store.IssueCommentPayload.TaskUpdate">IssueCommentPayload.TaskUpdate</a></td>- <td></td>+ <td>grant_types</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>task_prior_backup</td>- <td><a href="#bytebase.store.IssueCommentPayload.TaskPriorBackup">IssueCommentPayload.TaskPriorBackup</a></td>+ <td>token_endpoint_auth_method</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -8274,7 +8157,21 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t- <h3 id="bytebase.store.IssueCommentPayload.Approval">IssueCommentPayload.Approval</h3>+++++++++ <div class="file-heading">+ <h2 id="store/plan.proto">store/plan.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.store.PlanConfig">PlanConfig</h3><p></p>@@ -8285,8 +8182,15 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>status</td>- <td><a href="#bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</a></td>+ <td>specs</td>+ <td><a href="#bytebase.store.PlanConfig.Spec">PlanConfig.Spec</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>deployment</td>+ <td><a href="#bytebase.store.PlanConfig.Deployment">PlanConfig.Deployment</a></td><td></td><td><p> </p></td></tr>@@ -8298,7 +8202,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t- <h3 id="bytebase.store.IssueCommentPayload.IssueUpdate">IssueCommentPayload.IssueUpdate</h3>+ <h3 id="bytebase.store.PlanConfig.ChangeDatabaseConfig">PlanConfig.ChangeDatabaseConfig</h3><p></p>@@ -8309,59 +8213,56 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>from_title</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>to_title</td>+ <td>targets</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>The list of targets.+Multi-database format: [instances/{instance-id}/databases/{database-name}].+Single database group format: [projects/{project}/databaseGroups/{databaseGroup}]. </p></td></tr><tr>- <td>from_description</td>+ <td>sheet</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>+ <td></td>+ <td><p>The resource name of the sheet.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>to_description</td>+ <td>release</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>+ <td></td>+ <td><p>The resource name of the release.+Format: projects/{project}/releases/{release} </p></td></tr><tr>- <td>from_status</td>- <td><a href="#bytebase.store.Issue.Status">Issue.Status</a></td>- <td>optional</td>+ <td>type</td>+ <td><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig.Type">PlanConfig.ChangeDatabaseConfig.Type</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>to_status</td>- <td><a href="#bytebase.store.Issue.Status">Issue.Status</a></td>- <td>optional</td>+ <td>ghost_flags</td>+ <td><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry">PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry</a></td>+ <td>repeated</td><td><p> </p></td></tr><tr>- <td>from_labels</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>enable_prior_backup</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td></tr><tr>- <td>to_labels</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>enable_ghost</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to use gh-ost for online schema migration. </p></td></tr></tbody>@@ -8371,7 +8272,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t- <h3 id="bytebase.store.IssueCommentPayload.StageEnd">IssueCommentPayload.StageEnd</h3>+ <h3 id="bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry">PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry</h3><p></p>@@ -8382,7 +8283,14 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>stage</td>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -8395,7 +8303,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t- <h3 id="bytebase.store.IssueCommentPayload.TaskPriorBackup">IssueCommentPayload.TaskPriorBackup</h3>+ <h3 id="bytebase.store.PlanConfig.CreateDatabaseConfig">PlanConfig.CreateDatabaseConfig</h3><p></p>@@ -8406,38 +8314,62 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>task</td>+ <td>target</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The resource name of the instance on which the database is created.+Format: instances/{instance} </p></td></tr><tr>- <td>tables</td>- <td><a href="#bytebase.store.IssueCommentPayload.TaskPriorBackup.Table">IssueCommentPayload.TaskPriorBackup.Table</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>database</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The name of the database to create. </p></td></tr><tr>- <td>original_line</td>- <td><a href="#int32">int32</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>table</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.+For example, in MongoDB, it only creates the database when we first store data in that database. </p></td></tr><tr>- <td>database</td>+ <td>character_set</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>character_set is the character set of the database. </p></td></tr><tr>- <td>error</td>+ <td>collation</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>collation is the collation of the database. </p></td>+ </tr>++ <tr>+ <td>cluster</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". </p></td>+ </tr>++ <tr>+ <td>owner</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td>+ </tr>++ <tr>+ <td>environment</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The environment resource.+Format: environments/prod where prod is the environment resource ID. </p></td></tr></tbody>@@ -8447,7 +8379,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t- <h3 id="bytebase.store.IssueCommentPayload.TaskPriorBackup.Table">IssueCommentPayload.TaskPriorBackup.Table</h3>+ <h3 id="bytebase.store.PlanConfig.Deployment">PlanConfig.Deployment</h3><p></p>@@ -8458,17 +8390,17 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>schema</td>+ <td>environments</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>The environments deploy order. </p></td></tr><tr>- <td>table</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>database_group_mappings</td>+ <td><a href="#bytebase.store.PlanConfig.Deployment.DatabaseGroupMapping">PlanConfig.Deployment.DatabaseGroupMapping</a></td>+ <td>repeated</td>+ <td><p>The database group mapping. </p></td></tr></tbody>@@ -8478,7 +8410,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t- <h3 id="bytebase.store.IssueCommentPayload.TaskUpdate">IssueCommentPayload.TaskUpdate</h3>+ <h3 id="bytebase.store.PlanConfig.Deployment.DatabaseGroupMapping">PlanConfig.Deployment.DatabaseGroupMapping</h3><p></p>@@ -8489,31 +8421,17 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>tasks</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>from_sheet</td>+ <td>database_group</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ <td></td>+ <td><p>Format: projects/{project}/databaseGroups/{databaseGroup}. </p></td></tr><tr>- <td>to_sheet</td>+ <td>databases</td><td><a href="#string">string</a></td>- <td>optional</td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>to_status</td>- <td><a href="#bytebase.store.TaskRun.Status">TaskRun.Status</a></td>- <td>optional</td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>Format: instances/{instance-id}/databases/{database-name}. </p></td></tr></tbody>@@ -8523,21 +8441,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t--------- <div class="file-heading">- <h2 id="store/oauth2.proto">store/oauth2.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.store.OAuth2AuthorizationCodeConfig">OAuth2AuthorizationCodeConfig</h3>+ <h3 id="bytebase.store.PlanConfig.ExportDataConfig">PlanConfig.ExportDataConfig</h3><p></p>@@ -8548,24 +8452,35 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>redirect_uri</td>+ <td>targets</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>+ <td>repeated</td>+ <td><p>The list of targets.+Multi-database format: [instances/{instance-id}/databases/{database-name}].+Single database group format: [projects/{project}/databaseGroups/{databaseGroup}]. </p></td></tr><tr>- <td>code_challenge</td>+ <td>sheet</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The resource name of the sheet.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>code_challenge_method</td>- <td><a href="#string">string</a></td>+ <td>format</td>+ <td><a href="#bytebase.store.ExportFormat">ExportFormat</a></td><td></td>- <td><p> </p></td>+ <td><p>The format of the exported file. </p></td>+ </tr>++ <tr>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td>optional</td>+ <td><p>The zip password provided by users.+Leave it empty if there is no need to encrypt the zip file. </p></td></tr></tbody>@@ -8575,7 +8490,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t- <h3 id="bytebase.store.OAuth2ClientConfig">OAuth2ClientConfig</h3>+ <h3 id="bytebase.store.PlanConfig.Spec">PlanConfig.Spec</h3><p></p>@@ -8586,29 +8501,29 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>client_name</td>+ <td>id</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>A UUID4 string that uniquely identifies the Spec. </p></td></tr><tr>- <td>redirect_uris</td>- <td><a href="#string">string</a></td>- <td>repeated</td>+ <td>create_database_config</td>+ <td><a href="#bytebase.store.PlanConfig.CreateDatabaseConfig">PlanConfig.CreateDatabaseConfig</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>grant_types</td>- <td><a href="#string">string</a></td>- <td>repeated</td>+ <td>change_database_config</td>+ <td><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig">PlanConfig.ChangeDatabaseConfig</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>token_endpoint_auth_method</td>- <td><a href="#string">string</a></td>+ <td>export_data_config</td>+ <td><a href="#bytebase.store.PlanConfig.ExportDataConfig">PlanConfig.ExportDataConfig</a></td><td></td><td><p> </p></td></tr>@@ -8622,6 +8537,35 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t+ <h3 id="bytebase.store.PlanConfig.ChangeDatabaseConfig.Type">PlanConfig.ChangeDatabaseConfig.Type</h3>+ <p>Type is the database change type.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MIGRATE</td>+ <td>1</td>+ <td><p>Used for imperative schema migration including CREATE DATABASE.</p></td>+ </tr>++ <tr>+ <td>SDL</td>+ <td>2</td>+ <td><p>Used for state-based declarative schema migration including CREATE DATABASE.</p></td>+ </tr>++ </tbody>+ </table>+@@ -8629,12 +8573,12 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<div class="file-heading">- <h2 id="store/plan.proto">store/plan.proto</h2><a href="#title">Top</a>+ <h2 id="store/plan_check_run.proto">store/plan_check_run.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.store.PlanConfig">PlanConfig</h3>+ <h3 id="bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</h3><p></p>@@ -8645,16 +8589,16 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>specs</td>- <td><a href="#bytebase.store.PlanConfig.Spec">PlanConfig.Spec</a></td>- <td>repeated</td>+ <td>name</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>deployment</td>- <td><a href="#bytebase.store.PlanConfig.Deployment">PlanConfig.Deployment</a></td>- <td></td>+ <td>schemas</td>+ <td><a href="#bytebase.store.ChangedResourceSchema">ChangedResourceSchema</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -8665,7 +8609,7 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t- <h3 id="bytebase.store.PlanConfig.ChangeDatabaseConfig">PlanConfig.ChangeDatabaseConfig</h3>+ <h3 id="bytebase.store.ChangedResourceSchema">ChangedResourceSchema</h3><p></p>@@ -8676,58 +8620,19 @@ Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></t<tbody><tr>- <td>targets</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The list of targets.-Multi-database format: [instances/{instance-id}/databases/{database-name}].-Single database group format: [projects/{project}/databaseGroups/{databaseGroup}]. </p></td>- </tr>-- <tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the sheet.-Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>release</td>+ <td>name</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the release.-Format: projects/{project}/releases/{release} </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig.Type">PlanConfig.ChangeDatabaseConfig.Type</a></td>- <td></td><td><p> </p></td></tr><tr>- <td>ghost_flags</td>- <td><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry">PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry</a></td>+ <td>tables</td>+ <td><a href="#bytebase.store.ChangedResourceTable">ChangedResourceTable</a></td><td>repeated</td><td><p> </p></td></tr>- <tr>- <td>enable_prior_backup</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td>- </tr>-- <tr>- <td>enable_ghost</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Whether to use gh-ost for online schema migration. </p></td>- </tr>-</tbody></table>@@ -8735,7 +8640,7 @@ Format: projects/{project}/releases/{release} </p></td>- <h3 id="bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry">PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry</h3>+ <h3 id="bytebase.store.ChangedResourceTable">ChangedResourceTable</h3><p></p>@@ -8746,17 +8651,17 @@ Format: projects/{project}/releases/{release} </p></td><tbody><tr>- <td>key</td>+ <td>name</td><td><a href="#string">string</a></td><td></td><td><p> </p></td></tr><tr>- <td>value</td>- <td><a href="#string">string</a></td>+ <td>table_rows</td>+ <td><a href="#int64">int64</a></td><td></td>- <td><p> </p></td>+ <td><p>The estimated row count of the table. </p></td></tr></tbody>@@ -8766,7 +8671,7 @@ Format: projects/{project}/releases/{release} </p></td>- <h3 id="bytebase.store.PlanConfig.CreateDatabaseConfig">PlanConfig.CreateDatabaseConfig</h3>+ <h3 id="bytebase.store.ChangedResources">ChangedResources</h3><p></p>@@ -8777,62 +8682,76 @@ Format: projects/{project}/releases/{release} </p></td><tbody><tr>- <td>target</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The resource name of the instance on which the database is created.-Format: instances/{instance} </p></td>+ <td>databases</td>+ <td><a href="#bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.store.PlanCheckRunConfig">PlanCheckRunConfig</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>database</td>- <td><a href="#string">string</a></td>+ <td>sheet_uid</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The name of the database to create. </p></td>+ <td><p> </p></td></tr><tr>- <td>table</td>+ <td>instance_id</td><td><a href="#string">string</a></td><td></td>- <td><p>table is the name of the table, if it is not empty, Bytebase should create a table after creating the database.-For example, in MongoDB, it only creates the database when we first store data in that database. </p></td>+ <td><p> </p></td></tr><tr>- <td>character_set</td>+ <td>database_name</td><td><a href="#string">string</a></td><td></td>- <td><p>character_set is the character set of the database. </p></td>+ <td><p> </p></td></tr><tr>- <td>collation</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>collation is the collation of the database. </p></td>+ <td>ghost_flags</td>+ <td><a href="#bytebase.store.PlanCheckRunConfig.GhostFlagsEntry">PlanCheckRunConfig.GhostFlagsEntry</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>cluster</td>- <td><a href="#string">string</a></td>+ <td>enable_prior_backup</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>cluster is the cluster of the database. This is only applicable to ClickHouse for "ON CLUSTER <<cluster>>". </p></td>+ <td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td></tr><tr>- <td>owner</td>- <td><a href="#string">string</a></td>+ <td>enable_ghost</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>owner is the owner of the database. This is only applicable to Postgres for "WITH OWNER <<owner>>". </p></td>+ <td><p>Whether to use gh-ost for online schema migration. </p></td></tr><tr>- <td>environment</td>- <td><a href="#string">string</a></td>+ <td>enable_sdl</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The environment resource.-Format: environments/prod where prod is the environment resource ID. </p></td>+ <td><p>Whether this is a Schema Definition Language (SDL) change. </p></td></tr></tbody>@@ -8842,7 +8761,7 @@ Format: environments/prod where prod is the environment resource ID. </p></td>- <h3 id="bytebase.store.PlanConfig.Deployment">PlanConfig.Deployment</h3>+ <h3 id="bytebase.store.PlanCheckRunConfig.GhostFlagsEntry">PlanCheckRunConfig.GhostFlagsEntry</h3><p></p>@@ -8853,17 +8772,17 @@ Format: environments/prod where prod is the environment resource ID. </p></td><tbody><tr>- <td>environments</td>+ <td>key</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The environments deploy order. </p></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>database_group_mappings</td>- <td><a href="#bytebase.store.PlanConfig.Deployment.DatabaseGroupMapping">PlanConfig.Deployment.DatabaseGroupMapping</a></td>- <td>repeated</td>- <td><p>The database group mapping. </p></td>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -8873,7 +8792,7 @@ Format: environments/prod where prod is the environment resource ID. </p></td>- <h3 id="bytebase.store.PlanConfig.Deployment.DatabaseGroupMapping">PlanConfig.Deployment.DatabaseGroupMapping</h3>+ <h3 id="bytebase.store.PlanCheckRunResult">PlanCheckRunResult</h3><p></p>@@ -8884,17 +8803,17 @@ Format: environments/prod where prod is the environment resource ID. </p></td><tbody><tr>- <td>database_group</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/databaseGroups/{databaseGroup}. </p></td>+ <td>results</td>+ <td><a href="#bytebase.store.PlanCheckRunResult.Result">PlanCheckRunResult.Result</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>databases</td>+ <td>error</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>Format: instances/{instance-id}/databases/{database-name}. </p></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -8904,7 +8823,7 @@ Format: environments/prod where prod is the environment resource ID. </p></td>- <h3 id="bytebase.store.PlanConfig.ExportDataConfig">PlanConfig.ExportDataConfig</h3>+ <h3 id="bytebase.store.PlanCheckRunResult.Result">PlanCheckRunResult.Result</h3><p></p>@@ -8915,35 +8834,45 @@ Format: environments/prod where prod is the environment resource ID. </p></td><tbody><tr>- <td>targets</td>+ <td>status</td>+ <td><a href="#bytebase.store.Advice.Status">Advice.Status</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>title</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The list of targets.-Multi-database format: [instances/{instance-id}/databases/{database-name}].-Single database group format: [projects/{project}/databaseGroups/{databaseGroup}]. </p></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>sheet</td>+ <td>content</td><td><a href="#string">string</a></td><td></td>- <td><p>The resource name of the sheet.-Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p> </p></td></tr><tr>- <td>format</td>- <td><a href="#bytebase.store.ExportFormat">ExportFormat</a></td>+ <td>code</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>The format of the exported file. </p></td>+ <td><p> </p></td></tr><tr>- <td>password</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p>The zip password provided by users.-Leave it empty if there is no need to encrypt the zip file. </p></td>+ <td>sql_summary_report</td>+ <td><a href="#bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport">PlanCheckRunResult.Result.SqlSummaryReport</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>sql_review_report</td>+ <td><a href="#bytebase.store.PlanCheckRunResult.Result.SqlReviewReport">PlanCheckRunResult.Result.SqlReviewReport</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -8953,7 +8882,7 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanConfig.Spec">PlanConfig.Spec</h3>+ <h3 id="bytebase.store.PlanCheckRunResult.Result.SqlReviewReport">PlanCheckRunResult.Result.SqlReviewReport</h3><p></p>@@ -8964,29 +8893,53 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>id</td>- <td><a href="#string">string</a></td>+ <td>start_position</td>+ <td><a href="#bytebase.store.Position">Position</a></td><td></td>- <td><p>A UUID4 string that uniquely identifies the Spec. </p></td>+ <td><p>Position of the SQL statement. </p></td></tr><tr>- <td>create_database_config</td>- <td><a href="#bytebase.store.PlanConfig.CreateDatabaseConfig">PlanConfig.CreateDatabaseConfig</a></td>+ <td>end_position</td>+ <td><a href="#bytebase.store.Position">Position</a></td><td></td><td><p> </p></td></tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport">PlanCheckRunResult.Result.SqlSummaryReport</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>+<tr>- <td>change_database_config</td>- <td><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig">PlanConfig.ChangeDatabaseConfig</a></td>+ <td>statement_types</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td>+ <td><p>statement_types are the types of statements found in the SQL. </p></td>+ </tr>++ <tr>+ <td>affected_rows</td>+ <td><a href="#int64">int64</a></td><td></td><td><p> </p></td></tr><tr>- <td>export_data_config</td>- <td><a href="#bytebase.store.PlanConfig.ExportDataConfig">PlanConfig.ExportDataConfig</a></td>+ <td>changed_resources</td>+ <td><a href="#bytebase.store.ChangedResources">ChangedResources</a></td><td></td><td><p> </p></td></tr>@@ -9000,35 +8953,6 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanConfig.ChangeDatabaseConfig.Type">PlanConfig.ChangeDatabaseConfig.Type</h3>- <p>Type is the database change type.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>MIGRATE</td>- <td>1</td>- <td><p>Used for imperative schema migration including CREATE DATABASE.</p></td>- </tr>-- <tr>- <td>SDL</td>- <td>2</td>- <td><p>Used for state-based declarative schema migration including CREATE DATABASE.</p></td>- </tr>-- </tbody>- </table>-@@ -9036,12 +8960,12 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><div class="file-heading">- <h2 id="store/plan_check_run.proto">store/plan_check_run.proto</h2><a href="#title">Top</a>+ <h2 id="store/policy.proto">store/policy.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</h3>+ <h3 id="bytebase.store.Binding">Binding</h3><p></p>@@ -9052,17 +8976,29 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>name</td>+ <td>role</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The role that is assigned to the members.+Format: roles/{role} </p></td></tr><tr>- <td>schemas</td>- <td><a href="#bytebase.store.ChangedResourceSchema">ChangedResourceSchema</a></td>+ <td>members</td>+ <td><a href="#string">string</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>Specifies the principals requesting access for a Bytebase resource.+For users, the member should be: users/{email}+For groups, the member should be: groups/{email} </p></td>+ </tr>++ <tr>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td>+ <td><p>The condition that is associated with this binding.+If the condition evaluates to true, then this binding applies to the current request.+If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. </p></td></tr></tbody>@@ -9072,8 +9008,8 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.ChangedResourceSchema">ChangedResourceSchema</h3>- <p></p>+ <h3 id="bytebase.store.DataSourceQueryPolicy">DataSourceQueryPolicy</h3>+ <p>DataSourceQueryPolicy is the policy configuration for running statements in the SQL editor.</p><table class="field-table">@@ -9083,17 +9019,24 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>admin_data_source_restriction</td>+ <td><a href="#bytebase.store.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</a></td><td></td><td><p> </p></td></tr><tr>- <td>tables</td>- <td><a href="#bytebase.store.ChangedResourceTable">ChangedResourceTable</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>disallow_ddl</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Disallow running DDL statements in the SQL editor. </p></td>+ </tr>++ <tr>+ <td>disallow_dml</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Disallow running DML statements in the SQL editor. </p></td></tr></tbody>@@ -9103,8 +9046,8 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.ChangedResourceTable">ChangedResourceTable</h3>- <p></p>+ <h3 id="bytebase.store.EnvironmentTierPolicy">EnvironmentTierPolicy</h3>+ <p>EnvironmentTierPolicy is the tier of an environment.</p><table class="field-table">@@ -9114,17 +9057,17 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>name</td>- <td><a href="#string">string</a></td>+ <td>environment_tier</td>+ <td><a href="#bytebase.store.EnvironmentTierPolicy.EnvironmentTier">EnvironmentTierPolicy.EnvironmentTier</a></td><td></td><td><p> </p></td></tr><tr>- <td>table_rows</td>- <td><a href="#int64">int64</a></td>+ <td>color</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The estimated row count of the table. </p></td>+ <td><p> </p></td></tr></tbody>@@ -9134,7 +9077,7 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.ChangedResources">ChangedResources</h3>+ <h3 id="bytebase.store.IamPolicy">IamPolicy</h3><p></p>@@ -9145,10 +9088,11 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>databases</td>- <td><a href="#bytebase.store.ChangedResourceDatabase">ChangedResourceDatabase</a></td>+ <td>bindings</td>+ <td><a href="#bytebase.store.Binding">Binding</a></td><td>repeated</td>- <td><p> </p></td>+ <td><p>Collection of binding.+A binding binds one or more members or groups to a single role. </p></td></tr></tbody>@@ -9158,8 +9102,8 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanCheckRunConfig">PlanCheckRunConfig</h3>- <p></p>+ <h3 id="bytebase.store.MaskingExemptionPolicy">MaskingExemptionPolicy</h3>+ <p>MaskingExemptionPolicy is the allowlist of users who can access sensitive data.</p><table class="field-table">@@ -9169,52 +9113,58 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>sheet_uid</td>- <td><a href="#int32">int32</a></td>- <td></td>+ <td>exemptions</td>+ <td><a href="#bytebase.store.MaskingExemptionPolicy.Exemption">MaskingExemptionPolicy.Exemption</a></td>+ <td>repeated</td><td><p> </p></td></tr>- <tr>- <td>instance_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.store.MaskingExemptionPolicy.Exemption">MaskingExemptionPolicy.Exemption</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>database_name</td>+ <td>members</td><td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>ghost_flags</td>- <td><a href="#bytebase.store.PlanCheckRunConfig.GhostFlagsEntry">PlanCheckRunConfig.GhostFlagsEntry</a></td><td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>enable_prior_backup</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>If set, a backup of the modified data will be created automatically before any changes are applied. </p></td>- </tr>-- <tr>- <td>enable_ghost</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Whether to use gh-ost for online schema migration. </p></td>+ <td><p>Members who bind to this exemption.++Format: users/{email} or groups/{group email} </p></td></tr><tr>- <td>enable_sdl</td>- <td><a href="#bool">bool</a></td>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>Whether this is a Schema Definition Language (SDL) change. </p></td>+ <td><p>The condition that is associated with this exception policy instance.+The syntax and semantics of CEL are documented at https://github.com/google/cel-spec+If the condition is empty, means the user can access all databases without expiration.++Support variables:+resource.instance_id: the instance resource id. Only support "==" operation.+resource.database_name: the database name. Only support "==" operation.+resource.schema_name: the schema name. Only support "==" operation.+resource.table_name: the table name. Only support "==" operation.+resource.column_name: the column name. Only support "==" operation.+request.time: the expiration. Only support "<" operation in `request.time < timestamp("{ISO datetime string format}")`+All variables should join with "&&" condition.++For example:+resource.instance_id == "local" && resource.database_name == "employee" && request.time < timestamp("2025-04-30T11:10:39.000Z")+resource.instance_id == "local" && resource.database_name == "employee" </p></td></tr></tbody>@@ -9224,7 +9174,7 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanCheckRunConfig.GhostFlagsEntry">PlanCheckRunConfig.GhostFlagsEntry</h3>+ <h3 id="bytebase.store.MaskingRulePolicy">MaskingRulePolicy</h3><p></p>@@ -9235,16 +9185,9 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>value</td>- <td><a href="#string">string</a></td>- <td></td>+ <td>rules</td>+ <td><a href="#bytebase.store.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -9255,7 +9198,7 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanCheckRunResult">PlanCheckRunResult</h3>+ <h3 id="bytebase.store.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</h3><p></p>@@ -9266,14 +9209,21 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>results</td>- <td><a href="#bytebase.store.PlanCheckRunResult.Result">PlanCheckRunResult.Result</a></td>- <td>repeated</td>+ <td>id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>A unique identifier for a node in UUID format. </p></td>+ </tr>++ <tr>+ <td>condition</td>+ <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td></td><td><p> </p></td></tr><tr>- <td>error</td>+ <td>semantic_type</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -9286,10 +9236,17 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanCheckRunResult.Result">PlanCheckRunResult.Result</h3>+ <h3 id="bytebase.store.Policy">Policy</h3><p></p>++++ <h3 id="bytebase.store.QueryDataPolicy">QueryDataPolicy</h3>+ <p>QueryDataPolicy is the policy configuration for querying data.</p>++<table class="field-table"><thead><tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>@@ -9297,45 +9254,40 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>status</td>- <td><a href="#bytebase.store.Advice.Status">Advice.Status</a></td>+ <td>timeout</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p> </p></td>+ <td><p>The query timeout duration. </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>disable_export</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Disable exporting data in the SQL editor. </p></td></tr><tr>- <td>content</td>- <td><a href="#string">string</a></td>+ <td>maximum_result_size</td>+ <td><a href="#int64">int64</a></td><td></td>- <td><p> </p></td>+ <td><p>The size limit in bytes.+The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0. </p></td></tr><tr>- <td>code</td>+ <td>maximum_result_rows</td><td><a href="#int32">int32</a></td><td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>sql_summary_report</td>- <td><a href="#bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport">PlanCheckRunResult.Result.SqlSummaryReport</a></td>- <td></td>- <td><p> </p></td>+ <td><p>The return rows limit.+The default value is -1, means no limit. </p></td></tr><tr>- <td>sql_review_report</td>- <td><a href="#bytebase.store.PlanCheckRunResult.Result.SqlReviewReport">PlanCheckRunResult.Result.SqlReviewReport</a></td>+ <td>disable_copy_data</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Disable copying data. </p></td></tr></tbody>@@ -9345,7 +9297,7 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanCheckRunResult.Result.SqlReviewReport">PlanCheckRunResult.Result.SqlReviewReport</h3>+ <h3 id="bytebase.store.RolloutPolicy">RolloutPolicy</h3><p></p>@@ -9356,16 +9308,16 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>start_position</td>- <td><a href="#bytebase.store.Position">Position</a></td>+ <td>automatic</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Position of the SQL statement. </p></td>+ <td><p> </p></td></tr><tr>- <td>end_position</td>- <td><a href="#bytebase.store.Position">Position</a></td>- <td></td>+ <td>roles</td>+ <td><a href="#string">string</a></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -9376,7 +9328,7 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanCheckRunResult.Result.SqlSummaryReport">PlanCheckRunResult.Result.SqlSummaryReport</h3>+ <h3 id="bytebase.store.TagPolicy">TagPolicy</h3><p></p>@@ -9387,24 +9339,11 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>statement_types</td>- <td><a href="#string">string</a></td>+ <td>tags</td>+ <td><a href="#bytebase.store.TagPolicy.TagsEntry">TagPolicy.TagsEntry</a></td><td>repeated</td>- <td><p>statement_types are the types of statements found in the SQL. </p></td>- </tr>-- <tr>- <td>affected_rows</td>- <td><a href="#int64">int64</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>changed_resources</td>- <td><a href="#bytebase.store.ChangedResources">ChangedResources</a></td>- <td></td>- <td><p> </p></td>+ <td><p>tags is the key-value map for resources.+For example, the environment resource can have the SQL review config tag, such as "bb.tag.review_config": "reviewConfigs/{review config resource id}". </p></td></tr></tbody>@@ -9414,21 +9353,7 @@ Leave it empty if there is no need to encrypt the zip file. </p></td>--------- <div class="file-heading">- <h2 id="store/policy.proto">store/policy.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.store.Binding">Binding</h3>+ <h3 id="bytebase.store.TagPolicy.TagsEntry">TagPolicy.TagsEntry</h3><p></p>@@ -9439,29 +9364,17 @@ Leave it empty if there is no need to encrypt the zip file. </p></td><tbody><tr>- <td>role</td>+ <td>key</td><td><a href="#string">string</a></td><td></td>- <td><p>The role that is assigned to the members.-Format: roles/{role} </p></td>+ <td><p> </p></td></tr><tr>- <td>members</td>+ <td>value</td><td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>Specifies the principals requesting access for a Bytebase resource.-For users, the member should be: users/{email}-For groups, the member should be: groups/{email} </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td><td></td>- <td><p>The condition that is associated with this binding.-If the condition evaluates to true, then this binding applies to the current request.-If the condition evaluates to false, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. </p></td>+ <td><p> </p></td></tr></tbody>@@ -9471,8 +9384,174 @@ If the condition evaluates to false, then this binding does not apply to the cur- <h3 id="bytebase.store.DataSourceQueryPolicy">DataSourceQueryPolicy</h3>- <p>DataSourceQueryPolicy is the policy configuration for running statements in the SQL editor.</p>+++ <h3 id="bytebase.store.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>RESTRICTION_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>FALLBACK</td>+ <td>1</td>+ <td><p>Allow to query admin data sources when there is no read-only data source.</p></td>+ </tr>++ <tr>+ <td>DISALLOW</td>+ <td>2</td>+ <td><p>Disallow to query admin data sources.</p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.store.EnvironmentTierPolicy.EnvironmentTier">EnvironmentTierPolicy.EnvironmentTier</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ENVIRONMENT_TIER_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PROTECTED</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>UNPROTECTED</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.store.Policy.Resource">Policy.Resource</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>RESOURCE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>WORKSPACE</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ENVIRONMENT</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>PROJECT</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++ <h3 id="bytebase.store.Policy.Type">Policy.Type</h3>+ <p></p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>ROLLOUT</td>+ <td>1</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MASKING_EXEMPTION</td>+ <td>2</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>QUERY_DATA</td>+ <td>3</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>MASKING_RULE</td>+ <td>4</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>IAM</td>+ <td>5</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>TAG</td>+ <td>6</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATA_SOURCE_QUERY</td>+ <td>7</td>+ <td><p></p></td>+ </tr>++ </tbody>+ </table>++++++++ <div class="file-heading">+ <h2 id="store/project.proto">store/project.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.store.Label">Label</h3>+ <p>Label represents a categorization tag that can be applied to issues.</p><table class="field-table">@@ -9482,24 +9561,24 @@ If the condition evaluates to false, then this binding does not apply to the cur<tbody><tr>- <td>admin_data_source_restriction</td>- <td><a href="#bytebase.store.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</a></td>+ <td>value</td>+ <td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>The display text of the label. </p></td></tr><tr>- <td>disallow_ddl</td>- <td><a href="#bool">bool</a></td>+ <td>color</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Disallow running DDL statements in the SQL editor. </p></td>+ <td><p>The color for the label in hex format (e.g., "#FF0000"). </p></td></tr><tr>- <td>disallow_dml</td>- <td><a href="#bool">bool</a></td>+ <td>group</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Disallow running DML statements in the SQL editor. </p></td>+ <td><p>Optional group name for organizing related labels. </p></td></tr></tbody>@@ -9509,8 +9588,8 @@ If the condition evaluates to false, then this binding does not apply to the cur- <h3 id="bytebase.store.EnvironmentTierPolicy">EnvironmentTierPolicy</h3>- <p>EnvironmentTierPolicy is the tier of an environment.</p>+ <h3 id="bytebase.store.Project">Project</h3>+ <p>Project contains settings and configuration for a Bytebase project.</p><table class="field-table">@@ -9520,114 +9599,119 @@ If the condition evaluates to false, then this binding does not apply to the cur<tbody><tr>- <td>environment_tier</td>- <td><a href="#bytebase.store.EnvironmentTierPolicy.EnvironmentTier">EnvironmentTierPolicy.EnvironmentTier</a></td>+ <td>issue_labels</td>+ <td><a href="#bytebase.store.Label">Label</a></td>+ <td>repeated</td>+ <td><p>Available labels that can be applied to issues in this project. </p></td>+ </tr>++ <tr>+ <td>force_issue_labels</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Force issue labels to be used when creating an issue. </p></td></tr><tr>- <td>color</td>- <td><a href="#string">string</a></td>+ <td>allow_modify_statement</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p> </p></td>+ <td><p>Allow modifying statement after issue is created. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.store.IamPolicy">IamPolicy</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>auto_resolve_issue</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Enable auto resolve issue. </p></td>+ </tr><tr>- <td>bindings</td>- <td><a href="#bytebase.store.Binding">Binding</a></td>- <td>repeated</td>- <td><p>Collection of binding.-A binding binds one or more members or groups to a single role. </p></td>+ <td>enforce_issue_title</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Enforce issue title created by user instead of generated by Bytebase. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.store.MaskingExemptionPolicy">MaskingExemptionPolicy</h3>- <p>MaskingExemptionPolicy is the allowlist of users who can access sensitive data.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>auto_enable_backup</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to automatically enable backup. </p></td>+ </tr><tr>- <td>exemptions</td>- <td><a href="#bytebase.store.MaskingExemptionPolicy.Exemption">MaskingExemptionPolicy.Exemption</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>skip_backup_errors</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to skip backup errors and continue the data migration. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.store.MaskingExemptionPolicy.Exemption">MaskingExemptionPolicy.Exemption</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>postgres_database_tenant_mode</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to enable the database tenant mode for PostgreSQL.+If enabled, the issue will be created with the prepend "set role <db_owner>" statement. </p></td>+ </tr><tr>- <td>members</td>- <td><a href="#string">string</a></td>+ <td>allow_self_approval</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to allow the issue creator to self-approve the issue. </p></td>+ </tr>++ <tr>+ <td>execution_retry_policy</td>+ <td><a href="#bytebase.store.Project.ExecutionRetryPolicy">Project.ExecutionRetryPolicy</a></td>+ <td></td>+ <td><p>Configuration for automatic retry on task execution failures. </p></td>+ </tr>++ <tr>+ <td>ci_sampling_size</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of databases to sample during CI data validation.+If not specified, sampling is disabled, resulting in a full validation. </p></td>+ </tr>++ <tr>+ <td>parallel_tasks_per_rollout</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of parallel tasks to run during the rollout. </p></td>+ </tr>++ <tr>+ <td>labels</td>+ <td><a href="#bytebase.store.Project.LabelsEntry">Project.LabelsEntry</a></td><td>repeated</td>- <td><p>Members who bind to this exemption.--Format: users/{email} or groups/{group email} </p></td>+ <td><p>Labels are key-value pairs that can be attached to the project.+For example, { "environment": "production", "team": "backend" } </p></td></tr><tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>+ <td>enforce_sql_review</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>The condition that is associated with this exception policy instance.-The syntax and semantics of CEL are documented at https://github.com/google/cel-spec-If the condition is empty, means the user can access all databases without expiration.--Support variables:-resource.instance_id: the instance resource id. Only support "==" operation.-resource.database_name: the database name. Only support "==" operation.-resource.schema_name: the schema name. Only support "==" operation.-resource.table_name: the table name. Only support "==" operation.-resource.column_name: the column name. Only support "==" operation.-request.time: the expiration. Only support "<" operation in `request.time < timestamp("{ISO datetime string format}")`-All variables should join with "&&" condition.--For example:-resource.instance_id == "local" && resource.database_name == "employee" && request.time < timestamp("2025-04-30T11:10:39.000Z")-resource.instance_id == "local" && resource.database_name == "employee" </p></td>+ <td><p>Whether to enforce SQL review checks to pass before issue creation.+If enabled, issues cannot be created when SQL review finds errors. </p></td>+ </tr>++ <tr>+ <td>require_issue_approval</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether issue approval is required before proceeding with rollout. </p></td>+ </tr>++ <tr>+ <td>require_plan_check_no_error</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to block rollout when plan check finds errors. </p></td></tr></tbody>@@ -9637,8 +9721,8 @@ resource.instance_id == "local" && resource.database_name == - <h3 id="bytebase.store.MaskingRulePolicy">MaskingRulePolicy</h3>- <p></p>+ <h3 id="bytebase.store.Project.ExecutionRetryPolicy">Project.ExecutionRetryPolicy</h3>+ <p>ExecutionRetryPolicy defines retry behavior for failed task executions.</p><table class="field-table">@@ -9648,10 +9732,10 @@ resource.instance_id == "local" && resource.database_name == <tbody><tr>- <td>rules</td>- <td><a href="#bytebase.store.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</a></td>- <td>repeated</td>- <td><p> </p></td>+ <td>maximum_retries</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The maximum number of retry attempts for lock timeout errors. </p></td></tr></tbody>@@ -9661,7 +9745,7 @@ resource.instance_id == "local" && resource.database_name == - <h3 id="bytebase.store.MaskingRulePolicy.MaskingRule">MaskingRulePolicy.MaskingRule</h3>+ <h3 id="bytebase.store.Project.LabelsEntry">Project.LabelsEntry</h3><p></p>@@ -9672,21 +9756,14 @@ resource.instance_id == "local" && resource.database_name == <tbody><tr>- <td>id</td>+ <td>key</td><td><a href="#string">string</a></td><td></td>- <td><p>A unique identifier for a node in UUID format. </p></td>- </tr>-- <tr>- <td>condition</td>- <td><a href="#google.type.Expr">google.type.Expr</a></td>- <td></td><td><p> </p></td></tr><tr>- <td>semantic_type</td>+ <td>value</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -9699,15 +9776,29 @@ resource.instance_id == "local" && resource.database_name == - <h3 id="bytebase.store.Policy">Policy</h3>- <p></p>+++++++++ <div class="file-heading">+ <h2 id="store/project_webhook.proto">store/project_webhook.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.store.Activity">Activity</h3>+ <p>Activity types for webhook notifications.</p>- <h3 id="bytebase.store.QueryDataPolicy">QueryDataPolicy</h3>- <p>QueryDataPolicy is the policy configuration for querying data.</p>+ <h3 id="bytebase.store.ProjectWebhook">ProjectWebhook</h3>+ <p></p><table class="field-table">@@ -9717,40 +9808,40 @@ resource.instance_id == "local" && resource.database_name == <tbody><tr>- <td>timeout</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>type</td>+ <td><a href="#bytebase.store.WebhookType">WebhookType</a></td><td></td>- <td><p>The query timeout duration. </p></td>+ <td><p>Webhook type. </p></td></tr><tr>- <td>disable_export</td>- <td><a href="#bool">bool</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Disable exporting data in the SQL editor. </p></td>+ <td><p>Webhook title. </p></td></tr><tr>- <td>maximum_result_size</td>- <td><a href="#int64">int64</a></td>+ <td>url</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The size limit in bytes.-The default value is 100MB, we will use the default value if the setting not exists, or the limit <= 0. </p></td>+ <td><p>Webhook URL. </p></td></tr><tr>- <td>maximum_result_rows</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The return rows limit.-The default value is -1, means no limit. </p></td>+ <td>activities</td>+ <td><a href="#bytebase.store.Activity.Type">Activity.Type</a></td>+ <td>repeated</td>+ <td><p>List of activities that trigger this webhook. </p></td></tr><tr>- <td>disable_copy_data</td>+ <td>direct_message</td><td><a href="#bool">bool</a></td><td></td>- <td><p>Disable copying data. </p></td>+ <td><p>If direct_message is set, the notification is sent directly+to the persons and url will be ignored.+IM integration setting should be set for this function to work. </p></td></tr></tbody>@@ -9760,242 +9851,78 @@ The default value is -1, means no limit. </p></td>- <h3 id="bytebase.store.RolloutPolicy">RolloutPolicy</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>automatic</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>roles</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>---- <h3 id="bytebase.store.TagPolicy">TagPolicy</h3>- <p></p>+ <h3 id="bytebase.store.Activity.Type">Activity.Type</h3>+ <p>Activity type enumeration.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p>Unspecified type.</p></td>+ </tr>++ <tr>+ <td>ISSUE_CREATE</td>+ <td>1</td>+ <td><p>Issue related activity types.-- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>tags</td>- <td><a href="#bytebase.store.TagPolicy.TagsEntry">TagPolicy.TagsEntry</a></td>- <td>repeated</td>- <td><p>tags is the key-value map for resources.-For example, the environment resource can have the SQL review config tag, such as "bb.tag.review_config": "reviewConfigs/{review config resource id}". </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.TagPolicy.TagsEntry">TagPolicy.TagsEntry</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>key</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>value</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>-------- <h3 id="bytebase.store.DataSourceQueryPolicy.Restriction">DataSourceQueryPolicy.Restriction</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>RESTRICTION_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>FALLBACK</td>- <td>1</td>- <td><p>Allow to query admin data sources when there is no read-only data source.</p></td>- </tr>-- <tr>- <td>DISALLOW</td>- <td>2</td>- <td><p>Disallow to query admin data sources.</p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.store.EnvironmentTierPolicy.EnvironmentTier">EnvironmentTierPolicy.EnvironmentTier</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ENVIRONMENT_TIER_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>PROTECTED</td>- <td>1</td>- <td><p></p></td>- </tr>-- <tr>- <td>UNPROTECTED</td>- <td>2</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.store.Policy.Resource">Policy.Resource</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>RESOURCE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>WORKSPACE</td>- <td>1</td>- <td><p></p></td>+ISSUE_CREATE represents creating an issue.</p></td></tr><tr>- <td>ENVIRONMENT</td>+ <td>ISSUE_COMMENT_CREATE</td><td>2</td>- <td><p></p></td>+ <td><p>ISSUE_COMMENT_CREATE represents commenting on an issue.</p></td></tr><tr>- <td>PROJECT</td>+ <td>ISSUE_FIELD_UPDATE</td><td>3</td>- <td><p></p></td>- </tr>-- </tbody>- </table>-- <h3 id="bytebase.store.Policy.Type">Policy.Type</h3>- <p></p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p></p></td>- </tr>-- <tr>- <td>ROLLOUT</td>- <td>1</td>- <td><p></p></td>+ <td><p>ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, etc.</p></td></tr><tr>- <td>MASKING_EXEMPTION</td>- <td>2</td>- <td><p></p></td>+ <td>ISSUE_STATUS_UPDATE</td>+ <td>4</td>+ <td><p>ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL for now.</p></td></tr><tr>- <td>QUERY_DATA</td>- <td>3</td>- <td><p></p></td>+ <td>ISSUE_PIPELINE_STAGE_STATUS_UPDATE</td>+ <td>5</td>+ <td><p>ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td></tr><tr>- <td>MASKING_RULE</td>- <td>4</td>- <td><p></p></td>+ <td>ISSUE_APPROVAL_NOTIFY</td>+ <td>6</td>+ <td><p>ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td></tr><tr>- <td>IAM</td>- <td>5</td>- <td><p></p></td>+ <td>ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE</td>+ <td>7</td>+ <td><p>ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED.</p></td></tr><tr>- <td>TAG</td>- <td>6</td>- <td><p></p></td>+ <td>NOTIFY_ISSUE_APPROVED</td>+ <td>8</td>+ <td><p>Notifications via webhooks.++NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td></tr><tr>- <td>DATA_SOURCE_QUERY</td>- <td>7</td>- <td><p></p></td>+ <td>NOTIFY_PIPELINE_ROLLOUT</td>+ <td>9</td>+ <td><p>NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification.</p></td></tr></tbody>@@ -10008,13 +9935,13 @@ For example, the environment resource can have the SQL review config tag, such a<div class="file-heading">- <h2 id="store/project.proto">store/project.proto</h2><a href="#title">Top</a>+ <h2 id="store/query_history.proto">store/query_history.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.store.Label">Label</h3>- <p>Label represents a categorization tag that can be applied to issues.</p>+ <h3 id="bytebase.store.QueryHistoryPayload">QueryHistoryPayload</h3>+ <p></p><table class="field-table">@@ -10024,24 +9951,17 @@ For example, the environment resource can have the SQL review config tag, such a<tbody><tr>- <td>value</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The display text of the label. </p></td>- </tr>-- <tr>- <td>color</td>+ <td>error</td><td><a href="#string">string</a></td>- <td></td>- <td><p>The color for the label in hex format (e.g., "#FF0000"). </p></td>+ <td>optional</td>+ <td><p> </p></td></tr><tr>- <td>group</td>- <td><a href="#string">string</a></td>+ <td>duration</td>+ <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td><td></td>- <td><p>Optional group name for organizing related labels. </p></td>+ <td><p> </p></td></tr></tbody>@@ -10051,8 +9971,22 @@ For example, the environment resource can have the SQL review config tag, such a- <h3 id="bytebase.store.Project">Project</h3>- <p>Project contains settings and configuration for a Bytebase project.</p>+++++++++ <div class="file-heading">+ <h2 id="store/release.proto">store/release.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.store.ReleasePayload">ReleasePayload</h3>+ <p></p><table class="field-table">@@ -10062,143 +9996,91 @@ For example, the environment resource can have the SQL review config tag, such a<tbody><tr>- <td>issue_labels</td>- <td><a href="#bytebase.store.Label">Label</a></td>- <td>repeated</td>- <td><p>Available labels that can be applied to issues in this project. </p></td>- </tr>-- <tr>- <td>force_issue_labels</td>- <td><a href="#bool">bool</a></td>+ <td>title</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Force issue labels to be used when creating an issue. </p></td>+ <td><p> </p></td></tr><tr>- <td>allow_modify_statement</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Allow modifying statement after issue is created. </p></td>- </tr>-- <tr>- <td>auto_resolve_issue</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Enable auto resolve issue. </p></td>- </tr>-- <tr>- <td>enforce_issue_title</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Enforce issue title created by user instead of generated by Bytebase. </p></td>- </tr>-- <tr>- <td>auto_enable_backup</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Whether to automatically enable backup. </p></td>+ <td>files</td>+ <td><a href="#bytebase.store.ReleasePayload.File">ReleasePayload.File</a></td>+ <td>repeated</td>+ <td><p> </p></td></tr><tr>- <td>skip_backup_errors</td>- <td><a href="#bool">bool</a></td>+ <td>vcs_source</td>+ <td><a href="#bytebase.store.ReleasePayload.VCSSource">ReleasePayload.VCSSource</a></td><td></td>- <td><p>Whether to skip backup errors and continue the data migration. </p></td>+ <td><p> </p></td></tr>- <tr>- <td>postgres_database_tenant_mode</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Whether to enable the database tenant mode for PostgreSQL.-If enabled, the issue will be created with the prepend "set role <db_owner>" statement. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.store.ReleasePayload.File">ReleasePayload.File</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>allow_self_approval</td>- <td><a href="#bool">bool</a></td>+ <td>id</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Whether to allow the issue creator to self-approve the issue. </p></td>+ <td><p>The unique identifier for the file. </p></td></tr><tr>- <td>execution_retry_policy</td>- <td><a href="#bytebase.store.Project.ExecutionRetryPolicy">Project.ExecutionRetryPolicy</a></td>+ <td>path</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Configuration for automatic retry on task execution failures. </p></td>+ <td><p>The path of the file, e.g., `2.2/V0001_create_table.sql`. </p></td></tr><tr>- <td>ci_sampling_size</td>- <td><a href="#int32">int32</a></td>+ <td>sheet</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The maximum number of databases to sample during CI data validation.-If not specified, sampling is disabled, resulting in a full validation. </p></td>+ <td><p>The sheet that holds the content.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr>- <td>parallel_tasks_per_rollout</td>- <td><a href="#int32">int32</a></td>+ <td>sheet_sha256</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>The maximum number of parallel tasks to run during the rollout. </p></td>- </tr>-- <tr>- <td>labels</td>- <td><a href="#bytebase.store.Project.LabelsEntry">Project.LabelsEntry</a></td>- <td>repeated</td>- <td><p>Labels are key-value pairs that can be attached to the project.-For example, { "environment": "production", "team": "backend" } </p></td>+ <td><p>The SHA256 hash value of the sheet. </p></td></tr><tr>- <td>enforce_sql_review</td>- <td><a href="#bool">bool</a></td>+ <td>type</td>+ <td><a href="#bytebase.store.SchemaChangeType">SchemaChangeType</a></td><td></td>- <td><p>Whether to enforce SQL review checks to pass before issue creation.-If enabled, issues cannot be created when SQL review finds errors. </p></td>+ <td><p> </p></td></tr><tr>- <td>require_issue_approval</td>- <td><a href="#bool">bool</a></td>+ <td>version</td>+ <td><a href="#string">string</a></td><td></td>- <td><p>Whether issue approval is required before proceeding with rollout. </p></td>+ <td><p> </p></td></tr><tr>- <td>require_plan_check_no_error</td>+ <td>enable_ghost</td><td><a href="#bool">bool</a></td><td></td>- <td><p>Whether to block rollout when plan check finds errors. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.Project.ExecutionRetryPolicy">Project.ExecutionRetryPolicy</h3>- <p>ExecutionRetryPolicy defines retry behavior for failed task executions.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>maximum_retries</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of retry attempts for lock timeout errors. </p></td>+ <td><p>Whether to use gh-ost for online schema migration. </p></td></tr></tbody>@@ -10208,7 +10090,7 @@ If enabled, issues cannot be created when SQL review finds errors. </p></td>- <h3 id="bytebase.store.Project.LabelsEntry">Project.LabelsEntry</h3>+ <h3 id="bytebase.store.ReleasePayload.VCSSource">ReleasePayload.VCSSource</h3><p></p>@@ -10219,14 +10101,14 @@ If enabled, issues cannot be created when SQL review finds errors. </p></td><tbody><tr>- <td>key</td>- <td><a href="#string">string</a></td>+ <td>vcs_type</td>+ <td><a href="#bytebase.store.VCSType">VCSType</a></td><td></td><td><p> </p></td></tr><tr>- <td>value</td>+ <td>url</td><td><a href="#string">string</a></td><td></td><td><p> </p></td>@@ -10248,19 +10130,36 @@ If enabled, issues cannot be created when SQL review finds errors. </p></td><div class="file-heading">- <h2 id="store/project_webhook.proto">store/project_webhook.proto</h2><a href="#title">Top</a>+ <h2 id="store/review_config.proto">store/review_config.proto</h2><a href="#title">Top</a></div><p></p>- <h3 id="bytebase.store.Activity">Activity</h3>- <p>Activity types for webhook notifications.</p>+ <h3 id="bytebase.store.ReviewConfigPayload">ReviewConfigPayload</h3>+ <p></p>+ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>sql_review_rules</td>+ <td><a href="#bytebase.store.SQLReviewRule">SQLReviewRule</a></td>+ <td>repeated</td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++- <h3 id="bytebase.store.ProjectWebhook">ProjectWebhook</h3>+ <h3 id="bytebase.store.SQLReviewRule">SQLReviewRule</h3><p></p>@@ -10272,39 +10171,65 @@ If enabled, issues cannot be created when SQL review finds errors. </p></td><tr><td>type</td>- <td><a href="#bytebase.store.WebhookType">WebhookType</a></td>+ <td><a href="#bytebase.store.SQLReviewRule.Type">SQLReviewRule.Type</a></td><td></td>- <td><p>Webhook type. </p></td>+ <td><p> </p></td></tr><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>level</td>+ <td><a href="#bytebase.store.SQLReviewRule.Level">SQLReviewRule.Level</a></td><td></td>- <td><p>Webhook title. </p></td>+ <td><p> </p></td></tr><tr>- <td>url</td>- <td><a href="#string">string</a></td>+ <td>naming_payload</td>+ <td><a href="#bytebase.store.SQLReviewRule.NamingRulePayload">SQLReviewRule.NamingRulePayload</a></td><td></td>- <td><p>Webhook URL. </p></td>+ <td><p> </p></td></tr><tr>- <td>activities</td>- <td><a href="#bytebase.store.Activity.Type">Activity.Type</a></td>- <td>repeated</td>- <td><p>List of activities that trigger this webhook. </p></td>+ <td>number_payload</td>+ <td><a href="#bytebase.store.SQLReviewRule.NumberRulePayload">SQLReviewRule.NumberRulePayload</a></td>+ <td></td>+ <td><p> </p></td></tr><tr>- <td>direct_message</td>- <td><a href="#bool">bool</a></td>+ <td>string_array_payload</td>+ <td><a href="#bytebase.store.SQLReviewRule.StringArrayRulePayload">SQLReviewRule.StringArrayRulePayload</a></td><td></td>- <td><p>If direct_message is set, the notification is sent directly-to the persons and url will be ignored.-IM integration setting should be set for this function to work. </p></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>comment_convention_payload</td>+ <td><a href="#bytebase.store.SQLReviewRule.CommentConventionRulePayload">SQLReviewRule.CommentConventionRulePayload</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>string_payload</td>+ <td><a href="#bytebase.store.SQLReviewRule.StringRulePayload">SQLReviewRule.StringRulePayload</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>naming_case_payload</td>+ <td><a href="#bytebase.store.SQLReviewRule.NamingCaseRulePayload">SQLReviewRule.NamingCaseRulePayload</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>engine</td>+ <td><a href="#bytebase.store.Engine">Engine</a></td>+ <td></td>+ <td><p> </p></td></tr></tbody>@@ -10314,96 +10239,38 @@ IM integration setting should be set for this function to work. </p></td>+ <h3 id="bytebase.store.SQLReviewRule.CommentConventionRulePayload">SQLReviewRule.CommentConventionRulePayload</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>required</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>max_length</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>+++- <h3 id="bytebase.store.Activity.Type">Activity.Type</h3>- <p>Activity type enumeration.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>TYPE_UNSPECIFIED</td>- <td>0</td>- <td><p>Unspecified type.</p></td>- </tr>-- <tr>- <td>ISSUE_CREATE</td>- <td>1</td>- <td><p>Issue related activity types.--ISSUE_CREATE represents creating an issue.</p></td>- </tr>-- <tr>- <td>ISSUE_COMMENT_CREATE</td>- <td>2</td>- <td><p>ISSUE_COMMENT_CREATE represents commenting on an issue.</p></td>- </tr>-- <tr>- <td>ISSUE_FIELD_UPDATE</td>- <td>3</td>- <td><p>ISSUE_FIELD_UPDATE represents updating the issue field, likes title, description, etc.</p></td>- </tr>-- <tr>- <td>ISSUE_STATUS_UPDATE</td>- <td>4</td>- <td><p>ISSUE_STATUS_UPDATE represents the issue status change, including OPEN, CLOSE, CANCEL for now.</p></td>- </tr>-- <tr>- <td>ISSUE_PIPELINE_STAGE_STATUS_UPDATE</td>- <td>5</td>- <td><p>ISSUE_PIPELINE_STAGE_STATUS_UPDATE represents the pipeline stage status change, including BEGIN, END for now.</p></td>- </tr>-- <tr>- <td>ISSUE_APPROVAL_NOTIFY</td>- <td>6</td>- <td><p>ISSUE_APPROVAL_NOTIFY is the type for notifying issue approval.</p></td>- </tr>-- <tr>- <td>ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE</td>- <td>7</td>- <td><p>ISSUE_PIPELINE_TASK_RUN_STATUS_UPDATE represents the pipeline task run status change, including PENDING, RUNNING, DONE, FAILED, CANCELED.</p></td>- </tr>-- <tr>- <td>NOTIFY_ISSUE_APPROVED</td>- <td>8</td>- <td><p>Notifications via webhooks.--NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td>- </tr>-- <tr>- <td>NOTIFY_PIPELINE_ROLLOUT</td>- <td>9</td>- <td><p>NOTIFY_PIPELINE_ROLLOUT represents the pipeline rollout notification.</p></td>- </tr>-- </tbody>- </table>-------- <div class="file-heading">- <h2 id="store/query_history.proto">store/query_history.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.store.QueryHistoryPayload">QueryHistoryPayload</h3>+ <h3 id="bytebase.store.SQLReviewRule.NamingCaseRulePayload">SQLReviewRule.NamingCaseRulePayload</h3><p></p>@@ -10414,15 +10281,8 @@ NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td><tbody><tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td>optional</td>- <td><p> </p></td>- </tr>-- <tr>- <td>duration</td>- <td><a href="#google.protobuf.Duration">google.protobuf.Duration</a></td>+ <td>upper</td>+ <td><a href="#bool">bool</a></td><td></td><td><p> </p></td></tr>@@ -10434,22 +10294,8 @@ NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td>--------- <div class="file-heading">- <h2 id="store/release.proto">store/release.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.store.ReleasePayload">ReleasePayload</h3>- <p></p>+ <h3 id="bytebase.store.SQLReviewRule.NamingRulePayload">SQLReviewRule.NamingRulePayload</h3>+ <p>Payload message types for SQL review rules</p><table class="field-table">@@ -10459,22 +10305,15 @@ NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td><tbody><tr>- <td>title</td>- <td><a href="#string">string</a></td>+ <td>max_length</td>+ <td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr><tr>- <td>files</td>- <td><a href="#bytebase.store.ReleasePayload.File">ReleasePayload.File</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- <tr>- <td>vcs_source</td>- <td><a href="#bytebase.store.ReleasePayload.VCSSource">ReleasePayload.VCSSource</a></td>+ <td>format</td>+ <td><a href="#string">string</a></td><td></td><td><p> </p></td></tr>@@ -10486,7 +10325,7 @@ NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td>- <h3 id="bytebase.store.ReleasePayload.File">ReleasePayload.File</h3>+ <h3 id="bytebase.store.SQLReviewRule.NumberRulePayload">SQLReviewRule.NumberRulePayload</h3><p></p>@@ -10497,55 +10336,12 @@ NOTIFY_ISSUE_APPROVED represents the issue approved notification.</p></td><tbody><tr>- <td>id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The unique identifier for the file. </p></td>- </tr>-- <tr>- <td>path</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The path of the file, e.g., `2.2/V0001_create_table.sql`. </p></td>- </tr>-- <tr>- <td>sheet</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The sheet that holds the content.-Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>sheet_sha256</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The SHA256 hash value of the sheet. </p></td>- </tr>-- <tr>- <td>type</td>- <td><a href="#bytebase.store.SchemaChangeType">SchemaChangeType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>version</td>- <td><a href="#string">string</a></td>+ <td>number</td>+ <td><a href="#int32">int32</a></td><td></td><td><p> </p></td></tr>- <tr>- <td>enable_ghost</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p>Whether to use gh-ost for online schema migration. </p></td>- </tr>-</tbody></table>@@ -10553,7 +10349,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>- <h3 id="bytebase.store.ReleasePayload.VCSSource">ReleasePayload.VCSSource</h3>+ <h3 id="bytebase.store.SQLReviewRule.StringArrayRulePayload">SQLReviewRule.StringArrayRulePayload</h3><p></p>@@ -10564,16 +10360,9 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>vcs_type</td>- <td><a href="#bytebase.store.VCSType">VCSType</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>url</td>+ <td>list</td><td><a href="#string">string</a></td>- <td></td>+ <td>repeated</td><td><p> </p></td></tr>@@ -10584,21 +10373,7 @@ Format: projects/{project}/sheets/{sheet} </p></td>--------- <div class="file-heading">- <h2 id="store/review_config.proto">store/review_config.proto</h2><a href="#title">Top</a>- </div>- <p></p>--- <h3 id="bytebase.store.ReviewConfigPayload">ReviewConfigPayload</h3>+ <h3 id="bytebase.store.SQLReviewRule.StringRulePayload">SQLReviewRule.StringRulePayload</h3><p></p>@@ -10609,247 +10384,9 @@ Format: projects/{project}/sheets/{sheet} </p></td><tbody><tr>- <td>sql_review_rules</td>- <td><a href="#bytebase.store.SQLReviewRule">SQLReviewRule</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SQLReviewRule">SQLReviewRule</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>type</td>- <td><a href="#bytebase.store.SQLReviewRule.Type">SQLReviewRule.Type</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>level</td>- <td><a href="#bytebase.store.SQLReviewRule.Level">SQLReviewRule.Level</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>naming_payload</td>- <td><a href="#bytebase.store.SQLReviewRule.NamingRulePayload">SQLReviewRule.NamingRulePayload</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>number_payload</td>- <td><a href="#bytebase.store.SQLReviewRule.NumberRulePayload">SQLReviewRule.NumberRulePayload</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>string_array_payload</td>- <td><a href="#bytebase.store.SQLReviewRule.StringArrayRulePayload">SQLReviewRule.StringArrayRulePayload</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>comment_convention_payload</td>- <td><a href="#bytebase.store.SQLReviewRule.CommentConventionRulePayload">SQLReviewRule.CommentConventionRulePayload</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>string_payload</td>- <td><a href="#bytebase.store.SQLReviewRule.StringRulePayload">SQLReviewRule.StringRulePayload</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>naming_case_payload</td>- <td><a href="#bytebase.store.SQLReviewRule.NamingCaseRulePayload">SQLReviewRule.NamingCaseRulePayload</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>engine</td>- <td><a href="#bytebase.store.Engine">Engine</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SQLReviewRule.CommentConventionRulePayload">SQLReviewRule.CommentConventionRulePayload</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>required</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>max_length</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SQLReviewRule.NamingCaseRulePayload">SQLReviewRule.NamingCaseRulePayload</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>upper</td>- <td><a href="#bool">bool</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SQLReviewRule.NamingRulePayload">SQLReviewRule.NamingRulePayload</h3>- <p>Payload message types for SQL review rules</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>max_length</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- <tr>- <td>format</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SQLReviewRule.NumberRulePayload">SQLReviewRule.NumberRulePayload</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>number</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SQLReviewRule.StringArrayRulePayload">SQLReviewRule.StringArrayRulePayload</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>list</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p> </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.store.SQLReviewRule.StringRulePayload">SQLReviewRule.StringRulePayload</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>value</td>- <td><a href="#string">string</a></td>- <td></td>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td><td><p> </p></td></tr>@@ -13254,8 +12791,272 @@ Default to this mode.</p></td><p></p>- <h3 id="bytebase.store.Task">Task</h3>- <p>Task is the metadata for database operation tasks.</p>+ <h3 id="bytebase.store.Task">Task</h3>+ <p>Task is the metadata for database operation tasks.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>skipped</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether the task was skipped during execution. </p></td>+ </tr>++ <tr>+ <td>skipped_reason</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Reason why the task was skipped. </p></td>+ </tr>++ <tr>+ <td>spec_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>UUID that identifies the spec this task implements. </p></td>+ </tr>++ <tr>+ <td>sheet_id</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>The sheet ID containing SQL statements for this task. </p></td>+ </tr>++ <tr>+ <td>environment_id</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The environment where the database will be created. </p></td>+ </tr>++ <tr>+ <td>database_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Name of the database to create. </p></td>+ </tr>++ <tr>+ <td>table_name</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Optional table name to create (required for some databases like MongoDB). </p></td>+ </tr>++ <tr>+ <td>character_set</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Character set for the new database. </p></td>+ </tr>++ <tr>+ <td>collation</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Collation for the new database. </p></td>+ </tr>++ <tr>+ <td>schema_version</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Schema version after migration is applied. </p></td>+ </tr>++ <tr>+ <td>enable_prior_backup</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to create an automatic backup before applying changes. </p></td>+ </tr>++ <tr>+ <td>flags</td>+ <td><a href="#bytebase.store.Task.FlagsEntry">Task.FlagsEntry</a></td>+ <td>repeated</td>+ <td><p>Configuration flags for gh-ost migration tool. </p></td>+ </tr>++ <tr>+ <td>task_release_source</td>+ <td><a href="#bytebase.store.TaskReleaseSource">TaskReleaseSource</a></td>+ <td></td>+ <td><p>Source information if task is created from a release. </p></td>+ </tr>++ <tr>+ <td>password</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Password to encrypt the exported data archive. </p></td>+ </tr>++ <tr>+ <td>format</td>+ <td><a href="#bytebase.store.ExportFormat">ExportFormat</a></td>+ <td></td>+ <td><p>Format of the exported data (SQL, CSV, JSON, etc). </p></td>+ </tr>++ <tr>+ <td>enable_ghost</td>+ <td><a href="#bool">bool</a></td>+ <td></td>+ <td><p>Whether to use gh-ost for online schema migration. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.Task.FlagsEntry">Task.FlagsEntry</h3>+ <p></p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>key</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ <tr>+ <td>value</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p> </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.TaskReleaseSource">TaskReleaseSource</h3>+ <p>TaskReleaseSource contains information about the release file this task originated from.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>file</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>Resource name of the release file.+Format: projects/{project}/releases/{release}/files/{id} </p></td>+ </tr>++ </tbody>+ </table>++++++++ <h3 id="bytebase.store.Task.Type">Task.Type</h3>+ <p>Type represents the type of database operation to perform.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>TASK_TYPE_UNSPECIFIED</td>+ <td>0</td>+ <td><p></p></td>+ </tr>++ <tr>+ <td>DATABASE_CREATE</td>+ <td>1</td>+ <td><p>Create a new database.</p></td>+ </tr>++ <tr>+ <td>DATABASE_MIGRATE</td>+ <td>2</td>+ <td><p>Apply schema/data migrations to an existing database.</p></td>+ </tr>++ <tr>+ <td>DATABASE_EXPORT</td>+ <td>3</td>+ <td><p>Export data from a database.</p></td>+ </tr>++ <tr>+ <td>DATABASE_SDL</td>+ <td>4</td>+ <td><p>Apply declarative schema changes (state-based migration).</p></td>+ </tr>++ </tbody>+ </table>++++++++ <div class="file-heading">+ <h2 id="store/task_run.proto">store/task_run.proto</h2><a href="#title">Top</a>+ </div>+ <p></p>+++ <h3 id="bytebase.store.PriorBackupDetail">PriorBackupDetail</h3>+ <p>PriorBackupDetail contains information about automatic backups created before migration.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>items</td>+ <td><a href="#bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</a></td>+ <td>repeated</td>+ <td><p>List of backup operations performed. </p></td>+ </tr>++ </tbody>+ </table>++++++ <h3 id="bytebase.store.PriorBackupDetail.Item">PriorBackupDetail.Item</h3>+ <p>Item represents a single backup operation for a table.</p><table class="field-table">@@ -13265,115 +13066,139 @@ Default to this mode.</p></td><tbody><tr>- <td>skipped</td>- <td><a href="#bool">bool</a></td>+ <td>source_table</td>+ <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td><td></td>- <td><p>Whether the task was skipped during execution. </p></td>+ <td><p>The original table that was backed up. </p></td></tr><tr>- <td>skipped_reason</td>- <td><a href="#string">string</a></td>+ <td>target_table</td>+ <td><a href="#bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</a></td><td></td>- <td><p>Reason why the task was skipped. </p></td>+ <td><p>The backup table where data was copied. </p></td></tr><tr>- <td>spec_id</td>- <td><a href="#string">string</a></td>+ <td>start_position</td>+ <td><a href="#bytebase.store.Position">Position</a></td><td></td>- <td><p>UUID that identifies the spec this task implements. </p></td>+ <td><p>Starting position in SQL for this backup operation. </p></td></tr><tr>- <td>sheet_id</td>- <td><a href="#int32">int32</a></td>+ <td>end_position</td>+ <td><a href="#bytebase.store.Position">Position</a></td><td></td>- <td><p>The sheet ID containing SQL statements for this task. </p></td>+ <td><p>Ending position in SQL for this backup operation. </p></td></tr>- <tr>- <td>environment_id</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The environment where the database will be created. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.store.PriorBackupDetail.Item.Table">PriorBackupDetail.Item.Table</h3>+ <p>Table identifies a database table.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>database_name</td>+ <td>database</td><td><a href="#string">string</a></td><td></td>- <td><p>Name of the database to create. </p></td>+ <td><p>The database containing the table.+Format: instances/{instance}/databases/{database} </p></td></tr><tr>- <td>table_name</td>+ <td>schema</td><td><a href="#string">string</a></td><td></td>- <td><p>Optional table name to create (required for some databases like MongoDB). </p></td>+ <td><p>Schema name (for databases that support schemas). </p></td></tr><tr>- <td>character_set</td>+ <td>table</td><td><a href="#string">string</a></td><td></td>- <td><p>Character set for the new database. </p></td>+ <td><p>Table name. </p></td></tr>- <tr>- <td>collation</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Collation for the new database. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.store.SchedulerInfo">SchedulerInfo</h3>+ <p>SchedulerInfo contains information about task scheduling and execution delays.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>schema_version</td>- <td><a href="#string">string</a></td>+ <td>report_time</td>+ <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td><td></td>- <td><p>Schema version after migration is applied. </p></td>+ <td><p>Timestamp when the scheduler reported this information. </p></td></tr><tr>- <td>enable_prior_backup</td>- <td><a href="#bool">bool</a></td>+ <td>waiting_cause</td>+ <td><a href="#bytebase.store.SchedulerInfo.WaitingCause">SchedulerInfo.WaitingCause</a></td><td></td>- <td><p>Whether to create an automatic backup before applying changes. </p></td>- </tr>-- <tr>- <td>flags</td>- <td><a href="#bytebase.store.Task.FlagsEntry">Task.FlagsEntry</a></td>- <td>repeated</td>- <td><p>Configuration flags for gh-ost migration tool. </p></td>+ <td><p>Reason why the task run is currently waiting. </p></td></tr>- <tr>- <td>task_release_source</td>- <td><a href="#bytebase.store.TaskReleaseSource">TaskReleaseSource</a></td>- <td></td>- <td><p>Source information if task is created from a release. </p></td>- </tr>+ </tbody>+ </table>++++++ <h3 id="bytebase.store.SchedulerInfo.WaitingCause">SchedulerInfo.WaitingCause</h3>+ <p>WaitingCause indicates why a task run is waiting to execute.</p>+++ <table class="field-table">+ <thead>+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>+ </thead>+ <tbody><tr>- <td>password</td>- <td><a href="#string">string</a></td>+ <td>connection_limit</td>+ <td><a href="#bool">bool</a></td><td></td>- <td><p>Password to encrypt the exported data archive. </p></td>+ <td><p>Task is waiting due to database connection limit. </p></td></tr><tr>- <td>format</td>- <td><a href="#bytebase.store.ExportFormat">ExportFormat</a></td>+ <td>task_uid</td>+ <td><a href="#int32">int32</a></td><td></td>- <td><p>Format of the exported data (SQL, CSV, JSON, etc). </p></td>+ <td><p>Task is waiting for another task to complete. </p></td></tr><tr>- <td>enable_ghost</td>+ <td>parallel_tasks_limit</td><td><a href="#bool">bool</a></td><td></td>- <td><p>Whether to use gh-ost for online schema migration. </p></td>+ <td><p>Task is waiting due to parallel execution limit. </p></td></tr></tbody>@@ -13383,8 +13208,15 @@ Default to this mode.</p></td>- <h3 id="bytebase.store.Task.FlagsEntry">Task.FlagsEntry</h3>- <p></p>+ <h3 id="bytebase.store.TaskRun">TaskRun</h3>+ <p>TaskRun represents an execution attempt of a task.</p>++++++ <h3 id="bytebase.store.TaskRunResult">TaskRunResult</h3>+ <p>TaskRunResult contains the outcome and metadata from a task run execution.</p><table class="field-table">@@ -13394,42 +13226,53 @@ Default to this mode.</p></td><tbody><tr>- <td>key</td>+ <td>detail</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Detailed execution information or error message. </p></td></tr><tr>- <td>value</td>+ <td>version</td><td><a href="#string">string</a></td><td></td>- <td><p> </p></td>+ <td><p>Schema version after the migration was applied. </p></td></tr>- </tbody>- </table>------ <h3 id="bytebase.store.TaskReleaseSource">TaskReleaseSource</h3>- <p>TaskReleaseSource contains information about the release file this task originated from.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>+ <tr>+ <td>start_position</td>+ <td><a href="#bytebase.store.Position">Position</a></td>+ <td></td>+ <td><p>Starting position in the SQL statement where an error occurred. </p></td>+ </tr><tr>- <td>file</td>+ <td>end_position</td>+ <td><a href="#bytebase.store.Position">Position</a></td>+ <td></td>+ <td><p>Ending position in the SQL statement where an error occurred. </p></td>+ </tr>++ <tr>+ <td>export_archive_uid</td>+ <td><a href="#int32">int32</a></td>+ <td></td>+ <td><p>UID of the export archive generated for export tasks. </p></td>+ </tr>++ <tr>+ <td>prior_backup_detail</td>+ <td><a href="#bytebase.store.PriorBackupDetail">PriorBackupDetail</a></td>+ <td></td>+ <td><p>Backup details that can be used to rollback changes. </p></td>+ </tr>++ <tr>+ <td>changelog</td><td><a href="#string">string</a></td><td></td>- <td><p>Resource name of the release file.-Format: projects/{project}/releases/{release}/files/{id} </p></td>+ <td><p>Resource name of the changelog entry created by this run.+Format: instances/{instance}/databases/{database}/changelogs/{changelog} </p></td></tr></tbody>@@ -13441,8 +13284,8 @@ Format: projects/{project}/releases/{release}/files/{id} </p></td>- <h3 id="bytebase.store.Task.Type">Task.Type</h3>- <p>Type represents the type of database operation to perform.</p>+ <h3 id="bytebase.store.TaskRun.Status">TaskRun.Status</h3>+ <p>Status represents the current execution state of a task run.</p><table class="enum-table"><thead><tr><td>Name</td><td>Number</td><td>Description</td></tr>@@ -13450,33 +13293,51 @@ Format: projects/{project}/releases/{release}/files/{id} </p></td><tbody><tr>- <td>TASK_TYPE_UNSPECIFIED</td>+ <td>STATUS_UNSPECIFIED</td><td>0</td><td><p></p></td></tr><tr>- <td>DATABASE_CREATE</td>+ <td>PENDING</td><td>1</td>- <td><p>Create a new database.</p></td>+ <td><p>Task run is queued and waiting to execute.</p></td></tr><tr>- <td>DATABASE_MIGRATE</td>+ <td>RUNNING</td><td>2</td>- <td><p>Apply schema/data migrations to an existing database.</p></td>+ <td><p>Task run is currently executing.</p></td></tr><tr>- <td>DATABASE_EXPORT</td>+ <td>DONE</td><td>3</td>- <td><p>Export data from a database.</p></td>+ <td><p>Task run completed successfully.</p></td></tr><tr>- <td>DATABASE_SDL</td>+ <td>FAILED</td><td>4</td>- <td><p>Apply declarative schema changes (state-based migration).</p></td>+ <td><p>Task run encountered an error and failed.</p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>5</td>+ <td><p>Task run was canceled by user or system.</p></td>+ </tr>++ <tr>+ <td>NOT_STARTED</td>+ <td>6</td>+ <td><p>Task run has not started yet.</p></td>+ </tr>++ <tr>+ <td>SKIPPED</td>+ <td>7</td>+ <td><p>Task run was skipped and will not execute.</p></td></tr></tbody>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex e6a1a26e56..3406f547ef 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -39,10 +39,7 @@- [IssueComment](#bytebase-v1-IssueComment)- [IssueComment.Approval](#bytebase-v1-IssueComment-Approval)- [IssueComment.IssueUpdate](#bytebase-v1-IssueComment-IssueUpdate)- - [IssueComment.StageEnd](#bytebase-v1-IssueComment-StageEnd)- - [IssueComment.TaskPriorBackup](#bytebase-v1-IssueComment-TaskPriorBackup)- - [IssueComment.TaskPriorBackup.Table](#bytebase-v1-IssueComment-TaskPriorBackup-Table)- - [IssueComment.TaskUpdate](#bytebase-v1-IssueComment-TaskUpdate)+ - [IssueComment.PlanSpecUpdate](#bytebase-v1-IssueComment-PlanSpecUpdate)- [ListIssueCommentsRequest](#bytebase-v1-ListIssueCommentsRequest)- [ListIssueCommentsResponse](#bytebase-v1-ListIssueCommentsResponse)- [ListIssuesRequest](#bytebase-v1-ListIssuesRequest)@@ -58,7 +55,6 @@- [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status)- [Issue.Type](#bytebase-v1-Issue-Type)- [IssueComment.Approval.Status](#bytebase-v1-IssueComment-Approval-Status)- - [IssueComment.TaskUpdate.Status](#bytebase-v1-IssueComment-TaskUpdate-Status)- [IssueStatus](#bytebase-v1-IssueStatus)- [IssueService](#bytebase-v1-IssueService)@@ -1140,9 +1136,7 @@ A comment on an issue.| creator | [string](#string) | | Format: users/{email} || approval | [IssueComment.Approval](#bytebase-v1-IssueComment-Approval) | | Approval event. || issue_update | [IssueComment.IssueUpdate](#bytebase-v1-IssueComment-IssueUpdate) | | Issue update event. |-| stage_end | [IssueComment.StageEnd](#bytebase-v1-IssueComment-StageEnd) | | Stage end event. |-| task_update | [IssueComment.TaskUpdate](#bytebase-v1-IssueComment-TaskUpdate) | | Task update event. |-| task_prior_backup | [IssueComment.TaskPriorBackup](#bytebase-v1-IssueComment-TaskPriorBackup) | | Task prior backup event. |+| plan_spec_update | [IssueComment.PlanSpecUpdate](#bytebase-v1-IssueComment-PlanSpecUpdate) | | Plan spec update event. |@@ -1186,68 +1180,17 @@ Issue update event information.-<a name="bytebase-v1-IssueComment-StageEnd"></a>+<a name="bytebase-v1-IssueComment-PlanSpecUpdate"></a>-### IssueComment.StageEnd-Stage end event information.+### IssueComment.PlanSpecUpdate+Plan spec update event information (tracks sheet changes to plan specs).| Field | Type | Label | Description || ----- | ---- | ----- | ----------- |-| stage | [string](#string) | | The stage that ended. |-------<a name="bytebase-v1-IssueComment-TaskPriorBackup"></a>--### IssueComment.TaskPriorBackup-Task prior backup event information.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| task | [string](#string) | | The task for which backup was performed. |-| tables | [IssueComment.TaskPriorBackup.Table](#bytebase-v1-IssueComment-TaskPriorBackup-Table) | repeated | The tables that were backed up. |-| original_line | [int32](#int32) | optional | The original line number in the statement. |-| database | [string](#string) | | The database that was backed up. |-| error | [string](#string) | | Error message if backup failed. |-------<a name="bytebase-v1-IssueComment-TaskPriorBackup-Table"></a>--### IssueComment.TaskPriorBackup.Table-Table identification.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| schema | [string](#string) | | The schema name. |-| table | [string](#string) | | The table name. |-------<a name="bytebase-v1-IssueComment-TaskUpdate"></a>--### IssueComment.TaskUpdate-Task update event information.---| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| tasks | [string](#string) | repeated | The tasks that were updated. |-| from_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |-| to_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |-| to_status | [IssueComment.TaskUpdate.Status](#bytebase-v1-IssueComment-TaskUpdate-Status) | optional | |+| spec | [string](#string) | | The spec that was updated. Format: projects/{project}/plans/{plan}/specs/{spec} |+| from_sheet | [string](#string) | optional | The previous sheet. Format: projects/{project}/sheets/{sheet} |+| to_sheet | [string](#string) | optional | The new sheet. Format: projects/{project}/sheets/{sheet} |@@ -1497,23 +1440,6 @@ Approval status values.-<a name="bytebase-v1-IssueComment-TaskUpdate-Status"></a>--### IssueComment.TaskUpdate.Status-Task status values.--| Name | Number | Description |-| ---- | ------ | ----------- |-| STATUS_UNSPECIFIED | 0 | Unspecified status. |-| PENDING | 1 | Task is pending. |-| RUNNING | 2 | Task is running. |-| DONE | 3 | Task is done. |-| FAILED | 4 | Task failed. |-| SKIPPED | 5 | Task was skipped. |-| CANCELED | 6 | Task was canceled. |---<a name="bytebase-v1-IssueStatus"></a>### IssueStatusdiff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 1143f4ed83..5032c512ba 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -317,19 +317,7 @@</li><li>- <a href="#bytebase.v1.IssueComment.StageEnd"><span class="badge">M</span>IssueComment.StageEnd</a>- </li>-- <li>- <a href="#bytebase.v1.IssueComment.TaskPriorBackup"><span class="badge">M</span>IssueComment.TaskPriorBackup</a>- </li>-- <li>- <a href="#bytebase.v1.IssueComment.TaskPriorBackup.Table"><span class="badge">M</span>IssueComment.TaskPriorBackup.Table</a>- </li>-- <li>- <a href="#bytebase.v1.IssueComment.TaskUpdate"><span class="badge">M</span>IssueComment.TaskUpdate</a>+ <a href="#bytebase.v1.IssueComment.PlanSpecUpdate"><span class="badge">M</span>IssueComment.PlanSpecUpdate</a></li><li>@@ -389,10 +377,6 @@<a href="#bytebase.v1.IssueComment.Approval.Status"><span class="badge">E</span>IssueComment.Approval.Status</a></li>- <li>- <a href="#bytebase.v1.IssueComment.TaskUpdate.Status"><span class="badge">E</span>IssueComment.TaskUpdate.Status</a>- </li>-<li><a href="#bytebase.v1.IssueStatus"><span class="badge">E</span>IssueStatus</a></li>@@ -3946,24 +3930,10 @@ Keys are the following:</tr><tr>- <td>stage_end</td>- <td><a href="#bytebase.v1.IssueComment.StageEnd">IssueComment.StageEnd</a></td>- <td></td>- <td><p>Stage end event. </p></td>- </tr>-- <tr>- <td>task_update</td>- <td><a href="#bytebase.v1.IssueComment.TaskUpdate">IssueComment.TaskUpdate</a></td>+ <td>plan_spec_update</td>+ <td><a href="#bytebase.v1.IssueComment.PlanSpecUpdate">IssueComment.PlanSpecUpdate</a></td><td></td>- <td><p>Task update event. </p></td>- </tr>-- <tr>- <td>task_prior_backup</td>- <td><a href="#bytebase.v1.IssueComment.TaskPriorBackup">IssueComment.TaskPriorBackup</a></td>- <td></td>- <td><p>Task prior backup event. </p></td>+ <td><p>Plan spec update event. </p></td></tr></tbody>@@ -4070,84 +4040,8 @@ Keys are the following:- <h3 id="bytebase.v1.IssueComment.StageEnd">IssueComment.StageEnd</h3>- <p>Stage end event information.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>stage</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The stage that ended. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.IssueComment.TaskPriorBackup">IssueComment.TaskPriorBackup</h3>- <p>Task prior backup event information.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>task</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The task for which backup was performed. </p></td>- </tr>-- <tr>- <td>tables</td>- <td><a href="#bytebase.v1.IssueComment.TaskPriorBackup.Table">IssueComment.TaskPriorBackup.Table</a></td>- <td>repeated</td>- <td><p>The tables that were backed up. </p></td>- </tr>-- <tr>- <td>original_line</td>- <td><a href="#int32">int32</a></td>- <td>optional</td>- <td><p>The original line number in the statement. </p></td>- </tr>-- <tr>- <td>database</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The database that was backed up. </p></td>- </tr>-- <tr>- <td>error</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Error message if backup failed. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.IssueComment.TaskPriorBackup.Table">IssueComment.TaskPriorBackup.Table</h3>- <p>Table identification.</p>+ <h3 id="bytebase.v1.IssueComment.PlanSpecUpdate">IssueComment.PlanSpecUpdate</h3>+ <p>Plan spec update event information (tracks sheet changes to plan specs).</p><table class="field-table">@@ -4157,62 +4051,27 @@ Keys are the following:<tbody><tr>- <td>schema</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The schema name. </p></td>- </tr>-- <tr>- <td>table</td>+ <td>spec</td><td><a href="#string">string</a></td><td></td>- <td><p>The table name. </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.IssueComment.TaskUpdate">IssueComment.TaskUpdate</h3>- <p>Task update event information.</p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>tasks</td>- <td><a href="#string">string</a></td>- <td>repeated</td>- <td><p>The tasks that were updated. </p></td>+ <td><p>The spec that was updated.+Format: projects/{project}/plans/{plan}/specs/{spec} </p></td></tr><tr><td>from_sheet</td><td><a href="#string">string</a></td><td>optional</td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>+ <td><p>The previous sheet.+Format: projects/{project}/sheets/{sheet} </p></td></tr><tr><td>to_sheet</td><td><a href="#string">string</a></td><td>optional</td>- <td><p>Format: projects/{project}/sheets/{sheet} </p></td>- </tr>-- <tr>- <td>to_status</td>- <td><a href="#bytebase.v1.IssueComment.TaskUpdate.Status">IssueComment.TaskUpdate.Status</a></td>- <td>optional</td>- <td><p> </p></td>+ <td><p>The new sheet.+Format: projects/{project}/sheets/{sheet} </p></td></tr></tbody>@@ -4819,59 +4678,6 @@ In this situation, `update_mask` is ignored. </p></td></tbody></table>- <h3 id="bytebase.v1.IssueComment.TaskUpdate.Status">IssueComment.TaskUpdate.Status</h3>- <p>Task status values.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p>Unspecified status.</p></td>- </tr>-- <tr>- <td>PENDING</td>- <td>1</td>- <td><p>Task is pending.</p></td>- </tr>-- <tr>- <td>RUNNING</td>- <td>2</td>- <td><p>Task is running.</p></td>- </tr>-- <tr>- <td>DONE</td>- <td>3</td>- <td><p>Task is done.</p></td>- </tr>-- <tr>- <td>FAILED</td>- <td>4</td>- <td><p>Task failed.</p></td>- </tr>-- <tr>- <td>SKIPPED</td>- <td>5</td>- <td><p>Task was skipped.</p></td>- </tr>-- <tr>- <td>CANCELED</td>- <td>6</td>- <td><p>Task was canceled.</p></td>- </tr>-- </tbody>- </table>-<h3 id="bytebase.v1.IssueStatus">IssueStatus</h3><p>The status of an issue.</p><table class="enum-table">diff --git a/proto/store/store/issue_comment.proto b/proto/store/store/issue_comment.protoindex 4236e3b354..bf67731f63 100644--- a/proto/store/store/issue_comment.proto+++ b/proto/store/store/issue_comment.proto@@ -4,7 +4,6 @@ package bytebase.store;import "store/approval.proto";import "store/issue.proto";-import "store/task_run.proto";option go_package = "generated-go/store";@@ -14,9 +13,7 @@ message IssueCommentPayload {oneof event {Approval approval = 2;IssueUpdate issue_update = 3;- StageEnd stage_end = 4;- TaskUpdate task_update = 5;- TaskPriorBackup task_prior_backup = 6;+ PlanSpecUpdate plan_spec_update = 7;}message Approval {@@ -34,29 +31,14 @@ message IssueCommentPayload {repeated string to_labels = 8;}- message StageEnd {- string stage = 1;- }-- message TaskUpdate {- repeated string tasks = 1;+ // Plan spec update event (tracks sheet changes to plan specs)+ message PlanSpecUpdate {+ // The spec that was updated+ // Format: projects/{project}/plans/{plan}/specs/{spec}+ string spec = 1;// Format: projects/{project}/sheets/{sheet}optional string from_sheet = 2;// Format: projects/{project}/sheets/{sheet}optional string to_sheet = 3;- optional TaskRun.Status to_status = 6;- }-- message TaskPriorBackup {- string task = 1;- repeated Table tables = 2;- optional int32 original_line = 3;- string database = 4;- string error = 5;-- message Table {- string schema = 1;- string table = 2;- }}}diff --git a/proto/v1/v1/issue_service.proto b/proto/v1/v1/issue_service.protoindex 2d3eb675c9..9720476cb6 100644--- a/proto/v1/v1/issue_service.proto+++ b/proto/v1/v1/issue_service.proto@@ -595,12 +595,8 @@ message IssueComment {Approval approval = 7;// Issue update event.IssueUpdate issue_update = 8;- // Stage end event.- StageEnd stage_end = 9;- // Task update event.- TaskUpdate task_update = 10;- // Task prior backup event.- TaskPriorBackup task_prior_backup = 11;+ // Plan spec update event.+ PlanSpecUpdate plan_spec_update = 12;}// Approval event information.@@ -634,60 +630,16 @@ message IssueComment {repeated string to_labels = 8;}- // Stage end event information.- message StageEnd {- // The stage that ended.- string stage = 1;- }-- // Task update event information.- message TaskUpdate {- // The tasks that were updated.- repeated string tasks = 1;+ // Plan spec update event information (tracks sheet changes to plan specs).+ message PlanSpecUpdate {+ // The spec that was updated.+ // Format: projects/{project}/plans/{plan}/specs/{spec}+ string spec = 1;+ // The previous sheet.// Format: projects/{project}/sheets/{sheet}optional string from_sheet = 2;+ // The new sheet.// Format: projects/{project}/sheets/{sheet}optional string to_sheet = 3;- optional Status to_status = 6;-- // Task status values.- enum Status {- // Unspecified status.- STATUS_UNSPECIFIED = 0;- // Task is pending.- PENDING = 1;- // Task is running.- RUNNING = 2;- // Task is done.- DONE = 3;- // Task failed.- FAILED = 4;- // Task was skipped.- SKIPPED = 5;- // Task was canceled.- CANCELED = 6;- }- }-- // Task prior backup event information.- message TaskPriorBackup {- // The task for which backup was performed.- string task = 1;- // The tables that were backed up.- repeated Table tables = 2;- // The original line number in the statement.- optional int32 original_line = 3;- // The database that was backed up.- string database = 4;- // Error message if backup failed.- string error = 5;-- // Table identification.- message Table {- // The schema name.- string schema = 1;- // The table name.- string table = 2;- }}}