Skip to content

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

chore: add state to plan message (#16904)

boojack00021a3a8f9c
diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.go
index 7270b72d84..2be405d684 100644
--- a/backend/api/v1/plan_service.go
+++ b/backend/api/v1/plan_service.go
@@ -369,6 +369,9 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *connect.Request[v
case "description":
description := req.Plan.Description
planUpdate.Description = &description
+ case "state":
+ deleted := req.Plan.State == v1pb.State_DELETED
+ planUpdate.Deleted = &deleted
case "deployment":
specs := oldPlan.Config.GetSpecs()
if planUpdate.Specs != nil {
@@ -1099,6 +1102,13 @@ func (s *PlanService) buildPlanFindWithFilter(ctx context.Context, planFind *sto
default:
return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid spec_type value: %s, must be one of: create_database_config, change_database_config, export_data_config", specType))
}
+ case "state":
+ v1State, ok := v1pb.State_value[value.(string)]
+ if !ok {
+ return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf("invalid state filter %q", value))
+ }
+ positionalArgs = append(positionalArgs, v1pb.State(v1State) == v1pb.State_DELETED)
+ return fmt.Sprintf("plan.deleted = $%d", len(positionalArgs)), nil
default:
return "", connect.NewError(connect.CodeInvalidArgument, errors.Errorf("unsupported variable %q", variable))
}
diff --git a/backend/api/v1/rollout_service_converter.go b/backend/api/v1/rollout_service_converter.go
index de614ce337..3771a9b423 100644
--- a/backend/api/v1/rollout_service_converter.go
+++ b/backend/api/v1/rollout_service_converter.go
@@ -38,6 +38,7 @@ func convertToPlan(ctx context.Context, s *store.Store, plan *store.PlanMessage)
CreateTime: timestamppb.New(plan.CreatedAt),
UpdateTime: timestamppb.New(plan.UpdatedAt),
PlanCheckRunStatusCount: plan.PlanCheckRunStatusCount,
+ State: convertDeletedToState(plan.Deleted),
}
creator, err := s.GetUserByID(ctx, plan.CreatorUID)
diff --git a/backend/generated-go/v1/plan_service.pb.go b/backend/generated-go/v1/plan_service.pb.go
index f13af656ac..f573755fd6 100644
--- a/backend/generated-go/v1/plan_service.pb.go
+++ b/backend/generated-go/v1/plan_service.pb.go
@@ -449,6 +449,7 @@ type SearchPlansRequest struct {
// - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".
// - title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.
// - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".
+ // - state: the plan state, support "==" operator, the value should be "ACTIVE" or "DELETED".
//
// For example:
// creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"
@@ -456,6 +457,7 @@ type SearchPlansRequest struct {
// title == "My Plan"
// title.matches("database migration")
// spec_type == "change_database_config"
+ // state == "ACTIVE"
Filter string `protobuf:"bytes,4,opt,name=filter,proto3" json:"filter,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
@@ -692,6 +694,8 @@ type Plan struct {
// `plan` is a system generated ID.
// Format: projects/{project}/plans/{plan}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
+ // The state of the plan.
+ State State `protobuf:"varint,2,opt,name=state,proto3,enum=bytebase.v1.State" json:"state,omitempty"`
// The issue associated with the plan.
// Can be empty.
// Format: projects/{project}/issues/{issue}
@@ -755,6 +759,13 @@ func (x *Plan) GetName() string {
return ""
}
+func (x *Plan) GetState() State {
+ if x != nil {
+ return x.State
+ }
+ return State_STATE_UNSPECIFIED
+}
+
func (x *Plan) GetIssue() string {
if x != nil {
return x.Issue
@@ -2044,9 +2055,10 @@ const file_v1_plan_service_proto_rawDesc = "" +
"\x11UpdatePlanRequest\x12*\n" +
"\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\"\xfd\x10\n" +
+ "updateMask\"\xa1\x11\n" +
"\x04Plan\x12\x12\n" +
- "\x04name\x18\x01 \x01(\tR\x04name\x12\x19\n" +
+ "\x04name\x18\x01 \x01(\tR\x04name\x12(\n" +
+ "\x05state\x18\x02 \x01(\x0e2\x12.bytebase.v1.StateR\x05state\x12\x19\n" +
"\x05issue\x18\x03 \x01(\tB\x03\xe0A\x03R\x05issue\x12\x1d\n" +
"\arollout\x18\x0f \x01(\tB\x03\xe0A\x03R\arollout\x12\x14\n" +
"\x05title\x18\x04 \x01(\tR\x05title\x12 \n" +
@@ -2112,7 +2124,7 @@ const file_v1_plan_service_proto_rawDesc = "" +
"\x14DatabaseGroupMapping\x12%\n" +
"\x0edatabase_group\x18\x01 \x01(\tR\rdatabaseGroup\x12\x1c\n" +
"\tdatabases\x18\x02 \x03(\tR\tdatabases:7\xeaA4\n" +
- "\x11bytebase.com/Plan\x12\x1fprojects/{project}/plans/{plan}J\x04\b\x02\x10\x03\"\xc2\x01\n" +
+ "\x11bytebase.com/Plan\x12\x1fprojects/{project}/plans/{plan}\"\xc2\x01\n" +
"\x18ListPlanCheckRunsRequest\x121\n" +
"\x06parent\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +
"\x11bytebase.com/PlanR\x06parent\x12\x1b\n" +
@@ -2242,10 +2254,11 @@ var file_v1_plan_service_proto_goTypes = []any{
(*PlanCheckRun_Result_SqlSummaryReport)(nil), // 28: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
(*PlanCheckRun_Result_SqlReviewReport)(nil), // 29: bytebase.v1.PlanCheckRun.Result.SqlReviewReport
(*fieldmaskpb.FieldMask)(nil), // 30: google.protobuf.FieldMask
- (*timestamppb.Timestamp)(nil), // 31: google.protobuf.Timestamp
- (ExportFormat)(0), // 32: bytebase.v1.ExportFormat
- (*ChangedResources)(nil), // 33: bytebase.v1.ChangedResources
- (*Position)(nil), // 34: bytebase.v1.Position
+ (State)(0), // 31: bytebase.v1.State
+ (*timestamppb.Timestamp)(nil), // 32: google.protobuf.Timestamp
+ (ExportFormat)(0), // 33: bytebase.v1.ExportFormat
+ (*ChangedResources)(nil), // 34: bytebase.v1.ChangedResources
+ (*Position)(nil), // 35: bytebase.v1.Position
}
var file_v1_plan_service_proto_depIdxs = []int32{
11, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan
@@ -2253,50 +2266,51 @@ var file_v1_plan_service_proto_depIdxs = []int32{
11, // 2: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan
11, // 3: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan
30, // 4: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask
- 19, // 5: bytebase.v1.Plan.specs:type_name -> bytebase.v1.Plan.Spec
- 31, // 6: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp
- 31, // 7: bytebase.v1.Plan.update_time:type_name -> google.protobuf.Timestamp
- 20, // 8: bytebase.v1.Plan.plan_check_run_status_count:type_name -> bytebase.v1.Plan.PlanCheckRunStatusCountEntry
- 24, // 9: bytebase.v1.Plan.deployment:type_name -> bytebase.v1.Plan.Deployment
- 18, // 10: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun
- 1, // 11: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type
- 2, // 12: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status
- 27, // 13: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result
- 31, // 14: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp
- 21, // 15: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig
- 22, // 16: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig
- 23, // 17: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig
- 0, // 18: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type
- 25, // 19: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry
- 32, // 20: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat
- 26, // 21: bytebase.v1.Plan.Deployment.database_group_mappings:type_name -> bytebase.v1.Plan.Deployment.DatabaseGroupMapping
- 3, // 22: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status
- 28, // 23: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
- 29, // 24: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport
- 33, // 25: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources
- 34, // 26: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position
- 34, // 27: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position
- 4, // 28: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest
- 5, // 29: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest
- 7, // 30: bytebase.v1.PlanService.SearchPlans:input_type -> bytebase.v1.SearchPlansRequest
- 9, // 31: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest
- 10, // 32: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest
- 12, // 33: bytebase.v1.PlanService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest
- 14, // 34: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest
- 16, // 35: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:input_type -> bytebase.v1.BatchCancelPlanCheckRunsRequest
- 11, // 36: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan
- 6, // 37: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse
- 8, // 38: bytebase.v1.PlanService.SearchPlans:output_type -> bytebase.v1.SearchPlansResponse
- 11, // 39: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan
- 11, // 40: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan
- 13, // 41: bytebase.v1.PlanService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse
- 15, // 42: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse
- 17, // 43: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:output_type -> bytebase.v1.BatchCancelPlanCheckRunsResponse
- 36, // [36:44] is the sub-list for method output_type
- 28, // [28:36] 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
+ 31, // 5: bytebase.v1.Plan.state:type_name -> bytebase.v1.State
+ 19, // 6: bytebase.v1.Plan.specs:type_name -> bytebase.v1.Plan.Spec
+ 32, // 7: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp
+ 32, // 8: bytebase.v1.Plan.update_time:type_name -> google.protobuf.Timestamp
+ 20, // 9: bytebase.v1.Plan.plan_check_run_status_count:type_name -> bytebase.v1.Plan.PlanCheckRunStatusCountEntry
+ 24, // 10: bytebase.v1.Plan.deployment:type_name -> bytebase.v1.Plan.Deployment
+ 18, // 11: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun
+ 1, // 12: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type
+ 2, // 13: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status
+ 27, // 14: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result
+ 32, // 15: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp
+ 21, // 16: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig
+ 22, // 17: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig
+ 23, // 18: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig
+ 0, // 19: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type
+ 25, // 20: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry
+ 33, // 21: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat
+ 26, // 22: bytebase.v1.Plan.Deployment.database_group_mappings:type_name -> bytebase.v1.Plan.Deployment.DatabaseGroupMapping
+ 3, // 23: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status
+ 28, // 24: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport
+ 29, // 25: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport
+ 34, // 26: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources
+ 35, // 27: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position
+ 35, // 28: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position
+ 4, // 29: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest
+ 5, // 30: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest
+ 7, // 31: bytebase.v1.PlanService.SearchPlans:input_type -> bytebase.v1.SearchPlansRequest
+ 9, // 32: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest
+ 10, // 33: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest
+ 12, // 34: bytebase.v1.PlanService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest
+ 14, // 35: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest
+ 16, // 36: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:input_type -> bytebase.v1.BatchCancelPlanCheckRunsRequest
+ 11, // 37: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan
+ 6, // 38: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse
+ 8, // 39: bytebase.v1.PlanService.SearchPlans:output_type -> bytebase.v1.SearchPlansResponse
+ 11, // 40: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan
+ 11, // 41: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan
+ 13, // 42: bytebase.v1.PlanService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse
+ 15, // 43: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse
+ 17, // 44: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:output_type -> bytebase.v1.BatchCancelPlanCheckRunsResponse
+ 37, // [37:45] is the sub-list for method output_type
+ 29, // [29:37] is the sub-list for method input_type
+ 29, // [29:29] is the sub-list for extension type_name
+ 29, // [29:29] is the sub-list for extension extendee
+ 0, // [0:29] is the sub-list for field type_name
}
func init() { file_v1_plan_service_proto_init() }
diff --git a/backend/store/plan.go b/backend/store/plan.go
index 30bcfc9f51..3b0985b152 100644
--- a/backend/store/plan.go
+++ b/backend/store/plan.go
@@ -27,6 +27,7 @@ type PlanMessage struct {
CreatorUID int
CreatedAt time.Time
UpdatedAt time.Time
+ Deleted bool
PlanCheckRunStatusCount map[string]int32
}
@@ -41,7 +42,8 @@ type FindPlanMessage struct {
Limit *int
Offset *int
- Filter *ListResourceFilter
+ Filter *ListResourceFilter
+ ShowDeleted bool
}
// UpdatePlanMessage is the message to update a plan.
@@ -52,6 +54,7 @@ type UpdatePlanMessage struct {
Description *string
Specs *[]*storepb.PlanConfig_Spec
Deployment **storepb.PlanConfig_Deployment
+ Deleted *bool
}
// CreatePlan creates a new plan.
@@ -143,6 +146,9 @@ func (s *Store) ListPlans(ctx context.Context, find *FindPlanMessage) ([]*PlanMe
if v := find.PipelineID; v != nil {
where, args = append(where, fmt.Sprintf("plan.pipeline_id = $%d", len(args)+1)), append(args, *v)
}
+ if !find.ShowDeleted {
+ where = append(where, "plan.deleted = FALSE")
+ }
query := fmt.Sprintf(`
SELECT
@@ -155,6 +161,7 @@ func (s *Store) ListPlans(ctx context.Context, find *FindPlanMessage) ([]*PlanMe
plan.name,
plan.description,
plan.config,
+ plan.deleted,
COALESCE(plan_check_run_status_count.status_count, '{}'::jsonb)
FROM plan
LEFT JOIN issue on plan.id = issue.plan_id
@@ -213,6 +220,7 @@ func (s *Store) ListPlans(ctx context.Context, find *FindPlanMessage) ([]*PlanMe
&plan.Name,
&plan.Description,
&config,
+ &plan.Deleted,
&statusCount,
); err != nil {
return nil, errors.Wrap(err, "failed to scan plan")
@@ -245,6 +253,9 @@ func (s *Store) UpdatePlan(ctx context.Context, patch *UpdatePlanMessage) error
if v := patch.Description; v != nil {
set, args = append(set, fmt.Sprintf("description = $%d", len(args)+1)), append(args, *v)
}
+ if v := patch.Deleted; v != nil {
+ set, args = append(set, fmt.Sprintf("deleted = $%d", len(args)+1)), append(args, *v)
+ }
{
var payloadSets []string
if v := patch.Specs; v != nil {
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.ts
index bef9250bd8..16f233e31f 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 { ExportFormat, Position } from "./common_pb";
+import type { ExportFormat, Position, State } from "./common_pb";
import type { ChangedResources } from "./database_service_pb";
/**
@@ -144,6 +144,7 @@ export declare type SearchPlansRequest = Message<"bytebase.v1.SearchPlansRequest
* - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".
* - title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.
* - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".
+ * - state: the plan state, support "==" operator, the value should be "ACTIVE" or "DELETED".
*
* For example:
* creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"
@@ -151,6 +152,7 @@ export declare type SearchPlansRequest = Message<"bytebase.v1.SearchPlansRequest
* title == "My Plan"
* title.matches("database migration")
* spec_type == "change_database_config"
+ * state == "ACTIVE"
*
* @generated from field: string filter = 4;
*/
@@ -256,6 +258,13 @@ export declare type Plan = Message<"bytebase.v1.Plan"> & {
*/
name: string;
+ /**
+ * The state of the plan.
+ *
+ * @generated from field: bytebase.v1.State state = 2;
+ */
+ state: State;
+
/**
* The issue associated with the plan.
* Can be empty.
diff --git a/frontend/src/types/proto-es/v1/plan_service_pb.js b/frontend/src/types/proto-es/v1/plan_service_pb.js
index 14aff00b59..3ca779ee3b 100644
--- a/frontend/src/types/proto-es/v1/plan_service_pb.js
+++ b/frontend/src/types/proto-es/v1/plan_service_pb.js
@@ -16,7 +16,7 @@ import { file_v1_database_service } from "./database_service_pb";
* Describes the file v1/plan_service.proto.
*/
export const file_v1_plan_service = /*@__PURE__*/
- fileDesc("ChV2MS9wbGFuX3NlcnZpY2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6jACmOowAYLT5JMCKjoEcGxhbjIiL3YxL3twbGFuLm5hbWU9cHJvamVjdHMvKi9wbGFucy8qfRK/AQoRTGlzdFBsYW5DaGVja1J1bnMSJS5ieXRlYmFzZS52MS5MaXN0UGxhbkNoZWNrUnVuc1JlcXVlc3QaJi5ieXRlYmFzZS52MS5MaXN0UGxhbkNoZWNrUnVuc1Jlc3BvbnNlIlvaQQZwYXJlbnSK6jAVYmIucGxhbkNoZWNrUnVucy5saXN0kOowAYLT5JMCLxItL3YxL3twYXJlbnQ9cHJvamVjdHMvKi9wbGFucy8qfS9wbGFuQ2hlY2tSdW5zErEBCg1SdW5QbGFuQ2hlY2tzEiEuYnl0ZWJhc2UudjEuUnVuUGxhbkNoZWNrc1JlcXVlc3QaIi5ieXRlYmFzZS52MS5SdW5QbGFuQ2hlY2tzUmVzcG9uc2UiWdpBBG5hbWWK6jAUYmIucGxhbkNoZWNrUnVucy5ydW6Q6jABgtPkkwIwOgEqIisvdjEve25hbWU9cHJvamVjdHMvKi9wbGFucy8qfTpydW5QbGFuQ2hlY2tzEuIBChhCYXRjaENhbmNlbFBsYW5DaGVja1J1bnMSLC5ieXRlYmFzZS52MS5CYXRjaENhbmNlbFBsYW5DaGVja1J1bnNSZXF1ZXN0Gi0uYnl0ZWJhc2UudjEuQmF0Y2hDYW5jZWxQbGFuQ2hlY2tSdW5zUmVzcG9uc2UiadpBBnBhcmVudIrqMBRiYi5wbGFuQ2hlY2tSdW5zLnJ1bpDqMAGC0+STAj46ASoiOS92MS97cGFyZW50PXByb2plY3RzLyovcGxhbnMvKn0vcGxhbkNoZWNrUnVuczpiYXRjaENhbmNlbEI2WjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxYgZwcm90bzM", [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_database_service]);
+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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_database_service]);
/**
* Describes the message bytebase.v1.GetPlanRequest.
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 4c2be8f932..9c7397d71a 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -11584,6 +11584,14 @@ components:
The name of the plan.
`plan` is a system generated ID.
Format: projects/{project}/plans/{plan}
+ state:
+ enum:
+ - STATE_UNSPECIFIED
+ - ACTIVE
+ - DELETED
+ type: string
+ description: The state of the plan.
+ format: enum
issue:
readOnly: true
type: string
@@ -13187,6 +13195,7 @@ components:
- has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".
- title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.
- spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".
+ - state: the plan state, support "==" operator, the value should be "ACTIVE" or "DELETED".
For example:
creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"
@@ -13194,6 +13203,7 @@ components:
title == "My Plan"
title.matches("database migration")
spec_type == "change_database_config"
+ state == "ACTIVE"
SearchPlansResponse:
type: object
properties:
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index 3c39c303d8..d62bdfe6c8 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -7354,6 +7354,7 @@ When paginating, all other parameters provided to `ListPlans` must match the cal
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | The name of the plan. `plan` is a system generated ID. Format: projects/{project}/plans/{plan} |
+| state | [State](#bytebase-v1-State) | | The state of the plan. |
| issue | [string](#string) | | The issue associated with the plan. Can be empty. Format: projects/{project}/issues/{issue} |
| rollout | [string](#string) | | The rollout associated with the plan. Can be empty. Format: projects/{project}/rollouts/{rollout} |
| title | [string](#string) | | |
@@ -7630,9 +7631,9 @@ When paginating, all other parameters provided to `ListPlans` must match the cal
When paginating, all other parameters provided to `SearchPlans` must match the call that provided the page token. |
| filter | [string](#string) | | Filter is used to filter plans returned in the list. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec
-Supported filters: - creator: the plan creator full name in &#34;users/{email or id}&#34; format, support &#34;==&#34; operator. - create_time: issue create time in &#34;2006-01-02T15:04:05Z07:00&#34; format, support &#34;&gt;=&#34; or &#34;&lt;=&#34; operator. - has_pipeline: the plan has pipeline or not, support &#34;==&#34; operator, the value should be &#34;true&#34; or &#34;false&#34;. - has_issue: the plan has issue or not, support &#34;==&#34; operator, the value should be &#34;true&#34; or &#34;false&#34;. - title: the plan title, support &#34;==&#34; operator for exact match and &#34;.matches()&#34; operator for case-insensitive substring match. - spec_type: the plan spec config type, support &#34;==&#34; operator, the value should be &#34;create_database_config&#34;, &#34;change_database_config&#34;, or &#34;export_data_config&#34;.
+Supported filters: - creator: the plan creator full name in &#34;users/{email or id}&#34; format, support &#34;==&#34; operator. - create_time: issue create time in &#34;2006-01-02T15:04:05Z07:00&#34; format, support &#34;&gt;=&#34; or &#34;&lt;=&#34; operator. - has_pipeline: the plan has pipeline or not, support &#34;==&#34; operator, the value should be &#34;true&#34; or &#34;false&#34;. - has_issue: the plan has issue or not, support &#34;==&#34; operator, the value should be &#34;true&#34; or &#34;false&#34;. - title: the plan title, support &#34;==&#34; operator for exact match and &#34;.matches()&#34; operator for case-insensitive substring match. - spec_type: the plan spec config type, support &#34;==&#34; operator, the value should be &#34;create_database_config&#34;, &#34;change_database_config&#34;, or &#34;export_data_config&#34;. - state: the plan state, support &#34;==&#34; operator, the value should be &#34;ACTIVE&#34; or &#34;DELETED&#34;.
-For example: creator == &#34;users/[email protected]&#34; &amp;&amp; create_time &gt;= &#34;2025-01-02T15:04:05Z07:00&#34; has_pipeline == false &amp;&amp; has_issue == true title == &#34;My Plan&#34; title.matches(&#34;database migration&#34;) spec_type == &#34;change_database_config&#34; |
+For example: creator == &#34;users/[email protected]&#34; &amp;&amp; create_time &gt;= &#34;2025-01-02T15:04:05Z07:00&#34; has_pipeline == false &amp;&amp; has_issue == true title == &#34;My Plan&#34; title.matches(&#34;database migration&#34;) spec_type == &#34;change_database_config&#34; state == &#34;ACTIVE&#34; |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 0dd2054337..d168bb17d9 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -20578,6 +20578,13 @@ If this field is omitted, there are no subsequent pages. </p></td>
Format: projects/{project}/plans/{plan} </p></td>
</tr>
+ <tr>
+ <td>state</td>
+ <td><a href="#bytebase.v1.State">State</a></td>
+ <td></td>
+ <td><p>The state of the plan. </p></td>
+ </tr>
+
<tr>
<td>issue</td>
<td><a href="#string">string</a></td>
@@ -21331,13 +21338,15 @@ Supported filters:
- has_issue: the plan has issue or not, support &#34;==&#34; operator, the value should be &#34;true&#34; or &#34;false&#34;.
- title: the plan title, support &#34;==&#34; operator for exact match and &#34;.matches()&#34; operator for case-insensitive substring match.
- spec_type: the plan spec config type, support &#34;==&#34; operator, the value should be &#34;create_database_config&#34;, &#34;change_database_config&#34;, or &#34;export_data_config&#34;.
+- state: the plan state, support &#34;==&#34; operator, the value should be &#34;ACTIVE&#34; or &#34;DELETED&#34;.
For example:
creator == &#34;users/[email protected]&#34; &amp;&amp; create_time &gt;= &#34;2025-01-02T15:04:05Z07:00&#34;
has_pipeline == false &amp;&amp; has_issue == true
title == &#34;My Plan&#34;
title.matches(&#34;database migration&#34;)
-spec_type == &#34;change_database_config&#34; </p></td>
+spec_type == &#34;change_database_config&#34;
+state == &#34;ACTIVE&#34; </p></td>
</tr>
</tbody>
diff --git a/proto/v1/v1/plan_service.proto b/proto/v1/v1/plan_service.proto
index 18a01901f1..1bc7b525f3 100644
--- a/proto/v1/v1/plan_service.proto
+++ b/proto/v1/v1/plan_service.proto
@@ -170,6 +170,7 @@ message SearchPlansRequest {
// - has_issue: the plan has issue or not, support "==" operator, the value should be "true" or "false".
// - title: the plan title, support "==" operator for exact match and ".matches()" operator for case-insensitive substring match.
// - spec_type: the plan spec config type, support "==" operator, the value should be "create_database_config", "change_database_config", or "export_data_config".
+ // - state: the plan state, support "==" operator, the value should be "ACTIVE" or "DELETED".
//
// For example:
// creator == "users/[email protected]" && create_time >= "2025-01-02T15:04:05Z07:00"
@@ -177,6 +178,7 @@ message SearchPlansRequest {
// title == "My Plan"
// title.matches("database migration")
// spec_type == "change_database_config"
+ // state == "ACTIVE"
string filter = 4;
}
@@ -218,13 +220,14 @@ message Plan {
pattern: "projects/{project}/plans/{plan}"
};
- reserved 2;
-
// The name of the plan.
// `plan` is a system generated ID.
// Format: projects/{project}/plans/{plan}
string name = 1;
+ // The state of the plan.
+ State state = 2;
+
// The issue associated with the plan.
// Can be empty.
// Format: projects/{project}/issues/{issue}