Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Revert ListPlans auth/filters (#18664)
Danny Xufff0f8a52fb9
diff --git a/backend/api/mcp/gen/openapi.yaml b/backend/api/mcp/gen/openapi.yamlindex 5292914ed0..9456bddf8b 100644--- a/backend/api/mcp/gen/openapi.yaml+++ b/backend/api/mcp/gen/openapi.yaml@@ -3159,44 +3159,6 @@ paths:application/json:schema:$ref: '#/components/schemas/bytebase.v1.RunPlanChecksResponse'- /bytebase.v1.PlanService/SearchPlans:- post:- tags:- - bytebase.v1.PlanService- summary: 'Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query. Permissions required: bb.plans.get'- description: |-- Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.- Permissions required: bb.plans.get- operationId: bytebase.v1.PlanService.SearchPlans- parameters:- - name: Connect-Protocol-Version- in: header- required: true- schema:- $ref: '#/components/schemas/connect-protocol-version'- - name: Connect-Timeout-Ms- in: header- schema:- $ref: '#/components/schemas/connect-timeout-header'- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/bytebase.v1.SearchPlansRequest'- required: true- responses:- default:- description: Error- content:- application/json:- schema:- $ref: '#/components/schemas/connect.error'- "200":- description: Success- content:- application/json:- schema:- $ref: '#/components/schemas/bytebase.v1.SearchPlansResponse'/bytebase.v1.PlanService/UpdatePlan:post:tags:@@ -11657,6 +11619,29 @@ components:When paginating, all other parameters provided to `ListPlans` must matchthe call that provided the page token.+ filter:+ type: string+ title: filter+ description: |-+ 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 "users/{email or id}" format, support "==" operator.+ - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.+ - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+ - 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"+ has_pipeline == false && has_issue == true+ title == "My Plan"+ title.matches("database migration")+ spec_type == "change_database_config"+ state == "ACTIVE"title: ListPlansRequestadditionalProperties: falsebytebase.v1.ListPlansResponse:@@ -14809,76 +14794,6 @@ components:If this field is omitted, there are no subsequent pages.title: SearchIssuesResponseadditionalProperties: false- bytebase.v1.SearchPlansRequest:- type: object- properties:- parent:- type: string- title: parent- description: |-- The parent, which owns this collection of plans.- Format: projects/{project}- Use "projects/-" to list all plans from all projects.- pageSize:- type: integer- title: page_size- format: int32- description: |-- The maximum number of plans to return. The service may return fewer than- this value.- If unspecified, at most 10 plans will be returned.- The maximum value is 1000; values above 1000 will be coerced to 1000.- pageToken:- type: string- title: page_token- description: |-- A page token, received from a previous `SearchPlans` call.- Provide this to retrieve the subsequent page.-- When paginating, all other parameters provided to `SearchPlans` must match- the call that provided the page token.- filter:- type: string- title: filter- description: |-- 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 "users/{email or id}" format, support "==" operator.- - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".- - 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"- has_pipeline == false && has_issue == true- title == "My Plan"- title.matches("database migration")- spec_type == "change_database_config"- state == "ACTIVE"- title: SearchPlansRequest- additionalProperties: false- bytebase.v1.SearchPlansResponse:- type: object- properties:- plans:- type: array- items:- $ref: '#/components/schemas/bytebase.v1.Plan'- title: plans- description: The plans from the specified request.- nextPageToken:- type: string- title: next_page_token- description: |-- A token, which can be sent as `page_token` to retrieve the next page.- If this field is omitted, there are no subsequent pages.- title: SearchPlansResponse- additionalProperties: falsebytebase.v1.SearchProjectsRequest:type: objectproperties:diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.goindex a261caa381..0bf5cdfd89 100644--- a/backend/api/v1/plan_service.go+++ b/backend/api/v1/plan_service.go@@ -85,72 +85,15 @@ func (s *PlanService) ListPlans(ctx context.Context, request *connect.Request[v1Offset: &offset.offset,ProjectID: &projectID,}- plans, err := s.store.ListPlans(ctx, find)- if err != nil {- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to list plans, error: %v", err))- }- var nextPageToken string- // has more pages- if len(plans) == limitPlusOne {- if nextPageToken, err = offset.getNextPageToken(); err != nil {- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to get next page token, error: %v", err))+ if req.Filter != "" {+ filterQ, err := store.GetListPlanFilter(req.Filter)+ if err != nil {+ return nil, connect.NewError(connect.CodeInvalidArgument, err)}- plans = plans[:offset.limit]+ find.FilterQ = filterQ}- convertedPlans, err := convertToPlans(ctx, s.store, plans)- if err != nil {- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to convert to plans, error: %v", err))- }-- return connect.NewResponse(&v1pb.ListPlansResponse{- Plans: convertedPlans,- NextPageToken: nextPageToken,- }), nil-}--// SearchPlans searches plans.-func (s *PlanService) SearchPlans(ctx context.Context, request *connect.Request[v1pb.SearchPlansRequest]) (*connect.Response[v1pb.SearchPlansResponse], error) {- req := request.Msg- projectID, err := common.GetProjectID(req.Parent)- if err != nil {- return nil, connect.NewError(connect.CodeInvalidArgument, err)- }-- user, ok := GetUserFromContext(ctx)- if !ok {- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("user not found"))- }- projectIDsFilter, err := getProjectIDsSearchFilter(ctx, user, iam.PermissionPlansGet, s.iamManager, s.store)- if err != nil {- return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to get projectIDs, error: %v", err))- }-- offset, err := parseLimitAndOffset(&pageSize{- token: req.PageToken,- limit: int(req.PageSize),- maximum: 1000,- })- if err != nil {- return nil, err- }- limitPlusOne := offset.limit + 1-- find := &store.FindPlanMessage{- Limit: &limitPlusOne,- Offset: &offset.offset,- ProjectIDs: projectIDsFilter,- }- if projectID != "-" {- find.ProjectID = &projectID- }- filterQ, err := store.GetListPlanFilter(req.Filter)- if err != nil {- return nil, connect.NewError(connect.CodeInvalidArgument, err)- }- find.FilterQ = filterQ-plans, err := s.store.ListPlans(ctx, find)if err != nil {return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to list plans, error: %v", err))@@ -170,7 +113,7 @@ func (s *PlanService) SearchPlans(ctx context.Context, request *connect.Request[return nil, connect.NewError(connect.CodeInternal, errors.Errorf("failed to convert to plans, error: %v", err))}- return connect.NewResponse(&v1pb.SearchPlansResponse{+ return connect.NewResponse(&v1pb.ListPlansResponse{Plans: convertedPlans,NextPageToken: nextPageToken,}), nildiff --git a/backend/generated-go/v1/plan_service.pb.go b/backend/generated-go/v1/plan_service.pb.goindex e9858df9e8..ef1c812f20 100644--- a/backend/generated-go/v1/plan_service.pb.go+++ b/backend/generated-go/v1/plan_service.pb.go@@ -77,7 +77,7 @@ func (x PlanCheckRun_Status) Number() protoreflect.EnumNumber {// Deprecated: Use PlanCheckRun_Status.Descriptor instead.func (PlanCheckRun_Status) EnumDescriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{13, 0}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0}}type PlanCheckRun_Result_Type int32@@ -129,7 +129,7 @@ func (x PlanCheckRun_Result_Type) Number() protoreflect.EnumNumber {// Deprecated: Use PlanCheckRun_Result_Type.Descriptor instead.func (PlanCheckRun_Result_Type) EnumDescriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{13, 0, 0}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0, 0}}type GetPlanRequest struct {@@ -194,133 +194,6 @@ type ListPlansRequest struct {//// When paginating, all other parameters provided to `ListPlans` must match// the call that provided the page token.- PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *ListPlansRequest) Reset() {- *x = ListPlansRequest{}- mi := &file_v1_plan_service_proto_msgTypes[1]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *ListPlansRequest) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListPlansRequest) ProtoMessage() {}--func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[1]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ListPlansRequest.ProtoReflect.Descriptor instead.-func (*ListPlansRequest) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{1}-}--func (x *ListPlansRequest) GetParent() string {- if x != nil {- return x.Parent- }- return ""-}--func (x *ListPlansRequest) GetPageSize() int32 {- if x != nil {- return x.PageSize- }- return 0-}--func (x *ListPlansRequest) GetPageToken() string {- if x != nil {- return x.PageToken- }- return ""-}--type ListPlansResponse struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The plans from the specified request.- Plans []*Plan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *ListPlansResponse) Reset() {- *x = ListPlansResponse{}- mi := &file_v1_plan_service_proto_msgTypes[2]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *ListPlansResponse) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*ListPlansResponse) ProtoMessage() {}--func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[2]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use ListPlansResponse.ProtoReflect.Descriptor instead.-func (*ListPlansResponse) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{2}-}--func (x *ListPlansResponse) GetPlans() []*Plan {- if x != nil {- return x.Plans- }- return nil-}--func (x *ListPlansResponse) GetNextPageToken() string {- if x != nil {- return x.NextPageToken- }- return ""-}--type SearchPlansRequest struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The parent, which owns this collection of plans.- // Format: projects/{project}- // Use "projects/-" to list all plans from all projects.- Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`- // The maximum number of plans to return. The service may return fewer than- // this value.- // If unspecified, at most 10 plans will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`- // A page token, received from a previous `SearchPlans` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `SearchPlans` must match- // the call that provided the page token.PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`// 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@@ -346,21 +219,21 @@ type SearchPlansRequest struct {sizeCache protoimpl.SizeCache}-func (x *SearchPlansRequest) Reset() {- *x = SearchPlansRequest{}- mi := &file_v1_plan_service_proto_msgTypes[3]+func (x *ListPlansRequest) Reset() {+ *x = ListPlansRequest{}+ mi := &file_v1_plan_service_proto_msgTypes[1]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *SearchPlansRequest) String() string {+func (x *ListPlansRequest) String() string {return protoimpl.X.MessageStringOf(x)}-func (*SearchPlansRequest) ProtoMessage() {}+func (*ListPlansRequest) ProtoMessage() {}-func (x *SearchPlansRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[3]+func (x *ListPlansRequest) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[1]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -371,40 +244,40 @@ func (x *SearchPlansRequest) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use SearchPlansRequest.ProtoReflect.Descriptor instead.-func (*SearchPlansRequest) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{3}+// Deprecated: Use ListPlansRequest.ProtoReflect.Descriptor instead.+func (*ListPlansRequest) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{1}}-func (x *SearchPlansRequest) GetParent() string {+func (x *ListPlansRequest) GetParent() string {if x != nil {return x.Parent}return ""}-func (x *SearchPlansRequest) GetPageSize() int32 {+func (x *ListPlansRequest) GetPageSize() int32 {if x != nil {return x.PageSize}return 0}-func (x *SearchPlansRequest) GetPageToken() string {+func (x *ListPlansRequest) GetPageToken() string {if x != nil {return x.PageToken}return ""}-func (x *SearchPlansRequest) GetFilter() string {+func (x *ListPlansRequest) GetFilter() string {if x != nil {return x.Filter}return ""}-type SearchPlansResponse struct {+type ListPlansResponse struct {state protoimpl.MessageState `protogen:"open.v1"`// The plans from the specified request.Plans []*Plan `protobuf:"bytes,1,rep,name=plans,proto3" json:"plans,omitempty"`@@ -415,21 +288,21 @@ type SearchPlansResponse struct {sizeCache protoimpl.SizeCache}-func (x *SearchPlansResponse) Reset() {- *x = SearchPlansResponse{}- mi := &file_v1_plan_service_proto_msgTypes[4]+func (x *ListPlansResponse) Reset() {+ *x = ListPlansResponse{}+ mi := &file_v1_plan_service_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}-func (x *SearchPlansResponse) String() string {+func (x *ListPlansResponse) String() string {return protoimpl.X.MessageStringOf(x)}-func (*SearchPlansResponse) ProtoMessage() {}+func (*ListPlansResponse) ProtoMessage() {}-func (x *SearchPlansResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[4]+func (x *ListPlansResponse) ProtoReflect() protoreflect.Message {+ mi := &file_v1_plan_service_proto_msgTypes[2]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -440,19 +313,19 @@ func (x *SearchPlansResponse) ProtoReflect() protoreflect.Message {return mi.MessageOf(x)}-// Deprecated: Use SearchPlansResponse.ProtoReflect.Descriptor instead.-func (*SearchPlansResponse) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{4}+// Deprecated: Use ListPlansResponse.ProtoReflect.Descriptor instead.+func (*ListPlansResponse) Descriptor() ([]byte, []int) {+ return file_v1_plan_service_proto_rawDescGZIP(), []int{2}}-func (x *SearchPlansResponse) GetPlans() []*Plan {+func (x *ListPlansResponse) GetPlans() []*Plan {if x != nil {return x.Plans}return nil}-func (x *SearchPlansResponse) GetNextPageToken() string {+func (x *ListPlansResponse) GetNextPageToken() string {if x != nil {return x.NextPageToken}@@ -472,7 +345,7 @@ type CreatePlanRequest struct {func (x *CreatePlanRequest) Reset() {*x = CreatePlanRequest{}- mi := &file_v1_plan_service_proto_msgTypes[5]+ mi := &file_v1_plan_service_proto_msgTypes[3]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -484,7 +357,7 @@ func (x *CreatePlanRequest) String() string {func (*CreatePlanRequest) ProtoMessage() {}func (x *CreatePlanRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[5]+ mi := &file_v1_plan_service_proto_msgTypes[3]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -497,7 +370,7 @@ func (x *CreatePlanRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use CreatePlanRequest.ProtoReflect.Descriptor instead.func (*CreatePlanRequest) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{5}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{3}}func (x *CreatePlanRequest) GetParent() string {@@ -532,7 +405,7 @@ type UpdatePlanRequest struct {func (x *UpdatePlanRequest) Reset() {*x = UpdatePlanRequest{}- mi := &file_v1_plan_service_proto_msgTypes[6]+ mi := &file_v1_plan_service_proto_msgTypes[4]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -544,7 +417,7 @@ func (x *UpdatePlanRequest) String() string {func (*UpdatePlanRequest) ProtoMessage() {}func (x *UpdatePlanRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[6]+ mi := &file_v1_plan_service_proto_msgTypes[4]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -557,7 +430,7 @@ func (x *UpdatePlanRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use UpdatePlanRequest.ProtoReflect.Descriptor instead.func (*UpdatePlanRequest) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{6}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{4}}func (x *UpdatePlanRequest) GetPlan() *Plan {@@ -618,7 +491,7 @@ type Plan struct {func (x *Plan) Reset() {*x = Plan{}- mi := &file_v1_plan_service_proto_msgTypes[7]+ mi := &file_v1_plan_service_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -630,7 +503,7 @@ func (x *Plan) String() string {func (*Plan) ProtoMessage() {}func (x *Plan) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[7]+ mi := &file_v1_plan_service_proto_msgTypes[5]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -643,7 +516,7 @@ func (x *Plan) ProtoReflect() protoreflect.Message {// Deprecated: Use Plan.ProtoReflect.Descriptor instead.func (*Plan) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{7}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5}}func (x *Plan) GetName() string {@@ -734,7 +607,7 @@ type GetPlanCheckRunRequest struct {func (x *GetPlanCheckRunRequest) Reset() {*x = GetPlanCheckRunRequest{}- mi := &file_v1_plan_service_proto_msgTypes[8]+ mi := &file_v1_plan_service_proto_msgTypes[6]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -746,7 +619,7 @@ func (x *GetPlanCheckRunRequest) String() string {func (*GetPlanCheckRunRequest) ProtoMessage() {}func (x *GetPlanCheckRunRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[8]+ mi := &file_v1_plan_service_proto_msgTypes[6]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -759,7 +632,7 @@ func (x *GetPlanCheckRunRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use GetPlanCheckRunRequest.ProtoReflect.Descriptor instead.func (*GetPlanCheckRunRequest) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{8}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{6}}func (x *GetPlanCheckRunRequest) GetName() string {@@ -784,7 +657,7 @@ type RunPlanChecksRequest struct {func (x *RunPlanChecksRequest) Reset() {*x = RunPlanChecksRequest{}- mi := &file_v1_plan_service_proto_msgTypes[9]+ mi := &file_v1_plan_service_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -796,7 +669,7 @@ func (x *RunPlanChecksRequest) String() string {func (*RunPlanChecksRequest) ProtoMessage() {}func (x *RunPlanChecksRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[9]+ mi := &file_v1_plan_service_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -809,7 +682,7 @@ func (x *RunPlanChecksRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use RunPlanChecksRequest.ProtoReflect.Descriptor instead.func (*RunPlanChecksRequest) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{9}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{7}}func (x *RunPlanChecksRequest) GetName() string {@@ -834,7 +707,7 @@ type RunPlanChecksResponse struct {func (x *RunPlanChecksResponse) Reset() {*x = RunPlanChecksResponse{}- mi := &file_v1_plan_service_proto_msgTypes[10]+ mi := &file_v1_plan_service_proto_msgTypes[8]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -846,7 +719,7 @@ func (x *RunPlanChecksResponse) String() string {func (*RunPlanChecksResponse) ProtoMessage() {}func (x *RunPlanChecksResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[10]+ mi := &file_v1_plan_service_proto_msgTypes[8]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -859,7 +732,7 @@ func (x *RunPlanChecksResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use RunPlanChecksResponse.ProtoReflect.Descriptor instead.func (*RunPlanChecksResponse) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{10}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{8}}type CancelPlanCheckRunRequest struct {@@ -873,7 +746,7 @@ type CancelPlanCheckRunRequest struct {func (x *CancelPlanCheckRunRequest) Reset() {*x = CancelPlanCheckRunRequest{}- mi := &file_v1_plan_service_proto_msgTypes[11]+ mi := &file_v1_plan_service_proto_msgTypes[9]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -885,7 +758,7 @@ func (x *CancelPlanCheckRunRequest) String() string {func (*CancelPlanCheckRunRequest) ProtoMessage() {}func (x *CancelPlanCheckRunRequest) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[11]+ mi := &file_v1_plan_service_proto_msgTypes[9]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -898,7 +771,7 @@ func (x *CancelPlanCheckRunRequest) ProtoReflect() protoreflect.Message {// Deprecated: Use CancelPlanCheckRunRequest.ProtoReflect.Descriptor instead.func (*CancelPlanCheckRunRequest) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{11}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{9}}func (x *CancelPlanCheckRunRequest) GetName() string {@@ -916,7 +789,7 @@ type CancelPlanCheckRunResponse struct {func (x *CancelPlanCheckRunResponse) Reset() {*x = CancelPlanCheckRunResponse{}- mi := &file_v1_plan_service_proto_msgTypes[12]+ mi := &file_v1_plan_service_proto_msgTypes[10]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -928,7 +801,7 @@ func (x *CancelPlanCheckRunResponse) String() string {func (*CancelPlanCheckRunResponse) ProtoMessage() {}func (x *CancelPlanCheckRunResponse) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[12]+ mi := &file_v1_plan_service_proto_msgTypes[10]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -941,7 +814,7 @@ func (x *CancelPlanCheckRunResponse) ProtoReflect() protoreflect.Message {// Deprecated: Use CancelPlanCheckRunResponse.ProtoReflect.Descriptor instead.func (*CancelPlanCheckRunResponse) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{12}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{10}}type PlanCheckRun struct {@@ -959,7 +832,7 @@ type PlanCheckRun struct {func (x *PlanCheckRun) Reset() {*x = PlanCheckRun{}- mi := &file_v1_plan_service_proto_msgTypes[13]+ mi := &file_v1_plan_service_proto_msgTypes[11]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -971,7 +844,7 @@ func (x *PlanCheckRun) String() string {func (*PlanCheckRun) ProtoMessage() {}func (x *PlanCheckRun) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[13]+ mi := &file_v1_plan_service_proto_msgTypes[11]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -984,7 +857,7 @@ func (x *PlanCheckRun) ProtoReflect() protoreflect.Message {// Deprecated: Use PlanCheckRun.ProtoReflect.Descriptor instead.func (*PlanCheckRun) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{13}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{11}}func (x *PlanCheckRun) GetName() string {@@ -1038,7 +911,7 @@ type Plan_Spec struct {func (x *Plan_Spec) Reset() {*x = Plan_Spec{}- mi := &file_v1_plan_service_proto_msgTypes[14]+ mi := &file_v1_plan_service_proto_msgTypes[12]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1050,7 +923,7 @@ func (x *Plan_Spec) String() string {func (*Plan_Spec) ProtoMessage() {}func (x *Plan_Spec) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[14]+ mi := &file_v1_plan_service_proto_msgTypes[12]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1063,7 +936,7 @@ func (x *Plan_Spec) ProtoReflect() protoreflect.Message {// Deprecated: Use Plan_Spec.ProtoReflect.Descriptor instead.func (*Plan_Spec) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{7, 0}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 0}}func (x *Plan_Spec) GetId() string {@@ -1156,7 +1029,7 @@ type Plan_CreateDatabaseConfig struct {func (x *Plan_CreateDatabaseConfig) Reset() {*x = Plan_CreateDatabaseConfig{}- mi := &file_v1_plan_service_proto_msgTypes[16]+ mi := &file_v1_plan_service_proto_msgTypes[14]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1168,7 +1041,7 @@ func (x *Plan_CreateDatabaseConfig) String() string {func (*Plan_CreateDatabaseConfig) ProtoMessage() {}func (x *Plan_CreateDatabaseConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[16]+ mi := &file_v1_plan_service_proto_msgTypes[14]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1181,7 +1054,7 @@ func (x *Plan_CreateDatabaseConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use Plan_CreateDatabaseConfig.ProtoReflect.Descriptor instead.func (*Plan_CreateDatabaseConfig) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{7, 2}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 2}}func (x *Plan_CreateDatabaseConfig) GetTarget() string {@@ -1265,7 +1138,7 @@ type Plan_ChangeDatabaseConfig struct {func (x *Plan_ChangeDatabaseConfig) Reset() {*x = Plan_ChangeDatabaseConfig{}- mi := &file_v1_plan_service_proto_msgTypes[17]+ mi := &file_v1_plan_service_proto_msgTypes[15]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1277,7 +1150,7 @@ func (x *Plan_ChangeDatabaseConfig) String() string {func (*Plan_ChangeDatabaseConfig) ProtoMessage() {}func (x *Plan_ChangeDatabaseConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[17]+ mi := &file_v1_plan_service_proto_msgTypes[15]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1290,7 +1163,7 @@ func (x *Plan_ChangeDatabaseConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use Plan_ChangeDatabaseConfig.ProtoReflect.Descriptor instead.func (*Plan_ChangeDatabaseConfig) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{7, 3}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 3}}func (x *Plan_ChangeDatabaseConfig) GetTargets() []string {@@ -1362,7 +1235,7 @@ type Plan_ExportDataConfig struct {func (x *Plan_ExportDataConfig) Reset() {*x = Plan_ExportDataConfig{}- mi := &file_v1_plan_service_proto_msgTypes[18]+ mi := &file_v1_plan_service_proto_msgTypes[16]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1374,7 +1247,7 @@ func (x *Plan_ExportDataConfig) String() string {func (*Plan_ExportDataConfig) ProtoMessage() {}func (x *Plan_ExportDataConfig) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[18]+ mi := &file_v1_plan_service_proto_msgTypes[16]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1387,7 +1260,7 @@ func (x *Plan_ExportDataConfig) ProtoReflect() protoreflect.Message {// Deprecated: Use Plan_ExportDataConfig.ProtoReflect.Descriptor instead.func (*Plan_ExportDataConfig) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{7, 4}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{5, 4}}func (x *Plan_ExportDataConfig) GetTargets() []string {@@ -1439,7 +1312,7 @@ type PlanCheckRun_Result struct {func (x *PlanCheckRun_Result) Reset() {*x = PlanCheckRun_Result{}- mi := &file_v1_plan_service_proto_msgTypes[20]+ mi := &file_v1_plan_service_proto_msgTypes[18]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1451,7 +1324,7 @@ func (x *PlanCheckRun_Result) String() string {func (*PlanCheckRun_Result) ProtoMessage() {}func (x *PlanCheckRun_Result) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[20]+ mi := &file_v1_plan_service_proto_msgTypes[18]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1464,7 +1337,7 @@ func (x *PlanCheckRun_Result) ProtoReflect() protoreflect.Message {// Deprecated: Use PlanCheckRun_Result.ProtoReflect.Descriptor instead.func (*PlanCheckRun_Result) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{13, 0}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0}}func (x *PlanCheckRun_Result) GetStatus() Advice_Level {@@ -1561,7 +1434,7 @@ type PlanCheckRun_Result_SqlSummaryReport struct {func (x *PlanCheckRun_Result_SqlSummaryReport) Reset() {*x = PlanCheckRun_Result_SqlSummaryReport{}- mi := &file_v1_plan_service_proto_msgTypes[21]+ mi := &file_v1_plan_service_proto_msgTypes[19]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1573,7 +1446,7 @@ func (x *PlanCheckRun_Result_SqlSummaryReport) String() string {func (*PlanCheckRun_Result_SqlSummaryReport) ProtoMessage() {}func (x *PlanCheckRun_Result_SqlSummaryReport) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[21]+ mi := &file_v1_plan_service_proto_msgTypes[19]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1586,7 +1459,7 @@ func (x *PlanCheckRun_Result_SqlSummaryReport) ProtoReflect() protoreflect.Messa// Deprecated: Use PlanCheckRun_Result_SqlSummaryReport.ProtoReflect.Descriptor instead.func (*PlanCheckRun_Result_SqlSummaryReport) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{13, 0, 0}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0, 0}}func (x *PlanCheckRun_Result_SqlSummaryReport) GetStatementTypes() []string {@@ -1614,7 +1487,7 @@ type PlanCheckRun_Result_SqlReviewReport struct {func (x *PlanCheckRun_Result_SqlReviewReport) Reset() {*x = PlanCheckRun_Result_SqlReviewReport{}- mi := &file_v1_plan_service_proto_msgTypes[22]+ mi := &file_v1_plan_service_proto_msgTypes[20]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1626,7 +1499,7 @@ func (x *PlanCheckRun_Result_SqlReviewReport) String() string {func (*PlanCheckRun_Result_SqlReviewReport) ProtoMessage() {}func (x *PlanCheckRun_Result_SqlReviewReport) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[22]+ mi := &file_v1_plan_service_proto_msgTypes[20]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -1639,7 +1512,7 @@ func (x *PlanCheckRun_Result_SqlReviewReport) ProtoReflect() protoreflect.Messag// Deprecated: Use PlanCheckRun_Result_SqlReviewReport.ProtoReflect.Descriptor instead.func (*PlanCheckRun_Result_SqlReviewReport) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{13, 0, 1}+ return file_v1_plan_service_proto_rawDescGZIP(), []int{11, 0, 1}}func (x *PlanCheckRun_Result_SqlReviewReport) GetStartPosition() *Position {@@ -1663,23 +1536,15 @@ const file_v1_plan_service_proto_rawDesc = "" +"\x15v1/plan_service.proto\x12\vbytebase.v1\x1a\x1bbuf/validate/validate.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x13v1/annotation.proto\x1a\x0fv1/common.proto\x1a\x14v1/sql_service.proto\"?\n" +"\x0eGetPlanRequest\x12-\n" +"\x04name\x18\x01 \x01(\tB\x19\xe0A\x02\xfaA\x13\n" +- "\x11bytebase.com/PlanR\x04name\"\x84\x01\n" ++ "\x11bytebase.com/PlanR\x04name\"\x9c\x01\n" +"\x10ListPlansRequest\x124\n" +"\x06parent\x18\x01 \x01(\tB\x1c\xe0A\x02\xfaA\x16\n" +"\x14bytebase.com/ProjectR\x06parent\x12\x1b\n" +"\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" +"\n" +- "page_token\x18\x03 \x01(\tR\tpageToken\"d\n" +- "\x11ListPlansResponse\x12'\n" +- "\x05plans\x18\x01 \x03(\v2\x11.bytebase.v1.PlanR\x05plans\x12&\n" +- "\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"\x85\x01\n" +- "\x12SearchPlansRequest\x12\x1b\n" +- "\x06parent\x18\x01 \x01(\tB\x03\xe0A\x02R\x06parent\x12\x1b\n" +- "\tpage_size\x18\x02 \x01(\x05R\bpageSize\x12\x1d\n" +- "\n" +"page_token\x18\x03 \x01(\tR\tpageToken\x12\x16\n" +- "\x06filter\x18\x04 \x01(\tR\x06filter\"f\n" +- "\x13SearchPlansResponse\x12'\n" ++ "\x06filter\x18\x04 \x01(\tR\x06filter\"d\n" ++ "\x11ListPlansResponse\x12'\n" +"\x05plans\x18\x01 \x03(\v2\x11.bytebase.v1.PlanR\x05plans\x12&\n" +"\x0fnext_page_token\x18\x02 \x01(\tR\rnextPageToken\"u\n" +"\x11CreatePlanRequest\x124\n" +@@ -1795,12 +1660,10 @@ const file_v1_plan_service_proto_rawDesc = "" +"\n" +"\x06FAILED\x10\x03\x12\f\n" +"\bCANCELED\x10\x04:L\xeaAI\n" +- "\x19bytebase.com/PlanCheckRun\x12,projects/{project}/plans/{plan}/planCheckRun2\x9f\n" +- "\n" ++ "\x19bytebase.com/PlanCheckRun\x12,projects/{project}/plans/{plan}/planCheckRun2\xfe\b\n" +"\vPlanService\x12{\n" +"\aGetPlan\x12\x1b.bytebase.v1.GetPlanRequest\x1a\x11.bytebase.v1.Plan\"@\xdaA\x04name\x8a\xea0\fbb.plans.get\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{name=projects/*/plans/*}\x12\x8f\x01\n" +- "\tListPlans\x12\x1d.bytebase.v1.ListPlansRequest\x1a\x1e.bytebase.v1.ListPlansResponse\"C\xdaA\x06parent\x8a\xea0\rbb.plans.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=projects/*}/plans\x12\x9e\x01\n" +- "\vSearchPlans\x12\x1f.bytebase.v1.SearchPlansRequest\x1a .bytebase.v1.SearchPlansResponse\"L\xdaA\x06parent\x8a\xea0\fbb.plans.get\x90\xea0\x02\x82\xd3\xe4\x93\x02):\x01*\"$/v1/{parent=projects/*}/plans:search\x12\x95\x01\n" ++ "\tListPlans\x12\x1d.bytebase.v1.ListPlansRequest\x1a\x1e.bytebase.v1.ListPlansResponse\"C\xdaA\x06parent\x8a\xea0\rbb.plans.list\x90\xea0\x01\x82\xd3\xe4\x93\x02\x1f\x12\x1d/v1/{parent=projects/*}/plans\x12\x95\x01\n" +"\n" +"CreatePlan\x12\x1e.bytebase.v1.CreatePlanRequest\x1a\x11.bytebase.v1.Plan\"T\xdaA\vparent,plan\x8a\xea0\x0fbb.plans.create\x90\xea0\x01\x98\xea0\x01\x82\xd3\xe4\x93\x02%:\x04plan\"\x1d/v1/{parent=projects/*}/plans\x12\x9f\x01\n" +"\n" +@@ -1823,88 +1686,83 @@ func file_v1_plan_service_proto_rawDescGZIP() []byte {}var file_v1_plan_service_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_v1_plan_service_proto_msgTypes = make([]protoimpl.MessageInfo, 23)+var file_v1_plan_service_proto_msgTypes = make([]protoimpl.MessageInfo, 21)var file_v1_plan_service_proto_goTypes = []any{(PlanCheckRun_Status)(0), // 0: bytebase.v1.PlanCheckRun.Status(PlanCheckRun_Result_Type)(0), // 1: bytebase.v1.PlanCheckRun.Result.Type(*GetPlanRequest)(nil), // 2: bytebase.v1.GetPlanRequest(*ListPlansRequest)(nil), // 3: bytebase.v1.ListPlansRequest(*ListPlansResponse)(nil), // 4: bytebase.v1.ListPlansResponse- (*SearchPlansRequest)(nil), // 5: bytebase.v1.SearchPlansRequest- (*SearchPlansResponse)(nil), // 6: bytebase.v1.SearchPlansResponse- (*CreatePlanRequest)(nil), // 7: bytebase.v1.CreatePlanRequest- (*UpdatePlanRequest)(nil), // 8: bytebase.v1.UpdatePlanRequest- (*Plan)(nil), // 9: bytebase.v1.Plan- (*GetPlanCheckRunRequest)(nil), // 10: bytebase.v1.GetPlanCheckRunRequest- (*RunPlanChecksRequest)(nil), // 11: bytebase.v1.RunPlanChecksRequest- (*RunPlanChecksResponse)(nil), // 12: bytebase.v1.RunPlanChecksResponse- (*CancelPlanCheckRunRequest)(nil), // 13: bytebase.v1.CancelPlanCheckRunRequest- (*CancelPlanCheckRunResponse)(nil), // 14: bytebase.v1.CancelPlanCheckRunResponse- (*PlanCheckRun)(nil), // 15: bytebase.v1.PlanCheckRun- (*Plan_Spec)(nil), // 16: bytebase.v1.Plan.Spec- nil, // 17: bytebase.v1.Plan.PlanCheckRunStatusCountEntry- (*Plan_CreateDatabaseConfig)(nil), // 18: bytebase.v1.Plan.CreateDatabaseConfig- (*Plan_ChangeDatabaseConfig)(nil), // 19: bytebase.v1.Plan.ChangeDatabaseConfig- (*Plan_ExportDataConfig)(nil), // 20: bytebase.v1.Plan.ExportDataConfig- nil, // 21: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry- (*PlanCheckRun_Result)(nil), // 22: bytebase.v1.PlanCheckRun.Result- (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 23: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- (*PlanCheckRun_Result_SqlReviewReport)(nil), // 24: bytebase.v1.PlanCheckRun.Result.SqlReviewReport- (*fieldmaskpb.FieldMask)(nil), // 25: google.protobuf.FieldMask- (State)(0), // 26: bytebase.v1.State- (*timestamppb.Timestamp)(nil), // 27: google.protobuf.Timestamp- (DatabaseChangeType)(0), // 28: bytebase.v1.DatabaseChangeType- (ExportFormat)(0), // 29: bytebase.v1.ExportFormat- (Advice_Level)(0), // 30: bytebase.v1.Advice.Level- (*Position)(nil), // 31: bytebase.v1.Position+ (*CreatePlanRequest)(nil), // 5: bytebase.v1.CreatePlanRequest+ (*UpdatePlanRequest)(nil), // 6: bytebase.v1.UpdatePlanRequest+ (*Plan)(nil), // 7: bytebase.v1.Plan+ (*GetPlanCheckRunRequest)(nil), // 8: bytebase.v1.GetPlanCheckRunRequest+ (*RunPlanChecksRequest)(nil), // 9: bytebase.v1.RunPlanChecksRequest+ (*RunPlanChecksResponse)(nil), // 10: bytebase.v1.RunPlanChecksResponse+ (*CancelPlanCheckRunRequest)(nil), // 11: bytebase.v1.CancelPlanCheckRunRequest+ (*CancelPlanCheckRunResponse)(nil), // 12: bytebase.v1.CancelPlanCheckRunResponse+ (*PlanCheckRun)(nil), // 13: bytebase.v1.PlanCheckRun+ (*Plan_Spec)(nil), // 14: bytebase.v1.Plan.Spec+ nil, // 15: bytebase.v1.Plan.PlanCheckRunStatusCountEntry+ (*Plan_CreateDatabaseConfig)(nil), // 16: bytebase.v1.Plan.CreateDatabaseConfig+ (*Plan_ChangeDatabaseConfig)(nil), // 17: bytebase.v1.Plan.ChangeDatabaseConfig+ (*Plan_ExportDataConfig)(nil), // 18: bytebase.v1.Plan.ExportDataConfig+ nil, // 19: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry+ (*PlanCheckRun_Result)(nil), // 20: bytebase.v1.PlanCheckRun.Result+ (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 21: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ (*PlanCheckRun_Result_SqlReviewReport)(nil), // 22: bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ (*fieldmaskpb.FieldMask)(nil), // 23: google.protobuf.FieldMask+ (State)(0), // 24: bytebase.v1.State+ (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp+ (DatabaseChangeType)(0), // 26: bytebase.v1.DatabaseChangeType+ (ExportFormat)(0), // 27: bytebase.v1.ExportFormat+ (Advice_Level)(0), // 28: bytebase.v1.Advice.Level+ (*Position)(nil), // 29: bytebase.v1.Position}var file_v1_plan_service_proto_depIdxs = []int32{- 9, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan- 9, // 1: bytebase.v1.SearchPlansResponse.plans:type_name -> bytebase.v1.Plan- 9, // 2: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan- 9, // 3: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan- 25, // 4: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask- 26, // 5: bytebase.v1.Plan.state:type_name -> bytebase.v1.State- 16, // 6: bytebase.v1.Plan.specs:type_name -> bytebase.v1.Plan.Spec- 27, // 7: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp- 27, // 8: bytebase.v1.Plan.update_time:type_name -> google.protobuf.Timestamp- 17, // 9: bytebase.v1.Plan.plan_check_run_status_count:type_name -> bytebase.v1.Plan.PlanCheckRunStatusCountEntry- 0, // 10: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status- 22, // 11: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result- 27, // 12: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp- 18, // 13: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig- 19, // 14: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig- 20, // 15: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig- 28, // 16: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.DatabaseChangeType- 21, // 17: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry- 29, // 18: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat- 30, // 19: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.Advice.Level- 1, // 20: bytebase.v1.PlanCheckRun.Result.type:type_name -> bytebase.v1.PlanCheckRun.Result.Type- 23, // 21: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- 24, // 22: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport- 31, // 23: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position- 31, // 24: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position- 2, // 25: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest- 3, // 26: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest- 5, // 27: bytebase.v1.PlanService.SearchPlans:input_type -> bytebase.v1.SearchPlansRequest- 7, // 28: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest- 8, // 29: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest- 10, // 30: bytebase.v1.PlanService.GetPlanCheckRun:input_type -> bytebase.v1.GetPlanCheckRunRequest- 11, // 31: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest- 13, // 32: bytebase.v1.PlanService.CancelPlanCheckRun:input_type -> bytebase.v1.CancelPlanCheckRunRequest- 9, // 33: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan- 4, // 34: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse- 6, // 35: bytebase.v1.PlanService.SearchPlans:output_type -> bytebase.v1.SearchPlansResponse- 9, // 36: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan- 9, // 37: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan- 15, // 38: bytebase.v1.PlanService.GetPlanCheckRun:output_type -> bytebase.v1.PlanCheckRun- 12, // 39: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse- 14, // 40: bytebase.v1.PlanService.CancelPlanCheckRun:output_type -> bytebase.v1.CancelPlanCheckRunResponse- 33, // [33:41] is the sub-list for method output_type- 25, // [25:33] is the sub-list for method input_type- 25, // [25:25] is the sub-list for extension type_name- 25, // [25:25] is the sub-list for extension extendee- 0, // [0:25] is the sub-list for field type_name+ 7, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan+ 7, // 1: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan+ 7, // 2: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan+ 23, // 3: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask+ 24, // 4: bytebase.v1.Plan.state:type_name -> bytebase.v1.State+ 14, // 5: bytebase.v1.Plan.specs:type_name -> bytebase.v1.Plan.Spec+ 25, // 6: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp+ 25, // 7: bytebase.v1.Plan.update_time:type_name -> google.protobuf.Timestamp+ 15, // 8: bytebase.v1.Plan.plan_check_run_status_count:type_name -> bytebase.v1.Plan.PlanCheckRunStatusCountEntry+ 0, // 9: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status+ 20, // 10: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result+ 25, // 11: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp+ 16, // 12: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig+ 17, // 13: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig+ 18, // 14: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig+ 26, // 15: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.DatabaseChangeType+ 19, // 16: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry+ 27, // 17: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat+ 28, // 18: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.Advice.Level+ 1, // 19: bytebase.v1.PlanCheckRun.Result.type:type_name -> bytebase.v1.PlanCheckRun.Result.Type+ 21, // 20: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ 22, // 21: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ 29, // 22: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position+ 29, // 23: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position+ 2, // 24: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest+ 3, // 25: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest+ 5, // 26: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest+ 6, // 27: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest+ 8, // 28: bytebase.v1.PlanService.GetPlanCheckRun:input_type -> bytebase.v1.GetPlanCheckRunRequest+ 9, // 29: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest+ 11, // 30: bytebase.v1.PlanService.CancelPlanCheckRun:input_type -> bytebase.v1.CancelPlanCheckRunRequest+ 7, // 31: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan+ 4, // 32: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse+ 7, // 33: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan+ 7, // 34: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan+ 13, // 35: bytebase.v1.PlanService.GetPlanCheckRun:output_type -> bytebase.v1.PlanCheckRun+ 10, // 36: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse+ 12, // 37: bytebase.v1.PlanService.CancelPlanCheckRun:output_type -> bytebase.v1.CancelPlanCheckRunResponse+ 31, // [31:38] is the sub-list for method output_type+ 24, // [24:31] is the sub-list for method input_type+ 24, // [24:24] is the sub-list for extension type_name+ 24, // [24:24] is the sub-list for extension extendee+ 0, // [0:24] is the sub-list for field type_name}func init() { file_v1_plan_service_proto_init() }@@ -1915,14 +1773,14 @@ func file_v1_plan_service_proto_init() {file_v1_annotation_proto_init()file_v1_common_proto_init()file_v1_sql_service_proto_init()- file_v1_plan_service_proto_msgTypes[9].OneofWrappers = []any{}- file_v1_plan_service_proto_msgTypes[14].OneofWrappers = []any{+ file_v1_plan_service_proto_msgTypes[7].OneofWrappers = []any{}+ file_v1_plan_service_proto_msgTypes[12].OneofWrappers = []any{(*Plan_Spec_CreateDatabaseConfig)(nil),(*Plan_Spec_ChangeDatabaseConfig)(nil),(*Plan_Spec_ExportDataConfig)(nil),}- file_v1_plan_service_proto_msgTypes[18].OneofWrappers = []any{}- file_v1_plan_service_proto_msgTypes[20].OneofWrappers = []any{+ file_v1_plan_service_proto_msgTypes[16].OneofWrappers = []any{}+ file_v1_plan_service_proto_msgTypes[18].OneofWrappers = []any{(*PlanCheckRun_Result_SqlSummaryReport_)(nil),(*PlanCheckRun_Result_SqlReviewReport_)(nil),}@@ -1932,7 +1790,7 @@ func file_v1_plan_service_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_v1_plan_service_proto_rawDesc), len(file_v1_plan_service_proto_rawDesc)),NumEnums: 2,- NumMessages: 23,+ NumMessages: 21,NumExtensions: 0,NumServices: 1,},diff --git a/backend/generated-go/v1/plan_service.pb.gw.go b/backend/generated-go/v1/plan_service.pb.gw.goindex 59531b57a0..86dc7a26e9 100644--- a/backend/generated-go/v1/plan_service.pb.gw.go+++ b/backend/generated-go/v1/plan_service.pb.gw.go@@ -127,51 +127,6 @@ func local_request_PlanService_ListPlans_0(ctx context.Context, marshaler runtimreturn msg, metadata, err}-func request_PlanService_SearchPlans_0(ctx context.Context, marshaler runtime.Marshaler, client PlanServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var (- protoReq SearchPlansRequest- metadata runtime.ServerMetadata- err error- )- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- if req.Body != nil {- _, _ = io.Copy(io.Discard, req.Body)- }- val, ok := pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }- msg, err := client.SearchPlans(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))- return msg, metadata, err-}--func local_request_PlanService_SearchPlans_0(ctx context.Context, marshaler runtime.Marshaler, server PlanServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {- var (- protoReq SearchPlansRequest- metadata runtime.ServerMetadata- err error- )- if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {- return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)- }- val, ok := pathParams["parent"]- if !ok {- return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")- }- protoReq.Parent, err = runtime.String(val)- if err != nil {- return nil, metadata, status.Errorf(codes.InvalidArgument, "type mismatch, parameter: %s, error: %v", "parent", err)- }- msg, err := server.SearchPlans(ctx, &protoReq)- return msg, metadata, err-}-func request_PlanService_CreatePlan_0(ctx context.Context, marshaler runtime.Marshaler, client PlanServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {var (protoReq CreatePlanRequest@@ -473,26 +428,6 @@ func RegisterPlanServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux}forward_PlanService_ListPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle(http.MethodPost, pattern_PlanService_SearchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- var stream runtime.ServerTransportStream- ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/bytebase.v1.PlanService/SearchPlans", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans:search"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := local_request_PlanService_SearchPlans_0(annotatedContext, inboundMarshaler, server, req, pathParams)- md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }- forward_PlanService_SearchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)- })mux.Handle(http.MethodPost, pattern_PlanService_CreatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -667,23 +602,6 @@ func RegisterPlanServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux}forward_PlanService_ListPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)})- mux.Handle(http.MethodPost, pattern_PlanService_SearchPlans_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {- ctx, cancel := context.WithCancel(req.Context())- defer cancel()- inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)- annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/bytebase.v1.PlanService/SearchPlans", runtime.WithHTTPPathPattern("/v1/{parent=projects/*}/plans:search"))- if err != nil {- runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)- return- }- resp, md, err := request_PlanService_SearchPlans_0(annotatedContext, inboundMarshaler, client, req, pathParams)- annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)- if err != nil {- runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)- return- }- forward_PlanService_SearchPlans_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)- })mux.Handle(http.MethodPost, pattern_PlanService_CreatePlan_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {ctx, cancel := context.WithCancel(req.Context())defer cancel()@@ -775,7 +693,6 @@ func RegisterPlanServiceHandlerClient(ctx context.Context, mux *runtime.ServeMuxvar (pattern_PlanService_GetPlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "name"}, ""))pattern_PlanService_ListPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "plans"}, ""))- pattern_PlanService_SearchPlans_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "plans"}, "search"))pattern_PlanService_CreatePlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 4, 2, 5, 2, 2, 3}, []string{"v1", "projects", "parent", "plans"}, ""))pattern_PlanService_UpdatePlan_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 4, 4, 5, 3}, []string{"v1", "projects", "plans", "plan.name"}, ""))pattern_PlanService_GetPlanCheckRun_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 1, 0, 2, 2, 1, 0, 2, 3, 4, 5, 5, 4}, []string{"v1", "projects", "plans", "planCheckRun", "name"}, ""))@@ -786,7 +703,6 @@ var (var (forward_PlanService_GetPlan_0 = runtime.ForwardResponseMessageforward_PlanService_ListPlans_0 = runtime.ForwardResponseMessage- forward_PlanService_SearchPlans_0 = runtime.ForwardResponseMessageforward_PlanService_CreatePlan_0 = runtime.ForwardResponseMessageforward_PlanService_UpdatePlan_0 = runtime.ForwardResponseMessageforward_PlanService_GetPlanCheckRun_0 = runtime.ForwardResponseMessagediff --git a/backend/generated-go/v1/plan_service_equal.pb.go b/backend/generated-go/v1/plan_service_equal.pb.goindex ed265c66d3..b82a3de6b4 100644--- a/backend/generated-go/v1/plan_service_equal.pb.go+++ b/backend/generated-go/v1/plan_service_equal.pb.go@@ -22,46 +22,6 @@ func (x *GetPlanRequest) Equal(y *GetPlanRequest) bool {}func (x *ListPlansRequest) Equal(y *ListPlansRequest) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if x.Parent != y.Parent {- return false- }- if x.PageSize != y.PageSize {- return false- }- if x.PageToken != y.PageToken {- return false- }- return true-}--func (x *ListPlansResponse) Equal(y *ListPlansResponse) bool {- if x == y {- return true- }- if x == nil || y == nil {- return x == nil && y == nil- }- if len(x.Plans) != len(y.Plans) {- return false- }- for i := 0; i < len(x.Plans); i++ {- if !x.Plans[i].Equal(y.Plans[i]) {- return false- }- }- if x.NextPageToken != y.NextPageToken {- return false- }- return true-}--func (x *SearchPlansRequest) Equal(y *SearchPlansRequest) bool {if x == y {return true}@@ -83,7 +43,7 @@ func (x *SearchPlansRequest) Equal(y *SearchPlansRequest) bool {return true}-func (x *SearchPlansResponse) Equal(y *SearchPlansResponse) bool {+func (x *ListPlansResponse) Equal(y *ListPlansResponse) bool {if x == y {return true}diff --git a/backend/generated-go/v1/plan_service_grpc.pb.go b/backend/generated-go/v1/plan_service_grpc.pb.goindex 3a19329116..7fda93d1e7 100644--- a/backend/generated-go/v1/plan_service_grpc.pb.go+++ b/backend/generated-go/v1/plan_service_grpc.pb.go@@ -21,7 +21,6 @@ const _ = grpc.SupportPackageIsVersion9const (PlanService_GetPlan_FullMethodName = "/bytebase.v1.PlanService/GetPlan"PlanService_ListPlans_FullMethodName = "/bytebase.v1.PlanService/ListPlans"- PlanService_SearchPlans_FullMethodName = "/bytebase.v1.PlanService/SearchPlans"PlanService_CreatePlan_FullMethodName = "/bytebase.v1.PlanService/CreatePlan"PlanService_UpdatePlan_FullMethodName = "/bytebase.v1.PlanService/UpdatePlan"PlanService_GetPlanCheckRun_FullMethodName = "/bytebase.v1.PlanService/GetPlanCheckRun"@@ -41,9 +40,6 @@ type PlanServiceClient interface {// Lists deployment plans in a project.// Permissions required: bb.plans.listListPlans(ctx context.Context, in *ListPlansRequest, opts ...grpc.CallOption) (*ListPlansResponse, error)- // Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.- // Permissions required: bb.plans.get- SearchPlans(ctx context.Context, in *SearchPlansRequest, opts ...grpc.CallOption) (*SearchPlansResponse, error)// Creates a new deployment plan.// Permissions required: bb.plans.createCreatePlan(ctx context.Context, in *CreatePlanRequest, opts ...grpc.CallOption) (*Plan, error)@@ -90,16 +86,6 @@ func (c *planServiceClient) ListPlans(ctx context.Context, in *ListPlansRequest,return out, nil}-func (c *planServiceClient) SearchPlans(ctx context.Context, in *SearchPlansRequest, opts ...grpc.CallOption) (*SearchPlansResponse, error) {- cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)- out := new(SearchPlansResponse)- err := c.cc.Invoke(ctx, PlanService_SearchPlans_FullMethodName, in, out, cOpts...)- if err != nil {- return nil, err- }- return out, nil-}-func (c *planServiceClient) CreatePlan(ctx context.Context, in *CreatePlanRequest, opts ...grpc.CallOption) (*Plan, error) {cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)out := new(Plan)@@ -162,9 +148,6 @@ type PlanServiceServer interface {// Lists deployment plans in a project.// Permissions required: bb.plans.listListPlans(context.Context, *ListPlansRequest) (*ListPlansResponse, error)- // Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.- // Permissions required: bb.plans.get- SearchPlans(context.Context, *SearchPlansRequest) (*SearchPlansResponse, error)// Creates a new deployment plan.// Permissions required: bb.plans.createCreatePlan(context.Context, *CreatePlanRequest) (*Plan, error)@@ -197,9 +180,6 @@ func (UnimplementedPlanServiceServer) GetPlan(context.Context, *GetPlanRequest)func (UnimplementedPlanServiceServer) ListPlans(context.Context, *ListPlansRequest) (*ListPlansResponse, error) {return nil, status.Error(codes.Unimplemented, "method ListPlans not implemented")}-func (UnimplementedPlanServiceServer) SearchPlans(context.Context, *SearchPlansRequest) (*SearchPlansResponse, error) {- return nil, status.Error(codes.Unimplemented, "method SearchPlans not implemented")-}func (UnimplementedPlanServiceServer) CreatePlan(context.Context, *CreatePlanRequest) (*Plan, error) {return nil, status.Error(codes.Unimplemented, "method CreatePlan not implemented")}@@ -272,24 +252,6 @@ func _PlanService_ListPlans_Handler(srv interface{}, ctx context.Context, dec fureturn interceptor(ctx, in, info, handler)}-func _PlanService_SearchPlans_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {- in := new(SearchPlansRequest)- if err := dec(in); err != nil {- return nil, err- }- if interceptor == nil {- return srv.(PlanServiceServer).SearchPlans(ctx, in)- }- info := &grpc.UnaryServerInfo{- Server: srv,- FullMethod: PlanService_SearchPlans_FullMethodName,- }- handler := func(ctx context.Context, req interface{}) (interface{}, error) {- return srv.(PlanServiceServer).SearchPlans(ctx, req.(*SearchPlansRequest))- }- return interceptor(ctx, in, info, handler)-}-func _PlanService_CreatePlan_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {in := new(CreatePlanRequest)if err := dec(in); err != nil {@@ -395,10 +357,6 @@ var PlanService_ServiceDesc = grpc.ServiceDesc{MethodName: "ListPlans",Handler: _PlanService_ListPlans_Handler,},- {- MethodName: "SearchPlans",- Handler: _PlanService_SearchPlans_Handler,- },{MethodName: "CreatePlan",Handler: _PlanService_CreatePlan_Handler,diff --git a/backend/generated-go/v1/v1connect/plan_service.connect.go b/backend/generated-go/v1/v1connect/plan_service.connect.goindex c3c0c59876..337fdcfad9 100644--- a/backend/generated-go/v1/v1connect/plan_service.connect.go+++ b/backend/generated-go/v1/v1connect/plan_service.connect.go@@ -37,8 +37,6 @@ const (PlanServiceGetPlanProcedure = "/bytebase.v1.PlanService/GetPlan"// PlanServiceListPlansProcedure is the fully-qualified name of the PlanService's ListPlans RPC.PlanServiceListPlansProcedure = "/bytebase.v1.PlanService/ListPlans"- // PlanServiceSearchPlansProcedure is the fully-qualified name of the PlanService's SearchPlans RPC.- PlanServiceSearchPlansProcedure = "/bytebase.v1.PlanService/SearchPlans"// PlanServiceCreatePlanProcedure is the fully-qualified name of the PlanService's CreatePlan RPC.PlanServiceCreatePlanProcedure = "/bytebase.v1.PlanService/CreatePlan"// PlanServiceUpdatePlanProcedure is the fully-qualified name of the PlanService's UpdatePlan RPC.@@ -62,9 +60,6 @@ type PlanServiceClient interface {// Lists deployment plans in a project.// Permissions required: bb.plans.listListPlans(context.Context, *connect.Request[v1.ListPlansRequest]) (*connect.Response[v1.ListPlansResponse], error)- // Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.- // Permissions required: bb.plans.get- SearchPlans(context.Context, *connect.Request[v1.SearchPlansRequest]) (*connect.Response[v1.SearchPlansResponse], error)// Creates a new deployment plan.// Permissions required: bb.plans.createCreatePlan(context.Context, *connect.Request[v1.CreatePlanRequest]) (*connect.Response[v1.Plan], error)@@ -106,12 +101,6 @@ func NewPlanServiceClient(httpClient connect.HTTPClient, baseURL string, opts ..connect.WithSchema(planServiceMethods.ByName("ListPlans")),connect.WithClientOptions(opts...),),- searchPlans: connect.NewClient[v1.SearchPlansRequest, v1.SearchPlansResponse](- httpClient,- baseURL+PlanServiceSearchPlansProcedure,- connect.WithSchema(planServiceMethods.ByName("SearchPlans")),- connect.WithClientOptions(opts...),- ),createPlan: connect.NewClient[v1.CreatePlanRequest, v1.Plan](httpClient,baseURL+PlanServiceCreatePlanProcedure,@@ -149,7 +138,6 @@ func NewPlanServiceClient(httpClient connect.HTTPClient, baseURL string, opts ..type planServiceClient struct {getPlan *connect.Client[v1.GetPlanRequest, v1.Plan]listPlans *connect.Client[v1.ListPlansRequest, v1.ListPlansResponse]- searchPlans *connect.Client[v1.SearchPlansRequest, v1.SearchPlansResponse]createPlan *connect.Client[v1.CreatePlanRequest, v1.Plan]updatePlan *connect.Client[v1.UpdatePlanRequest, v1.Plan]getPlanCheckRun *connect.Client[v1.GetPlanCheckRunRequest, v1.PlanCheckRun]@@ -167,11 +155,6 @@ func (c *planServiceClient) ListPlans(ctx context.Context, req *connect.Request[return c.listPlans.CallUnary(ctx, req)}-// SearchPlans calls bytebase.v1.PlanService.SearchPlans.-func (c *planServiceClient) SearchPlans(ctx context.Context, req *connect.Request[v1.SearchPlansRequest]) (*connect.Response[v1.SearchPlansResponse], error) {- return c.searchPlans.CallUnary(ctx, req)-}-// CreatePlan calls bytebase.v1.PlanService.CreatePlan.func (c *planServiceClient) CreatePlan(ctx context.Context, req *connect.Request[v1.CreatePlanRequest]) (*connect.Response[v1.Plan], error) {return c.createPlan.CallUnary(ctx, req)@@ -205,9 +188,6 @@ type PlanServiceHandler interface {// Lists deployment plans in a project.// Permissions required: bb.plans.listListPlans(context.Context, *connect.Request[v1.ListPlansRequest]) (*connect.Response[v1.ListPlansResponse], error)- // Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.- // Permissions required: bb.plans.get- SearchPlans(context.Context, *connect.Request[v1.SearchPlansRequest]) (*connect.Response[v1.SearchPlansResponse], error)// Creates a new deployment plan.// Permissions required: bb.plans.createCreatePlan(context.Context, *connect.Request[v1.CreatePlanRequest]) (*connect.Response[v1.Plan], error)@@ -245,12 +225,6 @@ func NewPlanServiceHandler(svc PlanServiceHandler, opts ...connect.HandlerOptionconnect.WithSchema(planServiceMethods.ByName("ListPlans")),connect.WithHandlerOptions(opts...),)- planServiceSearchPlansHandler := connect.NewUnaryHandler(- PlanServiceSearchPlansProcedure,- svc.SearchPlans,- connect.WithSchema(planServiceMethods.ByName("SearchPlans")),- connect.WithHandlerOptions(opts...),- )planServiceCreatePlanHandler := connect.NewUnaryHandler(PlanServiceCreatePlanProcedure,svc.CreatePlan,@@ -287,8 +261,6 @@ func NewPlanServiceHandler(svc PlanServiceHandler, opts ...connect.HandlerOptionplanServiceGetPlanHandler.ServeHTTP(w, r)case PlanServiceListPlansProcedure:planServiceListPlansHandler.ServeHTTP(w, r)- case PlanServiceSearchPlansProcedure:- planServiceSearchPlansHandler.ServeHTTP(w, r)case PlanServiceCreatePlanProcedure:planServiceCreatePlanHandler.ServeHTTP(w, r)case PlanServiceUpdatePlanProcedure:@@ -316,10 +288,6 @@ func (UnimplementedPlanServiceHandler) ListPlans(context.Context, *connect.Requereturn nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.ListPlans is not implemented"))}-func (UnimplementedPlanServiceHandler) SearchPlans(context.Context, *connect.Request[v1.SearchPlansRequest]) (*connect.Response[v1.SearchPlansResponse], error) {- return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.SearchPlans is not implemented"))-}-func (UnimplementedPlanServiceHandler) CreatePlan(context.Context, *connect.Request[v1.CreatePlanRequest]) (*connect.Response[v1.Plan], error) {return nil, connect.NewError(connect.CodeUnimplemented, errors.New("bytebase.v1.PlanService.CreatePlan is not implemented"))}diff --git a/frontend/src/store/modules/v1/plan.ts b/frontend/src/store/modules/v1/plan.tsindex 4e9e56e848..d9652ff320 100644--- a/frontend/src/store/modules/v1/plan.ts+++ b/frontend/src/store/modules/v1/plan.ts@@ -6,7 +6,7 @@ import { planServiceClientConnect } from "@/grpcweb";import type { Plan } from "@/types/proto-es/v1/plan_service_pb";import {GetPlanRequestSchema,- SearchPlansRequestSchema,+ ListPlansRequestSchema,UpdatePlanRequestSchema,} from "@/types/proto-es/v1/plan_service_pb";import {@@ -92,17 +92,17 @@ export type ListPlanParams = {};export const usePlanStore = defineStore("plan", () => {- const searchPlans = async ({ find, pageSize, pageToken }: ListPlanParams) => {- const request = create(SearchPlansRequestSchema, {+ const listPlans = async ({ find, pageSize, pageToken }: ListPlanParams) => {+ const request = create(ListPlansRequestSchema, {parent: find.project,filter: buildPlanFilter(find),pageSize,pageToken,});const { plans, nextPageToken } =- await planServiceClientConnect.searchPlans(request);+ await planServiceClientConnect.listPlans(request);// Prepare creator for the plans.- const users = uniq(plans.map((plan) => plan.creator));+ const users = uniq(plans.map((plan: Plan) => plan.creator));await useUserStore().batchGetOrFetchUsers(users);return {nextPageToken: nextPageToken,@@ -131,7 +131,7 @@ export const usePlanStore = defineStore("plan", () => {};return {- searchPlans,+ listPlans,fetchPlanByName,updatePlan,};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 6a26ae17c2..a275e14b13 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@@ -65,73 +65,6 @@ export declare type ListPlansRequest = Message<"bytebase.v1.ListPlansRequest"> &* @generated from field: string page_token = 3;*/pageToken: string;-};--/**- * Describes the message bytebase.v1.ListPlansRequest.- * Use `create(ListPlansRequestSchema)` to create a new message.- */-export declare const ListPlansRequestSchema: GenMessage<ListPlansRequest>;--/**- * @generated from message bytebase.v1.ListPlansResponse- */-export declare type ListPlansResponse = Message<"bytebase.v1.ListPlansResponse"> & {- /**- * The plans from the specified request.- *- * @generated from field: repeated bytebase.v1.Plan plans = 1;- */- plans: Plan[];-- /**- * A token, which can be sent as `page_token` to retrieve the next page.- * If this field is omitted, there are no subsequent pages.- *- * @generated from field: string next_page_token = 2;- */- nextPageToken: string;-};--/**- * Describes the message bytebase.v1.ListPlansResponse.- * Use `create(ListPlansResponseSchema)` to create a new message.- */-export declare const ListPlansResponseSchema: GenMessage<ListPlansResponse>;--/**- * @generated from message bytebase.v1.SearchPlansRequest- */-export declare type SearchPlansRequest = Message<"bytebase.v1.SearchPlansRequest"> & {- /**- * The parent, which owns this collection of plans.- * Format: projects/{project}- * Use "projects/-" to list all plans from all projects.- *- * @generated from field: string parent = 1;- */- parent: string;-- /**- * The maximum number of plans to return. The service may return fewer than- * this value.- * If unspecified, at most 10 plans will be returned.- * The maximum value is 1000; values above 1000 will be coerced to 1000.- *- * @generated from field: int32 page_size = 2;- */- pageSize: number;-- /**- * A page token, received from a previous `SearchPlans` call.- * Provide this to retrieve the subsequent page.- *- * When paginating, all other parameters provided to `SearchPlans` must match- * the call that provided the page token.- *- * @generated from field: string page_token = 3;- */- pageToken: string;/*** Filter is used to filter plans returned in the list.@@ -160,15 +93,15 @@ export declare type SearchPlansRequest = Message<"bytebase.v1.SearchPlansRequest};/**- * Describes the message bytebase.v1.SearchPlansRequest.- * Use `create(SearchPlansRequestSchema)` to create a new message.+ * Describes the message bytebase.v1.ListPlansRequest.+ * Use `create(ListPlansRequestSchema)` to create a new message.*/-export declare const SearchPlansRequestSchema: GenMessage<SearchPlansRequest>;+export declare const ListPlansRequestSchema: GenMessage<ListPlansRequest>;/**- * @generated from message bytebase.v1.SearchPlansResponse+ * @generated from message bytebase.v1.ListPlansResponse*/-export declare type SearchPlansResponse = Message<"bytebase.v1.SearchPlansResponse"> & {+export declare type ListPlansResponse = Message<"bytebase.v1.ListPlansResponse"> & {/*** The plans from the specified request.*@@ -186,10 +119,10 @@ export declare type SearchPlansResponse = Message<"bytebase.v1.SearchPlansRespon};/**- * Describes the message bytebase.v1.SearchPlansResponse.- * Use `create(SearchPlansResponseSchema)` to create a new message.+ * Describes the message bytebase.v1.ListPlansResponse.+ * Use `create(ListPlansResponseSchema)` to create a new message.*/-export declare const SearchPlansResponseSchema: GenMessage<SearchPlansResponse>;+export declare const ListPlansResponseSchema: GenMessage<ListPlansResponse>;/*** @generated from message bytebase.v1.CreatePlanRequest@@ -892,17 +825,6 @@ export declare const PlanService: GenService<{input: typeof ListPlansRequestSchema;output: typeof ListPlansResponseSchema;},- /**- * Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.- * Permissions required: bb.plans.get- *- * @generated from rpc bytebase.v1.PlanService.SearchPlans- */- searchPlans: {- methodKind: "unary";- input: typeof SearchPlansRequestSchema;- output: typeof SearchPlansResponseSchema;- },/*** Creates a new deployment plan.* Permissions required: bb.plans.creatediff --git a/frontend/src/types/proto-es/v1/plan_service_pb.js b/frontend/src/types/proto-es/v1/plan_service_pb.jsindex a093123f0c..a5a060d267 100644--- a/frontend/src/types/proto-es/v1/plan_service_pb.js+++ b/frontend/src/types/proto-es/v1/plan_service_pb.js@@ -17,7 +17,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("ChV2MS9wbGFuX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKDkdldFBsYW5SZXF1ZXN0EicKBG5hbWUYASABKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1BsYW4iZwoQTGlzdFBsYW5zUmVxdWVzdBIsCgZwYXJlbnQYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkiTgoRTGlzdFBsYW5zUmVzcG9uc2USIAoFcGxhbnMYASADKAsyES5ieXRlYmFzZS52MS5QbGFuEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJgChJTZWFyY2hQbGFuc1JlcXVlc3QSEwoGcGFyZW50GAEgASgJQgPgQQISEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJIlAKE1NlYXJjaFBsYW5zUmVzcG9uc2USIAoFcGxhbnMYASADKAsyES5ieXRlYmFzZS52MS5QbGFuEhcKD25leHRfcGFnZV90b2tlbhgCIAEoCSJnChFDcmVhdGVQbGFuUmVxdWVzdBIsCgZwYXJlbnQYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSJAoEcGxhbhgCIAEoCzIRLmJ5dGViYXNlL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1blBsYW5DaGVja3MSxgEKEkNhbmNlbFBsYW5DaGVja1J1bhImLmJ5dGViYXNlLnYxLkNhbmNlbFBsYW5DaGVja1J1blJlcXVlc3QaJy5ieXRlYmFzZS52MS5DYW5jZWxQbGFuQ2hlY2tSdW5SZXNwb25zZSJf2kEEbmFtZYrqMBRiYi5wbGFuQ2hlY2tSdW5zLnJ1bpDqMAGC0+STAjY6ASoiMS92MS97bmFtZT1wcm9qZWN0cy8qL3BsYW5zLyovcGxhbkNoZWNrUnVufTpjYW5jZWxCpgEKD2NvbS5ieXRlYmFzZS52MUIQUGxhblNlcnZpY2VQcm90b1ABWjRnaXRodWIuY29tL2J5dGViYXNlL2J5dGViYXNlL2JhY2tlbmQvZ2VuZXJhdGVkLWdvL3YxogIDQlhYqgILQnl0ZWJhc2UuVjHKAgtCeXRlYmFzZVxWMeICF0J5dGViYXNlXFYxXEdQQk1ldGFkYXRh6gIMQnl0ZWJhc2U6OlYxYgZwcm90bzM", [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_sql_service]);+ fileDesc("ChV2MS9wbGFuX3NlcnZpY2UucHJvdG8SC2J5dGViYXNlLnYxIjkKDkdldFBsYW5SZXF1ZXN0EicKBG5hbWUYASABKAlCGeBBAvpBEwoRYnl0ZWJhc2UuY29tL1BsYW4idwoQTGlzdFBsYW5zUmVxdWVzdBIsCgZwYXJlbnQYASABKAlCHOBBAvpBFgoUYnl0ZWJhc2UuY29tL1Byb2plY3QSEQoJcGFnZV9zaXplGAIgASgFEhIKCnBhZ2VfdG9rZW4YAyABKAkSDgoGZmlsdGVyGAQgASgJIk4KEUxpc3RQbGFuc1Jlc3BvbnNlEiAKBXBsYW5zGAEgAygLMhEuYnl0ZWJhc2UudjEuUGxhbhIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkiZwoRQ3JlYXRlUGxhblJlcXV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kNhbmNlbFBsYW5DaGVja1J1blJlc3BvbnNlIl/aQQRuYW1liuowFGJiLnBsYW5DaGVja1J1bnMucnVukOowAYLT5JMCNjoBKiIxL3YxL3tuYW1lPXByb2plY3RzLyovcGxhbnMvKi9wbGFuQ2hlY2tSdW59OmNhbmNlbEKmAQoPY29tLmJ5dGViYXNlLnYxQhBQbGFuU2VydmljZVByb3RvUAFaNGdpdGh1Yi5jb20vYnl0ZWJhc2UvYnl0ZWJhc2UvYmFja2VuZC9nZW5lcmF0ZWQtZ28vdjGiAgNCWFiqAgtCeXRlYmFzZS5WMcoCC0J5dGViYXNlXFYx4gIXQnl0ZWJhc2VcVjFcR1BCTWV0YWRhdGHqAgxCeXRlYmFzZTo6VjFiBnByb3RvMw", [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_sql_service]);/*** Describes the message bytebase.v1.GetPlanRequest.@@ -40,137 +40,123 @@ export const ListPlansRequestSchema = /*@__PURE__*/export const ListPlansResponseSchema = /*@__PURE__*/messageDesc(file_v1_plan_service, 2);-/**- * Describes the message bytebase.v1.SearchPlansRequest.- * Use `create(SearchPlansRequestSchema)` to create a new message.- */-export const SearchPlansRequestSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 3);--/**- * Describes the message bytebase.v1.SearchPlansResponse.- * Use `create(SearchPlansResponseSchema)` to create a new message.- */-export const SearchPlansResponseSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 4);-/*** Describes the message bytebase.v1.CreatePlanRequest.* Use `create(CreatePlanRequestSchema)` to create a new message.*/export const CreatePlanRequestSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 5);+ messageDesc(file_v1_plan_service, 3);/*** Describes the message bytebase.v1.UpdatePlanRequest.* Use `create(UpdatePlanRequestSchema)` to create a new message.*/export const UpdatePlanRequestSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 6);+ messageDesc(file_v1_plan_service, 4);/*** Describes the message bytebase.v1.Plan.* Use `create(PlanSchema)` to create a new message.*/export const PlanSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 7);+ messageDesc(file_v1_plan_service, 5);/*** Describes the message bytebase.v1.Plan.Spec.* Use `create(Plan_SpecSchema)` to create a new message.*/export const Plan_SpecSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 7, 0);+ messageDesc(file_v1_plan_service, 5, 0);/*** Describes the message bytebase.v1.Plan.CreateDatabaseConfig.* Use `create(Plan_CreateDatabaseConfigSchema)` to create a new message.*/export const Plan_CreateDatabaseConfigSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 7, 1);+ messageDesc(file_v1_plan_service, 5, 1);/*** Describes the message bytebase.v1.Plan.ChangeDatabaseConfig.* Use `create(Plan_ChangeDatabaseConfigSchema)` to create a new message.*/export const Plan_ChangeDatabaseConfigSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 7, 2);+ messageDesc(file_v1_plan_service, 5, 2);/*** Describes the message bytebase.v1.Plan.ExportDataConfig.* Use `create(Plan_ExportDataConfigSchema)` to create a new message.*/export const Plan_ExportDataConfigSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 7, 3);+ messageDesc(file_v1_plan_service, 5, 3);/*** Describes the message bytebase.v1.GetPlanCheckRunRequest.* Use `create(GetPlanCheckRunRequestSchema)` to create a new message.*/export const GetPlanCheckRunRequestSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 8);+ messageDesc(file_v1_plan_service, 6);/*** Describes the message bytebase.v1.RunPlanChecksRequest.* Use `create(RunPlanChecksRequestSchema)` to create a new message.*/export const RunPlanChecksRequestSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 9);+ messageDesc(file_v1_plan_service, 7);/*** Describes the message bytebase.v1.RunPlanChecksResponse.* Use `create(RunPlanChecksResponseSchema)` to create a new message.*/export const RunPlanChecksResponseSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 10);+ messageDesc(file_v1_plan_service, 8);/*** Describes the message bytebase.v1.CancelPlanCheckRunRequest.* Use `create(CancelPlanCheckRunRequestSchema)` to create a new message.*/export const CancelPlanCheckRunRequestSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 11);+ messageDesc(file_v1_plan_service, 9);/*** Describes the message bytebase.v1.CancelPlanCheckRunResponse.* Use `create(CancelPlanCheckRunResponseSchema)` to create a new message.*/export const CancelPlanCheckRunResponseSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 12);+ messageDesc(file_v1_plan_service, 10);/*** Describes the message bytebase.v1.PlanCheckRun.* Use `create(PlanCheckRunSchema)` to create a new message.*/export const PlanCheckRunSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 13);+ messageDesc(file_v1_plan_service, 11);/*** Describes the message bytebase.v1.PlanCheckRun.Result.* Use `create(PlanCheckRun_ResultSchema)` to create a new message.*/export const PlanCheckRun_ResultSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 13, 0);+ messageDesc(file_v1_plan_service, 11, 0);/*** Describes the message bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.* Use `create(PlanCheckRun_Result_SqlSummaryReportSchema)` to create a new message.*/export const PlanCheckRun_Result_SqlSummaryReportSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 13, 0, 0);+ messageDesc(file_v1_plan_service, 11, 0, 0);/*** Describes the message bytebase.v1.PlanCheckRun.Result.SqlReviewReport.* Use `create(PlanCheckRun_Result_SqlReviewReportSchema)` to create a new message.*/export const PlanCheckRun_Result_SqlReviewReportSchema = /*@__PURE__*/- messageDesc(file_v1_plan_service, 13, 0, 1);+ messageDesc(file_v1_plan_service, 11, 0, 1);/*** Describes the enum bytebase.v1.PlanCheckRun.Result.Type.*/export const PlanCheckRun_Result_TypeSchema = /*@__PURE__*/- enumDesc(file_v1_plan_service, 13, 0, 0);+ enumDesc(file_v1_plan_service, 11, 0, 0);/*** @generated from enum bytebase.v1.PlanCheckRun.Result.Type@@ -182,7 +168,7 @@ export const PlanCheckRun_Result_Type = /*@__PURE__*/* Describes the enum bytebase.v1.PlanCheckRun.Status.*/export const PlanCheckRun_StatusSchema = /*@__PURE__*/- enumDesc(file_v1_plan_service, 13, 0);+ enumDesc(file_v1_plan_service, 11, 0);/*** @generated from enum bytebase.v1.PlanCheckRun.Statusdiff --git a/frontend/src/views/project/ProjectPlanDashboard.vue b/frontend/src/views/project/ProjectPlanDashboard.vueindex a809b6974b..a11ce7a9fa 100644--- a/frontend/src/views/project/ProjectPlanDashboard.vue+++ b/frontend/src/views/project/ProjectPlanDashboard.vue@@ -262,7 +262,7 @@ const fetchPlanList = async ({pageToken: string;pageSize: number;}) => {- const { nextPageToken, plans } = await planStore.searchPlans({+ const { nextPageToken, plans } = await planStore.listPlans({find: mergedPlanFind.value,pageSize,pageToken,diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex 38396788fa..5ca84b1a45 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -4467,6 +4467,30 @@ paths:the call that provided the page token.schema:type: string+ - name: filter+ in: query+ description: |-+ 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 "users/{email or id}" format, support "==" operator.+ - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.+ - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+ - 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"+ has_pipeline == false && has_issue == true+ title == "My Plan"+ title.matches("database migration")+ spec_type == "change_database_config"+ state == "ACTIVE"+ schema:+ type: stringresponses:"200":description: OK@@ -5191,40 +5215,6 @@ paths:application/json:schema:$ref: '#/components/schemas/Status'- /v1/projects/{project}/plans:search:- post:- tags:- - PlanService- description: |-- Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.- Permissions required: bb.plans.get- operationId: PlanService_SearchPlans- parameters:- - name: project- in: path- description: The project id.- required: true- schema:- type: string- requestBody:- content:- application/json:- schema:- $ref: '#/components/schemas/SearchPlansRequest'- required: true- responses:- "200":- description: OK- content:- application/json:- schema:- $ref: '#/components/schemas/SearchPlansResponse'- default:- description: Default error response- content:- application/json:- schema:- $ref: '#/components/schemas/Status'/v1/projects/{project}/policies:get:tags:@@ -13417,68 +13407,6 @@ components:description: |-A token, which can be sent as `page_token` to retrieve the next page.If this field is omitted, there are no subsequent pages.- SearchPlansRequest:- required:- - parent- type: object- properties:- parent:- type: string- description: |-- The parent, which owns this collection of plans.- Format: projects/{project}- Use "projects/-" to list all plans from all projects.- pageSize:- type: integer- description: |-- The maximum number of plans to return. The service may return fewer than- this value.- If unspecified, at most 10 plans will be returned.- The maximum value is 1000; values above 1000 will be coerced to 1000.- format: int32- pageToken:- type: string- description: |-- A page token, received from a previous `SearchPlans` call.- Provide this to retrieve the subsequent page.-- When paginating, all other parameters provided to `SearchPlans` must match- the call that provided the page token.- filter:- type: string- description: |-- 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 "users/{email or id}" format, support "==" operator.- - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.- - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".- - 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"- has_pipeline == false && has_issue == true- title == "My Plan"- title.matches("database migration")- spec_type == "change_database_config"- state == "ACTIVE"- SearchPlansResponse:- type: object- properties:- plans:- type: array- items:- $ref: '#/components/schemas/Plan'- description: The plans from the specified request.- nextPageToken:- type: string- description: |-- A token, which can be sent as `page_token` to retrieve the next page.- If this field is omitted, there are no subsequent pages.SearchProjectsRequest:type: objectproperties:diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex 83145e0554..8e8d248a56 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -466,8 +466,6 @@- [PlanCheckRun.Result.SqlSummaryReport](#bytebase-v1-PlanCheckRun-Result-SqlSummaryReport)- [RunPlanChecksRequest](#bytebase-v1-RunPlanChecksRequest)- [RunPlanChecksResponse](#bytebase-v1-RunPlanChecksResponse)- - [SearchPlansRequest](#bytebase-v1-SearchPlansRequest)- - [SearchPlansResponse](#bytebase-v1-SearchPlansResponse)- [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest)- [PlanCheckRun.Result.Type](#bytebase-v1-PlanCheckRun-Result-Type)@@ -7484,6 +7482,11 @@ SQLService executes SQL queries and manages query operations.| page_token | [string](#string) | | A page token, received from a previous `ListPlans` call. Provide this to retrieve the subsequent page.When paginating, all other parameters provided to `ListPlans` 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 "users/{email or id}" format, support "==" operator. - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator. - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false". - 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" has_pipeline == false && has_issue == true title == "My Plan" title.matches("database migration") spec_type == "change_database_config" state == "ACTIVE" |@@ -7741,46 +7744,6 @@ When paginating, all other parameters provided to `ListPlans` must match the cal-<a name="bytebase-v1-SearchPlansRequest"></a>--### SearchPlansRequest----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| parent | [string](#string) | | The parent, which owns this collection of plans. Format: projects/{project} Use "projects/-" to list all plans from all projects. |-| page_size | [int32](#int32) | | The maximum number of plans to return. The service may return fewer than this value. If unspecified, at most 10 plans will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |-| page_token | [string](#string) | | A page token, received from a previous `SearchPlans` call. Provide this to retrieve the subsequent page.--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 "users/{email or id}" format, support "==" operator. - create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator. - has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false". - 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" has_pipeline == false && has_issue == true title == "My Plan" title.matches("database migration") spec_type == "change_database_config" state == "ACTIVE" |-------<a name="bytebase-v1-SearchPlansResponse"></a>--### SearchPlansResponse----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| plans | [Plan](#bytebase-v1-Plan) | repeated | The plans from the specified request. |-| next_page_token | [string](#string) | | A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |------<a name="bytebase-v1-UpdatePlanRequest"></a>### UpdatePlanRequest@@ -7844,7 +7807,6 @@ PlanService manages deployment plans for database changes.| ----------- | ------------ | ------------- | ------------|| GetPlan | [GetPlanRequest](#bytebase-v1-GetPlanRequest) | [Plan](#bytebase-v1-Plan) | Retrieves a deployment plan by name. Permissions required: bb.plans.get || ListPlans | [ListPlansRequest](#bytebase-v1-ListPlansRequest) | [ListPlansResponse](#bytebase-v1-ListPlansResponse) | Lists deployment plans in a project. Permissions required: bb.plans.list |-| SearchPlans | [SearchPlansRequest](#bytebase-v1-SearchPlansRequest) | [SearchPlansResponse](#bytebase-v1-SearchPlansResponse) | Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query. Permissions required: bb.plans.get || CreatePlan | [CreatePlanRequest](#bytebase-v1-CreatePlanRequest) | [Plan](#bytebase-v1-Plan) | Creates a new deployment plan. Permissions required: bb.plans.create || UpdatePlan | [UpdatePlanRequest](#bytebase-v1-UpdatePlanRequest) | [Plan](#bytebase-v1-Plan) | UpdatePlan updates the plan. The plan creator and the user with bb.plans.update permission on the project can update the plan. Permissions required: bb.plans.update (or creator) || GetPlanCheckRun | [GetPlanCheckRunRequest](#bytebase-v1-GetPlanCheckRunRequest) | [PlanCheckRun](#bytebase-v1-PlanCheckRun) | Gets the plan check run for a deployment plan. Permissions required: bb.planCheckRuns.get |diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex a25c6bebe2..b5e800b476 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1959,14 +1959,6 @@<a href="#bytebase.v1.RunPlanChecksResponse"><span class="badge">M</span>RunPlanChecksResponse</a></li>- <li>- <a href="#bytebase.v1.SearchPlansRequest"><span class="badge">M</span>SearchPlansRequest</a>- </li>-- <li>- <a href="#bytebase.v1.SearchPlansResponse"><span class="badge">M</span>SearchPlansResponse</a>- </li>-<li><a href="#bytebase.v1.UpdatePlanRequest"><span class="badge">M</span>UpdatePlanRequest</a></li>@@ -21087,6 +21079,31 @@ When paginating, all other parameters provided to `ListPlans` must matchthe call that provided the page token. </p></td></tr>+ <tr>+ <td>filter</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>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 "users/{email or id}" format, support "==" operator.+- create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.+- has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".+- 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"+has_pipeline == false && has_issue == true+title == "My Plan"+title.matches("database migration")+spec_type == "change_database_config"+state == "ACTIVE" </p></td>+ </tr>+</tbody></table>@@ -21760,110 +21777,6 @@ If not set, all specs in the plan will be used. </p></td>- <h3 id="bytebase.v1.SearchPlansRequest">SearchPlansRequest</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>parent</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The parent, which owns this collection of plans.-Format: projects/{project}-Use "projects/-" to list all plans from all projects. </p></td>- </tr>-- <tr>- <td>page_size</td>- <td><a href="#int32">int32</a></td>- <td></td>- <td><p>The maximum number of plans to return. The service may return fewer than-this value.-If unspecified, at most 10 plans will be returned.-The maximum value is 1000; values above 1000 will be coerced to 1000. </p></td>- </tr>-- <tr>- <td>page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A page token, received from a previous `SearchPlans` call.-Provide this to retrieve the subsequent page.--When paginating, all other parameters provided to `SearchPlans` must match-the call that provided the page token. </p></td>- </tr>-- <tr>- <td>filter</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>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 "users/{email or id}" format, support "==" operator.-- create_time: the plan create time in "2006-01-02T15:04:05Z07:00" format, support ">=" or "<=" operator.-- has_rollout: the plan has rollout or not, support "==" operator, the value should be "true" or "false".-- 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"-has_pipeline == false && has_issue == true-title == "My Plan"-title.matches("database migration")-spec_type == "change_database_config"-state == "ACTIVE" </p></td>- </tr>-- </tbody>- </table>------ <h3 id="bytebase.v1.SearchPlansResponse">SearchPlansResponse</h3>- <p></p>--- <table class="field-table">- <thead>- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>- </thead>- <tbody>-- <tr>- <td>plans</td>- <td><a href="#bytebase.v1.Plan">Plan</a></td>- <td>repeated</td>- <td><p>The plans from the specified request. </p></td>- </tr>-- <tr>- <td>next_page_token</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>A token, which can be sent as `page_token` to retrieve the next page.-If this field is omitted, there are no subsequent pages. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.UpdatePlanRequest">UpdatePlanRequest</h3><p></p>@@ -22012,14 +21925,6 @@ Permissions required: bb.plans.get</p></td>Permissions required: bb.plans.list</p></td></tr>- <tr>- <td>SearchPlans</td>- <td><a href="#bytebase.v1.SearchPlansRequest">SearchPlansRequest</a></td>- <td><a href="#bytebase.v1.SearchPlansResponse">SearchPlansResponse</a></td>- <td><p>Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.-Permissions required: bb.plans.get</p></td>- </tr>-<tr><td>CreatePlan</td><td><a href="#bytebase.v1.CreatePlanRequest">CreatePlanRequest</a></td>@@ -22101,16 +22006,6 @@ Permissions required: bb.planCheckRuns.run</p></td>- <tr>- <td>SearchPlans</td>- <td>POST</td>- <td>/v1/{parent=projects/*}/plans:search</td>- <td>*</td>- </tr>----<tr><td>CreatePlan</td><td>POST</td>diff --git a/proto/v1/v1/plan_service.proto b/proto/v1/v1/plan_service.protoindex 14637594c2..1c5137dd7a 100644--- a/proto/v1/v1/plan_service.proto+++ b/proto/v1/v1/plan_service.proto@@ -35,18 +35,6 @@ service PlanService {option (bytebase.v1.auth_method) = IAM;}- // Search for plans that the caller has the bb.plans.get permission on and also satisfy the specified filter & query.- // Permissions required: bb.plans.get- rpc SearchPlans(SearchPlansRequest) returns (SearchPlansResponse) {- option (google.api.http) = {- post: "/v1/{parent=projects/*}/plans:search"- body: "*"- };- option (google.api.method_signature) = "parent";- option (bytebase.v1.permission) = "bb.plans.get";- option (bytebase.v1.auth_method) = CUSTOM;- }-// Creates a new deployment plan.// Permissions required: bb.plans.createrpc CreatePlan(CreatePlanRequest) returns (Plan) {@@ -138,35 +126,6 @@ message ListPlansRequest {// When paginating, all other parameters provided to `ListPlans` must match// the call that provided the page token.string page_token = 3;-}--message ListPlansResponse {- // The plans from the specified request.- repeated Plan plans = 1;-- // A token, which can be sent as `page_token` to retrieve the next page.- // If this field is omitted, there are no subsequent pages.- string next_page_token = 2;-}--message SearchPlansRequest {- // The parent, which owns this collection of plans.- // Format: projects/{project}- // Use "projects/-" to list all plans from all projects.- string parent = 1 [(google.api.field_behavior) = REQUIRED];-- // The maximum number of plans to return. The service may return fewer than- // this value.- // If unspecified, at most 10 plans will be returned.- // The maximum value is 1000; values above 1000 will be coerced to 1000.- int32 page_size = 2;-- // A page token, received from a previous `SearchPlans` call.- // Provide this to retrieve the subsequent page.- //- // When paginating, all other parameters provided to `SearchPlans` must match- // the call that provided the page token.- string page_token = 3;// 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@@ -190,7 +149,7 @@ message SearchPlansRequest {string filter = 4;}-message SearchPlansResponse {+message ListPlansResponse {// The plans from the specified request.repeated Plan plans = 1;