Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
fix(plan): align list review status with issue lifecycle (#21017)
boojacke274f2f59df3
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yamlindex 57e2403105..67fed478df 100644--- a/backend/api/mcp/gen/openapi.yaml+++ b/backend/api/mcp/gen/openapi.yaml@@ -13030,7 +13030,10 @@ components:- OPEN- DONE- CANCELED- description: The status of an issue.+ description: |-+ The status of an issue.+ Lives at the top level so both plan_service.proto and issue_service.proto+ can reference it without a circular import.bytebase.v1.KerberosConfig:type: objectproperties:@@ -15133,7 +15136,7 @@ components:title: approval_statusdescription: |-The approval status of the linked issue.- Unspecified when no linked issue exists.+ Unspecified when no linked issue exists or the linked issue is a draft.$ref: '#/components/schemas/bytebase.v1.ApprovalStatus'rolloutStageSummaries:type: array@@ -15143,6 +15146,12 @@ components:description: |-Per-stage rollout status summary.Ordered by environment deployment order. Empty when no rollout exists.+ issueStatus:+ title: issue_status+ description: |-+ The lifecycle status of the linked issue.+ Unspecified when no linked issue exists.+ $ref: '#/components/schemas/bytebase.v1.IssueStatus'title: PlanadditionalProperties: falsebytebase.v1.Plan.ChangeDatabaseConfig:diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.goindex ea5c1d98cf..2ecfc48def 100644--- a/backend/api/v1/plan_service.go+++ b/backend/api/v1/plan_service.go@@ -910,6 +910,7 @@ func convertToPlans(ctx context.Context, s *store.Store, plans []*store.PlanMessif issue := issueByPlanKey[key]; issue != nil {v1Plan.Issue = common.FormatIssue(issue.ProjectID, issue.UID)+ v1Plan.IssueStatus = convertToIssueStatus(issue.Status)if !issue.Payload.GetDraft() {v1Plan.ApprovalStatus = computeApprovalStatus(issue.Payload.GetApproval())}diff --git a/backend/api/v1/plan_service_test.go b/backend/api/v1/plan_service_test.goindex 40c3da82b5..fbe03f84a9 100644--- a/backend/api/v1/plan_service_test.go+++ b/backend/api/v1/plan_service_test.go@@ -96,6 +96,131 @@ func TestPlanServiceListPlansHidesMalformedUIPlans(t *testing.T) {require.Equal(t, oldMalformed.Name, gotMalformed.Msg.Title)}+func TestPlanServiceListPlansIncludesIssueStatus(t *testing.T) {+ ctx := context.Background()+ stores := setupPlanServiceTestStore(ctx, t)+ service := NewPlanService(stores, nil, nil, nil, nil)++ createPlan := func(title, release string) *store.PlanMessage {+ t.Helper()+ plan, err := stores.CreatePlan(ctx, &store.PlanMessage{+ ProjectID: "project-a",+ Name: title,+ Config: &storepb.PlanConfig{Specs: []*storepb.PlanConfig_Spec{{+ Id: title,+ Config: &storepb.PlanConfig_Spec_ChangeDatabaseConfig{+ ChangeDatabaseConfig: &storepb.PlanConfig_ChangeDatabaseConfig{Release: release},+ },+ }}},+ }, "[email protected]")+ require.NoError(t, err)+ return plan+ }+ createIssue := func(plan *store.PlanMessage, draft bool, status storepb.Issue_Status) {+ t.Helper()+ issue, err := stores.CreateIssue(ctx, &store.IssueMessage{+ ProjectID: plan.ProjectID,+ CreatorEmail: "[email protected]",+ PlanUID: &plan.UID,+ Title: plan.Name,+ Type: storepb.Issue_DATABASE_CHANGE,+ Payload: &storepb.Issue{+ Draft: draft,+ Approval: &storepb.IssuePayloadApproval{+ ApprovalFindingDone: true,+ },+ },+ })+ require.NoError(t, err)+ if status != storepb.Issue_OPEN {+ _, err = stores.UpdateIssue(ctx, issue.ProjectID, issue.UID, &store.UpdateIssueMessage{Status: &status})+ require.NoError(t, err)+ }+ }++ createPlan("no issue", "projects/project-a/releases/release-a")+ draftPlan := createPlan("draft", "")+ createIssue(draftPlan, true, storepb.Issue_OPEN)+ openPlan := createPlan("open", "")+ createIssue(openPlan, false, storepb.Issue_OPEN)+ donePlan := createPlan("done", "")+ createIssue(donePlan, false, storepb.Issue_DONE)+ canceledPlan := createPlan("canceled", "")+ createIssue(canceledPlan, false, storepb.Issue_CANCELED)++ response, err := service.ListPlans(ctx, connect.NewRequest(&v1pb.ListPlansRequest{+ Parent: "projects/project-a",+ PageSize: 100,+ }))+ require.NoError(t, err)+ require.Len(t, response.Msg.Plans, 5)+ plansByTitle := make(map[string]*v1pb.Plan, len(response.Msg.Plans))+ for _, plan := range response.Msg.Plans {+ plansByTitle[plan.Title] = plan+ }++ require.Empty(t, plansByTitle["no issue"].Issue)+ require.Equal(t, v1pb.IssueStatus_ISSUE_STATUS_UNSPECIFIED, plansByTitle["no issue"].IssueStatus)+ require.Equal(t, v1pb.ApprovalStatus_APPROVAL_STATUS_UNSPECIFIED, plansByTitle["no issue"].ApprovalStatus)++ require.NotEmpty(t, plansByTitle["draft"].Issue)+ require.Equal(t, v1pb.IssueStatus_OPEN, plansByTitle["draft"].IssueStatus)+ require.Equal(t, v1pb.ApprovalStatus_APPROVAL_STATUS_UNSPECIFIED, plansByTitle["draft"].ApprovalStatus)++ require.Equal(t, v1pb.IssueStatus_OPEN, plansByTitle["open"].IssueStatus)+ require.Equal(t, v1pb.ApprovalStatus_SKIPPED, plansByTitle["open"].ApprovalStatus)+ require.Equal(t, v1pb.IssueStatus_DONE, plansByTitle["done"].IssueStatus)+ require.Equal(t, v1pb.IssueStatus_CANCELED, plansByTitle["canceled"].IssueStatus)+}++func TestConvertToPlansScopesIssueStatusByProject(t *testing.T) {+ ctx := context.Background()+ stores := setupPlanServiceTestStore(ctx, t)+ _, err := stores.GetDB().ExecContext(ctx, `+ INSERT INTO project (resource_id, workspace, name)+ VALUES ('project-b', 'default', 'Project B')+ `)+ require.NoError(t, err)++ createPlanWithIssue := func(projectID string, status storepb.Issue_Status) *store.PlanMessage {+ t.Helper()+ plan, err := stores.CreatePlan(ctx, &store.PlanMessage{+ ProjectID: projectID,+ Name: projectID,+ Config: &storepb.PlanConfig{Specs: []*storepb.PlanConfig_Spec{{+ Id: projectID,+ Config: &storepb.PlanConfig_Spec_ChangeDatabaseConfig{+ ChangeDatabaseConfig: &storepb.PlanConfig_ChangeDatabaseConfig{},+ },+ }}},+ }, "[email protected]")+ require.NoError(t, err)+ issue, err := stores.CreateIssue(ctx, &store.IssueMessage{+ ProjectID: projectID,+ CreatorEmail: "[email protected]",+ PlanUID: &plan.UID,+ Title: projectID,+ Type: storepb.Issue_DATABASE_CHANGE,+ Payload: &storepb.Issue{},+ })+ require.NoError(t, err)+ if status != storepb.Issue_OPEN {+ _, err = stores.UpdateIssue(ctx, projectID, issue.UID, &store.UpdateIssueMessage{Status: &status})+ require.NoError(t, err)+ }+ return plan+ }++ planA := createPlanWithIssue("project-a", storepb.Issue_CANCELED)+ planB := createPlanWithIssue("project-b", storepb.Issue_DONE)+ require.Equal(t, planA.UID, planB.UID)++ plans, err := convertToPlans(ctx, stores, []*store.PlanMessage{planA, planB})+ require.NoError(t, err)+ require.Equal(t, v1pb.IssueStatus_CANCELED, plans[0].IssueStatus)+ require.Equal(t, v1pb.IssueStatus_DONE, plans[1].IssueStatus)+}+func TestPlanServiceCreatePlanRejectsMixedDatabaseSpecs(t *testing.T) {ctx := context.WithValue(context.Background(), common.WorkspaceIDContextKey, "default")ctx = context.WithValue(ctx, common.UserContextKey, &store.UserMessage{diff --git a/backend/generated-go/v1/common.pb.go b/backend/generated-go/v1/common.pb.goindex 8b136d0dc5..dccf3014b8 100644--- a/backend/generated-go/v1/common.pb.go+++ b/backend/generated-go/v1/common.pb.go@@ -403,6 +403,65 @@ func (ApprovalStatus) EnumDescriptor() ([]byte, []int) {return file_v1_common_proto_rawDescGZIP(), []int{4}}+// The status of an issue.+// Lives at the top level so both plan_service.proto and issue_service.proto+// can reference it without a circular import.+type IssueStatus int32++const (+ // Unspecified status.+ IssueStatus_ISSUE_STATUS_UNSPECIFIED IssueStatus = 0+ // Issue is open and active.+ IssueStatus_OPEN IssueStatus = 1+ // Issue is completed.+ IssueStatus_DONE IssueStatus = 2+ // Issue is canceled.+ IssueStatus_CANCELED IssueStatus = 3+)++// Enum value maps for IssueStatus.+var (+ IssueStatus_name = map[int32]string{+ 0: "ISSUE_STATUS_UNSPECIFIED",+ 1: "OPEN",+ 2: "DONE",+ 3: "CANCELED",+ }+ IssueStatus_value = map[string]int32{+ "ISSUE_STATUS_UNSPECIFIED": 0,+ "OPEN": 1,+ "DONE": 2,+ "CANCELED": 3,+ }+)++func (x IssueStatus) Enum() *IssueStatus {+ p := new(IssueStatus)+ *p = x+ return p+}++func (x IssueStatus) String() string {+ return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))+}++func (IssueStatus) Descriptor() protoreflect.EnumDescriptor {+ return file_v1_common_proto_enumTypes[5].Descriptor()+}++func (IssueStatus) Type() protoreflect.EnumType {+ return &file_v1_common_proto_enumTypes[5]+}++func (x IssueStatus) Number() protoreflect.EnumNumber {+ return protoreflect.EnumNumber(x)+}++// Deprecated: Use IssueStatus.Descriptor instead.+func (IssueStatus) EnumDescriptor() ([]byte, []int) {+ return file_v1_common_proto_rawDescGZIP(), []int{5}+}+// RiskLevel is the risk level.type RiskLevel int32@@ -444,11 +503,11 @@ func (x RiskLevel) String() string {}func (RiskLevel) Descriptor() protoreflect.EnumDescriptor {- return file_v1_common_proto_enumTypes[5].Descriptor()+ return file_v1_common_proto_enumTypes[6].Descriptor()}func (RiskLevel) Type() protoreflect.EnumType {- return &file_v1_common_proto_enumTypes[5]+ return &file_v1_common_proto_enumTypes[6]}func (x RiskLevel) Number() protoreflect.EnumNumber {@@ -457,7 +516,7 @@ func (x RiskLevel) Number() protoreflect.EnumNumber {// Deprecated: Use RiskLevel.Descriptor instead.func (RiskLevel) EnumDescriptor() ([]byte, []int) {- return file_v1_common_proto_rawDescGZIP(), []int{5}+ return file_v1_common_proto_rawDescGZIP(), []int{6}}// Webhook integration type.@@ -521,11 +580,11 @@ func (x WebhookType) String() string {}func (WebhookType) Descriptor() protoreflect.EnumDescriptor {- return file_v1_common_proto_enumTypes[6].Descriptor()+ return file_v1_common_proto_enumTypes[7].Descriptor()}func (WebhookType) Type() protoreflect.EnumType {- return &file_v1_common_proto_enumTypes[6]+ return &file_v1_common_proto_enumTypes[7]}func (x WebhookType) Number() protoreflect.EnumNumber {@@ -534,7 +593,7 @@ func (x WebhookType) Number() protoreflect.EnumNumber {// Deprecated: Use WebhookType.Descriptor instead.func (WebhookType) EnumDescriptor() ([]byte, []int) {- return file_v1_common_proto_rawDescGZIP(), []int{6}+ return file_v1_common_proto_rawDescGZIP(), []int{7}}// StatementType represents the type of SQL statement.@@ -690,11 +749,11 @@ func (x StatementType) String() string {}func (StatementType) Descriptor() protoreflect.EnumDescriptor {- return file_v1_common_proto_enumTypes[7].Descriptor()+ return file_v1_common_proto_enumTypes[8].Descriptor()}func (StatementType) Type() protoreflect.EnumType {- return &file_v1_common_proto_enumTypes[7]+ return &file_v1_common_proto_enumTypes[8]}func (x StatementType) Number() protoreflect.EnumNumber {@@ -703,7 +762,7 @@ func (x StatementType) Number() protoreflect.EnumNumber {// Deprecated: Use StatementType.Descriptor instead.func (StatementType) EnumDescriptor() ([]byte, []int) {- return file_v1_common_proto_rawDescGZIP(), []int{7}+ return file_v1_common_proto_rawDescGZIP(), []int{8}}// Position in a text expressed as one-based line and one-based column.@@ -975,7 +1034,12 @@ const file_v1_common_proto_rawDesc = "" +"\aPENDING\x10\x02\x12\f\n" +"\bAPPROVED\x10\x03\x12\f\n" +"\bREJECTED\x10\x04\x12\v\n" +- "\aSKIPPED\x10\x05*H\n" ++ "\aSKIPPED\x10\x05*M\n" ++ "\vIssueStatus\x12\x1c\n" ++ "\x18ISSUE_STATUS_UNSPECIFIED\x10\x00\x12\b\n" ++ "\x04OPEN\x10\x01\x12\b\n" ++ "\x04DONE\x10\x02\x12\f\n" ++ "\bCANCELED\x10\x03*H\n" +"\tRiskLevel\x12\x1a\n" +"\x16RISK_LEVEL_UNSPECIFIED\x10\x00\x12\a\n" +"\x03LOW\x10\x01\x12\f\n" +@@ -1058,7 +1122,7 @@ func file_v1_common_proto_rawDescGZIP() []byte {return file_v1_common_proto_rawDescData}-var file_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 8)+var file_v1_common_proto_enumTypes = make([]protoimpl.EnumInfo, 9)var file_v1_common_proto_msgTypes = make([]protoimpl.MessageInfo, 3)var file_v1_common_proto_goTypes = []any{(State)(0), // 0: bytebase.v1.State@@ -1066,12 +1130,13 @@ var file_v1_common_proto_goTypes = []any{(VCSType)(0), // 2: bytebase.v1.VCSType(ExportFormat)(0), // 3: bytebase.v1.ExportFormat(ApprovalStatus)(0), // 4: bytebase.v1.ApprovalStatus- (RiskLevel)(0), // 5: bytebase.v1.RiskLevel- (WebhookType)(0), // 6: bytebase.v1.WebhookType- (StatementType)(0), // 7: bytebase.v1.StatementType- (*Position)(nil), // 8: bytebase.v1.Position- (*Range)(nil), // 9: bytebase.v1.Range- (*PermissionDeniedDetail)(nil), // 10: bytebase.v1.PermissionDeniedDetail+ (IssueStatus)(0), // 5: bytebase.v1.IssueStatus+ (RiskLevel)(0), // 6: bytebase.v1.RiskLevel+ (WebhookType)(0), // 7: bytebase.v1.WebhookType+ (StatementType)(0), // 8: bytebase.v1.StatementType+ (*Position)(nil), // 9: bytebase.v1.Position+ (*Range)(nil), // 10: bytebase.v1.Range+ (*PermissionDeniedDetail)(nil), // 11: bytebase.v1.PermissionDeniedDetail}var file_v1_common_proto_depIdxs = []int32{0, // [0:0] is the sub-list for method output_type@@ -1091,7 +1156,7 @@ func file_v1_common_proto_init() {File: protoimpl.DescBuilder{GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_common_proto_rawDesc), len(file_v1_common_proto_rawDesc)),- NumEnums: 8,+ NumEnums: 9,NumMessages: 3,NumExtensions: 0,NumServices: 0,diff --git a/backend/generated-go/v1/issue_service.pb.go b/backend/generated-go/v1/issue_service.pb.goindex e1b411d7d9..4eb1598293 100644--- a/backend/generated-go/v1/issue_service.pb.go+++ b/backend/generated-go/v1/issue_service.pb.go@@ -27,63 +27,6 @@ const (_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20))-// The status of an issue.-type IssueStatus int32--const (- // Unspecified status.- IssueStatus_ISSUE_STATUS_UNSPECIFIED IssueStatus = 0- // Issue is open and active.- IssueStatus_OPEN IssueStatus = 1- // Issue is completed.- IssueStatus_DONE IssueStatus = 2- // Issue is canceled.- IssueStatus_CANCELED IssueStatus = 3-)--// Enum value maps for IssueStatus.-var (- IssueStatus_name = map[int32]string{- 0: "ISSUE_STATUS_UNSPECIFIED",- 1: "OPEN",- 2: "DONE",- 3: "CANCELED",- }- IssueStatus_value = map[string]int32{- "ISSUE_STATUS_UNSPECIFIED": 0,- "OPEN": 1,- "DONE": 2,- "CANCELED": 3,- }-)--func (x IssueStatus) Enum() *IssueStatus {- p := new(IssueStatus)- *p = x- return p-}--func (x IssueStatus) String() string {- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))-}--func (IssueStatus) Descriptor() protoreflect.EnumDescriptor {- return file_v1_issue_service_proto_enumTypes[0].Descriptor()-}--func (IssueStatus) Type() protoreflect.EnumType {- return &file_v1_issue_service_proto_enumTypes[0]-}--func (x IssueStatus) Number() protoreflect.EnumNumber {- return protoreflect.EnumNumber(x)-}--// Deprecated: Use IssueStatus.Descriptor instead.-func (IssueStatus) EnumDescriptor() ([]byte, []int) {- return file_v1_issue_service_proto_rawDescGZIP(), []int{0}-}-// The type of issue.type Issue_Type int32@@ -129,11 +72,11 @@ func (x Issue_Type) String() string {}func (Issue_Type) Descriptor() protoreflect.EnumDescriptor {- return file_v1_issue_service_proto_enumTypes[1].Descriptor()+ return file_v1_issue_service_proto_enumTypes[0].Descriptor()}func (Issue_Type) Type() protoreflect.EnumType {- return &file_v1_issue_service_proto_enumTypes[1]+ return &file_v1_issue_service_proto_enumTypes[0]}func (x Issue_Type) Number() protoreflect.EnumNumber {@@ -186,11 +129,11 @@ func (x Issue_Approver_Status) String() string {}func (Issue_Approver_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_issue_service_proto_enumTypes[2].Descriptor()+ return file_v1_issue_service_proto_enumTypes[1].Descriptor()}func (Issue_Approver_Status) Type() protoreflect.EnumType {- return &file_v1_issue_service_proto_enumTypes[2]+ return &file_v1_issue_service_proto_enumTypes[1]}func (x Issue_Approver_Status) Number() protoreflect.EnumNumber {@@ -243,11 +186,11 @@ func (x IssueComment_Approval_Status) String() string {}func (IssueComment_Approval_Status) Descriptor() protoreflect.EnumDescriptor {- return file_v1_issue_service_proto_enumTypes[3].Descriptor()+ return file_v1_issue_service_proto_enumTypes[2].Descriptor()}func (IssueComment_Approval_Status) Type() protoreflect.EnumType {- return &file_v1_issue_service_proto_enumTypes[3]+ return &file_v1_issue_service_proto_enumTypes[2]}func (x IssueComment_Approval_Status) Number() protoreflect.EnumNumber {@@ -2374,12 +2317,7 @@ const file_v1_issue_service_proto_rawDesc = "" +"\n" +"from_specs\x18\x01 \x03(\v2\x16.bytebase.v1.Plan.SpecR\tfromSpecs\x121\n" +"\bto_specs\x18\x02 \x03(\v2\x16.bytebase.v1.Plan.SpecR\atoSpecsB\a\n" +- "\x05event*M\n" +- "\vIssueStatus\x12\x1c\n" +- "\x18ISSUE_STATUS_UNSPECIFIED\x10\x00\x12\b\n" +- "\x04OPEN\x10\x01\x12\b\n" +- "\x04DONE\x10\x02\x12\f\n" +- "\bCANCELED\x10\x032\xec\x10\n" ++ "\x05event2\xec\x10\n" +"\fIssueService\x12\x80\x01\n" +"\bGetIssue\x12\x1c.bytebase.v1.GetIssueRequest\x1a\x12.bytebase.v1.Issue\"B\xdaA\x04name\x8a\xea0\rbb.issues.get\x90\xea0\x01\x82\xd3\xe4\x93\x02 \x12\x1e/v1/{name=projects/*/issues/*}\x12\x9c\x01\n" +"\vCreateIssue\x12\x1f.bytebase.v1.CreateIssueRequest\x1a\x12.bytebase.v1.Issue\"X\xdaA\fparent,issue\x8a\xea0\x10bb.issues.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02':\x05issue\"\x1e/v1/{parent=projects/*}/issues\x12\x94\x01\n" +@@ -2409,41 +2347,41 @@ 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, 4)+var file_v1_issue_service_proto_enumTypes = make([]protoimpl.EnumInfo, 3)var file_v1_issue_service_proto_msgTypes = make([]protoimpl.MessageInfo, 27)var file_v1_issue_service_proto_goTypes = []any{- (IssueStatus)(0), // 0: bytebase.v1.IssueStatus- (Issue_Type)(0), // 1: bytebase.v1.Issue.Type- (Issue_Approver_Status)(0), // 2: bytebase.v1.Issue.Approver.Status- (IssueComment_Approval_Status)(0), // 3: bytebase.v1.IssueComment.Approval.Status- (*GetIssueRequest)(nil), // 4: bytebase.v1.GetIssueRequest- (*CreateIssueRequest)(nil), // 5: bytebase.v1.CreateIssueRequest- (*ListIssuesRequest)(nil), // 6: bytebase.v1.ListIssuesRequest- (*ListIssuesResponse)(nil), // 7: bytebase.v1.ListIssuesResponse- (*SearchIssuesRequest)(nil), // 8: bytebase.v1.SearchIssuesRequest- (*SearchIssuesResponse)(nil), // 9: bytebase.v1.SearchIssuesResponse- (*UpdateIssueRequest)(nil), // 10: bytebase.v1.UpdateIssueRequest- (*BatchUpdateIssuesStatusRequest)(nil), // 11: bytebase.v1.BatchUpdateIssuesStatusRequest- (*BatchUpdateIssuesStatusResponse)(nil), // 12: bytebase.v1.BatchUpdateIssuesStatusResponse- (*ApproveIssueRequest)(nil), // 13: bytebase.v1.ApproveIssueRequest- (*RejectIssueRequest)(nil), // 14: bytebase.v1.RejectIssueRequest- (*RequestIssueRequest)(nil), // 15: bytebase.v1.RequestIssueRequest- (*RetryIssueApprovalRequest)(nil), // 16: bytebase.v1.RetryIssueApprovalRequest- (*Issue)(nil), // 17: bytebase.v1.Issue- (*RoleGrant)(nil), // 18: bytebase.v1.RoleGrant- (*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- (*IssueComment_Approval)(nil), // 27: bytebase.v1.IssueComment.Approval- (*IssueComment_IssueUpdate)(nil), // 28: bytebase.v1.IssueComment.IssueUpdate- (*IssueComment_ReviewSubmission)(nil), // 29: bytebase.v1.IssueComment.ReviewSubmission- (*IssueComment_PlanUpdate)(nil), // 30: bytebase.v1.IssueComment.PlanUpdate- (*fieldmaskpb.FieldMask)(nil), // 31: google.protobuf.FieldMask+ (Issue_Type)(0), // 0: bytebase.v1.Issue.Type+ (Issue_Approver_Status)(0), // 1: bytebase.v1.Issue.Approver.Status+ (IssueComment_Approval_Status)(0), // 2: bytebase.v1.IssueComment.Approval.Status+ (*GetIssueRequest)(nil), // 3: bytebase.v1.GetIssueRequest+ (*CreateIssueRequest)(nil), // 4: bytebase.v1.CreateIssueRequest+ (*ListIssuesRequest)(nil), // 5: bytebase.v1.ListIssuesRequest+ (*ListIssuesResponse)(nil), // 6: bytebase.v1.ListIssuesResponse+ (*SearchIssuesRequest)(nil), // 7: bytebase.v1.SearchIssuesRequest+ (*SearchIssuesResponse)(nil), // 8: bytebase.v1.SearchIssuesResponse+ (*UpdateIssueRequest)(nil), // 9: bytebase.v1.UpdateIssueRequest+ (*BatchUpdateIssuesStatusRequest)(nil), // 10: bytebase.v1.BatchUpdateIssuesStatusRequest+ (*BatchUpdateIssuesStatusResponse)(nil), // 11: bytebase.v1.BatchUpdateIssuesStatusResponse+ (*ApproveIssueRequest)(nil), // 12: bytebase.v1.ApproveIssueRequest+ (*RejectIssueRequest)(nil), // 13: bytebase.v1.RejectIssueRequest+ (*RequestIssueRequest)(nil), // 14: bytebase.v1.RequestIssueRequest+ (*RetryIssueApprovalRequest)(nil), // 15: bytebase.v1.RetryIssueApprovalRequest+ (*Issue)(nil), // 16: bytebase.v1.Issue+ (*RoleGrant)(nil), // 17: bytebase.v1.RoleGrant+ (*ApprovalTemplate)(nil), // 18: bytebase.v1.ApprovalTemplate+ (*ApprovalFlow)(nil), // 19: bytebase.v1.ApprovalFlow+ (*ListIssueCommentsRequest)(nil), // 20: bytebase.v1.ListIssueCommentsRequest+ (*ListIssueCommentsResponse)(nil), // 21: bytebase.v1.ListIssueCommentsResponse+ (*CreateIssueCommentRequest)(nil), // 22: bytebase.v1.CreateIssueCommentRequest+ (*UpdateIssueCommentRequest)(nil), // 23: bytebase.v1.UpdateIssueCommentRequest+ (*IssueComment)(nil), // 24: bytebase.v1.IssueComment+ (*Issue_Approver)(nil), // 25: bytebase.v1.Issue.Approver+ (*IssueComment_Approval)(nil), // 26: bytebase.v1.IssueComment.Approval+ (*IssueComment_IssueUpdate)(nil), // 27: bytebase.v1.IssueComment.IssueUpdate+ (*IssueComment_ReviewSubmission)(nil), // 28: bytebase.v1.IssueComment.ReviewSubmission+ (*IssueComment_PlanUpdate)(nil), // 29: bytebase.v1.IssueComment.PlanUpdate+ (*fieldmaskpb.FieldMask)(nil), // 30: google.protobuf.FieldMask+ (IssueStatus)(0), // 31: bytebase.v1.IssueStatus(*timestamppb.Timestamp)(nil), // 32: google.protobuf.Timestamp(RiskLevel)(0), // 33: bytebase.v1.RiskLevel(ApprovalStatus)(0), // 34: bytebase.v1.ApprovalStatus@@ -2452,66 +2390,66 @@ var file_v1_issue_service_proto_goTypes = []any{(*Plan_Spec)(nil), // 37: bytebase.v1.Plan.Spec}var file_v1_issue_service_proto_depIdxs = []int32{- 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.FieldMask- 0, // 5: bytebase.v1.BatchUpdateIssuesStatusRequest.status:type_name -> bytebase.v1.IssueStatus- 1, // 6: bytebase.v1.Issue.type:type_name -> bytebase.v1.Issue.Type- 0, // 7: bytebase.v1.Issue.status:type_name -> bytebase.v1.IssueStatus- 26, // 8: bytebase.v1.Issue.approvers:type_name -> bytebase.v1.Issue.Approver- 19, // 9: bytebase.v1.Issue.approval_template:type_name -> bytebase.v1.ApprovalTemplate+ 16, // 0: bytebase.v1.CreateIssueRequest.issue:type_name -> bytebase.v1.Issue+ 16, // 1: bytebase.v1.ListIssuesResponse.issues:type_name -> bytebase.v1.Issue+ 16, // 2: bytebase.v1.SearchIssuesResponse.issues:type_name -> bytebase.v1.Issue+ 16, // 3: bytebase.v1.UpdateIssueRequest.issue:type_name -> bytebase.v1.Issue+ 30, // 4: bytebase.v1.UpdateIssueRequest.update_mask:type_name -> google.protobuf.FieldMask+ 31, // 5: bytebase.v1.BatchUpdateIssuesStatusRequest.status:type_name -> bytebase.v1.IssueStatus+ 0, // 6: bytebase.v1.Issue.type:type_name -> bytebase.v1.Issue.Type+ 31, // 7: bytebase.v1.Issue.status:type_name -> bytebase.v1.IssueStatus+ 25, // 8: bytebase.v1.Issue.approvers:type_name -> bytebase.v1.Issue.Approver+ 18, // 9: bytebase.v1.Issue.approval_template:type_name -> bytebase.v1.ApprovalTemplate32, // 10: bytebase.v1.Issue.create_time:type_name -> google.protobuf.Timestamp32, // 11: bytebase.v1.Issue.update_time:type_name -> google.protobuf.Timestamp- 18, // 12: bytebase.v1.Issue.role_grant:type_name -> bytebase.v1.RoleGrant+ 17, // 12: bytebase.v1.Issue.role_grant:type_name -> bytebase.v1.RoleGrant33, // 13: bytebase.v1.Issue.risk_level:type_name -> bytebase.v1.RiskLevel34, // 14: bytebase.v1.Issue.approval_status:type_name -> bytebase.v1.ApprovalStatus35, // 15: bytebase.v1.RoleGrant.condition:type_name -> google.type.Expr36, // 16: bytebase.v1.RoleGrant.expiration:type_name -> google.protobuf.Duration- 20, // 17: bytebase.v1.ApprovalTemplate.flow:type_name -> bytebase.v1.ApprovalFlow- 25, // 18: bytebase.v1.ListIssueCommentsResponse.issue_comments:type_name -> bytebase.v1.IssueComment- 25, // 19: bytebase.v1.CreateIssueCommentRequest.issue_comment:type_name -> bytebase.v1.IssueComment- 25, // 20: bytebase.v1.UpdateIssueCommentRequest.issue_comment:type_name -> bytebase.v1.IssueComment- 31, // 21: bytebase.v1.UpdateIssueCommentRequest.update_mask:type_name -> google.protobuf.FieldMask+ 19, // 17: bytebase.v1.ApprovalTemplate.flow:type_name -> bytebase.v1.ApprovalFlow+ 24, // 18: bytebase.v1.ListIssueCommentsResponse.issue_comments:type_name -> bytebase.v1.IssueComment+ 24, // 19: bytebase.v1.CreateIssueCommentRequest.issue_comment:type_name -> bytebase.v1.IssueComment+ 24, // 20: bytebase.v1.UpdateIssueCommentRequest.issue_comment:type_name -> bytebase.v1.IssueComment+ 30, // 21: bytebase.v1.UpdateIssueCommentRequest.update_mask:type_name -> google.protobuf.FieldMask32, // 22: bytebase.v1.IssueComment.create_time:type_name -> google.protobuf.Timestamp32, // 23: bytebase.v1.IssueComment.update_time:type_name -> google.protobuf.Timestamp- 27, // 24: bytebase.v1.IssueComment.approval:type_name -> bytebase.v1.IssueComment.Approval- 28, // 25: bytebase.v1.IssueComment.issue_update:type_name -> bytebase.v1.IssueComment.IssueUpdate- 30, // 26: bytebase.v1.IssueComment.plan_update:type_name -> bytebase.v1.IssueComment.PlanUpdate- 29, // 27: bytebase.v1.IssueComment.review_submission:type_name -> bytebase.v1.IssueComment.ReviewSubmission- 2, // 28: bytebase.v1.Issue.Approver.status:type_name -> bytebase.v1.Issue.Approver.Status- 3, // 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+ 26, // 24: bytebase.v1.IssueComment.approval:type_name -> bytebase.v1.IssueComment.Approval+ 27, // 25: bytebase.v1.IssueComment.issue_update:type_name -> bytebase.v1.IssueComment.IssueUpdate+ 29, // 26: bytebase.v1.IssueComment.plan_update:type_name -> bytebase.v1.IssueComment.PlanUpdate+ 28, // 27: bytebase.v1.IssueComment.review_submission:type_name -> bytebase.v1.IssueComment.ReviewSubmission+ 1, // 28: bytebase.v1.Issue.Approver.status:type_name -> bytebase.v1.Issue.Approver.Status+ 2, // 29: bytebase.v1.IssueComment.Approval.status:type_name -> bytebase.v1.IssueComment.Approval.Status+ 31, // 30: bytebase.v1.IssueComment.IssueUpdate.from_status:type_name -> bytebase.v1.IssueStatus+ 31, // 31: bytebase.v1.IssueComment.IssueUpdate.to_status:type_name -> bytebase.v1.IssueStatus37, // 32: bytebase.v1.IssueComment.PlanUpdate.from_specs:type_name -> bytebase.v1.Plan.Spec37, // 33: bytebase.v1.IssueComment.PlanUpdate.to_specs:type_name -> bytebase.v1.Plan.Spec- 4, // 34: bytebase.v1.IssueService.GetIssue:input_type -> bytebase.v1.GetIssueRequest- 5, // 35: bytebase.v1.IssueService.CreateIssue:input_type -> bytebase.v1.CreateIssueRequest- 6, // 36: bytebase.v1.IssueService.ListIssues:input_type -> bytebase.v1.ListIssuesRequest- 8, // 37: bytebase.v1.IssueService.SearchIssues:input_type -> bytebase.v1.SearchIssuesRequest- 10, // 38: bytebase.v1.IssueService.UpdateIssue:input_type -> bytebase.v1.UpdateIssueRequest- 21, // 39: bytebase.v1.IssueService.ListIssueComments:input_type -> bytebase.v1.ListIssueCommentsRequest- 23, // 40: bytebase.v1.IssueService.CreateIssueComment:input_type -> bytebase.v1.CreateIssueCommentRequest- 24, // 41: bytebase.v1.IssueService.UpdateIssueComment:input_type -> bytebase.v1.UpdateIssueCommentRequest- 11, // 42: bytebase.v1.IssueService.BatchUpdateIssuesStatus:input_type -> bytebase.v1.BatchUpdateIssuesStatusRequest- 13, // 43: bytebase.v1.IssueService.ApproveIssue:input_type -> bytebase.v1.ApproveIssueRequest- 14, // 44: bytebase.v1.IssueService.RejectIssue:input_type -> bytebase.v1.RejectIssueRequest- 15, // 45: bytebase.v1.IssueService.RequestIssue:input_type -> bytebase.v1.RequestIssueRequest- 16, // 46: bytebase.v1.IssueService.RetryIssueApproval:input_type -> bytebase.v1.RetryIssueApprovalRequest- 17, // 47: bytebase.v1.IssueService.GetIssue:output_type -> bytebase.v1.Issue- 17, // 48: bytebase.v1.IssueService.CreateIssue:output_type -> bytebase.v1.Issue- 7, // 49: bytebase.v1.IssueService.ListIssues:output_type -> bytebase.v1.ListIssuesResponse- 9, // 50: bytebase.v1.IssueService.SearchIssues:output_type -> bytebase.v1.SearchIssuesResponse- 17, // 51: bytebase.v1.IssueService.UpdateIssue:output_type -> bytebase.v1.Issue- 22, // 52: bytebase.v1.IssueService.ListIssueComments:output_type -> bytebase.v1.ListIssueCommentsResponse- 25, // 53: bytebase.v1.IssueService.CreateIssueComment:output_type -> bytebase.v1.IssueComment- 25, // 54: bytebase.v1.IssueService.UpdateIssueComment:output_type -> bytebase.v1.IssueComment- 12, // 55: bytebase.v1.IssueService.BatchUpdateIssuesStatus:output_type -> bytebase.v1.BatchUpdateIssuesStatusResponse- 17, // 56: bytebase.v1.IssueService.ApproveIssue:output_type -> bytebase.v1.Issue- 17, // 57: bytebase.v1.IssueService.RejectIssue:output_type -> bytebase.v1.Issue- 17, // 58: bytebase.v1.IssueService.RequestIssue:output_type -> bytebase.v1.Issue- 17, // 59: bytebase.v1.IssueService.RetryIssueApproval:output_type -> bytebase.v1.Issue+ 3, // 34: bytebase.v1.IssueService.GetIssue:input_type -> bytebase.v1.GetIssueRequest+ 4, // 35: bytebase.v1.IssueService.CreateIssue:input_type -> bytebase.v1.CreateIssueRequest+ 5, // 36: bytebase.v1.IssueService.ListIssues:input_type -> bytebase.v1.ListIssuesRequest+ 7, // 37: bytebase.v1.IssueService.SearchIssues:input_type -> bytebase.v1.SearchIssuesRequest+ 9, // 38: bytebase.v1.IssueService.UpdateIssue:input_type -> bytebase.v1.UpdateIssueRequest+ 20, // 39: bytebase.v1.IssueService.ListIssueComments:input_type -> bytebase.v1.ListIssueCommentsRequest+ 22, // 40: bytebase.v1.IssueService.CreateIssueComment:input_type -> bytebase.v1.CreateIssueCommentRequest+ 23, // 41: bytebase.v1.IssueService.UpdateIssueComment:input_type -> bytebase.v1.UpdateIssueCommentRequest+ 10, // 42: bytebase.v1.IssueService.BatchUpdateIssuesStatus:input_type -> bytebase.v1.BatchUpdateIssuesStatusRequest+ 12, // 43: bytebase.v1.IssueService.ApproveIssue:input_type -> bytebase.v1.ApproveIssueRequest+ 13, // 44: bytebase.v1.IssueService.RejectIssue:input_type -> bytebase.v1.RejectIssueRequest+ 14, // 45: bytebase.v1.IssueService.RequestIssue:input_type -> bytebase.v1.RequestIssueRequest+ 15, // 46: bytebase.v1.IssueService.RetryIssueApproval:input_type -> bytebase.v1.RetryIssueApprovalRequest+ 16, // 47: bytebase.v1.IssueService.GetIssue:output_type -> bytebase.v1.Issue+ 16, // 48: bytebase.v1.IssueService.CreateIssue:output_type -> bytebase.v1.Issue+ 6, // 49: bytebase.v1.IssueService.ListIssues:output_type -> bytebase.v1.ListIssuesResponse+ 8, // 50: bytebase.v1.IssueService.SearchIssues:output_type -> bytebase.v1.SearchIssuesResponse+ 16, // 51: bytebase.v1.IssueService.UpdateIssue:output_type -> bytebase.v1.Issue+ 21, // 52: bytebase.v1.IssueService.ListIssueComments:output_type -> bytebase.v1.ListIssueCommentsResponse+ 24, // 53: bytebase.v1.IssueService.CreateIssueComment:output_type -> bytebase.v1.IssueComment+ 24, // 54: bytebase.v1.IssueService.UpdateIssueComment:output_type -> bytebase.v1.IssueComment+ 11, // 55: bytebase.v1.IssueService.BatchUpdateIssuesStatus:output_type -> bytebase.v1.BatchUpdateIssuesStatusResponse+ 16, // 56: bytebase.v1.IssueService.ApproveIssue:output_type -> bytebase.v1.Issue+ 16, // 57: bytebase.v1.IssueService.RejectIssue:output_type -> bytebase.v1.Issue+ 16, // 58: bytebase.v1.IssueService.RequestIssue:output_type -> bytebase.v1.Issue+ 16, // 59: bytebase.v1.IssueService.RetryIssueApproval:output_type -> bytebase.v1.Issue47, // [47:60] is the sub-list for method output_type34, // [34:47] is the sub-list for method input_type34, // [34:34] is the sub-list for extension type_name@@ -2539,7 +2477,7 @@ func file_v1_issue_service_proto_init() {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: 4,+ NumEnums: 3,NumMessages: 27,NumExtensions: 0,NumServices: 1,diff --git a/backend/generated-go/v1/plan_service.pb.go b/backend/generated-go/v1/plan_service.pb.goindex 8078ae0f09..76afdb77fc 100644--- a/backend/generated-go/v1/plan_service.pb.go+++ b/backend/generated-go/v1/plan_service.pb.go@@ -484,13 +484,16 @@ type Plan struct {// Whether the plan has started the rollout.HasRollout bool `protobuf:"varint,12,opt,name=has_rollout,json=hasRollout,proto3" json:"has_rollout,omitempty"`// The approval status of the linked issue.- // Unspecified when no linked issue exists.+ // Unspecified when no linked issue exists or the linked issue is a draft.ApprovalStatus ApprovalStatus `protobuf:"varint,13,opt,name=approval_status,json=approvalStatus,proto3,enum=bytebase.v1.ApprovalStatus" json:"approval_status,omitempty"`// Per-stage rollout status summary.// Ordered by environment deployment order. Empty when no rollout exists.RolloutStageSummaries []*Plan_RolloutStageSummary `protobuf:"bytes,14,rep,name=rollout_stage_summaries,json=rolloutStageSummaries,proto3" json:"rollout_stage_summaries,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache+ // The lifecycle status of the linked issue.+ // Unspecified when no linked issue exists.+ IssueStatus IssueStatus `protobuf:"varint,15,opt,name=issue_status,json=issueStatus,proto3,enum=bytebase.v1.IssueStatus" json:"issue_status,omitempty"`+ unknownFields protoimpl.UnknownFields+ sizeCache protoimpl.SizeCache}func (x *Plan) Reset() {@@ -614,6 +617,13 @@ func (x *Plan) GetRolloutStageSummaries() []*Plan_RolloutStageSummary {return nil}+func (x *Plan) GetIssueStatus() IssueStatus {+ if x != nil {+ return x.IssueStatus+ }+ return IssueStatus_ISSUE_STATUS_UNSPECIFIED+}+type GetPlanCheckRunRequest struct {state protoimpl.MessageState `protogen:"open.v1"`// The name of the plan check run to retrieve.@@ -1656,7 +1666,7 @@ const file_v1_plan_service_proto_rawDesc = "" +"\x04plan\x18\x01 \x01(\v2\x11.bytebase.v1.PlanB\x03\xe0A\x02R\x04plan\x12@\n" +"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x03\xe0A\x02R\n" +"updateMask\x12#\n" +- "\rallow_missing\x18\x03 \x01(\bR\fallowMissing\"\xcd\x0f\n" ++ "\rallow_missing\x18\x03 \x01(\bR\fallowMissing\"\x8f\x10\n" +"\x04Plan\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x12(\n" +"\x05state\x18\x02 \x01(\x0e2\x12.bytebase.v1.StateR\x05state\x12\x19\n" +@@ -1674,7 +1684,8 @@ const file_v1_plan_service_proto_rawDesc = "" +"\vhas_rollout\x18\f \x01(\bB\x03\xe0A\x03R\n" +"hasRollout\x12I\n" +"\x0fapproval_status\x18\r \x01(\x0e2\x1b.bytebase.v1.ApprovalStatusB\x03\xe0A\x03R\x0eapprovalStatus\x12b\n" +- "\x17rollout_stage_summaries\x18\x0e \x03(\v2%.bytebase.v1.Plan.RolloutStageSummaryB\x03\xe0A\x03R\x15rolloutStageSummaries\x1a\xb4\x02\n" ++ "\x17rollout_stage_summaries\x18\x0e \x03(\v2%.bytebase.v1.Plan.RolloutStageSummaryB\x03\xe0A\x03R\x15rolloutStageSummaries\x12@\n" ++ "\fissue_status\x18\x0f \x01(\x0e2\x18.bytebase.v1.IssueStatusB\x03\xe0A\x03R\vissueStatus\x1a\xb4\x02\n" +"\x04Spec\x12\x0e\n" +"\x02id\x18\x01 \x01(\tR\x02id\x12^\n" +"\x16create_database_config\x18\x02 \x01(\v2&.bytebase.v1.Plan.CreateDatabaseConfigH\x00R\x14createDatabaseConfig\x12^\n" +@@ -1818,11 +1829,12 @@ var file_v1_plan_service_proto_goTypes = []any{(State)(0), // 25: bytebase.v1.State(*timestamppb.Timestamp)(nil), // 26: google.protobuf.Timestamp(ApprovalStatus)(0), // 27: bytebase.v1.ApprovalStatus- (ExportFormat)(0), // 28: bytebase.v1.ExportFormat- (Task_Status)(0), // 29: bytebase.v1.Task.Status- (Advice_Level)(0), // 30: bytebase.v1.Advice.Level- (StatementType)(0), // 31: bytebase.v1.StatementType- (*Position)(nil), // 32: bytebase.v1.Position+ (IssueStatus)(0), // 28: bytebase.v1.IssueStatus+ (ExportFormat)(0), // 29: bytebase.v1.ExportFormat+ (Task_Status)(0), // 30: bytebase.v1.Task.Status+ (Advice_Level)(0), // 31: bytebase.v1.Advice.Level+ (StatementType)(0), // 32: bytebase.v1.StatementType+ (*Position)(nil), // 33: bytebase.v1.Position}var file_v1_plan_service_proto_depIdxs = []int32{7, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan@@ -1836,41 +1848,42 @@ var file_v1_plan_service_proto_depIdxs = []int32{15, // 8: bytebase.v1.Plan.plan_check_run_status_count:type_name -> bytebase.v1.Plan.PlanCheckRunStatusCountEntry27, // 9: bytebase.v1.Plan.approval_status:type_name -> bytebase.v1.ApprovalStatus19, // 10: bytebase.v1.Plan.rollout_stage_summaries:type_name -> bytebase.v1.Plan.RolloutStageSummary- 0, // 11: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status- 21, // 12: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result- 26, // 13: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp- 16, // 14: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig- 17, // 15: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig- 18, // 16: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig- 28, // 17: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat- 20, // 18: bytebase.v1.Plan.RolloutStageSummary.task_status_counts:type_name -> bytebase.v1.Plan.TaskStatusCount- 29, // 19: bytebase.v1.Plan.TaskStatusCount.status:type_name -> bytebase.v1.Task.Status- 30, // 20: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.Advice.Level- 1, // 21: bytebase.v1.PlanCheckRun.Result.type:type_name -> bytebase.v1.PlanCheckRun.Result.Type- 22, // 22: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- 23, // 23: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport- 31, // 24: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.statement_types:type_name -> bytebase.v1.StatementType- 32, // 25: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position- 32, // 26: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position- 2, // 27: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest- 3, // 28: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest- 5, // 29: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest- 6, // 30: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest- 8, // 31: bytebase.v1.PlanService.GetPlanCheckRun:input_type -> bytebase.v1.GetPlanCheckRunRequest- 9, // 32: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest- 11, // 33: bytebase.v1.PlanService.CancelPlanCheckRun:input_type -> bytebase.v1.CancelPlanCheckRunRequest- 7, // 34: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan- 4, // 35: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse- 7, // 36: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan- 7, // 37: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan- 13, // 38: bytebase.v1.PlanService.GetPlanCheckRun:output_type -> bytebase.v1.PlanCheckRun- 10, // 39: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse- 12, // 40: bytebase.v1.PlanService.CancelPlanCheckRun:output_type -> bytebase.v1.CancelPlanCheckRunResponse- 34, // [34:41] is the sub-list for method output_type- 27, // [27:34] is the sub-list for method input_type- 27, // [27:27] is the sub-list for extension type_name- 27, // [27:27] is the sub-list for extension extendee- 0, // [0:27] is the sub-list for field type_name+ 28, // 11: bytebase.v1.Plan.issue_status:type_name -> bytebase.v1.IssueStatus+ 0, // 12: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status+ 21, // 13: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result+ 26, // 14: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp+ 16, // 15: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig+ 17, // 16: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig+ 18, // 17: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig+ 29, // 18: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat+ 20, // 19: bytebase.v1.Plan.RolloutStageSummary.task_status_counts:type_name -> bytebase.v1.Plan.TaskStatusCount+ 30, // 20: bytebase.v1.Plan.TaskStatusCount.status:type_name -> bytebase.v1.Task.Status+ 31, // 21: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.Advice.Level+ 1, // 22: bytebase.v1.PlanCheckRun.Result.type:type_name -> bytebase.v1.PlanCheckRun.Result.Type+ 22, // 23: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ 23, // 24: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ 32, // 25: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.statement_types:type_name -> bytebase.v1.StatementType+ 33, // 26: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position+ 33, // 27: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position+ 2, // 28: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest+ 3, // 29: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest+ 5, // 30: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest+ 6, // 31: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest+ 8, // 32: bytebase.v1.PlanService.GetPlanCheckRun:input_type -> bytebase.v1.GetPlanCheckRunRequest+ 9, // 33: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest+ 11, // 34: bytebase.v1.PlanService.CancelPlanCheckRun:input_type -> bytebase.v1.CancelPlanCheckRunRequest+ 7, // 35: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan+ 4, // 36: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse+ 7, // 37: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan+ 7, // 38: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan+ 13, // 39: bytebase.v1.PlanService.GetPlanCheckRun:output_type -> bytebase.v1.PlanCheckRun+ 10, // 40: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse+ 12, // 41: bytebase.v1.PlanService.CancelPlanCheckRun:output_type -> bytebase.v1.CancelPlanCheckRunResponse+ 35, // [35:42] is the sub-list for method output_type+ 28, // [28:35] is the sub-list for method input_type+ 28, // [28:28] is the sub-list for extension type_name+ 28, // [28:28] is the sub-list for extension extendee+ 0, // [0:28] is the sub-list for field type_name}func init() { file_v1_plan_service_proto_init() }diff --git a/backend/generated-go/v1/plan_service_equal.pb.go b/backend/generated-go/v1/plan_service_equal.pb.goindex 2226c8726f..cc682fbbb6 100644--- a/backend/generated-go/v1/plan_service_equal.pb.go+++ b/backend/generated-go/v1/plan_service_equal.pb.go@@ -315,6 +315,9 @@ func (x *Plan) Equal(y *Plan) bool {return false}}+ if x.IssueStatus != y.IssueStatus {+ return false+ }return true}diff --git a/docs/plans/2026-07-24-plan-list-review-status-parity-design.md b/docs/plans/2026-07-24-plan-list-review-status-parity-design.mdnew file mode 100644index 0000000000..7debf2f3b1--- /dev/null+++ b/docs/plans/2026-07-24-plan-list-review-status-parity-design.md@@ -0,0 +1,429 @@+# Plan List Review Status Parity Design++- **Date:** 2026-07-24+- **Status:** Implemented+- **Issues:** [BYT-9551](https://linear.app/bytebase/issue/BYT-9551/plan-list-shows-wrong-review-status), [BYT-9811](https://linear.app/bytebase/issue/BYT-9811/plan-list-shows-under-review-for-a-plan-whose-issue-is-closed)+- **Related PR:** [#20372](https://github.com/bytebase/bytebase/pull/20372)++## Summary++Plan List and Plan Detail must derive the Review badge from the same lifecycle+inputs. Plan Detail can do this today because it fetches the linked Issue. Plan+List cannot because the public `Plan` response exposes the linked Issue name and+approval status, but not the Issue lifecycle status.++Add an output-only `issue_status` field to `Plan`, populate it from the Issue+that `convertToPlans` already batch-loads, and pass it to the shared+`getReviewBadge` helper. Also invalidate the Plan List page cache when a linked+Issue changes, because Issue status and approval changes do not update+`Plan.update_time`.++This closes both known residual mismatches:++- A canceled Issue must show **Closed**, not an approval-derived badge.+- A done Issue without a rollout and with approval still pending must show+ **Bypassed**, not **Under review**.++## Problem++Review status is not a stored Plan field. It is a display projection over four+inputs:++```text+linked Issue + Issue status + approval status + rollout existence+```++The current Plan List projection lacks Issue status:++```text+ListPlans+ -> Plan {+ issue+ approval_status+ has_rollout+ // issue_status is missing+ }+ -> getReviewBadge(issueStatus: undefined)+```++Plan Detail follows `plan.issue` with `GetIssue`, so it has the complete input:++```text+GetPlan + GetIssue+ -> getReviewBadge(issue.status, issue.approval_status, plan.has_rollout)+```++PR #20372 centralized badge computation and fixed the BYT-9551 case where a+rollout exists while approval remains pending. It intentionally left two+categories unresolved because Plan List still cannot observe Issue status.++| Issue status | Has rollout | Approval status | Plan List today | Plan Detail |+| --- | --- | --- | --- | --- |+| `OPEN` | true | `PENDING` | Bypassed | Bypassed |+| `CANCELED` | false | `PENDING` | Under review | Closed |+| `DONE` | false | `PENDING` | Under review | Bypassed |++The second row is BYT-9811. The third row is the other residual divergence+documented by #20372.++## Current model++### Plan++`Plan` owns the proposed database changes and deployment state:++- `Plan.state` is the Plan resource state (`ACTIVE` or `DELETED`).+- `Plan.specs` are the changes to execute.+- `Plan.has_rollout` records whether deployment has started.+- `Plan.issue` points to the linked review Issue when one exists.+- `Plan.approval_status` is a denormalized summary of the linked Issue approval+ flow.++`Plan.state=DELETED` is not equivalent to a closed review. The Plan List already+shows that state beside the Plan name. It must not be reused to infer the Review+column.++### Issue++`Issue` owns review and workflow lifecycle:++- `Issue.status` is `OPEN`, `DONE`, or `CANCELED`.+- `Issue.approval_status` is `CHECKING`, `PENDING`, `APPROVED`, `REJECTED`, or+ `SKIPPED`.+- `Issue.draft` determines whether the review Issue has been submitted.+- `Issue.plan` points back to the Plan for database-change Issues.++Issue lifecycle and approval status are independent. For example, canceling an+Issue does not rewrite its approval payload, so a canceled Issue may retain+`PENDING`, `APPROVED`, or `REJECTED`.++The database enforces at most one Issue per Plan with the unique+`(project, plan_id)` index. This makes a single linked-Issue summary on `Plan`+unambiguous.++### ListPlans as a read model++The stored Plan row does not contain Issue lifecycle state. `ListPlans` already+acts as an aggregated read model:++1. List Plan rows.+2. Batch-load Issues by `(project, plan_id)`.+3. Batch-load Plan check runs.+4. Batch-load rollout task status counts.+5. Build the public `Plan` response.++The linked `IssueMessage` already contains `Status`. The value is lost only+when the public `Plan` message is built.++## Goals++1. Make the Plan List Review badge match Plan Detail for the same Plan snapshot.+2. Preserve Issue lifecycle, approval, Plan resource state, and rollout state as+ separate model dimensions.+3. Complete the existing ListPlans read model without adding frontend Issue+ requests.+4. Keep one shared badge-precedence function for Plan List and Plan Detail.+5. Prevent Back navigation from restoring a stale Plan List badge after an+ Issue action.+6. Keep the API change additive at the wire and JSON levels.++## Non-goals++- Persisting a combined Review status on the Plan row.+- Replacing Issue status or approval status with a new lifecycle enum.+- Changing when an Issue becomes `DONE` or `CANCELED`.+- Changing approval, bypass, rollout-creation, or Plan-deletion behavior.+- Redesigning the Plan List table or Plan Detail lifecycle UI.+- Adding Issue filters to `ListPlans`.+- Making Plan List poll for external Issue changes while it remains open.+- Redesigning the current draft/incomplete inference.++## Design++### Public API++Move the existing top-level `IssueStatus` enum from+`proto/v1/v1/issue_service.proto` to `proto/v1/v1/common.proto`, next to+`ApprovalStatus`.++The protobuf full name remains `bytebase.v1.IssueStatus`, and its numeric values+remain unchanged:++```proto+enum IssueStatus {+ ISSUE_STATUS_UNSPECIFIED = 0;+ OPEN = 1;+ DONE = 2;+ CANCELED = 3;+}+```++Both `Issue.status` and the new Plan field use this shared type:++```proto+message Plan {+ // Existing fields omitted.++ // The lifecycle status of the linked issue.+ // Unspecified when no linked issue exists.+ IssueStatus issue_status = 15+ [(google.api.field_behavior) = OUTPUT_ONLY];+}+```++The field is intentionally raw Issue lifecycle state, not a backend-rendered+badge. Clients still combine it with `approval_status` and `has_rollout`+according to their presentation needs.++Moving the enum avoids two competing status types with the same values. It is+wire- and JSON-compatible because the protobuf full name and numeric values do+not change. It does change the generated module that exports `IssueStatus` in+TypeScript, so repository imports must move from `issue_service_pb` to+`common_pb`. Generated-source consumers outside this repository may need the+same import update; this source compatibility cost must be called out in the PR.+The repository's Buf configuration uses FILE-level breaking rules, so moving+the enum may be reported if breaking checks are enabled even though the current+proto workflow runs lint without a breaking check. Confirm the generated-source+compatibility decision with the API owner before implementation. If preserving+the generated module export is mandatory, use a Plan-local enum with the same+numeric semantics as the fallback; do not replace the typed status with booleans+or strings.++Also correct the `Plan.approval_status` comment. The implementation leaves it+unspecified both when no linked Issue exists and when the linked Issue is still+a draft.++### Backend projection++`convertToPlans` already builds `issueByPlanKey` using both project ID and Plan+UID. Populate `IssueStatus` in the same block that populates `Issue` and+`ApprovalStatus`:++```go+if issue := issueByPlanKey[key]; issue != nil {+ v1Plan.Issue = common.FormatIssue(issue.ProjectID, issue.UID)+ v1Plan.IssueStatus = convertToIssueStatus(issue.Status)+ if !issue.Payload.GetDraft() {+ v1Plan.ApprovalStatus = computeApprovalStatus(+ issue.Payload.GetApproval(),+ )+ }+}+```++This applies to both `GetPlan` and `ListPlans` because both use+`convertToPlans`.++No schema migration, store method, extra query, or permission check is needed.+`ListPlans` already exposes the linked Issue name and approval status to callers+with `bb.plans.list`; lifecycle status is another field in the same summary.++Draft Issues report `issue_status=OPEN` and+`approval_status=APPROVAL_STATUS_UNSPECIFIED`. The existing `plan.issue` and+approval-status logic continue to distinguish a linked draft from an+Issue-less incomplete Plan.++### Badge precedence++Keep `getReviewBadge` as the single presentation policy:++1. No linked Issue: no Review badge.+2. `issue_status=CANCELED`: Closed.+3. `has_rollout=true` or `issue_status=DONE`, with+ `approval_status=PENDING`: Bypassed.+4. Otherwise render the approval-derived badge:+ - `APPROVED`: Approved+ - `SKIPPED`: Skipped+ - `REJECTED`: Rejected+ - `PENDING`: Under review+ - `CHECKING` or unspecified: no badge++Canceled takes precedence over rollout and approval so Plan List matches Plan+Detail even for unusual or legacy state combinations.++Plan List passes `plan.issueStatus` instead of `undefined`. Remove comments and+tests that describe CANCELED and DONE-without-rollout as intentional+divergences.++### Plan List cache invalidation++The Plan List cache is keyed by project and restored only for explicit+list-to-detail Back navigation. Detail hooks currently invalidate that cache+when `Plan.update_time` changes.++Issue actions do not change `Plan.update_time`, even though they change+Issue-derived fields in the next `GetPlan` or `ListPlans` response:++- Issue close/reopen changes `Plan.issue_status`.+- Approval actions change `Plan.approval_status`.+- Draft submission changes whether approval status is populated.++Therefore, Plan List cache invalidation must also depend on the linked Issue's+`update_time`.++In both Plan Detail and Issue Detail `patchState` paths:++1. Keep invalidating the Plan List cache when the Plan changes.+2. Also invalidate the Plan List cache when the linked Issue changes.+3. Keep invalidating the Issue List cache when the Issue changes.++Expose a direct project Plan-cache invalidation helper for batch Issue actions.+After a successful batch close or reopen, invalidate the Plan List cache for+each affected project that contains a Plan-backed Issue.++Do not change `Plan.update_time` to include Issue updates. That field describes+the Plan resource and is also displayed as the Plan's Updated time; redefining+it would mix Plan edits with review activity.++### Consistency boundary++A single `ListPlans` conversion batch reads Plan rows, then Issue rows. It is not+a database snapshot spanning both queries, so a concurrent Issue transition+may appear on the next request rather than the current one. This is consistent+with the existing approval-status projection and acceptable for the list.++The frontend must not issue per-row `GetIssue` requests to close this window.+That would introduce N+1 traffic, require `bb.issues.get` in a+`bb.plans.list` surface, and create more opportunities for mixed snapshots.++## Alternatives considered++### Infer closed from approval or rollout++Rejected. Issue status is an independent dimension. The same approval and+rollout tuple can belong to an open, done, or canceled Issue.++### Fetch each Issue from Plan List++Rejected. This adds N+1 requests, creates a permission mismatch, and duplicates+data the backend already loaded.++### Use Plan state++Rejected. `Plan.state=DELETED` is Plan resource lifecycle, while+`Issue.status=CANCELED` is review lifecycle. They are displayed separately and+can change independently.++### Add `issue_canceled` and `issue_done` booleans++Rejected. Multiple booleans permit invalid combinations and duplicate an+existing enum.++### Return a backend-computed badge status++Rejected for this change. `Closed`, `Bypassed`, and `Under review` are display+semantics derived from raw domain state. The existing shared frontend helper+already centralizes that policy.++### Add a `review_summary` message++Deferred. A structured summary containing Issue name, lifecycle status,+approval status, and draft state would be reasonable if more Issue-derived+fields are added to Plan. Introducing it now would duplicate or deprecate+existing flat fields for the current narrow gap.++## Test plan++### Backend++Add Plan conversion/ListPlans coverage for:++- No linked Issue -> empty Issue and unspecified Issue status.+- Linked draft Issue -> `OPEN`, with approval status unspecified.+- Linked submitted `OPEN` Issue -> `OPEN` and its computed approval status.+- Linked `DONE` Issue -> `DONE`.+- Linked `CANCELED` Issue -> `CANCELED`.+- Plans with colliding numeric IDs in different projects do not receive each+ other's Issue status.++The collision case should continue to identify the relationship by the full+`(project, plan_id)` key.++### Frontend unit and rendering tests++Update `reviewBadge.test.ts` so Plan List and Plan Detail use the same complete+input matrix. Delete tests that intentionally expect residual divergence.++Add Plan List rendering coverage for:++- Canceled Issue renders Closed.+- Done Issue with pending approval and no rollout renders Bypassed.+- Open Issue with pending approval renders Under review.+- Rollout with pending approval remains Bypassed.+- Plan deletion and review closure remain separate visual states.++### Cache tests++Extend project paged-cache tests and detail-hook tests to verify:++- A Plan update invalidates the Plan List cache.+- An Issue status or approval update invalidates both Issue List and Plan List+ caches.+- An unchanged Issue does not invalidate either cache.+- A batch Issue close/reopen invalidates the Plan List cache for every affected+ Plan-backed project.++### Interaction regression++Cover the user journey:++1. Open Plan List with an under-review Plan.+2. Open the Plan.+3. Close the linked Issue.+4. Navigate Back.+5. Confirm the restored/refetched Plan row shows Closed without manual refresh.+6. Reopen the Issue and confirm the Plan row returns to Under review.++## File inventory++Expected source changes:++```text+proto/v1/v1/common.proto+proto/v1/v1/issue_service.proto+proto/v1/v1/plan_service.proto+backend/api/v1/plan_service.go+backend/api/v1/plan_service_test.go+frontend/src/routes/project/ProjectPlanDashboardPage.tsx+frontend/src/routes/project/utils/reviewBadge.ts+frontend/src/routes/project/utils/reviewBadge.test.ts+frontend/src/lib/projectPagedDataCache.ts+frontend/src/lib/projectPagedDataCache.test.ts+frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.ts+frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.ts+frontend/src/components/IssueTable.tsx+```++Proto generation will also update generated Go, TypeScript, OpenAPI, and gRPC+documentation artifacts. Frontend imports of `IssueStatus` must move to+`common_pb` after regeneration; this affects every current frontend source file+that imports the enum, not only the feature files listed above.++## Verification++Run:++```bash+buf format -w proto+buf lint proto+(cd proto && buf generate)++gofmt -w backend/api/v1/plan_service.go \+ backend/api/v1/plan_service_test.go+golangci-lint run --allow-parallel-runners+go test -v -count=1 ./backend/api/v1 -run '^TestPlanService'++pnpm --dir frontend fix+pnpm --dir frontend check+pnpm --dir frontend type-check+pnpm --dir frontend test++git diff --check+```++Before publication, review the generated API diff specifically for:++- `bytebase.v1.IssueStatus` retaining its full name and numeric values.+- `Plan.issue_status` using a new field number.+- No accidental change to Issue status JSON names.+- Generated TypeScript import changes caused by moving `IssueStatus`.diff --git a/frontend/src/components/IssueTable.test.tsx b/frontend/src/components/IssueTable.test.tsxindex 5f46264b68..66532e3f7e 100644--- a/frontend/src/components/IssueTable.test.tsx+++ b/frontend/src/components/IssueTable.test.tsx@@ -1,10 +1,8 @@import { create } from "@bufbuild/protobuf";import { fireEvent, render, screen } from "@testing-library/react";import { describe, expect, test, vi } from "vitest";-import {- IssueSchema,- IssueStatus,-} from "@/types/proto-es/v1/issue_service_pb";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";+import { IssueSchema } from "@/types/proto-es/v1/issue_service_pb";import { emptySearchParams } from "./AdvancedSearch";import { IssueListItem, IssueSearchBar, PresetButtons } from "./IssueTable";diff --git a/frontend/src/components/IssueTable.tsx b/frontend/src/components/IssueTable.tsxindex d409adfd13..b5f6f51afb 100644--- a/frontend/src/components/IssueTable.tsx+++ b/frontend/src/components/IssueTable.tsx@@ -41,6 +41,7 @@ import { Tabs, TabsList, TabsTrigger } from "@/components/ui/tabs";import { Tooltip } from "@/components/ui/tooltip";import { useCurrentUser } from "@/hooks/useAppState";import { useEscapeKey } from "@/hooks/useEscapeKey";+import { invalidateProjectPlansPagedDataCacheForIssues } from "@/lib/projectPagedDataCache";import { displayRoleTitleFromList } from "@/lib/role";import { cn } from "@/lib/utils";import { pushNotification } from "@/stores";@@ -50,12 +51,15 @@ import {isValidProjectName,unknownUser,} from "@/types";-import { ApprovalStatus, RiskLevel } from "@/types/proto-es/v1/common_pb";+import {+ ApprovalStatus,+ IssueStatus,+ RiskLevel,+} from "@/types/proto-es/v1/common_pb";import type { Issue } from "@/types/proto-es/v1/issue_service_pb";import {BatchUpdateIssuesStatusRequestSchema,Issue_Type,- IssueStatus,} from "@/types/proto-es/v1/issue_service_pb";import type { Label } from "@/types/proto-es/v1/project_service_pb";import {@@ -1082,6 +1086,7 @@ export function BatchIssueStatusActionDrawer({reason: comment,});await issueServiceClientConnect.batchUpdateIssuesStatus(request);+ invalidateProjectPlansPagedDataCacheForIssues(issues);pushNotification({module: "bytebase",style: "SUCCESS",diff --git a/frontend/src/components/issue-activity/IssueCommentActivity.test.tsx b/frontend/src/components/issue-activity/IssueCommentActivity.test.tsxindex 2208c8d331..2fceac5a3e 100644--- a/frontend/src/components/issue-activity/IssueCommentActivity.test.tsx+++ b/frontend/src/components/issue-activity/IssueCommentActivity.test.tsx@@ -3,13 +3,13 @@ import { render, screen } from "@testing-library/react";import type { AnchorHTMLAttributes, ReactNode } from "react";import { describe, expect, test, vi } from "vitest";import { PROJECT_V1_ROUTE_PLAN_DETAIL_SPEC_DETAIL } from "@/app/router/handles";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";import {IssueComment_PlanUpdateSchema,Issue_Type,IssueComment_ReviewSubmissionSchema,IssueCommentSchema,IssueSchema,- IssueStatus,} from "@/types/proto-es/v1/issue_service_pb";import {Plan_ChangeDatabaseConfigSchema,diff --git a/frontend/src/components/issue-activity/IssueCommentActivity.tsx b/frontend/src/components/issue-activity/IssueCommentActivity.tsxindex 7dc96f7d56..0492633d0b 100644--- a/frontend/src/components/issue-activity/IssueCommentActivity.tsx+++ b/frontend/src/components/issue-activity/IssueCommentActivity.tsx@@ -35,12 +35,11 @@ import {IssueCommentType,} from "@/stores/app/issueComment";import { getTimeForPbTimestampProtoEs, unknownUser } from "@/types";-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";import type { Issue, IssueComment } from "@/types/proto-es/v1/issue_service_pb";import {Issue_Type,IssueComment_Approval_Status,- IssueStatus,} from "@/types/proto-es/v1/issue_service_pb";import type { Plan, Plan_Spec } from "@/types/proto-es/v1/plan_service_pb";import type { User } from "@/types/proto-es/v1/user_service_pb";diff --git a/frontend/src/lib/plan/workflow.ts b/frontend/src/lib/plan/workflow.tsindex 58a3812b51..6816a98b99 100644--- a/frontend/src/lib/plan/workflow.ts+++ b/frontend/src/lib/plan/workflow.ts@@ -1,4 +1,5 @@import { create } from "@bufbuild/protobuf";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";import type {CreateIssueRequest,Issue,@@ -8,7 +9,6 @@ import {CreateIssueRequestSchema,Issue_Type,IssueSchema,- IssueStatus,UpdateIssueRequestSchema,} from "@/types/proto-es/v1/issue_service_pb";import type {diff --git a/frontend/src/routes/project/pagedDataCacheScope.test.ts b/frontend/src/lib/projectPagedDataCache.test.tssimilarity index 70%rename from frontend/src/routes/project/pagedDataCacheScope.test.tsrename to frontend/src/lib/projectPagedDataCache.test.tsindex 15de7cc6fe..9dfaef4066 100644--- a/frontend/src/routes/project/pagedDataCacheScope.test.ts+++ b/frontend/src/lib/projectPagedDataCache.test.ts@@ -6,9 +6,10 @@ import {} from "@/hooks/pagedDataCache";import {invalidateProjectPagedDataCacheIfChanged,+ invalidateProjectPlansPagedDataCacheForIssues,projectIssuesPagedDataCacheScope,projectPlansPagedDataCacheScope,-} from "./pagedDataCacheScope";+} from "./projectPagedDataCache";describe("project paged data cache scopes", () => {beforeEach(clearPagedDataCache);@@ -72,6 +73,35 @@ describe("project paged data cache scopes", () => {expect(readPagedDataCache("plans")?.dataList).toEqual(["plan"]);});+ test("invalidates Plan caches for every Plan-backed Issue project", () => {+ writePagedDataCache(+ "plans-a",+ { dataList: ["plan-a"], hasMore: false, nextPageToken: "" },+ projectPlansPagedDataCacheScope("a")+ );+ writePagedDataCache(+ "plans-b",+ { dataList: ["plan-b"], hasMore: false, nextPageToken: "" },+ projectPlansPagedDataCacheScope("b")+ );+ writePagedDataCache(+ "plans-c",+ { dataList: ["plan-c"], hasMore: false, nextPageToken: "" },+ projectPlansPagedDataCacheScope("c")+ );++ invalidateProjectPlansPagedDataCacheForIssues([+ { name: "projects/a/issues/1", plan: "projects/a/plans/1" },+ { name: "projects/a/issues/2", plan: "projects/a/plans/2" },+ { name: "projects/b/issues/1", plan: "projects/b/plans/1" },+ { name: "projects/c/issues/1", plan: "" },+ ]);++ expect(readPagedDataCache("plans-a")).toBeUndefined();+ expect(readPagedDataCache("plans-b")).toBeUndefined();+ expect(readPagedDataCache("plans-c")?.dataList).toEqual(["plan-c"]);+ });+test("keeps the cache when the detail route changes resources", () => {writePagedDataCache("plans",diff --git a/frontend/src/routes/project/pagedDataCacheScope.ts b/frontend/src/lib/projectPagedDataCache.tssimilarity index 58%rename from frontend/src/routes/project/pagedDataCacheScope.tsrename to frontend/src/lib/projectPagedDataCache.tsindex d64c2ac3b0..6d84de4768 100644--- a/frontend/src/routes/project/pagedDataCacheScope.ts+++ b/frontend/src/lib/projectPagedDataCache.ts@@ -1,4 +1,5 @@import { invalidatePagedDataCacheScope } from "@/hooks/pagedDataCache";+import { extractProjectResourceName } from "@/utils/v1/project";type VersionedResource = {name: string;@@ -19,6 +20,24 @@ export const projectIssuesPagedDataCacheScope = (projectId: string): string =>export const projectPlansPagedDataCacheScope = (projectId: string): string =>projectPagedDataCacheScope("plans", projectId);+export const invalidateProjectPlansPagedDataCache = (+ projectId: string+): void => {+ invalidatePagedDataCacheScope(projectPlansPagedDataCacheScope(projectId));+};++export const invalidateProjectPlansPagedDataCacheForIssues = (+ issues: { name: string; plan: string }[]+): void => {+ for (const projectId of new Set(+ issues+ .filter((issue) => issue.plan !== "")+ .map((issue) => extractProjectResourceName(issue.name))+ )) {+ invalidateProjectPlansPagedDataCache(projectId);+ }+};+export const invalidateProjectPagedDataCacheIfChanged = (projectId: string,resource: "issues" | "plans",@@ -37,9 +56,9 @@ export const invalidateProjectPagedDataCacheIfChanged = (return;}- invalidatePagedDataCacheScope(- resource === "plans"- ? projectPlansPagedDataCacheScope(projectId)- : projectIssuesPagedDataCacheScope(projectId)- );+ if (resource === "plans") {+ invalidateProjectPlansPagedDataCache(projectId);+ return;+ }+ invalidatePagedDataCacheScope(projectIssuesPagedDataCacheScope(projectId));};diff --git a/frontend/src/modules/agent/logic/context.ts b/frontend/src/modules/agent/logic/context.tsindex 12615639d2..fe4d20c0cd 100644--- a/frontend/src/modules/agent/logic/context.ts+++ b/frontend/src/modules/agent/logic/context.ts@@ -1,7 +1,7 @@import type { ReactRoute } from "@/app/router";import { useAppStore } from "@/stores/app";-import { Engine, State } from "@/types/proto-es/v1/common_pb";-import { Issue_Type, IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { Engine, IssueStatus, State } from "@/types/proto-es/v1/common_pb";+import { Issue_Type } from "@/types/proto-es/v1/issue_service_pb";interface PageContext {user?: { name: string; email: string; title: string };diff --git a/frontend/src/routes/project/ProjectIssueDashboardPage.tsx b/frontend/src/routes/project/ProjectIssueDashboardPage.tsxindex 5b5ca2a502..f3fa6d08f2 100644--- a/frontend/src/routes/project/ProjectIssueDashboardPage.tsx+++ b/frontend/src/routes/project/ProjectIssueDashboardPage.tsx@@ -23,11 +23,11 @@ import { useCurrentUser } from "@/hooks/useAppState";import { PagedTableFooter, usePagedData } from "@/hooks/usePagedData";import { useURLSearchParam } from "@/hooks/useURLSearchParam";import { refreshIssueList } from "@/lib/issue/issueListRefresh";+import { projectIssuesPagedDataCacheScope } from "@/lib/projectPagedDataCache";import { useAppStore } from "@/stores/app";import { projectNamePrefix } from "@/stores/modules/v1/common";-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";import type { Issue } from "@/types/proto-es/v1/issue_service_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";import {buildIssueFilterBySearchParams,buildSearchParamsBySearchText,@@ -35,7 +35,6 @@ import {mergeSearchParams,type SearchScope as VueSearchScope,} from "@/utils";-import { projectIssuesPagedDataCacheScope } from "./pagedDataCacheScope";const serializeSearchParams = (params: SearchParams): string =>buildSearchTextBySearchParams({diff --git a/frontend/src/routes/project/ProjectPlanDashboardPage.test.tsx b/frontend/src/routes/project/ProjectPlanDashboardPage.test.tsxindex 875e4f981d..89004d2fa9 100644--- a/frontend/src/routes/project/ProjectPlanDashboardPage.test.tsx+++ b/frontend/src/routes/project/ProjectPlanDashboardPage.test.tsx@@ -2,7 +2,11 @@ import { act, createElement, type ReactNode } from "react";import { createRoot, type Root } from "react-dom/client";import { MemoryRouter } from "react-router";import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";-import { State } from "@/types/proto-es/v1/common_pb";+import {+ ApprovalStatus,+ IssueStatus,+ State,+} from "@/types/proto-es/v1/common_pb";import type { Plan } from "@/types/proto-es/v1/plan_service_pb";import { ProjectPlanDashboardPage } from "./ProjectPlanDashboardPage";@@ -30,6 +34,20 @@ const mocks = vi.hoisted(() => ({usePagedData: vi.fn(),}));+const pagedData = (dataList: Plan[]) => ({+ dataList,+ hasMore: true,+ isFetchingMore: false,+ isLoading: false,+ loadMore: vi.fn(),+ onPageSizeChange: vi.fn(),+ pageSize: 50,+ pageSizeOptions: [50, 100],+ refresh: vi.fn(),+ removeCache: vi.fn(),+ updateCache: vi.fn(),+});+vi.mock("react-i18next", async (importOriginal) => ({...(await importOriginal<typeof import("react-i18next")>()),useTranslation: () => ({ t: (key: string) => key }),@@ -71,8 +89,13 @@ vi.mock("@/components/TaskStatusIcon", () => ({}));vi.mock("@/components/ui/badge", () => ({- Badge: ({ children }: { children: ReactNode }) =>- createElement("span", {}, children),+ Badge: ({+ children,+ className,+ }: {+ children: ReactNode;+ className?: string;+ }) => createElement("span", { className }, children),}));vi.mock("@/components/ui/button", () => ({@@ -186,19 +209,7 @@ describe("ProjectPlanDashboardPage scroll restoration", () => {root = createRoot(container);mocks.usePagedData.mockReset();mocks.listScrollRestorationKey = undefined;- mocks.usePagedData.mockReturnValue({- dataList: [plan],- hasMore: true,- isFetchingMore: false,- isLoading: false,- loadMore: vi.fn(),- onPageSizeChange: vi.fn(),- pageSize: 50,- pageSizeOptions: [50, 100],- refresh: vi.fn(),- removeCache: vi.fn(),- updateCache: vi.fn(),- });+ mocks.usePagedData.mockReturnValue(pagedData([plan]));});afterEach(() => {@@ -285,4 +296,83 @@ describe("ProjectPlanDashboardPage scroll restoration", () => {)).not.toBeNull();});++ test.each([+ {+ name: "a canceled linked Issue as closed",+ issueStatus: IssueStatus.CANCELED,+ hasRollout: false,+ expected: "common.closed",+ },+ {+ name: "a done linked Issue without rollout as bypassed",+ issueStatus: IssueStatus.DONE,+ hasRollout: false,+ expected: "common.bypassed",+ },+ {+ name: "an open linked Issue awaiting review as under review",+ issueStatus: IssueStatus.OPEN,+ hasRollout: false,+ expected: "common.under-review",+ },+ {+ name: "an open linked Issue with rollout as bypassed",+ issueStatus: IssueStatus.OPEN,+ hasRollout: true,+ expected: "common.bypassed",+ },+ ])("renders $name", ({ issueStatus, hasRollout, expected }) => {+ mocks.usePagedData.mockReturnValue(+ pagedData([+ {+ ...plan,+ issue: "projects/foo/issues/1",+ issueStatus,+ hasRollout,+ approvalStatus: ApprovalStatus.PENDING,+ },+ ])+ );++ act(() => {+ root.render(+ <MemoryRouter>+ <ProjectPlanDashboardPage projectId="foo" />+ </MemoryRouter>+ );+ });++ const reviewBadge = Array.from(container.querySelectorAll("span")).find(+ (element) => element.textContent === expected+ );+ expect(reviewBadge).toHaveClass("font-normal");+ });++ test("keeps Plan deletion and review closure as separate badges", () => {+ mocks.usePagedData.mockReturnValue(+ pagedData([+ {+ ...plan,+ state: State.DELETED,+ issue: "projects/foo/issues/1",+ issueStatus: IssueStatus.CANCELED,+ approvalStatus: ApprovalStatus.PENDING,+ },+ ])+ );++ act(() => {+ root.render(+ <MemoryRouter>+ <ProjectPlanDashboardPage projectId="foo" />+ </MemoryRouter>+ );+ });++ const closedBadges = Array.from(container.querySelectorAll("span")).filter(+ (element) => element.textContent === "common.closed"+ );+ expect(closedBadges).toHaveLength(2);+ });});diff --git a/frontend/src/routes/project/ProjectPlanDashboardPage.tsx b/frontend/src/routes/project/ProjectPlanDashboardPage.tsxindex cd5ffa848d..a74789b548 100644--- a/frontend/src/routes/project/ProjectPlanDashboardPage.tsx+++ b/frontend/src/routes/project/ProjectPlanDashboardPage.tsx@@ -67,6 +67,7 @@ import {useURLSearchParam,} from "@/hooks/useURLSearchParam";import { applyPlanTitleToQuery } from "@/lib/plan/title";+import { projectPlansPagedDataCacheScope } from "@/lib/projectPagedDataCache";import { cn } from "@/lib/utils";import { pushNotification } from "@/stores";import { useAppStore } from "@/stores/app";@@ -97,7 +98,6 @@ import {extractStageUID,getStageStatusFromCounts,} from "@/utils/v1/issue/rollout";-import { projectPlansPagedDataCacheScope } from "./pagedDataCacheScope";import { isReleaseBackedPlan } from "./plan-detail/utils/spec";import {getPlanDraftState,@@ -458,7 +458,7 @@ function PlanTable({ctx.approvalTag ? (<Badgevariant={ctx.approvalTag.variant}- className="whitespace-nowrap"+ className="font-normal whitespace-nowrap">{ctx.approvalTag.label}</Badge>@@ -631,26 +631,16 @@ function PlanRow({[onOpenPlan, planUrl]);- // Approval status- // Plan List passes issueStatus=undefined because the Plan proto does not- // expose issue_status. Two divergence categories vs Plan Detail remain by- // design (see the spec's "Residual divergences" table):- // Category A — CANCELED issues render the approval-derived badge here- // instead of "Closed".- // Category C₂ — issue manually marked DONE with no rollout while approval- // is still PENDING renders "Under Review" here instead of "Bypassed".- // To close those gaps, expose issue_status on the Plan proto and pass it- // through here. Bug history: BYT-9551.const approvalTag = useMemo(() => {const badge = getReviewBadge({hasIssue: plan.issue !== "",- issueStatus: undefined,+ issueStatus: plan.issueStatus,hasRollout: plan.hasRollout,approvalStatus: plan.approvalStatus,});if (!badge) return undefined;return { label: t(badge.labelKey), variant: badge.variant };- }, [plan.approvalStatus, plan.hasRollout, plan.issue, t]);+ }, [plan.approvalStatus, plan.hasRollout, plan.issue, plan.issueStatus, t]);const ctx: PlanRowContext = {creator,diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailActionBar.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailActionBar.tsxindex fa1b9a1f1f..4d195b832b 100644--- a/frontend/src/routes/project/issue-detail/components/IssueDetailActionBar.tsx+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailActionBar.tsx@@ -57,10 +57,10 @@ import { cn } from "@/lib/utils";import { pushNotification } from "@/stores";import { useAppStore } from "@/stores/app";import { projectNamePrefix } from "@/stores/modules/v1/common";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";import {ApproveIssueRequestSchema,BatchUpdateIssuesStatusRequestSchema,- IssueStatus,ListIssueCommentsRequestSchema,RejectIssueRequestSchema,} from "@/types/proto-es/v1/issue_service_pb";diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailHeader.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailHeader.tsxindex ae5fade298..f6b8d26d09 100644--- a/frontend/src/routes/project/issue-detail/components/IssueDetailHeader.tsx+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailHeader.tsx@@ -2,8 +2,7 @@ import { Ban, CheckCircle2, Menu } from "lucide-react";import { useTranslation } from "react-i18next";import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";import { useIssueDetailContext } from "../context/IssueDetailContext";import { IssueDetailActionBar } from "./IssueDetailActionBar";import { IssueDetailTitleInput } from "./IssueDetailTitleInput";diff --git a/frontend/src/routes/project/issue-detail/components/IssueDetailLabels.tsx b/frontend/src/routes/project/issue-detail/components/IssueDetailLabels.tsxindex 7250bb65ad..607989243b 100644--- a/frontend/src/routes/project/issue-detail/components/IssueDetailLabels.tsx+++ b/frontend/src/routes/project/issue-detail/components/IssueDetailLabels.tsx@@ -20,9 +20,9 @@ import { cn } from "@/lib/utils";import { pushNotification } from "@/stores";import { useAppStore } from "@/stores/app";import { getProjectName, projectNamePrefix } from "@/stores/modules/v1/common";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";import {IssueSchema,- IssueStatus,UpdateIssueRequestSchema,} from "@/types/proto-es/v1/issue_service_pb";import { colorToHex, hasProjectPermissionV2 } from "@/utils";diff --git a/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.test.tsx b/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.test.tsxindex 6ee82fc81f..cd90f70646 100644--- a/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.test.tsx+++ b/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.test.tsx@@ -1,11 +1,18 @@import { create } from "@bufbuild/protobuf";+import { TimestampSchema } from "@bufbuild/protobuf/wkt";import { act, renderHook, waitFor } from "@testing-library/react";import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";-import { State } from "@/types/proto-es/v1/common_pb";import {- IssueSchema,- IssueStatus,-} from "@/types/proto-es/v1/issue_service_pb";+ clearPagedDataCache,+ readPagedDataCache,+ writePagedDataCache,+} from "@/hooks/pagedDataCache";+import {+ projectIssuesPagedDataCacheScope,+ projectPlansPagedDataCacheScope,+} from "@/lib/projectPagedDataCache";+import { IssueStatus, State } from "@/types/proto-es/v1/common_pb";+import { IssueSchema } from "@/types/proto-es/v1/issue_service_pb";import { PlanSchema } from "@/types/proto-es/v1/plan_service_pb";import { ProjectSchema } from "@/types/proto-es/v1/project_service_pb";import {@@ -78,6 +85,7 @@ const issue = create(IssueSchema, {title: "Issue",plan: "projects/foo/plans/1",status: IssueStatus.OPEN,+ updateTime: { seconds: 1n, nanos: 0 },});const plan = create(PlanSchema, {@@ -106,6 +114,7 @@ const rolloutWithStatus = (status: Task_Status) =>describe("useIssueDetailPage", () => {beforeEach(() => {vi.clearAllMocks();+ clearPagedDataCache();mocks.getIssue.mockResolvedValue(issue);mocks.getPlan.mockResolvedValue(plan);mocks.getPlanCheckRun.mockRejectedValue(new Error("no plan check run"));@@ -167,4 +176,34 @@ describe("useIssueDetailPage", () => {Task_Status.SKIPPED);});++ test("invalidates Issue and Plan lists when the linked Issue changes", async () => {+ const { result } = renderHook(() =>+ useIssueDetailPage({ issueId: "1", pageHost: null, projectId: "foo" })+ );+ await waitFor(() => expect(result.current.ready).toBe(true));+ writePagedDataCache(+ "plans",+ { dataList: ["plan"], hasMore: false, nextPageToken: "" },+ projectPlansPagedDataCacheScope("foo")+ );+ writePagedDataCache(+ "issues",+ { dataList: ["issue"], hasMore: false, nextPageToken: "" },+ projectIssuesPagedDataCacheScope("foo")+ );++ act(() => {+ result.current.patchState({+ issue: create(IssueSchema, {+ ...result.current.issue!,+ status: IssueStatus.CANCELED,+ updateTime: create(TimestampSchema, { seconds: 2n, nanos: 0 }),+ }),+ });+ });++ expect(readPagedDataCache("plans")).toBeUndefined();+ expect(readPagedDataCache("issues")).toBeUndefined();+ });});diff --git a/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.ts b/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.tsindex f9833e75d8..8fe9af4357 100644--- a/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.ts+++ b/frontend/src/routes/project/issue-detail/hooks/useIssueDetailPage.ts@@ -11,13 +11,13 @@ import { router } from "@/app/router";import { WORKSPACE_ROUTE_403, WORKSPACE_ROUTE_404 } from "@/app/router/handles";import { buildPermissionDeniedRouteQuery } from "@/app/router/permissionDenied";import { useProjectByName } from "@/hooks/useProjectByName";+import { invalidateProjectPagedDataCacheIfChanged } from "@/lib/projectPagedDataCache";import { projectNamePrefix } from "@/stores";import { useAppStore } from "@/stores/app";-import { State } from "@/types/proto-es/v1/common_pb";+import { IssueStatus, State } from "@/types/proto-es/v1/common_pb";import {GetIssueRequestSchema,type Issue,- IssueStatus,} from "@/types/proto-es/v1/issue_service_pb";import {GetPlanCheckRunRequestSchema,@@ -34,7 +34,6 @@ import {} from "@/types/proto-es/v1/rollout_service_pb";import { UNKNOWN_PLAN_NAME, unknownPlan } from "@/types/v1/issue/plan";import { getRolloutFromPlan, minmax, setDocumentTitle } from "@/utils";-import { invalidateProjectPagedDataCacheIfChanged } from "../../pagedDataCacheScope";import type { ProjectIssueDetailPageProps } from "../types";import {type IssueDetailType,@@ -320,6 +319,12 @@ export const useIssueDetailPage = ({previous.issue,patch.issue);+ invalidateProjectPagedDataCacheIfChanged(+ previous.projectId,+ "plans",+ previous.issue,+ patch.issue+ );setSnapshot((prev) => {const next = applyDerivedState({ ...prev, ...patch });return isSameSnapshot(prev, next) ? prev : next;diff --git a/frontend/src/routes/project/issue-detail/utils/actionRegistry.ts b/frontend/src/routes/project/issue-detail/utils/actionRegistry.tsindex b4ffa45446..0896831696 100644--- a/frontend/src/routes/project/issue-detail/utils/actionRegistry.ts+++ b/frontend/src/routes/project/issue-detail/utils/actionRegistry.ts@@ -1,12 +1,15 @@import type { TFunction } from "i18next";import { first, orderBy } from "lodash-es";import { extractUserEmail } from "@/stores";-import { ApprovalStatus, State } from "@/types/proto-es/v1/common_pb";+import {+ ApprovalStatus,+ IssueStatus,+ State,+} from "@/types/proto-es/v1/common_pb";import type { Issue } from "@/types/proto-es/v1/issue_service_pb";import {Issue_Approver_Status,Issue_Type,- IssueStatus,} from "@/types/proto-es/v1/issue_service_pb";import type { Plan } from "@/types/proto-es/v1/plan_service_pb";import type { Project } from "@/types/proto-es/v1/project_service_pb";diff --git a/frontend/src/routes/project/plan-detail/ProjectPlanDetailPage.tsx b/frontend/src/routes/project/plan-detail/ProjectPlanDetailPage.tsxindex e4fb794b8e..f088d5c266 100644--- a/frontend/src/routes/project/plan-detail/ProjectPlanDetailPage.tsx+++ b/frontend/src/routes/project/plan-detail/ProjectPlanDetailPage.tsx@@ -13,7 +13,7 @@ import { Badge } from "@/components/ui/badge";import { Button } from "@/components/ui/button";import { useOnKeyChange } from "@/hooks/useOnKeyChange";import { cn } from "@/lib/utils";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";import { Task_Status } from "@/types/proto-es/v1/rollout_service_pb";import { getRolloutStatus } from "@/utils";import { getReviewBadge } from "../utils/reviewBadge";diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailHeader.test.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailHeader.test.tsxindex 52ca6b7793..d547d9f5da 100644--- a/frontend/src/routes/project/plan-detail/components/PlanDetailHeader.test.tsx+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailHeader.test.tsx@@ -8,8 +8,7 @@ import {type TextareaHTMLAttributes,} from "react";import { beforeEach, describe, expect, test, vi } from "vitest";-import { State } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { IssueStatus, State } from "@/types/proto-es/v1/common_pb";import type { PlanDetailPageState } from "../shell/hooks/types";import { PlanDetailHeader } from "./PlanDetailHeader";import { PlanDetailHeaderDetails } from "./PlanDetailHeaderDetails";diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailHeader.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailHeader.tsxindex 0605155cbd..409bc10515 100644--- a/frontend/src/routes/project/plan-detail/components/PlanDetailHeader.tsx+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailHeader.tsx@@ -35,11 +35,10 @@ import {import { cn } from "@/lib/utils";import { pushNotification } from "@/stores";import { useAppStore } from "@/stores/app";-import { State } from "@/types/proto-es/v1/common_pb";+import { IssueStatus, State } from "@/types/proto-es/v1/common_pb";import {BatchUpdateIssuesStatusRequestSchema,IssueSchema,- IssueStatus,ListIssueCommentsRequestSchema,UpdateIssueRequestSchema,} from "@/types/proto-es/v1/issue_service_pb";diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.test.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.test.tsxindex 68b4cf600b..5ead66e31a 100644--- a/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.test.tsx+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.test.tsx@@ -5,7 +5,7 @@ import {type ReactNode,} from "react";import { beforeEach, expect, test, vi } from "vitest";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";import type { PlanDetailPageState } from "../shell/hooks/types";import { PlanDetailMeta } from "./PlanDetailMeta";diff --git a/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.tsx b/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.tsxindex a1a328f473..f14a7068a7 100644--- a/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.tsx+++ b/frontend/src/routes/project/plan-detail/components/PlanDetailMeta.tsx@@ -14,9 +14,9 @@ import { cn } from "@/lib/utils";import { extractUserEmail, pushNotification } from "@/stores";import { getTimeForPbTimestampProtoEs } from "@/types";import type { Color } from "@/types/proto-es/google/type/color_pb";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";import {IssueSchema,- IssueStatus,UpdateIssueRequestSchema,} from "@/types/proto-es/v1/issue_service_pb";import { colorToHex, hasProjectPermissionV2 } from "@/utils";diff --git a/frontend/src/routes/project/plan-detail/components/lifecycle/planLifecycleHeaderState.test.ts b/frontend/src/routes/project/plan-detail/components/lifecycle/planLifecycleHeaderState.test.tsindex e03bc5bd1c..c7e8bf97fe 100644--- a/frontend/src/routes/project/plan-detail/components/lifecycle/planLifecycleHeaderState.test.ts+++ b/frontend/src/routes/project/plan-detail/components/lifecycle/planLifecycleHeaderState.test.ts@@ -1,7 +1,10 @@import { create } from "@bufbuild/protobuf";import { describe, expect, test } from "vitest";-import { ApprovalStatus, State } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import {+ ApprovalStatus,+ IssueStatus,+ State,+} from "@/types/proto-es/v1/common_pb";import {RolloutSchema,StageSchema,diff --git a/frontend/src/routes/project/plan-detail/components/lifecycle/planLifecycleHeaderState.ts b/frontend/src/routes/project/plan-detail/components/lifecycle/planLifecycleHeaderState.tsindex bc05c7b635..00da553ee7 100644--- a/frontend/src/routes/project/plan-detail/components/lifecycle/planLifecycleHeaderState.ts+++ b/frontend/src/routes/project/plan-detail/components/lifecycle/planLifecycleHeaderState.ts@@ -6,8 +6,11 @@// the user's turn to review, whether they may run the frontier stage) are// computed by usePlanLifecycleHeader and passed in as plain values so this stays// pure and unit-testable.-import { ApprovalStatus, State } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import {+ ApprovalStatus,+ IssueStatus,+ State,+} from "@/types/proto-es/v1/common_pb";import type { Rollout, Stage } from "@/types/proto-es/v1/rollout_service_pb";import type { PlanCheckSummary } from "../../utils/phaseSummary";import {diff --git a/frontend/src/routes/project/plan-detail/components/review/PlanReviewSection.test.tsx b/frontend/src/routes/project/plan-detail/components/review/PlanReviewSection.test.tsxindex d1254f74dc..caa78a89d7 100644--- a/frontend/src/routes/project/plan-detail/components/review/PlanReviewSection.test.tsx+++ b/frontend/src/routes/project/plan-detail/components/review/PlanReviewSection.test.tsx@@ -2,12 +2,12 @@ import type { ReactElement } from "react";import { act } from "react";import { createRoot } from "react-dom/client";import { beforeEach, describe, expect, test, vi } from "vitest";-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";-import type { Issue, IssueComment } from "@/types/proto-es/v1/issue_service_pb";import {- IssueComment_Approval_Status,+ ApprovalStatus,IssueStatus,-} from "@/types/proto-es/v1/issue_service_pb";+} from "@/types/proto-es/v1/common_pb";+import type { Issue, IssueComment } from "@/types/proto-es/v1/issue_service_pb";+import { IssueComment_Approval_Status } from "@/types/proto-es/v1/issue_service_pb";import type { Plan } from "@/types/proto-es/v1/plan_service_pb";import type { PlanDetailPageState } from "../../shell/hooks/types";import { PlanDetailProvider } from "../../shell/PlanDetailContext";diff --git a/frontend/src/routes/project/plan-detail/components/review/consolidateTimeline.test.ts b/frontend/src/routes/project/plan-detail/components/review/consolidateTimeline.test.tsindex 39d111ebf1..c228aacd57 100644--- a/frontend/src/routes/project/plan-detail/components/review/consolidateTimeline.test.ts+++ b/frontend/src/routes/project/plan-detail/components/review/consolidateTimeline.test.ts@@ -1,9 +1,7 @@import { create } from "@bufbuild/protobuf";import { describe, expect, test } from "vitest";-import {- IssueCommentSchema,- IssueStatus,-} from "@/types/proto-es/v1/issue_service_pb";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";+import { IssueCommentSchema } from "@/types/proto-es/v1/issue_service_pb";import { consolidateConsecutive } from "./consolidateTimeline";import type { TimelineEntry } from "./timelineEvents";diff --git a/frontend/src/routes/project/plan-detail/components/review/readinessFooterState.test.ts b/frontend/src/routes/project/plan-detail/components/review/readinessFooterState.test.tsindex 7b1bbb544e..6790afecfd 100644--- a/frontend/src/routes/project/plan-detail/components/review/readinessFooterState.test.ts+++ b/frontend/src/routes/project/plan-detail/components/review/readinessFooterState.test.ts@@ -1,6 +1,5 @@import { describe, expect, test } from "vitest";-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";import {computeBypassActionWeight,computeReadinessFooterState,diff --git a/frontend/src/routes/project/plan-detail/components/review/readinessFooterState.ts b/frontend/src/routes/project/plan-detail/components/review/readinessFooterState.tsindex 7a45730368..b7b89a6f80 100644--- a/frontend/src/routes/project/plan-detail/components/review/readinessFooterState.ts+++ b/frontend/src/routes/project/plan-detail/components/review/readinessFooterState.ts@@ -3,8 +3,7 @@// "require issue approval" / "require no failed checks" settings are// client-side gates, so the action hides whenever clicking it would violate// one of them in the current state. The status line renders for everyone.-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";import type { PlanCheckSummary } from "../../utils/phaseSummary";export type ReadinessFooterStateKind =diff --git a/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.test.ts b/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.test.tsindex cfb0bbb0c1..4384c01db0 100644--- a/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.test.ts+++ b/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.test.ts@@ -1,6 +1,7 @@import { create } from "@bufbuild/protobuf";import { beforeEach, describe, expect, test, vi } from "vitest";-import { IssueSchema, IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";+import { IssueSchema } from "@/types/proto-es/v1/issue_service_pb";import {PlanCheckRunSchema,PlanSchema,diff --git a/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.ts b/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.tsindex 48fd22cd9f..43f612d21e 100644--- a/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.ts+++ b/frontend/src/routes/project/plan-detail/shell/hooks/fetchPlanSnapshot.ts@@ -8,10 +8,10 @@ import {userServiceClientConnect,} from "@/api";import { silentContextKey } from "@/api/context-key";+import { IssueStatus } from "@/types/proto-es/v1/common_pb";import {GetIssueRequestSchema,type Issue,- IssueStatus,} from "@/types/proto-es/v1/issue_service_pb";import {GetPlanCheckRunRequestSchema,diff --git a/frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.test.tsx b/frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.test.tsxindex 0696964027..f716df9980 100644--- a/frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.test.tsx+++ b/frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.test.tsx@@ -1,9 +1,23 @@import { create } from "@bufbuild/protobuf";+import { TimestampSchema } from "@bufbuild/protobuf/wkt";import { renderHook, waitFor } from "@testing-library/react";import { act, type ReactNode } from "react";import { afterEach, beforeEach, describe, expect, test, vi } from "vitest";-import { ApprovalStatus, State } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import {+ clearPagedDataCache,+ readPagedDataCache,+ writePagedDataCache,+} from "@/hooks/pagedDataCache";+import {+ projectIssuesPagedDataCacheScope,+ projectPlansPagedDataCacheScope,+} from "@/lib/projectPagedDataCache";+import {+ ApprovalStatus,+ IssueStatus,+ State,+} from "@/types/proto-es/v1/common_pb";+import { IssueSchema } from "@/types/proto-es/v1/issue_service_pb";import { PlanSchema } from "@/types/proto-es/v1/plan_service_pb";import { ProjectSchema } from "@/types/proto-es/v1/project_service_pb";import {@@ -104,6 +118,7 @@ const buildSnapshotPatch = ({describe("usePlanDetailPage", () => {beforeEach(() => {vi.clearAllMocks();+ clearPagedDataCache();vi.spyOn(Math, "random").mockReturnValue(0.5);mocks.fetchPlanSnapshot.mockImplementation(async (_projectId: string, planId: string) =>@@ -131,6 +146,48 @@ describe("usePlanDetailPage", () => {);});+ test("invalidates Issue and Plan lists when the linked Issue changes", async () => {+ mocks.fetchPlanSnapshot.mockResolvedValue(+ buildSnapshotPatch({+ planId: "plan-1",+ issue: create(IssueSchema, {+ name: "projects/foo/issues/1",+ plan: "projects/foo/plans/plan-1",+ status: IssueStatus.OPEN,+ updateTime: { seconds: 1n, nanos: 0 },+ }),+ })+ );+ const { result } = renderHook(+ () => usePlanDetailPage({ projectId: "foo", planId: "plan-1" }),+ { wrapper }+ );+ await waitFor(() => expect(result.current.ready).toBe(true));+ writePagedDataCache(+ "plans",+ { dataList: ["plan"], hasMore: false, nextPageToken: "" },+ projectPlansPagedDataCacheScope("foo")+ );+ writePagedDataCache(+ "issues",+ { dataList: ["issue"], hasMore: false, nextPageToken: "" },+ projectIssuesPagedDataCacheScope("foo")+ );++ act(() => {+ result.current.patchState({+ issue: create(IssueSchema, {+ ...result.current.issue!,+ status: IssueStatus.CANCELED,+ updateTime: create(TimestampSchema, { seconds: 2n, nanos: 0 }),+ }),+ });+ });++ expect(readPagedDataCache("plans")).toBeUndefined();+ expect(readPagedDataCache("issues")).toBeUndefined();+ });+test("defaults to only the deploy phase on the deploy route query", async () => {const { result } = renderHook(() =>diff --git a/frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.ts b/frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.tsindex 5181c6f939..101960a9ef 100644--- a/frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.ts+++ b/frontend/src/routes/project/plan-detail/shell/hooks/usePlanDetailPage.ts@@ -13,14 +13,19 @@ import {PLAN_DETAIL_PHASE_DEPLOY,PLAN_DETAIL_PHASE_REVIEW,} from "@/app/router/handles";+import { invalidateProjectPagedDataCacheIfChanged } from "@/lib/projectPagedDataCache";import {preserveTaskRunIdentities,sameMessage,sameMessageList,} from "@/lib/protoIdentity";import { useAppStore } from "@/stores/app";-import { ApprovalStatus, State } from "@/types/proto-es/v1/common_pb";-import { IssueSchema, IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import {+ ApprovalStatus,+ IssueStatus,+ State,+} from "@/types/proto-es/v1/common_pb";+import { IssueSchema } from "@/types/proto-es/v1/issue_service_pb";import {PlanCheckRunSchema,PlanSchema,@@ -37,7 +42,6 @@ import { unknownProject } from "@/types/v1/project";import { unknownUser } from "@/types/v1/user";import { setDocumentTitle } from "@/utils";import { isTaskActivelyTransitioning } from "@/utils/v1/issue/rollout";-import { invalidateProjectPagedDataCacheIfChanged } from "../../../pagedDataCacheScope";import type { PlanDetailPhase } from "../../shared/stores/types";import { usePlanDetailStoreApi } from "../../shared/stores/usePlanDetailStore";import {@@ -282,6 +286,12 @@ export const usePlanDetailPage = ({prevSnapshot.issue,patch.issue);+ invalidateProjectPagedDataCacheIfChanged(+ prevSnapshot.projectId,+ "plans",+ prevSnapshot.issue,+ patch.issue+ );// Seed the shared rollout store from this (already staleness-guarded)// patch, and adopt the store's identity-preserved instance so the deploy// view and the log viewer read the exact same rollout object.diff --git a/frontend/src/routes/project/plan-detail/utils/phaseSummary.test.ts b/frontend/src/routes/project/plan-detail/utils/phaseSummary.test.tsindex 6a35a5234a..826f7d475a 100644--- a/frontend/src/routes/project/plan-detail/utils/phaseSummary.test.ts+++ b/frontend/src/routes/project/plan-detail/utils/phaseSummary.test.ts@@ -1,6 +1,10 @@import { describe, expect, test } from "vitest";-import { ApprovalStatus, State } from "@/types/proto-es/v1/common_pb";-import { type Issue, IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import {+ ApprovalStatus,+ IssueStatus,+ State,+} from "@/types/proto-es/v1/common_pb";+import { type Issue } from "@/types/proto-es/v1/issue_service_pb";import type { Plan } from "@/types/proto-es/v1/plan_service_pb";import type { Rollout } from "@/types/proto-es/v1/rollout_service_pb";import { Task_Status } from "@/types/proto-es/v1/rollout_service_pb";diff --git a/frontend/src/routes/project/plan-detail/utils/phaseSummary.ts b/frontend/src/routes/project/plan-detail/utils/phaseSummary.tsindex 76e7e1e629..d667ca9aa0 100644--- a/frontend/src/routes/project/plan-detail/utils/phaseSummary.ts+++ b/frontend/src/routes/project/plan-detail/utils/phaseSummary.ts@@ -1,6 +1,9 @@-import { ApprovalStatus, State } from "@/types/proto-es/v1/common_pb";+import {+ ApprovalStatus,+ IssueStatus,+ State,+} from "@/types/proto-es/v1/common_pb";import type { Issue } from "@/types/proto-es/v1/issue_service_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";import type { Plan } from "@/types/proto-es/v1/plan_service_pb";import { PlanCheckRun_Status } from "@/types/proto-es/v1/plan_service_pb";import type { Rollout } from "@/types/proto-es/v1/rollout_service_pb";diff --git a/frontend/src/routes/project/utils/reviewBadge.test.ts b/frontend/src/routes/project/utils/reviewBadge.test.tsindex da7cdc7f86..26a7e21a14 100644--- a/frontend/src/routes/project/utils/reviewBadge.test.ts+++ b/frontend/src/routes/project/utils/reviewBadge.test.ts@@ -1,6 +1,5 @@import { describe, expect, it } from "vitest";-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";import { getPlanDraftState, getReviewBadge } from "./reviewBadge";describe("getReviewBadge", () => {@@ -200,126 +199,56 @@ describe("getReviewBadge", () => {});});- describe("without issue status (Plan List caller)", () => {- it("hasRollout=true + PENDING → 'bypassed' (closes BYT-9551 plan 201)", () => {- expect(- getReviewBadge({- hasIssue: true,- issueStatus: undefined,- hasRollout: true,- approvalStatus: ApprovalStatus.PENDING,- })- ).toEqual({ labelKey: "common.bypassed", variant: "default" });- });-- describe("residual divergence vs Plan Detail — Category A (canceled issue)", () => {- // List cannot detect CANCELED without issue_status; renders the- // approval-derived badge instead of "closed". Documented in spec.- it.each<- [ApprovalStatus, { labelKey: string; variant: string } | undefined]- >([- [- ApprovalStatus.APPROVED,- { labelKey: "issue.table.approved", variant: "success" },- ],- [- ApprovalStatus.SKIPPED,- { labelKey: "common.skipped", variant: "default" },- ],- [- ApprovalStatus.REJECTED,- { labelKey: "common.rejected", variant: "warning" },- ],- [- ApprovalStatus.PENDING,- { labelKey: "common.under-review", variant: "secondary" },- ],- ])(- "would-be-canceled, approval=%s → approval badge (not 'closed')",- (approvalStatus, expected) => {- expect(- getReviewBadge({- hasIssue: true,- issueStatus: undefined,- hasRollout: false,- approvalStatus,- })- ).toEqual(expected);- }- );- });-- it("residual divergence — Category C₂ (would-be-bypassed without rollout) renders 'under-review'", () => {- // List cannot detect "DONE && !hasRollout && PENDING" without- // issue_status; renders "under-review" instead of "bypassed".- expect(- getReviewBadge({- hasIssue: true,- issueStatus: undefined,- hasRollout: false,- approvalStatus: ApprovalStatus.PENDING,- })- ).toEqual({ labelKey: "common.under-review", variant: "secondary" });- });-- describe("approval status mapping without rollout", () => {- it.each<- [ApprovalStatus, { labelKey: string; variant: string } | undefined]- >([- [- ApprovalStatus.APPROVED,- { labelKey: "issue.table.approved", variant: "success" },- ],- [- ApprovalStatus.SKIPPED,- { labelKey: "common.skipped", variant: "default" },- ],- [- ApprovalStatus.REJECTED,- { labelKey: "common.rejected", variant: "warning" },- ],- [ApprovalStatus.CHECKING, undefined],- [ApprovalStatus.APPROVAL_STATUS_UNSPECIFIED, undefined],- ])("approval=%s", (approvalStatus, expected) => {- expect(- getReviewBadge({- hasIssue: true,- issueStatus: undefined,- hasRollout: false,- approvalStatus,- })- ).toEqual(expected);- });- });-- describe("approval status mapping with rollout (PENDING handled separately as 'bypassed')", () => {- it.each<- [ApprovalStatus, { labelKey: string; variant: string } | undefined]- >([- [- ApprovalStatus.APPROVED,- { labelKey: "issue.table.approved", variant: "success" },- ],- [- ApprovalStatus.SKIPPED,- { labelKey: "common.skipped", variant: "default" },- ],- [- ApprovalStatus.REJECTED,- { labelKey: "common.rejected", variant: "warning" },- ],- [ApprovalStatus.CHECKING, undefined],- [ApprovalStatus.APPROVAL_STATUS_UNSPECIFIED, undefined],- ])("approval=%s, hasRollout=true", (approvalStatus, expected) => {+ describe("with Plan List issue status", () => {+ it.each<+ [+ string,+ IssueStatus,+ boolean,+ ApprovalStatus,+ { labelKey: string; variant: string },+ ]+ >([+ [+ "canceled issue",+ IssueStatus.CANCELED,+ false,+ ApprovalStatus.PENDING,+ { labelKey: "common.closed", variant: "default" },+ ],+ [+ "done issue without rollout",+ IssueStatus.DONE,+ false,+ ApprovalStatus.PENDING,+ { labelKey: "common.bypassed", variant: "default" },+ ],+ [+ "open issue with rollout",+ IssueStatus.OPEN,+ true,+ ApprovalStatus.PENDING,+ { labelKey: "common.bypassed", variant: "default" },+ ],+ [+ "open issue awaiting review",+ IssueStatus.OPEN,+ false,+ ApprovalStatus.PENDING,+ { labelKey: "common.under-review", variant: "secondary" },+ ],+ ])(+ "%s uses the same badge as Plan Detail",+ (_name, issueStatus, hasRollout, approvalStatus, expected) => {expect(getReviewBadge({hasIssue: true,- issueStatus: undefined,- hasRollout: true,+ issueStatus,+ hasRollout,approvalStatus,})).toEqual(expected);- });- });+ }+ );});});diff --git a/frontend/src/routes/project/utils/reviewBadge.ts b/frontend/src/routes/project/utils/reviewBadge.tsindex 1142177234..50bcebf949 100644--- a/frontend/src/routes/project/utils/reviewBadge.ts+++ b/frontend/src/routes/project/utils/reviewBadge.ts@@ -1,10 +1,7 @@-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";export interface ReviewBadgeInput {hasIssue: boolean;- // Pass undefined when the caller cannot observe issue status (e.g. Plan- // List, which reads from the Plan proto and does not have issue_status).issueStatus: IssueStatus | undefined;hasRollout: boolean;approvalStatus: ApprovalStatus | undefined;diff --git a/frontend/src/routes/workspace/MyIssuesPage.tsx b/frontend/src/routes/workspace/MyIssuesPage.tsxindex c47bc37fa4..d8fa98d02c 100644--- a/frontend/src/routes/workspace/MyIssuesPage.tsx+++ b/frontend/src/routes/workspace/MyIssuesPage.tsx@@ -22,9 +22,8 @@ import { PagedTableFooter, usePagedData } from "@/hooks/usePagedData";import { useURLSearchParam } from "@/hooks/useURLSearchParam";import { refreshIssueList } from "@/lib/issue/issueListRefresh";import { useAppStore } from "@/stores/app";-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";import type { Issue } from "@/types/proto-es/v1/issue_service_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";import {buildIssueFilterBySearchParams,buildSearchParamsBySearchText,diff --git a/frontend/src/stores/app/issue.ts b/frontend/src/stores/app/issue.tsindex 73dde37368..7fe6b7d95d 100644--- a/frontend/src/stores/app/issue.ts+++ b/frontend/src/stores/app/issue.ts@@ -9,13 +9,16 @@ import {} from "@/api";import { silentContextKey } from "@/api/context-key";import type { IssueFilter } from "@/types";-import { ApprovalStatus, RiskLevel } from "@/types/proto-es/v1/common_pb";+import {+ ApprovalStatus,+ IssueStatus,+ RiskLevel,+} from "@/types/proto-es/v1/common_pb";import {CreateIssueRequestSchema,GetIssueRequestSchema,type Issue,Issue_Type,- IssueStatus,SearchIssuesRequestSchema,} from "@/types/proto-es/v1/issue_service_pb";import {diff --git a/frontend/src/types/proto-es/v1/common_pb.d.ts b/frontend/src/types/proto-es/v1/common_pb.d.tsindex ffabd08b16..89eff61a36 100644--- a/frontend/src/types/proto-es/v1/common_pb.d.ts+++ b/frontend/src/types/proto-es/v1/common_pb.d.ts@@ -491,6 +491,48 @@ export enum ApprovalStatus {*/export declare const ApprovalStatusSchema: GenEnum<ApprovalStatus>;+/**+ * The status of an issue.+ * Lives at the top level so both plan_service.proto and issue_service.proto+ * can reference it without a circular import.+ *+ * @generated from enum bytebase.v1.IssueStatus+ */+export enum IssueStatus {+ /**+ * Unspecified status.+ *+ * @generated from enum value: ISSUE_STATUS_UNSPECIFIED = 0;+ */+ ISSUE_STATUS_UNSPECIFIED = 0,++ /**+ * Issue is open and active.+ *+ * @generated from enum value: OPEN = 1;+ */+ OPEN = 1,++ /**+ * Issue is completed.+ *+ * @generated from enum value: DONE = 2;+ */+ DONE = 2,++ /**+ * Issue is canceled.+ *+ * @generated from enum value: CANCELED = 3;+ */+ CANCELED = 3,+}++/**+ * Describes the enum bytebase.v1.IssueStatus.+ */+export declare const IssueStatusSchema: GenEnum<IssueStatus>;+/*** RiskLevel is the risk level.*diff --git a/frontend/src/types/proto-es/v1/common_pb.js b/frontend/src/types/proto-es/v1/common_pb.jsindex 62fbb193b8..db48be885a 100644--- a/frontend/src/types/proto-es/v1/common_pb.js+++ b/frontend/src/types/proto-es/v1/common_pb.js@@ -8,7 +8,7 @@ import { enumDesc, fileDesc, messageDesc, tsEnum } from "@bufbuild/protobuf/code* Describes the file v1/common.proto.*/export const file_v1_common = /*@__PURE__*/- fileDesc("Cg92MS9jb21tb24ucHJvdG8SC2J5dGViYXNlLnYxIigKCFBvc2l0aW9uEgwKBGxpbmUYASABKAUSDgoGY29sdW1uGAIgASgFIiMKBVJhbmdlEg0KBXN0YXJ0GAEgASgFEgsKA2VuZBgCIAEoBSJZChZQZXJtaXNzaW9uRGVuaWVkRGV0YWlsEg4KBm1ldGhvZBgBIAEoCRIcChRyZXF1aXJlZF9wZXJtaXNzaW9ucxgCIAMoCRIRCglyZXNvdXJjZXMYAyADKAkqNwoFU3RhdGUSFQoRU1RBVEVfVU5TUEVDSUZJRUQQABIKCgZBQ1RJVkUQARILCgdERUxFVEVEEAIq5AIKBkVuZ2luZRIWChJFTkdJTkVfVU5TUEVDSUZJRUQQABIOCgpDTElDS0hPVVNFEAESCQoFTVlTUUwQAhIMCghQT1NUR1JFUxADEg0KCVNOT1dGTEFLRRAEEggKBFRJREIQBhILCgdNT05HT0RCEAcSCQoFUkVESVMQCBIKCgZPUkFDTEUQCRILCgdTUEFOTkVSEAoSCQoFTVNTUUwQCxIMCghSRURTSElGVBAMEgsKB01BUklBREIQDRINCglPQ0VBTkJBU0UQDhINCglTVEFSUk9DS1MQDxIJCgVET1JJUxAQEggKBEhJVkUQERIRCg1FTEFTVElDU0VBUkNIEBISDAoIQklHUVVFUlkQExIMCghEWU5BTU9EQhAUEg4KCkRBVEFCUklDS1MQFRIPCgtDT0NLUk9BQ0hEQhAWEgwKCENPU01PU0RCEBcSCQoFVFJJTk8QGBINCglDQVNTQU5EUkEQGSpcC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JfRVZFTlQQLBIOCgpBTFRFUl9UWVBFEC0SDwoLQUxURVJfSU5ERVgQLhIMCghUUlVOQ0FURRAyEgoKBlJFTkFNRRAzEhAKDFJFTkFNRV9JTkRFWBA0EhEKDVJFTkFNRV9TQ0hFTUEQNRITCg9SRU5BTUVfU0VRVUVOQ0UQNhILCgdDT01NRU5UEDcSCgoGSU5TRVJUEDwSCgoGVVBEQVRFED0SCgoGREVMRVRFED5CoQEKD2NvbS5ieXRlYmFzZS52MUILQ29tbW9uUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z");/*** Describes the message bytebase.v1.Position.@@ -103,11 +103,27 @@ export const ApprovalStatusSchema = /*@__PURE__*/export const ApprovalStatus = /*@__PURE__*/tsEnum(ApprovalStatusSchema);+/**+ * Describes the enum bytebase.v1.IssueStatus.+ */+export const IssueStatusSchema = /*@__PURE__*/+ enumDesc(file_v1_common, 5);++/**+ * The status of an issue.+ * Lives at the top level so both plan_service.proto and issue_service.proto+ * can reference it without a circular import.+ *+ * @generated from enum bytebase.v1.IssueStatus+ */+export const IssueStatus = /*@__PURE__*/+ tsEnum(IssueStatusSchema);+/*** Describes the enum bytebase.v1.RiskLevel.*/export const RiskLevelSchema = /*@__PURE__*/- enumDesc(file_v1_common, 5);+ enumDesc(file_v1_common, 6);/*** RiskLevel is the risk level.@@ -121,7 +137,7 @@ export const RiskLevel = /*@__PURE__*/* Describes the enum bytebase.v1.WebhookType.*/export const WebhookTypeSchema = /*@__PURE__*/- enumDesc(file_v1_common, 6);+ enumDesc(file_v1_common, 7);/*** Webhook integration type.@@ -135,7 +151,7 @@ export const WebhookType = /*@__PURE__*/* Describes the enum bytebase.v1.StatementType.*/export const StatementTypeSchema = /*@__PURE__*/- enumDesc(file_v1_common, 7);+ enumDesc(file_v1_common, 8);/*** StatementType represents the type of SQL statement.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 c3f6ff0776..58730b5048 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@@ -5,7 +5,7 @@import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";import type { Message } from "@bufbuild/protobuf";import type { Duration, FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";-import type { ApprovalStatus, RiskLevel } from "./common_pb";+import type { ApprovalStatus, IssueStatus, RiskLevel } from "./common_pb";import type { Expr } from "../google/type/expr_pb";import type { Plan_Spec } from "./plan_service_pb";@@ -1166,46 +1166,6 @@ export declare type IssueComment_PlanUpdate = Message<"bytebase.v1.IssueComment.*/export declare const IssueComment_PlanUpdateSchema: GenMessage<IssueComment_PlanUpdate>;-/**- * The status of an issue.- *- * @generated from enum bytebase.v1.IssueStatus- */-export enum IssueStatus {- /**- * Unspecified status.- *- * @generated from enum value: ISSUE_STATUS_UNSPECIFIED = 0;- */- ISSUE_STATUS_UNSPECIFIED = 0,-- /**- * Issue is open and active.- *- * @generated from enum value: OPEN = 1;- */- OPEN = 1,-- /**- * Issue is completed.- *- * @generated from enum value: DONE = 2;- */- DONE = 2,-- /**- * Issue is canceled.- *- * @generated from enum value: CANCELED = 3;- */- CANCELED = 3,-}--/**- * Describes the enum bytebase.v1.IssueStatus.- */-export declare const IssueStatusSchema: GenEnum<IssueStatus>;-/*** IssueService manages issues for tracking database changes and tasks.*diff --git a/frontend/src/types/proto-es/v1/issue_service_pb.js b/frontend/src/types/proto-es/v1/issue_service_pb.jsindex e6abe1727b..16feb14f16 100644--- a/frontend/src/types/proto-es/v1/issue_service_pb.js+++ b/frontend/src/types/proto-es/v1/issue_service_pb.js@@ -18,7 +18,7 @@ import { file_v1_plan_service } from "./plan_service_pb";* Describes the file v1/issue_service.proto.*/export const file_v1_issue_service = /*@__PURE__*/- fileDesc("ChZ2MS9pc3N1ZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJKCg9HZXRJc3N1ZVJlcXVlc3QSKAoEbmFtZRgBIAEoCUIa4EEC+kEUChJieXRlYmFzZS5jb20vSXNzdWUSDQoFZm9yY2UYAiABKAgiagoSQ3JlYXRlSXNzdWVSZXF1ZXN0EiwKBnBhcmVudBgBIAEoCUIc4EEC+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBImCgVpc3N1ZRgCIAEoCzISLmJ5dGViYXNlLnYxLklzc3VlQgPgQQIimQEKEUxpc3RJc3N1ZXNSZXF1ZXN0EiwKBnBhcmVudBgBIAEoCUIc4EEC+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBIRCglwYWdlX3NpemUYAiABKAUSEgoKcGFnZV90b2tlbhgDIAEoCRIOCgZmaWx0ZXIYBCABKAkSDQoFcXVlcnkYBSABKAkSEAoIb3JkZXJfYnkYBiABKAkiUQoSTGlzdElzc3Vlc1Jlc3BvbnNlEiIKBmlzc3VlcxgBIAMoCzISLmJ5dGViYXNlLnYxLklzc3VlEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSKCAQoTU2VhcmNoSXNzdWVzUmVxdWVzdBITCgZwYXJlbnQYASABKAlCA+BBAhIRCglwYWdlX3NpemUYAiABKAUSEgoKcGFnZV90b2tlbhgDIAEoCRIOCgZmaWx0ZXIYBCABKAkSDQoFcXVlcnkYBSABKAkSEAoIb3JkZXJfYnkYBiABKAkiUwoUU2VhcmNoSXNzdWVzUmVzcG9uc2USIgoGaXNzdWVzGAEgAygLMhIuYnl0ZWJhc2UudjEuSXNzdWUSFwoPbmV4dF9wYWdlX3Rva2VuGAIgASgJIqABChJVcGRhdGVJc3N1ZVJlcXVlc3QSPQoFaXNzdWUYASABKAsyEi5ieXRlYmFzZS52MS5Jc3N1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zLyovaXNzdWVzLyp9OnJlcXVlc3QSkQEKElJldHJ5SXNzdWVBcHByb3ZhbBImLmJ5dGViYXNlLnYxLlJldHJ5SXNzdWVBcHByb3ZhbFJlcXVlc3QaEi5ieXRlYmFzZS52MS5Jc3N1ZSI/kOowApjqMAGC0+STAjE6ASoiLC92MS97bmFtZT1wcm9qZWN0cy8qL2lzc3Vlcy8qfTpyZXRyeUFwcHJvdmFsQqcBCg9jb20uYnl0ZWJhc2UudjFCEUlzc3VlU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [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, file_v1_plan_service]);+ fileDesc("ChZ2MS9pc3N1ZV9zZXJ2aWNlLnByb3RvEgtieXRlYmFzZS52MSJKCg9HZXRJc3N1ZVJlcXVlc3QSKAoEbmFtZRgBIAEoCUIa4EEC+kEUChJieXRlYmFzZS5jb20vSXNzdWUSDQoFZm9yY2UYAiABKAgiagoSQ3JlYXRlSXNzdWVSZXF1ZXN0EiwKBnBhcmVudBgBIAEoCUIc4EEC+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBImCgVpc3N1ZRgCIAEoCzISLmJ5dGViYXNlLnYxLklzc3VlQgPgQQIimQEKEUxpc3RJc3N1ZXNSZXF1ZXN0EiwKBnBhcmVudBgBIAEoCUIc4EEC+kEWChRieXRlYmFzZS5jb20vUHJvamVjdBIRCglwYWdlX3NpemUYAiABKAUSEgoKcGFnZV90b2tlbhgDIAEoCRIOCgZmaWx0ZX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EuSXNzdWUiOZDqMAKY6jABgtPkkwIrOgEqIiYvdjEve25hbWU9cHJvamVjdHMvKi9pc3N1ZXMvKn06YXBwcm92ZRJ8CgtSZWplY3RJc3N1ZRIfLmJ5dGViYXNlLnYxLlJlamVjdElzc3VlUmVxdWVzdBoSLmJ5dGViYXNlLnYxLklzc3VlIjiQ6jACmOowAYLT5JMCKjoBKiIlL3YxL3tuYW1lPXByb2plY3RzLyovaXNzdWVzLyp9OnJlamVjdBJ/CgxSZXF1ZXN0SXNzdWUSIC5ieXRlYmFzZS52MS5SZXF1ZXN0SXNzdWVSZXF1ZXN0GhIuYnl0ZWJhc2UudjEuSXNzdWUiOZDqMAKY6jABgtPkkwIrOgEqIiYvdjEve25hbWU9cHJvamVjdHMvKi9pc3N1ZXMvKn06cmVxdWVzdBKRAQoSUmV0cnlJc3N1ZUFwcHJvdmFsEiYuYnl0ZWJhc2UudjEuUmV0cnlJc3N1ZUFwcHJvdmFsUmVxdWVzdBoSLmJ5dGViYXNlLnYxLklzc3VlIj+Q6jACmOowAYLT5JMCMToBKiIsL3YxL3tuYW1lPXByb2plY3RzLyovaXNzdWVzLyp9OnJldHJ5QXBwcm92YWxCpwEKD2NvbS5ieXRlYmFzZS52MUIRSXNzdWVTZXJ2aWNlUHJvdG9QAVo0Z2l0aHViLmNvbS9ieXRlYmFzZS9ieXRlYmFzZS9iYWNrZW5kL2dlbmVyYXRlZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [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, file_v1_plan_service]);/*** Describes the message bytebase.v1.GetIssueRequest.@@ -251,20 +251,6 @@ export const IssueComment_ReviewSubmissionSchema = /*@__PURE__*/export const IssueComment_PlanUpdateSchema = /*@__PURE__*/messageDesc(file_v1_issue_service, 21, 3);-/**- * Describes the enum bytebase.v1.IssueStatus.- */-export const IssueStatusSchema = /*@__PURE__*/- enumDesc(file_v1_issue_service, 0);--/**- * The status of an issue.- *- * @generated from enum bytebase.v1.IssueStatus- */-export const IssueStatus = /*@__PURE__*/- tsEnum(IssueStatusSchema);-/*** IssueService manages issues for tracking database changes and tasks.*diff --git a/frontend/src/types/proto-es/v1/plan_service_pb.d.ts b/frontend/src/types/proto-es/v1/plan_service_pb.d.tsindex bc62678ee1..beb28cc20d 100644--- a/frontend/src/types/proto-es/v1/plan_service_pb.d.ts+++ b/frontend/src/types/proto-es/v1/plan_service_pb.d.ts@@ -5,7 +5,7 @@import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2";import type { Message } from "@bufbuild/protobuf";import type { FieldMask, Timestamp } from "@bufbuild/protobuf/wkt";-import type { ApprovalStatus, ExportFormat, Position, State, StatementType } from "./common_pb";+import type { ApprovalStatus, ExportFormat, IssueStatus, Position, State, StatementType } from "./common_pb";import type { Task_Status } from "./rollout_service_pb";import type { Advice_Level } from "./sql_service_pb";@@ -273,7 +273,7 @@ export declare type Plan = Message<"bytebase.v1.Plan"> & {/*** The approval status of the linked issue.- * Unspecified when no linked issue exists.+ * Unspecified when no linked issue exists or the linked issue is a draft.** @generated from field: bytebase.v1.ApprovalStatus approval_status = 13;*/@@ -286,6 +286,14 @@ export declare type Plan = Message<"bytebase.v1.Plan"> & {* @generated from field: repeated bytebase.v1.Plan.RolloutStageSummary rollout_stage_summaries = 14;*/rolloutStageSummaries: Plan_RolloutStageSummary[];++ /**+ * The lifecycle status of the linked issue.+ * Unspecified when no linked issue exists.+ *+ * @generated from field: bytebase.v1.IssueStatus issue_status = 15;+ */+ issueStatus: IssueStatus;};/**diff --git a/frontend/src/types/proto-es/v1/plan_service_pb.js b/frontend/src/types/proto-es/v1/plan_service_pb.jsindex c204ac36ea..49c5ade209 100644--- a/frontend/src/types/proto-es/v1/plan_service_pb.js+++ b/frontend/src/types/proto-es/v1/plan_service_pb.js@@ -18,7 +18,7 @@ import { file_v1_sql_service } from "./sql_service_pb";* Describes the file v1/plan_service.proto.*/export const file_v1_plan_service = /*@__PURE__*/- fileDesc("ChV2MS9wbGFuX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKDkdldFBsYW5SZXF1ZXN0EicKBG5hbWUYASABKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1BsYW4idwoQTGlzdFBsYW5zUmVxdWVzdBIsCgZwYXJlbnQYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJIk4KEUxpc3RQbGFuc1Jlc3BvbnNlEiAKBXBsYW5zGAEgAygLMhEuYnl0ZWJhc2UudjEuUGxhbhIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkiZwoRQ3JlYXRlUGxhblJlcXVlc3QSLAoGcGFyZW50GAEgASgJQhzgQQL6QRYKFGJ5dGViYXNlLmNvbS9Qcm9qZWN0EiQKBHBsYW4YAiABKAsyES5ieXRlYmFzZS52MS5QbGFuQgPgQQIihgEKEVVwZGF0ZVBsYW5SZXF1ZXN0EiQKBHBsYW4YASABKAsyES5ieXRlYmFzZS52MS5QbGFuQgPgQQISNAoLdXBkYXRlX21hc2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQISFQoNYWxsb3dfbWlzc2luZxgDIAEoCCKdDAoEUGxhbhIMCgRuYW1lGAEgASgJEiEKBXN0YXRlGAIgASgOMhIuYnl0ZWJhc2UudjEuU3RhdGUSEgoFaXNzdWUYAyABKAlCA+BBAxIXCgV0aXRsZRgFIAEoCUIIukgFcgMYyAESHQoLZGVzY3JpcHRpb24YBiABKAlCCLpIBXIDG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lZC1nby92MaICA0JYWKoCC0J5dGViYXNlLlYxygILQnl0ZWJhc2VcVjHiAhdCeXRlYmFzZVxWMVxHUEJNZXRhZGF0YeoCDEJ5dGViYXNlOjpWMWIGcHJvdG8z", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_rollout_service, file_v1_sql_service]);+ fileDesc("ChV2MS9wbGFuX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKDkdldFBsYW5SZXF1ZXN0EicKBG5hbWUYASABKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1BsYW4idwoQTGlzdFBsYW5zUmVxdWVzdBIsCgZwYXJlbnQYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJIk4KEUxpc3RQbGFuc1Jlc3BvbnNlEiAKBXBsYW5zGAEgAygLMhEuYnl0ZWJhc2UudjEuUGxhbhIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkiZwoRQ3JlYXRlUGxhblJlcXVlc3QSLAoGcGFyZW50GAEgASgJQhzgQQL6QRYKFGJ5dGViYXNlLmNvbS9Qcm9qZWN0EiQKBHBsYW4YAiABKAsyES5ieXRlYmFzZS52MS5QbGFuQgPgQQIihgEKEVVwZGF0ZVBsYW5SZXF1ZXN0EiQKBHBsYW4YASABKAsyES5ieXRlYmFzZS52MS5QbGFuQgPgQQISNAoLdXBkYXRlX21hc2sYAiABKAsyGi5nb29nbGUucHJvdG9idWYuRmllbGRNYXNrQgPgQQISFQoNYWxsb3dfbWlzc2luZxgDIAEoCCLSDAoEUGxhbhIMCgRuYW1lGAEgASgJEiEKBXN0YXRlGAIgASgOMhIuYnl0ZWJhc2UudjEuU3RhdGUSEgoFaXNzdWUYAyABK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xhbkNoZWNrUnVufTpjYW5jZWxCpgEKD2NvbS5ieXRlYmFzZS52MUIQUGxhblNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [file_buf_validate_validate, file_google_api_annotations, file_google_api_client, file_google_api_field_behavior, file_google_api_resource, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_v1_annotation, file_v1_common, file_v1_rollout_service, file_v1_sql_service]);/*** Describes the message bytebase.v1.GetPlanRequest.diff --git a/frontend/src/types/v1/issue/issue.ts b/frontend/src/types/v1/issue/issue.tsindex c0cb3bba80..8bc70c0386 100644--- a/frontend/src/types/v1/issue/issue.ts+++ b/frontend/src/types/v1/issue/issue.ts@@ -1,6 +1,9 @@-import type { ApprovalStatus } from "@/types/proto-es/v1/common_pb";-import { RiskLevel } from "@/types/proto-es/v1/common_pb";-import { Issue_Type, IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import {+ type ApprovalStatus,+ IssueStatus,+ RiskLevel,+} from "@/types/proto-es/v1/common_pb";+import { Issue_Type } from "@/types/proto-es/v1/issue_service_pb";export interface IssueFilter {project: string;diff --git a/frontend/src/utils/accessGrant.ts b/frontend/src/utils/accessGrant.tsindex 56772125ec..f81e2f1ce1 100644--- a/frontend/src/utils/accessGrant.ts+++ b/frontend/src/utils/accessGrant.ts@@ -5,9 +5,8 @@ import {type AccessGrant,AccessGrant_Status,} from "@/types/proto-es/v1/access_grant_service_pb";-import { ApprovalStatus } from "@/types/proto-es/v1/common_pb";+import { ApprovalStatus, IssueStatus } from "@/types/proto-es/v1/common_pb";import type { Issue } from "@/types/proto-es/v1/issue_service_pb";-import { IssueStatus } from "@/types/proto-es/v1/issue_service_pb";import { formatAbsoluteDateTime } from "@/utils/datetime";export type AccessGrantFilterStatus =diff --git a/frontend/src/utils/v1/advanced-search/issue/utils.ts b/frontend/src/utils/v1/advanced-search/issue/utils.tsindex de69aca8e8..d02e87ad5c 100644--- a/frontend/src/utils/v1/advanced-search/issue/utils.ts+++ b/frontend/src/utils/v1/advanced-search/issue/utils.ts@@ -1,7 +1,11 @@import { projectNamePrefix, userNamePrefix } from "@/stores";import type { IssueFilter } from "@/types";-import { ApprovalStatus, RiskLevel } from "@/types/proto-es/v1/common_pb";-import { Issue_Type, IssueStatus } from "@/types/proto-es/v1/issue_service_pb";+import {+ ApprovalStatus,+ IssueStatus,+ RiskLevel,+} from "@/types/proto-es/v1/common_pb";+import { Issue_Type } from "@/types/proto-es/v1/issue_service_pb";import type { SearchParams } from "../common";import {getTsRangeFromSearchParams,diff --git a/frontend/src/utils/v1/issue/issue.ts b/frontend/src/utils/v1/issue/issue.tsindex 22c256491b..4a5deae9d7 100644--- a/frontend/src/utils/v1/issue/issue.ts+++ b/frontend/src/utils/v1/issue/issue.ts@@ -9,14 +9,10 @@ import {} from "@/stores/app/databaseAccess";import { getProjectByName } from "@/stores/app/projectAccess";import { isValidDatabaseName, UNKNOWN_ID, unknownDatabase } from "@/types";-import { State } from "@/types/proto-es/v1/common_pb";+import { IssueStatus, State } from "@/types/proto-es/v1/common_pb";import type { Database } from "@/types/proto-es/v1/database_service_pb";import { InstanceResourceSchema } from "@/types/proto-es/v1/instance_service_pb";-import {- type Issue,- Issue_Type,- IssueStatus,-} from "@/types/proto-es/v1/issue_service_pb";+import { type Issue, Issue_Type } from "@/types/proto-es/v1/issue_service_pb";import type { Plan } from "@/types/proto-es/v1/plan_service_pb";import type { Project } from "@/types/proto-es/v1/project_service_pb";import type { Rollout, Task } from "@/types/proto-es/v1/rollout_service_pb";diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex fcab9d11e2..801e6ed5bf 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -21207,7 +21207,10 @@ components:- OPEN- DONE- CANCELED- description: The status of an issue.+ description: |-+ The status of an issue.+ Lives at the top level so both plan_service.proto and issue_service.proto+ can reference it without a circular import.bytebase.v1.KerberosConfig:type: objectproperties:@@ -23353,7 +23356,7 @@ components:title: approval_statusdescription: |-The approval status of the linked issue.- Unspecified when no linked issue exists.+ Unspecified when no linked issue exists or the linked issue is a draft.readOnly: true$ref: '#/components/schemas/bytebase.v1.ApprovalStatus'rolloutStageSummaries:@@ -23365,6 +23368,13 @@ components:Per-stage rollout status summary.Ordered by environment deployment order. Empty when no rollout exists.readOnly: true+ issueStatus:+ title: issue_status+ description: |-+ The lifecycle status of the linked issue.+ Unspecified when no linked issue exists.+ readOnly: true+ $ref: '#/components/schemas/bytebase.v1.IssueStatus'title: PlanadditionalProperties: falsebytebase.v1.Plan.ChangeDatabaseConfig:diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 80a9e768db..ddadbce76c 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -34,6 +34,7 @@- [ApprovalStatus](#bytebase-v1-ApprovalStatus)- [Engine](#bytebase-v1-Engine)- [ExportFormat](#bytebase-v1-ExportFormat)+ - [IssueStatus](#bytebase-v1-IssueStatus)- [RiskLevel](#bytebase-v1-RiskLevel)- [State](#bytebase-v1-State)- [StatementType](#bytebase-v1-StatementType)@@ -328,7 +329,6 @@- [Issue.Approver.Status](#bytebase-v1-Issue-Approver-Status)- [Issue.Type](#bytebase-v1-Issue-Type)- [IssueComment.Approval.Status](#bytebase-v1-IssueComment-Approval-Status)- - [IssueStatus](#bytebase-v1-IssueStatus)- [IssueService](#bytebase-v1-IssueService)@@ -1157,6 +1157,22 @@ Data export format.+<a name="bytebase-v1-IssueStatus"></a>++### IssueStatus+The status of an issue.+Lives at the top level so both plan_service.proto and issue_service.proto+can reference it without a circular import.++| Name | Number | Description |+| ---- | ------ | ----------- |+| ISSUE_STATUS_UNSPECIFIED | 0 | Unspecified status. |+| OPEN | 1 | Issue is open and active. |+| DONE | 2 | Issue is completed. |+| CANCELED | 3 | Issue is canceled. |+++<a name="bytebase-v1-RiskLevel"></a>### RiskLevel@@ -5220,8 +5236,9 @@ For example: creator == "users/[email protected]" && create_time &| update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | || plan_check_run_status_count | [Plan.PlanCheckRunStatusCountEntry](#bytebase-v1-Plan-PlanCheckRunStatusCountEntry) | repeated | The status count of the latest plan check runs. Keys are: - SUCCESS - WARNING - ERROR - RUNNING || has_rollout | [bool](#bool) | | Whether the plan has started the rollout. |-| approval_status | [ApprovalStatus](#bytebase-v1-ApprovalStatus) | | The approval status of the linked issue. Unspecified when no linked issue exists. |+| approval_status | [ApprovalStatus](#bytebase-v1-ApprovalStatus) | | The approval status of the linked issue. Unspecified when no linked issue exists or the linked issue is a draft. || rollout_stage_summaries | [Plan.RolloutStageSummary](#bytebase-v1-Plan-RolloutStageSummary) | repeated | Per-stage rollout status summary. Ordered by environment deployment order. Empty when no rollout exists. |+| issue_status | [IssueStatus](#bytebase-v1-IssueStatus) | | The lifecycle status of the linked issue. Unspecified when no linked issue exists. |@@ -6051,20 +6068,6 @@ Approval status values.| REJECTED | 3 | Rejected. |--<a name="bytebase-v1-IssueStatus"></a>--### IssueStatus-The status of an issue.--| Name | Number | Description |-| ---- | ------ | ----------- |-| ISSUE_STATUS_UNSPECIFIED | 0 | Unspecified status. |-| OPEN | 1 | Issue is open and active. |-| DONE | 2 | Issue is completed. |-| CANCELED | 3 | Issue is canceled. |--diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 4f76d9bb2e..f5782772a4 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -289,6 +289,10 @@<a href="#bytebase.v1.ExportFormat"><span class="badge">E</span>ExportFormat</a></li>+ <li>+ <a href="#bytebase.v1.IssueStatus"><span class="badge">E</span>IssueStatus</a>+ </li>+<li><a href="#bytebase.v1.RiskLevel"><span class="badge">E</span>RiskLevel</a></li>@@ -1438,10 +1442,6 @@<a href="#bytebase.v1.IssueComment.Approval.Status"><span class="badge">E</span>IssueComment.Approval.Status</a></li>- <li>- <a href="#bytebase.v1.IssueStatus"><span class="badge">E</span>IssueStatus</a>- </li>-<li>@@ -4157,6 +4157,41 @@ Examples:</tbody></table>+ <h3 id="bytebase.v1.IssueStatus">IssueStatus</h3>+ <p>The status of an issue.</p><p>Lives at the top level so both plan_service.proto and issue_service.proto</p><p>can reference it without a circular import.</p>+ <table class="enum-table">+ <thead>+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>+ </thead>+ <tbody>++ <tr>+ <td>ISSUE_STATUS_UNSPECIFIED</td>+ <td>0</td>+ <td><p>Unspecified status.</p></td>+ </tr>++ <tr>+ <td>OPEN</td>+ <td>1</td>+ <td><p>Issue is open and active.</p></td>+ </tr>++ <tr>+ <td>DONE</td>+ <td>2</td>+ <td><p>Issue is completed.</p></td>+ </tr>++ <tr>+ <td>CANCELED</td>+ <td>3</td>+ <td><p>Issue is canceled.</p></td>+ </tr>++ </tbody>+ </table>+<h3 id="bytebase.v1.RiskLevel">RiskLevel</h3><p>RiskLevel is the risk level.</p><table class="enum-table">@@ -15686,7 +15721,7 @@ Keys are:<td><a href="#bytebase.v1.ApprovalStatus">ApprovalStatus</a></td><td></td><td><p>The approval status of the linked issue.-Unspecified when no linked issue exists. </p></td>+Unspecified when no linked issue exists or the linked issue is a draft. </p></td></tr><tr>@@ -15697,6 +15732,14 @@ Unspecified when no linked issue exists. </p></td>Ordered by environment deployment order. Empty when no rollout exists. </p></td></tr>+ <tr>+ <td>issue_status</td>+ <td><a href="#bytebase.v1.IssueStatus">IssueStatus</a></td>+ <td></td>+ <td><p>The lifecycle status of the linked issue.+Unspecified when no linked issue exists. </p></td>+ </tr>+</tbody></table>@@ -17821,41 +17864,6 @@ In this situation, `update_mask` is ignored. </p></td></tbody></table>- <h3 id="bytebase.v1.IssueStatus">IssueStatus</h3>- <p>The status of an issue.</p>- <table class="enum-table">- <thead>- <tr><td>Name</td><td>Number</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>ISSUE_STATUS_UNSPECIFIED</td>- <td>0</td>- <td><p>Unspecified status.</p></td>- </tr>-- <tr>- <td>OPEN</td>- <td>1</td>- <td><p>Issue is open and active.</p></td>- </tr>-- <tr>- <td>DONE</td>- <td>2</td>- <td><p>Issue is completed.</p></td>- </tr>-- <tr>- <td>CANCELED</td>- <td>3</td>- <td><p>Issue is canceled.</p></td>- </tr>-- </tbody>- </table>-diff --git a/proto/v1/v1/common.proto b/proto/v1/v1/common.protoindex d16a63082d..676026ba83 100644--- a/proto/v1/v1/common.proto+++ b/proto/v1/v1/common.proto@@ -113,6 +113,20 @@ enum ApprovalStatus {SKIPPED = 5;}+// The status of an issue.+// Lives at the top level so both plan_service.proto and issue_service.proto+// can reference it without a circular import.+enum IssueStatus {+ // Unspecified status.+ ISSUE_STATUS_UNSPECIFIED = 0;+ // Issue is open and active.+ OPEN = 1;+ // Issue is completed.+ DONE = 2;+ // Issue is canceled.+ CANCELED = 3;+}+// Position in a text expressed as one-based line and one-based column.// We use 1-based numbering to match the majority of industry standards:// - Monaco Editor uses 1-based (https://microsoft.github.io/monaco-editor/typedoc/interfaces/IPosition.html)diff --git a/proto/v1/v1/issue_service.proto b/proto/v1/v1/issue_service.protoindex 62b4760ae9..6223b3c12c 100644--- a/proto/v1/v1/issue_service.proto+++ b/proto/v1/v1/issue_service.proto@@ -498,18 +498,6 @@ message RoleGrant {google.protobuf.Duration expiration = 4;}-// The status of an issue.-enum IssueStatus {- // Unspecified status.- ISSUE_STATUS_UNSPECIFIED = 0;- // Issue is open and active.- OPEN = 1;- // Issue is completed.- DONE = 2;- // Issue is canceled.- CANCELED = 3;-}-message ApprovalTemplate {// The approval flow definition.ApprovalFlow flow = 1;diff --git a/proto/v1/v1/plan_service.proto b/proto/v1/v1/plan_service.protoindex c677adb5f7..c8610d30c1 100644--- a/proto/v1/v1/plan_service.proto+++ b/proto/v1/v1/plan_service.proto@@ -241,13 +241,17 @@ message Plan {bool has_rollout = 12 [(google.api.field_behavior) = OUTPUT_ONLY];// The approval status of the linked issue.- // Unspecified when no linked issue exists.+ // Unspecified when no linked issue exists or the linked issue is a draft.ApprovalStatus approval_status = 13 [(google.api.field_behavior) = OUTPUT_ONLY];// Per-stage rollout status summary.// Ordered by environment deployment order. Empty when no rollout exists.repeated RolloutStageSummary rollout_stage_summaries = 14 [(google.api.field_behavior) = OUTPUT_ONLY];+ // The lifecycle status of the linked issue.+ // Unspecified when no linked issue exists.+ IssueStatus issue_status = 15 [(google.api.field_behavior) = OUTPUT_ONLY];+message CreateDatabaseConfig {// The resource name of the instance on which the database is created.// Format: instances/{instance}