Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: move plan release (#16267)
Danny Xu6c268fb9bbe4
diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.goindex e40c4f8b17..0495493faf 100644--- a/backend/api/v1/plan_service.go+++ b/backend/api/v1/plan_service.go@@ -325,7 +325,7 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *v1pb.UpdatePlanRereturn nil, status.Errorf(codes.NotFound, "plan %q not found", request.Plan.Name)}- if oldPlan.Config.GetReleaseSource().GetRelease() != "" && slices.Contains(request.UpdateMask.Paths, "steps") {+ if storePlanConfigHasRelease(oldPlan.Config) && slices.Contains(request.UpdateMask.Paths, "specs") {return nil, status.Errorf(codes.InvalidArgument, "disallowed to update the plan steps because the plan is created from a release")}@@ -1067,9 +1067,6 @@ func (s *PlanService) PreviewPlan(ctx context.Context, request *v1pb.PreviewPlanSpecs: allSpecs,},},- ReleaseSource: &v1pb.Plan_ReleaseSource{- Release: request.Release,- },}return response, nil@@ -1124,14 +1121,12 @@ func getSpecs(database *store.DatabaseMessage, revisions []*store.RevisionMessagspec := &v1pb.Plan_Spec{Id: uuid.NewString(),- SpecReleaseSource: &v1pb.Plan_SpecReleaseSource{- File: common.FormatReleaseFile(releaseName, file.Id),- },Config: &v1pb.Plan_Spec_ChangeDatabaseConfig{ChangeDatabaseConfig: &v1pb.Plan_ChangeDatabaseConfig{- Type: convertReleaseFileChangeTypeToPlanSpecType(file.ChangeType),- Target: common.FormatDatabase(database.InstanceID, database.DatabaseName),- Sheet: file.Sheet,+ Type: convertReleaseFileChangeTypeToPlanSpecType(file.ChangeType),+ Target: common.FormatDatabase(database.InstanceID, database.DatabaseName),+ Sheet: file.Sheet,+ Release: common.FormatReleaseName(release.ProjectID, release.UID),},},}@@ -1307,7 +1302,25 @@ func getPlanDeployment(ctx context.Context, s *store.Store, specs []*storepb.Pla}func planHasRelease(plan *v1pb.Plan) bool {- return plan.GetReleaseSource().GetRelease() != ""+ for _, spec := range plan.GetSpecs() {+ if c, ok := spec.Config.(*v1pb.Plan_Spec_ChangeDatabaseConfig); ok {+ if c.ChangeDatabaseConfig.Release != "" {+ return true+ }+ }+ }+ return false+}++func storePlanConfigHasRelease(plan *storepb.PlanConfig) bool {+ for _, spec := range plan.GetSpecs() {+ if c, ok := spec.Config.(*storepb.PlanConfig_Spec_ChangeDatabaseConfig); ok {+ if c.ChangeDatabaseConfig.Release != "" {+ return true+ }+ }+ }+ return false}func getTaskTypeFromSpec(spec *v1pb.Plan_Spec) (base.TaskType, error) {diff --git a/backend/api/v1/rollout_service_converter.go b/backend/api/v1/rollout_service_converter.goindex d9dc281bb2..b59b71d2ed 100644--- a/backend/api/v1/rollout_service_converter.go+++ b/backend/api/v1/rollout_service_converter.go@@ -32,15 +32,12 @@ func convertToPlans(ctx context.Context, s *store.Store, plans []*store.PlanMessfunc convertToPlan(ctx context.Context, s *store.Store, plan *store.PlanMessage) (*v1pb.Plan, error) {p := &v1pb.Plan{- Name: common.FormatPlan(plan.ProjectID, plan.UID),- Issue: "",- Title: plan.Name,- Description: plan.Description,- Specs: convertToPlanSpecs(plan.Config.Specs), // Use specs field for output- Deployment: convertToPlanDeployment(plan.Config.Deployment),- ReleaseSource: &v1pb.Plan_ReleaseSource{- Release: plan.Config.GetReleaseSource().GetRelease(),- },+ Name: common.FormatPlan(plan.ProjectID, plan.UID),+ Issue: "",+ Title: plan.Name,+ Description: plan.Description,+ Specs: convertToPlanSpecs(plan.Config.Specs), // Use specs field for output+ Deployment: convertToPlanDeployment(plan.Config.Deployment),CreateTime: timestamppb.New(plan.CreatedAt),UpdateTime: timestamppb.New(plan.UpdatedAt),PlanCheckRunStatusCount: plan.PlanCheckRunStatusCount,@@ -73,9 +70,6 @@ func convertToPlanSpecs(specs []*storepb.PlanConfig_Spec) []*v1pb.Plan_Spec {func convertToPlanSpec(spec *storepb.PlanConfig_Spec) *v1pb.Plan_Spec {v1Spec := &v1pb.Plan_Spec{Id: spec.Id,- SpecReleaseSource: &v1pb.Plan_SpecReleaseSource{- File: spec.SpecReleaseSource.GetFile(),- },}switch v := spec.Config.(type) {@@ -112,6 +106,7 @@ func convertToPlanSpecChangeDatabaseConfig(config *storepb.PlanConfig_Spec_ChangChangeDatabaseConfig: &v1pb.Plan_ChangeDatabaseConfig{Target: c.Target,Sheet: c.Sheet,+ Release: c.Release,Type: convertToPlanSpecChangeDatabaseConfigType(c.Type),GhostFlags: c.GhostFlags,PreUpdateBackupDetail: &v1pb.Plan_ChangeDatabaseConfig_PreUpdateBackupDetail{@@ -186,18 +181,8 @@ func convertPlan(plan *v1pb.Plan) *storepb.PlanConfig {// At this point, plan.Specs should always be populated// (either originally or converted from steps at API entry point)return &storepb.PlanConfig{- Specs: convertPlanSpecs(plan.Specs),- ReleaseSource: convertPlanReleaseSource(plan.ReleaseSource),- Deployment: nil,- }-}--func convertPlanReleaseSource(s *v1pb.Plan_ReleaseSource) *storepb.PlanConfig_ReleaseSource {- if s == nil {- return nil- }- return &storepb.PlanConfig_ReleaseSource{- Release: s.Release,+ Specs: convertPlanSpecs(plan.Specs),+ Deployment: nil,}}@@ -240,9 +225,6 @@ func convertPlanSpecs(specs []*v1pb.Plan_Spec) []*storepb.PlanConfig_Spec {func convertPlanSpec(spec *v1pb.Plan_Spec) *storepb.PlanConfig_Spec {storeSpec := &storepb.PlanConfig_Spec{Id: spec.Id,- SpecReleaseSource: &storepb.PlanConfig_SpecReleaseSource{- File: spec.SpecReleaseSource.GetFile(),- },}switch v := spec.Config.(type) {@@ -288,6 +270,7 @@ func convertPlanSpecChangeDatabaseConfig(config *v1pb.Plan_Spec_ChangeDatabaseCoChangeDatabaseConfig: &storepb.PlanConfig_ChangeDatabaseConfig{Target: c.Target,Sheet: c.Sheet,+ Release: c.Release,Type: storepb.PlanConfig_ChangeDatabaseConfig_Type(c.Type),GhostFlags: c.GhostFlags,PreUpdateBackupDetail: preUpdateBackupDetail,diff --git a/backend/api/v1/rollout_service_task.go b/backend/api/v1/rollout_service_task.goindex 754663bb33..5e133f401a 100644--- a/backend/api/v1/rollout_service_task.go+++ b/backend/api/v1/rollout_service_task.go@@ -353,9 +353,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, sPayload: &storepb.TaskPayload{SpecId: spec.Id,SheetId: int32(sheetUID),- TaskReleaseSource: &storepb.TaskReleaseSource{- File: spec.SpecReleaseSource.GetFile(),- },},}return []*store.TaskMessage{taskCreate}, nil@@ -377,9 +374,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, sSpecId: spec.Id,SheetId: int32(sheetUID),Flags: c.GhostFlags,- TaskReleaseSource: &storepb.TaskReleaseSource{- File: spec.SpecReleaseSource.GetFile(),- },},}return []*store.TaskMessage{taskCreate}, nil@@ -402,9 +396,6 @@ func getTaskCreatesFromChangeDatabaseConfigDatabaseTarget(ctx context.Context, sSpecId: spec.Id,SheetId: int32(sheetUID),PreUpdateBackupDetail: preUpdateBackupDetail,- TaskReleaseSource: &storepb.TaskReleaseSource{- File: spec.SpecReleaseSource.GetFile(),- },},}return []*store.TaskMessage{taskCreate}, nildiff --git a/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue b/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vueindex 06d70d2486..326353dcf9 100644--- a/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue+++ b/frontend/src/components/IssueV1/components/Sidebar/ReleaseInfo.vue@@ -27,6 +27,10 @@ import { State } from "@/types/proto/v1/common";const { issue } = useIssueContext();const { release, ready } = useReleaseByName(- issue.value.planEntity?.releaseSource?.release || ""+ (() => {+ return issue.value.planEntity?.specs.find(spec =>+ spec.changeDatabaseConfig?.release+ )?.changeDatabaseConfig?.release || "";+ })());</script>diff --git a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vueindex 863f202c51..5bc5366368 100644--- a/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue+++ b/frontend/src/components/IssueV1/components/StatementSection/EditorView/EditorView.vue@@ -304,7 +304,7 @@ const allowEditStatementWhenCreating = computed(() => {return false;}// Do not allow to edit statement for the plan with release source.- if (issue.value.planEntity?.releaseSource?.release) {+ if ((issue.value.planEntity?.specs?.filter(spec => spec.changeDatabaseConfig?.release)??[]).length > 0) {return false;}return true;@@ -360,7 +360,7 @@ const shouldShowEditButton = computed(() => {return false;}// Do not allow to edit statement for the plan with release source.- if (issue.value.planEntity?.releaseSource?.release) {+ if ((issue.value.planEntity?.specs?.filter(spec => spec.changeDatabaseConfig?.release)??[]).length > 0) {return false;}// Will show another button group as [Upload][Cancel][Save]diff --git a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vueindex d92401d089..9948172335 100644--- a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue+++ b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue@@ -84,7 +84,7 @@ const schemaVersion = computed(() => {}// Always show the schema version for tasks from a release source.- if (issue.value.planEntity?.releaseSource?.release) {+ if ((issue.value.planEntity?.specs?.filter(spec => spec.changeDatabaseConfig?.release)??[]).length > 0) {return v;}if (isCreating.value) return "";diff --git a/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue b/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vueindex 375f914f47..960a2ff21d 100644--- a/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue+++ b/frontend/src/components/Release/ReleaseDetail/NavBar/PreviewPlanDetail.vue@@ -8,35 +8,6 @@<p class="w-full">{{ $t("release.tasks-to-apply") }}</p>- <div- v-for="spec in specList"- :key="spec.id"- class="max-w-52 flex flex-row items-center flex-wrap border px-2 py-1 rounded-md"- >- <DatabaseView- class="text-sm"- :database="spec.changeDatabaseConfig!.target"- :link="false"- :show-not-found="true"- />- <div class="w-full truncate space-x-1">- <NTag round :size="'small'">- "TODO(d): version"- </NTag>- <span class="text-sm">- {{- spec.specReleaseSource?.file- ? getReleaseFileStatement(- getFileByName(spec.specReleaseSource.file)!- )- : "-"- }}- </span>- </div>- </div>- <p v-if="specList.length === 0" class="text-gray-400 italic">- {{ $t("release.no-tasks-to-apply.self") }}- </p></div><div v-if="previewPlanResult.outOfOrderFiles.length > 0 && !allowOutOfOrder"><p>@@ -135,7 +106,6 @@ import type {Plan_Spec,PreviewPlanResponse,} from "@/types/proto/v1/plan_service";-import { getReleaseFileStatement } from "@/utils";const props = defineProps<{release: ComposedRelease;diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 2f8dc10155..09c75961d0 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -2549,9 +2549,6 @@"allow-out-of-order": "Allow out of order","archive-this-release": "Archive this release","total-files": "Total {count} files",- "no-tasks-to-apply": {- "self": "No tasks to apply"- },"actions": {"new-file": "New file","import-from-release": "Import from release"diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 6a5ce5e14b..b1e4a201c6 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -2549,9 +2549,6 @@"allow-out-of-order": "Permitir fuera de servicio","archive-this-release": "Archivar este comunicado","total-files": "Total de {count} archivos",- "no-tasks-to-apply": {- "self": "No hay tareas para aplicar"- },"actions": {"new-file": "Nuevo archivo","import-from-release": "Importar desde la versión"diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex bca28b3f95..073cb277e8 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -2549,9 +2549,6 @@"allow-out-of-order": "順序外を許可する","archive-this-release": "このリリースをアーカイブする","total-files": "合計 {count} ファイル",- "no-tasks-to-apply": {- "self": "適用するタスクはありません"- },"actions": {"new-file": "新しいファイル","import-from-release": "リリースからのインポート"diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 987b5615a5..021953d1ff 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -2549,9 +2549,6 @@"allow-out-of-order": "Cho phép không theo thứ tự","archive-this-release": "Lưu trữ bản phát hành này","total-files": "Tổng số {count} tệp",- "no-tasks-to-apply": {- "self": "Không có tác vụ nào để áp dụng"- },"actions": {"new-file": "Tệp mới","import-from-release": "Nhập từ bản phát hành"diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 9db41cb3a9..92348e2970 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -2549,9 +2549,6 @@"allow-out-of-order": "允许无序文件","archive-this-release": "归档此发布","total-files": "共 {count} 个文件",- "no-tasks-to-apply": {- "self": "没有可应用的任务"- },"actions": {"new-file": "新建文件","import-from-release": "从发布导入"diff --git a/frontend/src/types/proto/v1/plan_service.ts b/frontend/src/types/proto/v1/plan_service.tsindex 11a9a911e6..e18783d166 100644--- a/frontend/src/types/proto/v1/plan_service.ts+++ b/frontend/src/types/proto/v1/plan_service.ts@@ -161,7 +161,6 @@ export interface Plan {* - ERROR*/planCheckRunStatusCount: { [key: string]: number };- releaseSource: Plan_ReleaseSource | undefined;deployment: Plan_Deployment | undefined;}@@ -173,7 +172,6 @@ export interface Plan_Step {export interface Plan_Spec {/** A UUID4 string that uniquely identifies the Spec. */id: string;- specReleaseSource: Plan_SpecReleaseSource | undefined;createDatabaseConfig?: Plan_CreateDatabaseConfig | undefined;changeDatabaseConfig?: Plan_ChangeDatabaseConfig | undefined;exportDataConfig?: Plan_ExportDataConfig | undefined;@@ -224,6 +222,11 @@ export interface Plan_ChangeDatabaseConfig {* Format: projects/{project}/sheets/{sheet}*/sheet: string;+ /**+ * The resource name of the release.+ * Format: projects/{project}/releases/{release}+ */+ release: string;type: Plan_ChangeDatabaseConfig_Type;ghostFlags: { [key: string]: string };/** If set, a backup of the modified data will be created automatically before any changes are applied. */@@ -351,22 +354,6 @@ export interface Plan_Deployment_DatabaseGroupMapping {databases: string[];}-export interface Plan_ReleaseSource {- /**- * The release.- * Format: projects/{project}/releases/{release}- */- release: string;-}--export interface Plan_SpecReleaseSource {- /**- * Format: projects/{project}/releases/{release}/files/{file}- * {file} is URL path escaped.- */- file: string;-}-export interface ListPlanCheckRunsRequest {/*** The parent, which owns this collection of plan check runs.@@ -1241,7 +1228,6 @@ function createBasePlan(): Plan {createTime: undefined,updateTime: undefined,planCheckRunStatusCount: {},- releaseSource: undefined,deployment: undefined,};}@@ -1278,9 +1264,6 @@ export const Plan: MessageFns<Plan> = {Object.entries(message.planCheckRunStatusCount).forEach(([key, value]) => {Plan_PlanCheckRunStatusCountEntry.encode({ key: key as any, value }, writer.uint32(90).fork()).join();});- if (message.releaseSource !== undefined) {- Plan_ReleaseSource.encode(message.releaseSource, writer.uint32(98).fork()).join();- }if (message.deployment !== undefined) {Plan_Deployment.encode(message.deployment, writer.uint32(106).fork()).join();}@@ -1377,14 +1360,6 @@ export const Plan: MessageFns<Plan> = {}continue;}- case 12: {- if (tag !== 98) {- break;- }-- message.releaseSource = Plan_ReleaseSource.decode(reader, reader.uint32());- continue;- }case 13: {if (tag !== 106) {break;@@ -1440,9 +1415,6 @@ export const Plan: MessageFns<Plan> = {});}}- if (message.releaseSource !== undefined) {- obj.releaseSource = Plan_ReleaseSource.toJSON(message.releaseSource);- }if (message.deployment !== undefined) {obj.deployment = Plan_Deployment.toJSON(message.deployment);}@@ -1475,9 +1447,6 @@ export const Plan: MessageFns<Plan> = {}return acc;}, {});- message.releaseSource = (object.releaseSource !== undefined && object.releaseSource !== null)- ? Plan_ReleaseSource.fromPartial(object.releaseSource)- : undefined;message.deployment = (object.deployment !== undefined && object.deployment !== null)? Plan_Deployment.fromPartial(object.deployment): undefined;@@ -1555,13 +1524,7 @@ export const Plan_Step: MessageFns<Plan_Step> = {};function createBasePlan_Spec(): Plan_Spec {- return {- id: "",- specReleaseSource: undefined,- createDatabaseConfig: undefined,- changeDatabaseConfig: undefined,- exportDataConfig: undefined,- };+ return { id: "", createDatabaseConfig: undefined, changeDatabaseConfig: undefined, exportDataConfig: undefined };}export const Plan_Spec: MessageFns<Plan_Spec> = {@@ -1569,9 +1532,6 @@ export const Plan_Spec: MessageFns<Plan_Spec> = {if (message.id !== "") {writer.uint32(42).string(message.id);}- if (message.specReleaseSource !== undefined) {- Plan_SpecReleaseSource.encode(message.specReleaseSource, writer.uint32(66).fork()).join();- }if (message.createDatabaseConfig !== undefined) {Plan_CreateDatabaseConfig.encode(message.createDatabaseConfig, writer.uint32(10).fork()).join();}@@ -1599,14 +1559,6 @@ export const Plan_Spec: MessageFns<Plan_Spec> = {message.id = reader.string();continue;}- case 8: {- if (tag !== 66) {- break;- }-- message.specReleaseSource = Plan_SpecReleaseSource.decode(reader, reader.uint32());- continue;- }case 1: {if (tag !== 10) {break;@@ -1645,9 +1597,6 @@ export const Plan_Spec: MessageFns<Plan_Spec> = {if (message.id !== "") {obj.id = message.id;}- if (message.specReleaseSource !== undefined) {- obj.specReleaseSource = Plan_SpecReleaseSource.toJSON(message.specReleaseSource);- }if (message.createDatabaseConfig !== undefined) {obj.createDatabaseConfig = Plan_CreateDatabaseConfig.toJSON(message.createDatabaseConfig);}@@ -1666,9 +1615,6 @@ export const Plan_Spec: MessageFns<Plan_Spec> = {fromPartial(object: DeepPartial<Plan_Spec>): Plan_Spec {const message = createBasePlan_Spec();message.id = object.id ?? "";- message.specReleaseSource = (object.specReleaseSource !== undefined && object.specReleaseSource !== null)- ? Plan_SpecReleaseSource.fromPartial(object.specReleaseSource)- : undefined;message.createDatabaseConfig = (object.createDatabaseConfig !== undefined && object.createDatabaseConfig !== null)? Plan_CreateDatabaseConfig.fromPartial(object.createDatabaseConfig): undefined;@@ -1923,6 +1869,7 @@ function createBasePlan_ChangeDatabaseConfig(): Plan_ChangeDatabaseConfig {return {target: "",sheet: "",+ release: "",type: Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED,ghostFlags: {},preUpdateBackupDetail: undefined,@@ -1937,6 +1884,9 @@ export const Plan_ChangeDatabaseConfig: MessageFns<Plan_ChangeDatabaseConfig> =if (message.sheet !== "") {writer.uint32(18).string(message.sheet);}+ if (message.release !== "") {+ writer.uint32(74).string(message.release);+ }if (message.type !== Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED) {writer.uint32(24).int32(plan_ChangeDatabaseConfig_TypeToNumber(message.type));}@@ -1973,6 +1923,14 @@ export const Plan_ChangeDatabaseConfig: MessageFns<Plan_ChangeDatabaseConfig> =message.sheet = reader.string();continue;}+ case 9: {+ if (tag !== 74) {+ break;+ }++ message.release = reader.string();+ continue;+ }case 3: {if (tag !== 24) {break;@@ -2020,6 +1978,9 @@ export const Plan_ChangeDatabaseConfig: MessageFns<Plan_ChangeDatabaseConfig> =if (message.sheet !== "") {obj.sheet = message.sheet;}+ if (message.release !== "") {+ obj.release = message.release;+ }if (message.type !== Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED) {obj.type = plan_ChangeDatabaseConfig_TypeToJSON(message.type);}@@ -2045,6 +2006,7 @@ export const Plan_ChangeDatabaseConfig: MessageFns<Plan_ChangeDatabaseConfig> =const message = createBasePlan_ChangeDatabaseConfig();message.target = object.target ?? "";message.sheet = object.sheet ?? "";+ message.release = object.release ?? "";message.type = object.type ?? Plan_ChangeDatabaseConfig_Type.TYPE_UNSPECIFIED;message.ghostFlags = Object.entries(object.ghostFlags ?? {}).reduce<{ [key: string]: string }>((acc, [key, value]) => {@@ -2437,114 +2399,6 @@ export const Plan_Deployment_DatabaseGroupMapping: MessageFns<Plan_Deployment_Da},};-function createBasePlan_ReleaseSource(): Plan_ReleaseSource {- return { release: "" };-}--export const Plan_ReleaseSource: MessageFns<Plan_ReleaseSource> = {- encode(message: Plan_ReleaseSource, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.release !== "") {- writer.uint32(10).string(message.release);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): Plan_ReleaseSource {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_ReleaseSource();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.release = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- toJSON(message: Plan_ReleaseSource): unknown {- const obj: any = {};- if (message.release !== "") {- obj.release = message.release;- }- return obj;- },-- create(base?: DeepPartial<Plan_ReleaseSource>): Plan_ReleaseSource {- return Plan_ReleaseSource.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Plan_ReleaseSource>): Plan_ReleaseSource {- const message = createBasePlan_ReleaseSource();- message.release = object.release ?? "";- return message;- },-};--function createBasePlan_SpecReleaseSource(): Plan_SpecReleaseSource {- return { file: "" };-}--export const Plan_SpecReleaseSource: MessageFns<Plan_SpecReleaseSource> = {- encode(message: Plan_SpecReleaseSource, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {- if (message.file !== "") {- writer.uint32(10).string(message.file);- }- return writer;- },-- decode(input: BinaryReader | Uint8Array, length?: number): Plan_SpecReleaseSource {- const reader = input instanceof BinaryReader ? input : new BinaryReader(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBasePlan_SpecReleaseSource();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1: {- if (tag !== 10) {- break;- }-- message.file = reader.string();- continue;- }- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skip(tag & 7);- }- return message;- },-- toJSON(message: Plan_SpecReleaseSource): unknown {- const obj: any = {};- if (message.file !== "") {- obj.file = message.file;- }- return obj;- },-- create(base?: DeepPartial<Plan_SpecReleaseSource>): Plan_SpecReleaseSource {- return Plan_SpecReleaseSource.fromPartial(base ?? {});- },- fromPartial(object: DeepPartial<Plan_SpecReleaseSource>): Plan_SpecReleaseSource {- const message = createBasePlan_SpecReleaseSource();- message.file = object.file ?? "";- return message;- },-};-function createBaseListPlanCheckRunsRequest(): ListPlanCheckRunsRequest {return { parent: "", pageSize: 0, pageToken: "", latestOnly: false };}diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yamlindex a3ae832715..2fff831ccd 100644--- a/proto/gen/grpc-doc/openapi.yaml+++ b/proto/gen/grpc-doc/openapi.yaml@@ -11109,8 +11109,6 @@ components:- SUCCESS- WARNING- ERROR- releaseSource:- $ref: '#/components/schemas/Plan_ReleaseSource'deployment:$ref: '#/components/schemas/Plan_Deployment'PlanCheckRun:@@ -11191,6 +11189,11 @@ components:description: |-The resource name of the sheet.Format: projects/{project}/sheets/{sheet}+ release:+ type: string+ description: |-+ The resource name of the release.+ Format: projects/{project}/releases/{release}type:enum:- TYPE_UNSPECIFIED@@ -11285,36 +11288,18 @@ components:description: |-The zip password provide by users.Leave it empty if no needs to encrypt the zip file.- Plan_ReleaseSource:- type: object- properties:- release:- type: string- description: |-- The release.- Format: projects/{project}/releases/{release}Plan_Spec:type: objectproperties:id:type: stringdescription: A UUID4 string that uniquely identifies the Spec.- specReleaseSource:- $ref: '#/components/schemas/Plan_SpecReleaseSource'createDatabaseConfig:$ref: '#/components/schemas/Plan_CreateDatabaseConfig'changeDatabaseConfig:$ref: '#/components/schemas/Plan_ChangeDatabaseConfig'exportDataConfig:$ref: '#/components/schemas/Plan_ExportDataConfig'- Plan_SpecReleaseSource:- type: object- properties:- file:- type: string- description: |-- Format: projects/{project}/releases/{release}/files/{file}- {file} is URL path escaped.Plan_Step:type: objectproperties:diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex 4ce7a5f2c9..53db98b31f 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -184,9 +184,7 @@- [PlanConfig.Deployment](#bytebase-store-PlanConfig-Deployment)- [PlanConfig.Deployment.DatabaseGroupMapping](#bytebase-store-PlanConfig-Deployment-DatabaseGroupMapping)- [PlanConfig.ExportDataConfig](#bytebase-store-PlanConfig-ExportDataConfig)- - [PlanConfig.ReleaseSource](#bytebase-store-PlanConfig-ReleaseSource)- [PlanConfig.Spec](#bytebase-store-PlanConfig-Spec)- - [PlanConfig.SpecReleaseSource](#bytebase-store-PlanConfig-SpecReleaseSource)- [PlanConfig.ChangeDatabaseConfig.Type](#bytebase-store-PlanConfig-ChangeDatabaseConfig-Type)@@ -2968,7 +2966,6 @@ InstanceRole is the API message for instance role.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || specs | [PlanConfig.Spec](#bytebase-store-PlanConfig-Spec) | repeated | |-| release_source | [PlanConfig.ReleaseSource](#bytebase-store-PlanConfig-ReleaseSource) | | || deployment | [PlanConfig.Deployment](#bytebase-store-PlanConfig-Deployment) | | |@@ -2986,6 +2983,7 @@ InstanceRole is the API message for instance role.| ----- | ---- | ----- | ----------- || target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. || sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |+| release | [string](#string) | | The resource name of the release. Format: projects/{project}/releases/{release} || type | [PlanConfig.ChangeDatabaseConfig.Type](#bytebase-store-PlanConfig-ChangeDatabaseConfig-Type) | | || ghost_flags | [PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry](#bytebase-store-PlanConfig-ChangeDatabaseConfig-GhostFlagsEntry) | repeated | || pre_update_backup_detail | [PreUpdateBackupDetail](#bytebase-store-PreUpdateBackupDetail) | optional | If set, a backup of the modified data will be created automatically before any changes are applied. |@@ -3083,21 +3081,6 @@ InstanceRole is the API message for instance role.-<a name="bytebase-store-PlanConfig-ReleaseSource"></a>--### PlanConfig.ReleaseSource----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| release | [string](#string) | | The release. Format: projects/{project}/releases/{release} |------<a name="bytebase-store-PlanConfig-Spec"></a>### PlanConfig.Spec@@ -3107,7 +3090,6 @@ InstanceRole is the API message for instance role.| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. |-| spec_release_source | [PlanConfig.SpecReleaseSource](#bytebase-store-PlanConfig-SpecReleaseSource) | | || create_database_config | [PlanConfig.CreateDatabaseConfig](#bytebase-store-PlanConfig-CreateDatabaseConfig) | | || change_database_config | [PlanConfig.ChangeDatabaseConfig](#bytebase-store-PlanConfig-ChangeDatabaseConfig) | | || export_data_config | [PlanConfig.ExportDataConfig](#bytebase-store-PlanConfig-ExportDataConfig) | | |@@ -3116,21 +3098,6 @@ InstanceRole is the API message for instance role.--<a name="bytebase-store-PlanConfig-SpecReleaseSource"></a>--### PlanConfig.SpecReleaseSource----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| file | [string](#string) | | Format: projects/{project}/releases/{release}/files/{id} |-----diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.htmlindex f04586510f..de695fe625 100644--- a/proto/gen/grpc-doc/store/index.html+++ b/proto/gen/grpc-doc/store/index.html@@ -909,18 +909,10 @@<a href="#bytebase.store.PlanConfig.ExportDataConfig"><span class="badge">M</span>PlanConfig.ExportDataConfig</a></li>- <li>- <a href="#bytebase.store.PlanConfig.ReleaseSource"><span class="badge">M</span>PlanConfig.ReleaseSource</a>- </li>-<li><a href="#bytebase.store.PlanConfig.Spec"><span class="badge">M</span>PlanConfig.Spec</a></li>- <li>- <a href="#bytebase.store.PlanConfig.SpecReleaseSource"><span class="badge">M</span>PlanConfig.SpecReleaseSource</a>- </li>-<li><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig.Type"><span class="badge">E</span>PlanConfig.ChangeDatabaseConfig.Type</a>@@ -8309,13 +8301,6 @@ Format: instances/{instance}/databases/{database} </p></td><td><p> </p></td></tr>- <tr>- <td>release_source</td>- <td><a href="#bytebase.store.PlanConfig.ReleaseSource">PlanConfig.ReleaseSource</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>deployment</td><td><a href="#bytebase.store.PlanConfig.Deployment">PlanConfig.Deployment</a></td>@@ -8357,6 +8342,14 @@ Format: projects/{project}/databaseGroups/{databaseGroup}. </p></td>Format: projects/{project}/sheets/{sheet} </p></td></tr>+ <tr>+ <td>release</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the release.+Format: projects/{project}/releases/{release} </p></td>+ </tr>+<tr><td>type</td><td><a href="#bytebase.store.PlanConfig.ChangeDatabaseConfig.Type">PlanConfig.ChangeDatabaseConfig.Type</a></td>@@ -8602,31 +8595,6 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.store.PlanConfig.ReleaseSource">PlanConfig.ReleaseSource</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>release</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The release.-Format: projects/{project}/releases/{release} </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.store.PlanConfig.Spec">PlanConfig.Spec</h3><p></p>@@ -8644,13 +8612,6 @@ Format: projects/{project}/releases/{release} </p></td><td><p>A UUID4 string that uniquely identifies the Spec. </p></td></tr>- <tr>- <td>spec_release_source</td>- <td><a href="#bytebase.store.PlanConfig.SpecReleaseSource">PlanConfig.SpecReleaseSource</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>create_database_config</td><td><a href="#bytebase.store.PlanConfig.CreateDatabaseConfig">PlanConfig.CreateDatabaseConfig</a></td>@@ -8679,30 +8640,6 @@ Format: projects/{project}/releases/{release} </p></td>- <h3 id="bytebase.store.PlanConfig.SpecReleaseSource">PlanConfig.SpecReleaseSource</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>file</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/releases/{release}/files/{id} </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.store.PlanConfig.ChangeDatabaseConfig.Type">PlanConfig.ChangeDatabaseConfig.Type</h3>diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.mdindex a4e7e7ee65..36ead15814 100644--- a/proto/gen/grpc-doc/v1/README.md+++ b/proto/gen/grpc-doc/v1/README.md@@ -452,9 +452,7 @@- [Plan.Deployment.DatabaseGroupMapping](#bytebase-v1-Plan-Deployment-DatabaseGroupMapping)- [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig)- [Plan.PlanCheckRunStatusCountEntry](#bytebase-v1-Plan-PlanCheckRunStatusCountEntry)- - [Plan.ReleaseSource](#bytebase-v1-Plan-ReleaseSource)- [Plan.Spec](#bytebase-v1-Plan-Spec)- - [Plan.SpecReleaseSource](#bytebase-v1-Plan-SpecReleaseSource)- [Plan.Step](#bytebase-v1-Plan-Step)- [PlanCheckRun](#bytebase-v1-PlanCheckRun)- [PlanCheckRun.Result](#bytebase-v1-PlanCheckRun-Result)@@ -7318,7 +7316,6 @@ When paginating, all other parameters provided to `ListPlans` must match the cal| create_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | || update_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | | || plan_check_run_status_count | [Plan.PlanCheckRunStatusCountEntry](#bytebase-v1-Plan-PlanCheckRunStatusCountEntry) | repeated | The status count of the latest plan check runs. Keys are: - SUCCESS - WARNING - ERROR |-| release_source | [Plan.ReleaseSource](#bytebase-v1-Plan-ReleaseSource) | | || deployment | [Plan.Deployment](#bytebase-v1-Plan-Deployment) | | |@@ -7336,6 +7333,7 @@ When paginating, all other parameters provided to `ListPlans` must match the cal| ----- | ---- | ----- | ----------- || target | [string](#string) | | The resource name of the target. Format: instances/{instance-id}/databases/{database-name}. Format: projects/{project}/databaseGroups/{databaseGroup}. || sheet | [string](#string) | | The resource name of the sheet. Format: projects/{project}/sheets/{sheet} |+| release | [string](#string) | | The resource name of the release. Format: projects/{project}/releases/{release} || type | [Plan.ChangeDatabaseConfig.Type](#bytebase-v1-Plan-ChangeDatabaseConfig-Type) | | || ghost_flags | [Plan.ChangeDatabaseConfig.GhostFlagsEntry](#bytebase-v1-Plan-ChangeDatabaseConfig-GhostFlagsEntry) | repeated | || pre_update_backup_detail | [Plan.ChangeDatabaseConfig.PreUpdateBackupDetail](#bytebase-v1-Plan-ChangeDatabaseConfig-PreUpdateBackupDetail) | optional | If set, a backup of the modified data will be created automatically before any changes are applied. |@@ -7464,21 +7462,6 @@ When paginating, all other parameters provided to `ListPlans` must match the cal-<a name="bytebase-v1-Plan-ReleaseSource"></a>--### Plan.ReleaseSource----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| release | [string](#string) | | The release. Format: projects/{project}/releases/{release} |------<a name="bytebase-v1-Plan-Spec"></a>### Plan.Spec@@ -7488,7 +7471,6 @@ When paginating, all other parameters provided to `ListPlans` must match the cal| Field | Type | Label | Description || ----- | ---- | ----- | ----------- || id | [string](#string) | | A UUID4 string that uniquely identifies the Spec. |-| spec_release_source | [Plan.SpecReleaseSource](#bytebase-v1-Plan-SpecReleaseSource) | | || create_database_config | [Plan.CreateDatabaseConfig](#bytebase-v1-Plan-CreateDatabaseConfig) | | || change_database_config | [Plan.ChangeDatabaseConfig](#bytebase-v1-Plan-ChangeDatabaseConfig) | | || export_data_config | [Plan.ExportDataConfig](#bytebase-v1-Plan-ExportDataConfig) | | |@@ -7498,21 +7480,6 @@ When paginating, all other parameters provided to `ListPlans` must match the cal-<a name="bytebase-v1-Plan-SpecReleaseSource"></a>--### Plan.SpecReleaseSource----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| file | [string](#string) | | Format: projects/{project}/releases/{release}/files/{file} {file} is URL path escaped. |------<a name="bytebase-v1-Plan-Step"></a>### Plan.Stepdiff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.htmlindex 8e5989e655..a78aa9c20b 100644--- a/proto/gen/grpc-doc/v1/index.html+++ b/proto/gen/grpc-doc/v1/index.html@@ -1902,18 +1902,10 @@<a href="#bytebase.v1.Plan.PlanCheckRunStatusCountEntry"><span class="badge">M</span>Plan.PlanCheckRunStatusCountEntry</a></li>- <li>- <a href="#bytebase.v1.Plan.ReleaseSource"><span class="badge">M</span>Plan.ReleaseSource</a>- </li>-<li><a href="#bytebase.v1.Plan.Spec"><span class="badge">M</span>Plan.Spec</a></li>- <li>- <a href="#bytebase.v1.Plan.SpecReleaseSource"><span class="badge">M</span>Plan.SpecReleaseSource</a>- </li>-<li><a href="#bytebase.v1.Plan.Step"><span class="badge">M</span>Plan.Step</a></li>@@ -20446,13 +20438,6 @@ Keys are:- ERROR </p></td></tr>- <tr>- <td>release_source</td>- <td><a href="#bytebase.v1.Plan.ReleaseSource">Plan.ReleaseSource</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>deployment</td><td><a href="#bytebase.v1.Plan.Deployment">Plan.Deployment</a></td>@@ -20494,6 +20479,14 @@ Format: projects/{project}/databaseGroups/{databaseGroup}. </p></td>Format: projects/{project}/sheets/{sheet} </p></td></tr>+ <tr>+ <td>release</td>+ <td><a href="#string">string</a></td>+ <td></td>+ <td><p>The resource name of the release.+Format: projects/{project}/releases/{release} </p></td>+ </tr>+<tr><td>type</td><td><a href="#bytebase.v1.Plan.ChangeDatabaseConfig.Type">Plan.ChangeDatabaseConfig.Type</a></td>@@ -20795,31 +20788,6 @@ Leave it empty if no needs to encrypt the zip file. </p></td>- <h3 id="bytebase.v1.Plan.ReleaseSource">Plan.ReleaseSource</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>release</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>The release.-Format: projects/{project}/releases/{release} </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.Plan.Spec">Plan.Spec</h3><p></p>@@ -20837,13 +20805,6 @@ Format: projects/{project}/releases/{release} </p></td><td><p>A UUID4 string that uniquely identifies the Spec. </p></td></tr>- <tr>- <td>spec_release_source</td>- <td><a href="#bytebase.v1.Plan.SpecReleaseSource">Plan.SpecReleaseSource</a></td>- <td></td>- <td><p> </p></td>- </tr>-<tr><td>create_database_config</td><td><a href="#bytebase.v1.Plan.CreateDatabaseConfig">Plan.CreateDatabaseConfig</a></td>@@ -20872,31 +20833,6 @@ Format: projects/{project}/releases/{release} </p></td>- <h3 id="bytebase.v1.Plan.SpecReleaseSource">Plan.SpecReleaseSource</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>file</td>- <td><a href="#string">string</a></td>- <td></td>- <td><p>Format: projects/{project}/releases/{release}/files/{file}-{file} is URL path escaped. </p></td>- </tr>-- </tbody>- </table>-----<h3 id="bytebase.v1.Plan.Step">Plan.Step</h3><p></p>diff --git a/proto/generated-go/store/plan.pb.go b/proto/generated-go/store/plan.pb.goindex 1f76ff1a83..d4ba771de6 100644--- a/proto/generated-go/store/plan.pb.go+++ b/proto/generated-go/store/plan.pb.go@@ -83,10 +83,9 @@ func (PlanConfig_ChangeDatabaseConfig_Type) EnumDescriptor() ([]byte, []int) {}type PlanConfig struct {- state protoimpl.MessageState `protogen:"open.v1"`- Specs []*PlanConfig_Spec `protobuf:"bytes,1,rep,name=specs,proto3" json:"specs,omitempty"`- ReleaseSource *PlanConfig_ReleaseSource `protobuf:"bytes,3,opt,name=release_source,json=releaseSource,proto3" json:"release_source,omitempty"`- Deployment *PlanConfig_Deployment `protobuf:"bytes,4,opt,name=deployment,proto3" json:"deployment,omitempty"`+ state protoimpl.MessageState `protogen:"open.v1"`+ Specs []*PlanConfig_Spec `protobuf:"bytes,1,rep,name=specs,proto3" json:"specs,omitempty"`+ Deployment *PlanConfig_Deployment `protobuf:"bytes,4,opt,name=deployment,proto3" json:"deployment,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -128,13 +127,6 @@ func (x *PlanConfig) GetSpecs() []*PlanConfig_Spec {return nil}-func (x *PlanConfig) GetReleaseSource() *PlanConfig_ReleaseSource {- if x != nil {- return x.ReleaseSource- }- return nil-}-func (x *PlanConfig) GetDeployment() *PlanConfig_Deployment {if x != nil {return x.Deployment@@ -145,8 +137,7 @@ func (x *PlanConfig) GetDeployment() *PlanConfig_Deployment {type PlanConfig_Spec struct {state protoimpl.MessageState `protogen:"open.v1"`// A UUID4 string that uniquely identifies the Spec.- Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`- SpecReleaseSource *PlanConfig_SpecReleaseSource `protobuf:"bytes,8,opt,name=spec_release_source,json=specReleaseSource,proto3" json:"spec_release_source,omitempty"`+ Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`// Types that are valid to be assigned to Config://// *PlanConfig_Spec_CreateDatabaseConfig@@ -194,13 +185,6 @@ func (x *PlanConfig_Spec) GetId() string {return ""}-func (x *PlanConfig_Spec) GetSpecReleaseSource() *PlanConfig_SpecReleaseSource {- if x != nil {- return x.SpecReleaseSource- }- return nil-}-func (x *PlanConfig_Spec) GetConfig() isPlanConfig_Spec_Config {if x != nil {return x.Config@@ -376,7 +360,10 @@ type PlanConfig_ChangeDatabaseConfig struct {Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`// The resource name of the sheet.// Format: projects/{project}/sheets/{sheet}- Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`+ Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`+ // The resource name of the release.+ // Format: projects/{project}/releases/{release}+ Release string `protobuf:"bytes,9,opt,name=release,proto3" json:"release,omitempty"`Type PlanConfig_ChangeDatabaseConfig_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.store.PlanConfig_ChangeDatabaseConfig_Type" json:"type,omitempty"`GhostFlags map[string]string `protobuf:"bytes,7,rep,name=ghost_flags,json=ghostFlags,proto3" json:"ghost_flags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`// If set, a backup of the modified data will be created automatically before any changes are applied.@@ -429,6 +416,13 @@ func (x *PlanConfig_ChangeDatabaseConfig) GetSheet() string {return ""}+func (x *PlanConfig_ChangeDatabaseConfig) GetRelease() string {+ if x != nil {+ return x.Release+ }+ return ""+}+func (x *PlanConfig_ChangeDatabaseConfig) GetType() PlanConfig_ChangeDatabaseConfig_Type {if x != nil {return x.Type@@ -525,97 +519,6 @@ func (x *PlanConfig_ExportDataConfig) GetPassword() string {return ""}-type PlanConfig_ReleaseSource struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The release.- // Format: projects/{project}/releases/{release}- Release string `protobuf:"bytes,1,opt,name=release,proto3" json:"release,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *PlanConfig_ReleaseSource) Reset() {- *x = PlanConfig_ReleaseSource{}- mi := &file_store_plan_proto_msgTypes[5]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *PlanConfig_ReleaseSource) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*PlanConfig_ReleaseSource) ProtoMessage() {}--func (x *PlanConfig_ReleaseSource) ProtoReflect() protoreflect.Message {- mi := &file_store_plan_proto_msgTypes[5]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use PlanConfig_ReleaseSource.ProtoReflect.Descriptor instead.-func (*PlanConfig_ReleaseSource) Descriptor() ([]byte, []int) {- return file_store_plan_proto_rawDescGZIP(), []int{0, 4}-}--func (x *PlanConfig_ReleaseSource) GetRelease() string {- if x != nil {- return x.Release- }- return ""-}--type PlanConfig_SpecReleaseSource struct {- state protoimpl.MessageState `protogen:"open.v1"`- // Format: projects/{project}/releases/{release}/files/{id}- File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *PlanConfig_SpecReleaseSource) Reset() {- *x = PlanConfig_SpecReleaseSource{}- mi := &file_store_plan_proto_msgTypes[6]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *PlanConfig_SpecReleaseSource) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*PlanConfig_SpecReleaseSource) ProtoMessage() {}--func (x *PlanConfig_SpecReleaseSource) ProtoReflect() protoreflect.Message {- mi := &file_store_plan_proto_msgTypes[6]- if x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use PlanConfig_SpecReleaseSource.ProtoReflect.Descriptor instead.-func (*PlanConfig_SpecReleaseSource) Descriptor() ([]byte, []int) {- return file_store_plan_proto_rawDescGZIP(), []int{0, 5}-}--func (x *PlanConfig_SpecReleaseSource) GetFile() string {- if x != nil {- return x.File- }- return ""-}-type PlanConfig_Deployment struct {state protoimpl.MessageState `protogen:"open.v1"`// The environments deploy order.@@ -628,7 +531,7 @@ type PlanConfig_Deployment struct {func (x *PlanConfig_Deployment) Reset() {*x = PlanConfig_Deployment{}- mi := &file_store_plan_proto_msgTypes[7]+ mi := &file_store_plan_proto_msgTypes[5]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -640,7 +543,7 @@ func (x *PlanConfig_Deployment) String() string {func (*PlanConfig_Deployment) ProtoMessage() {}func (x *PlanConfig_Deployment) ProtoReflect() protoreflect.Message {- mi := &file_store_plan_proto_msgTypes[7]+ mi := &file_store_plan_proto_msgTypes[5]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -653,7 +556,7 @@ func (x *PlanConfig_Deployment) ProtoReflect() protoreflect.Message {// Deprecated: Use PlanConfig_Deployment.ProtoReflect.Descriptor instead.func (*PlanConfig_Deployment) Descriptor() ([]byte, []int) {- return file_store_plan_proto_rawDescGZIP(), []int{0, 6}+ return file_store_plan_proto_rawDescGZIP(), []int{0, 4}}func (x *PlanConfig_Deployment) GetEnvironments() []string {@@ -682,7 +585,7 @@ type PlanConfig_Deployment_DatabaseGroupMapping struct {func (x *PlanConfig_Deployment_DatabaseGroupMapping) Reset() {*x = PlanConfig_Deployment_DatabaseGroupMapping{}- mi := &file_store_plan_proto_msgTypes[9]+ mi := &file_store_plan_proto_msgTypes[7]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -694,7 +597,7 @@ func (x *PlanConfig_Deployment_DatabaseGroupMapping) String() string {func (*PlanConfig_Deployment_DatabaseGroupMapping) ProtoMessage() {}func (x *PlanConfig_Deployment_DatabaseGroupMapping) ProtoReflect() protoreflect.Message {- mi := &file_store_plan_proto_msgTypes[9]+ mi := &file_store_plan_proto_msgTypes[7]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -707,7 +610,7 @@ func (x *PlanConfig_Deployment_DatabaseGroupMapping) ProtoReflect() protoreflect// Deprecated: Use PlanConfig_Deployment_DatabaseGroupMapping.ProtoReflect.Descriptor instead.func (*PlanConfig_Deployment_DatabaseGroupMapping) Descriptor() ([]byte, []int) {- return file_store_plan_proto_rawDescGZIP(), []int{0, 6, 0}+ return file_store_plan_proto_rawDescGZIP(), []int{0, 4, 0}}func (x *PlanConfig_Deployment_DatabaseGroupMapping) GetDatabaseGroup() string {@@ -728,17 +631,15 @@ var File_store_plan_proto protoreflect.FileDescriptorconst file_store_plan_proto_rawDesc = "" +"\n" +- "\x10store/plan.proto\x12\x0ebytebase.store\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x12store/common.proto\x1a\x1astore/plan_check_run.proto\"\xe6\x0f\n" ++ "\x10store/plan.proto\x12\x0ebytebase.store\x1a\x1fgoogle/api/field_behavior.proto\x1a\x12store/common.proto\x1a\x1astore/plan_check_run.proto\"\xe2\r\n" +"\n" +"PlanConfig\x125\n" +- "\x05specs\x18\x01 \x03(\v2\x1f.bytebase.store.PlanConfig.SpecR\x05specs\x12O\n" +- "\x0erelease_source\x18\x03 \x01(\v2(.bytebase.store.PlanConfig.ReleaseSourceR\rreleaseSource\x12E\n" ++ "\x05specs\x18\x01 \x03(\v2\x1f.bytebase.store.PlanConfig.SpecR\x05specs\x12E\n" +"\n" +"deployment\x18\x04 \x01(\v2%.bytebase.store.PlanConfig.DeploymentR\n" +- "deployment\x1a\xad\x03\n" ++ "deployment\x1a\xcf\x02\n" +"\x04Spec\x12\x0e\n" +- "\x02id\x18\x05 \x01(\tR\x02id\x12\\\n" +- "\x13spec_release_source\x18\b \x01(\v2,.bytebase.store.PlanConfig.SpecReleaseSourceR\x11specReleaseSource\x12g\n" ++ "\x02id\x18\x05 \x01(\tR\x02id\x12g\n" +"\x16create_database_config\x18\x01 \x01(\v2/.bytebase.store.PlanConfig.CreateDatabaseConfigH\x00R\x14createDatabaseConfig\x12g\n" +"\x16change_database_config\x18\x02 \x01(\v2/.bytebase.store.PlanConfig.ChangeDatabaseConfigH\x00R\x14changeDatabaseConfig\x12[\n" +"\x12export_data_config\x18\a \x01(\v2+.bytebase.store.PlanConfig.ExportDataConfigH\x00R\x10exportDataConfigB\b\n" +@@ -751,10 +652,11 @@ const file_store_plan_proto_rawDesc = "" +"\tcollation\x18\x05 \x01(\tB\x04\xe2A\x01\x01R\tcollation\x12\x1e\n" +"\acluster\x18\x06 \x01(\tB\x04\xe2A\x01\x01R\acluster\x12\x1a\n" +"\x05owner\x18\a \x01(\tB\x04\xe2A\x01\x01R\x05owner\x12&\n" +- "\venvironment\x18\t \x01(\tB\x04\xe2A\x01\x01R\venvironment\x1a\x96\x04\n" ++ "\venvironment\x18\t \x01(\tB\x04\xe2A\x01\x01R\venvironment\x1a\xb0\x04\n" +"\x14ChangeDatabaseConfig\x12\x16\n" +"\x06target\x18\x01 \x01(\tR\x06target\x12\x14\n" +- "\x05sheet\x18\x02 \x01(\tR\x05sheet\x12H\n" ++ "\x05sheet\x18\x02 \x01(\tR\x05sheet\x12\x18\n" ++ "\arelease\x18\t \x01(\tR\arelease\x12H\n" +"\x04type\x18\x03 \x01(\x0e24.bytebase.store.PlanConfig.ChangeDatabaseConfig.TypeR\x04type\x12`\n" +"\vghost_flags\x18\a \x03(\v2?.bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntryR\n" +"ghostFlags\x12c\n" +@@ -774,12 +676,7 @@ const file_store_plan_proto_rawDesc = "" +"\x05sheet\x18\x02 \x01(\tR\x05sheet\x124\n" +"\x06format\x18\x03 \x01(\x0e2\x1c.bytebase.store.ExportFormatR\x06format\x12\x1f\n" +"\bpassword\x18\x04 \x01(\tH\x00R\bpassword\x88\x01\x01B\v\n" +- "\t_password\x1aD\n" +- "\rReleaseSource\x123\n" +- "\arelease\x18\x01 \x01(\tB\x19\xfaA\x16\n" +- "\x14bytebase.com/ReleaseR\arelease\x1a'\n" +- "\x11SpecReleaseSource\x12\x12\n" +- "\x04file\x18\x01 \x01(\tR\x04file\x1a\x81\x02\n" ++ "\t_password\x1a\x81\x02\n" +"\n" +"Deployment\x12\"\n" +"\fenvironments\x18\x01 \x03(\tR\fenvironments\x12r\n" +@@ -801,7 +698,7 @@ func file_store_plan_proto_rawDescGZIP() []byte {}var file_store_plan_proto_enumTypes = make([]protoimpl.EnumInfo, 1)-var file_store_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 10)+var file_store_plan_proto_msgTypes = make([]protoimpl.MessageInfo, 8)var file_store_plan_proto_goTypes = []any{(PlanConfig_ChangeDatabaseConfig_Type)(0), // 0: bytebase.store.PlanConfig.ChangeDatabaseConfig.Type(*PlanConfig)(nil), // 1: bytebase.store.PlanConfig@@ -809,32 +706,28 @@ var file_store_plan_proto_goTypes = []any{(*PlanConfig_CreateDatabaseConfig)(nil), // 3: bytebase.store.PlanConfig.CreateDatabaseConfig(*PlanConfig_ChangeDatabaseConfig)(nil), // 4: bytebase.store.PlanConfig.ChangeDatabaseConfig(*PlanConfig_ExportDataConfig)(nil), // 5: bytebase.store.PlanConfig.ExportDataConfig- (*PlanConfig_ReleaseSource)(nil), // 6: bytebase.store.PlanConfig.ReleaseSource- (*PlanConfig_SpecReleaseSource)(nil), // 7: bytebase.store.PlanConfig.SpecReleaseSource- (*PlanConfig_Deployment)(nil), // 8: bytebase.store.PlanConfig.Deployment- nil, // 9: bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry- (*PlanConfig_Deployment_DatabaseGroupMapping)(nil), // 10: bytebase.store.PlanConfig.Deployment.DatabaseGroupMapping- (*PreUpdateBackupDetail)(nil), // 11: bytebase.store.PreUpdateBackupDetail- (ExportFormat)(0), // 12: bytebase.store.ExportFormat+ (*PlanConfig_Deployment)(nil), // 6: bytebase.store.PlanConfig.Deployment+ nil, // 7: bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry+ (*PlanConfig_Deployment_DatabaseGroupMapping)(nil), // 8: bytebase.store.PlanConfig.Deployment.DatabaseGroupMapping+ (*PreUpdateBackupDetail)(nil), // 9: bytebase.store.PreUpdateBackupDetail+ (ExportFormat)(0), // 10: bytebase.store.ExportFormat}var file_store_plan_proto_depIdxs = []int32{2, // 0: bytebase.store.PlanConfig.specs:type_name -> bytebase.store.PlanConfig.Spec- 6, // 1: bytebase.store.PlanConfig.release_source:type_name -> bytebase.store.PlanConfig.ReleaseSource- 8, // 2: bytebase.store.PlanConfig.deployment:type_name -> bytebase.store.PlanConfig.Deployment- 7, // 3: bytebase.store.PlanConfig.Spec.spec_release_source:type_name -> bytebase.store.PlanConfig.SpecReleaseSource- 3, // 4: bytebase.store.PlanConfig.Spec.create_database_config:type_name -> bytebase.store.PlanConfig.CreateDatabaseConfig- 4, // 5: bytebase.store.PlanConfig.Spec.change_database_config:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig- 5, // 6: bytebase.store.PlanConfig.Spec.export_data_config:type_name -> bytebase.store.PlanConfig.ExportDataConfig- 0, // 7: bytebase.store.PlanConfig.ChangeDatabaseConfig.type:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.Type- 9, // 8: bytebase.store.PlanConfig.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry- 11, // 9: bytebase.store.PlanConfig.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.store.PreUpdateBackupDetail- 12, // 10: bytebase.store.PlanConfig.ExportDataConfig.format:type_name -> bytebase.store.ExportFormat- 10, // 11: bytebase.store.PlanConfig.Deployment.database_group_mappings:type_name -> bytebase.store.PlanConfig.Deployment.DatabaseGroupMapping- 12, // [12:12] is the sub-list for method output_type- 12, // [12:12] is the sub-list for method input_type- 12, // [12:12] is the sub-list for extension type_name- 12, // [12:12] is the sub-list for extension extendee- 0, // [0:12] is the sub-list for field type_name+ 6, // 1: bytebase.store.PlanConfig.deployment:type_name -> bytebase.store.PlanConfig.Deployment+ 3, // 2: bytebase.store.PlanConfig.Spec.create_database_config:type_name -> bytebase.store.PlanConfig.CreateDatabaseConfig+ 4, // 3: bytebase.store.PlanConfig.Spec.change_database_config:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig+ 5, // 4: bytebase.store.PlanConfig.Spec.export_data_config:type_name -> bytebase.store.PlanConfig.ExportDataConfig+ 0, // 5: bytebase.store.PlanConfig.ChangeDatabaseConfig.type:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.Type+ 7, // 6: bytebase.store.PlanConfig.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.store.PlanConfig.ChangeDatabaseConfig.GhostFlagsEntry+ 9, // 7: bytebase.store.PlanConfig.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.store.PreUpdateBackupDetail+ 10, // 8: bytebase.store.PlanConfig.ExportDataConfig.format:type_name -> bytebase.store.ExportFormat+ 8, // 9: bytebase.store.PlanConfig.Deployment.database_group_mappings:type_name -> bytebase.store.PlanConfig.Deployment.DatabaseGroupMapping+ 10, // [10:10] is the sub-list for method output_type+ 10, // [10:10] is the sub-list for method input_type+ 10, // [10:10] is the sub-list for extension type_name+ 10, // [10:10] is the sub-list for extension extendee+ 0, // [0:10] is the sub-list for field type_name}func init() { file_store_plan_proto_init() }@@ -857,7 +750,7 @@ func file_store_plan_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: unsafe.Slice(unsafe.StringData(file_store_plan_proto_rawDesc), len(file_store_plan_proto_rawDesc)),NumEnums: 1,- NumMessages: 10,+ NumMessages: 8,NumExtensions: 0,NumServices: 0,},diff --git a/proto/generated-go/v1/plan_service.pb.go b/proto/generated-go/v1/plan_service.pb.goindex 1c6d707410..1756c7bbf9 100644--- a/proto/generated-go/v1/plan_service.pb.go+++ b/proto/generated-go/v1/plan_service.pb.go@@ -705,9 +705,8 @@ type Plan struct {// - SUCCESS// - WARNING// - ERROR- PlanCheckRunStatusCount map[string]int32 `protobuf:"bytes,11,rep,name=plan_check_run_status_count,json=planCheckRunStatusCount,proto3" json:"plan_check_run_status_count,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`- ReleaseSource *Plan_ReleaseSource `protobuf:"bytes,12,opt,name=release_source,json=releaseSource,proto3" json:"release_source,omitempty"`- Deployment *Plan_Deployment `protobuf:"bytes,13,opt,name=deployment,proto3" json:"deployment,omitempty"`+ PlanCheckRunStatusCount map[string]int32 `protobuf:"bytes,11,rep,name=plan_check_run_status_count,json=planCheckRunStatusCount,proto3" json:"plan_check_run_status_count,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"varint,2,opt,name=value"`+ Deployment *Plan_Deployment `protobuf:"bytes,13,opt,name=deployment,proto3" json:"deployment,omitempty"`unknownFields protoimpl.UnknownFieldssizeCache protoimpl.SizeCache}@@ -812,13 +811,6 @@ func (x *Plan) GetPlanCheckRunStatusCount() map[string]int32 {return nil}-func (x *Plan) GetReleaseSource() *Plan_ReleaseSource {- if x != nil {- return x.ReleaseSource- }- return nil-}-func (x *Plan) GetDeployment() *Plan_Deployment {if x != nil {return x.Deployment@@ -1435,8 +1427,7 @@ func (x *Plan_Step) GetSpecs() []*Plan_Spec {type Plan_Spec struct {state protoimpl.MessageState `protogen:"open.v1"`// A UUID4 string that uniquely identifies the Spec.- Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`- SpecReleaseSource *Plan_SpecReleaseSource `protobuf:"bytes,8,opt,name=spec_release_source,json=specReleaseSource,proto3" json:"spec_release_source,omitempty"`+ Id string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"`// Types that are valid to be assigned to Config://// *Plan_Spec_CreateDatabaseConfig@@ -1484,13 +1475,6 @@ func (x *Plan_Spec) GetId() string {return ""}-func (x *Plan_Spec) GetSpecReleaseSource() *Plan_SpecReleaseSource {- if x != nil {- return x.SpecReleaseSource- }- return nil-}-func (x *Plan_Spec) GetConfig() isPlan_Spec_Config {if x != nil {return x.Config@@ -1666,7 +1650,10 @@ type Plan_ChangeDatabaseConfig struct {Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`// The resource name of the sheet.// Format: projects/{project}/sheets/{sheet}- Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`+ Sheet string `protobuf:"bytes,2,opt,name=sheet,proto3" json:"sheet,omitempty"`+ // The resource name of the release.+ // Format: projects/{project}/releases/{release}+ Release string `protobuf:"bytes,9,opt,name=release,proto3" json:"release,omitempty"`Type Plan_ChangeDatabaseConfig_Type `protobuf:"varint,3,opt,name=type,proto3,enum=bytebase.v1.Plan_ChangeDatabaseConfig_Type" json:"type,omitempty"`GhostFlags map[string]string `protobuf:"bytes,7,rep,name=ghost_flags,json=ghostFlags,proto3" json:"ghost_flags,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`// If set, a backup of the modified data will be created automatically before any changes are applied.@@ -1719,6 +1706,13 @@ func (x *Plan_ChangeDatabaseConfig) GetSheet() string {return ""}+func (x *Plan_ChangeDatabaseConfig) GetRelease() string {+ if x != nil {+ return x.Release+ }+ return ""+}+func (x *Plan_ChangeDatabaseConfig) GetType() Plan_ChangeDatabaseConfig_Type {if x != nil {return x.Type@@ -1869,98 +1863,6 @@ func (x *Plan_Deployment) GetDatabaseGroupMappings() []*Plan_Deployment_Databasereturn nil}-type Plan_ReleaseSource struct {- state protoimpl.MessageState `protogen:"open.v1"`- // The release.- // Format: projects/{project}/releases/{release}- Release string `protobuf:"bytes,1,opt,name=release,proto3" json:"release,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *Plan_ReleaseSource) Reset() {- *x = Plan_ReleaseSource{}- mi := &file_v1_plan_service_proto_msgTypes[24]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *Plan_ReleaseSource) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Plan_ReleaseSource) ProtoMessage() {}--func (x *Plan_ReleaseSource) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[24]- 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 Plan_ReleaseSource.ProtoReflect.Descriptor instead.-func (*Plan_ReleaseSource) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{7, 7}-}--func (x *Plan_ReleaseSource) GetRelease() string {- if x != nil {- return x.Release- }- return ""-}--type Plan_SpecReleaseSource struct {- state protoimpl.MessageState `protogen:"open.v1"`- // Format: projects/{project}/releases/{release}/files/{file}- // {file} is URL path escaped.- File string `protobuf:"bytes,1,opt,name=file,proto3" json:"file,omitempty"`- unknownFields protoimpl.UnknownFields- sizeCache protoimpl.SizeCache-}--func (x *Plan_SpecReleaseSource) Reset() {- *x = Plan_SpecReleaseSource{}- mi := &file_v1_plan_service_proto_msgTypes[25]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)-}--func (x *Plan_SpecReleaseSource) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*Plan_SpecReleaseSource) ProtoMessage() {}--func (x *Plan_SpecReleaseSource) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[25]- 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 Plan_SpecReleaseSource.ProtoReflect.Descriptor instead.-func (*Plan_SpecReleaseSource) Descriptor() ([]byte, []int) {- return file_v1_plan_service_proto_rawDescGZIP(), []int{7, 8}-}--func (x *Plan_SpecReleaseSource) GetFile() string {- if x != nil {- return x.File- }- return ""-}-type Plan_ChangeDatabaseConfig_PreUpdateBackupDetail struct {state protoimpl.MessageState `protogen:"open.v1"`// The database for keeping the backup data.@@ -1972,7 +1874,7 @@ type Plan_ChangeDatabaseConfig_PreUpdateBackupDetail struct {func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) Reset() {*x = Plan_ChangeDatabaseConfig_PreUpdateBackupDetail{}- mi := &file_v1_plan_service_proto_msgTypes[27]+ mi := &file_v1_plan_service_proto_msgTypes[25]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -1984,7 +1886,7 @@ func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) String() string {func (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoMessage() {}func (x *Plan_ChangeDatabaseConfig_PreUpdateBackupDetail) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[27]+ mi := &file_v1_plan_service_proto_msgTypes[25]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2019,7 +1921,7 @@ type Plan_Deployment_DatabaseGroupMapping struct {func (x *Plan_Deployment_DatabaseGroupMapping) Reset() {*x = Plan_Deployment_DatabaseGroupMapping{}- mi := &file_v1_plan_service_proto_msgTypes[28]+ mi := &file_v1_plan_service_proto_msgTypes[26]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2031,7 +1933,7 @@ func (x *Plan_Deployment_DatabaseGroupMapping) String() string {func (*Plan_Deployment_DatabaseGroupMapping) ProtoMessage() {}func (x *Plan_Deployment_DatabaseGroupMapping) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[28]+ mi := &file_v1_plan_service_proto_msgTypes[26]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2072,7 +1974,7 @@ type PreviewPlanResponse_DatabaseFiles struct {func (x *PreviewPlanResponse_DatabaseFiles) Reset() {*x = PreviewPlanResponse_DatabaseFiles{}- mi := &file_v1_plan_service_proto_msgTypes[29]+ mi := &file_v1_plan_service_proto_msgTypes[27]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2084,7 +1986,7 @@ func (x *PreviewPlanResponse_DatabaseFiles) String() string {func (*PreviewPlanResponse_DatabaseFiles) ProtoMessage() {}func (x *PreviewPlanResponse_DatabaseFiles) ProtoReflect() protoreflect.Message {- mi := &file_v1_plan_service_proto_msgTypes[29]+ mi := &file_v1_plan_service_proto_msgTypes[27]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2131,7 +2033,7 @@ type PlanCheckRun_Result struct {func (x *PlanCheckRun_Result) Reset() {*x = PlanCheckRun_Result{}- mi := &file_v1_plan_service_proto_msgTypes[30]+ mi := &file_v1_plan_service_proto_msgTypes[28]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2143,7 +2045,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[30]+ mi := &file_v1_plan_service_proto_msgTypes[28]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2240,7 +2142,7 @@ type PlanCheckRun_Result_SqlSummaryReport struct {func (x *PlanCheckRun_Result_SqlSummaryReport) Reset() {*x = PlanCheckRun_Result_SqlSummaryReport{}- mi := &file_v1_plan_service_proto_msgTypes[31]+ mi := &file_v1_plan_service_proto_msgTypes[29]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2252,7 +2154,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[31]+ mi := &file_v1_plan_service_proto_msgTypes[29]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2303,7 +2205,7 @@ type PlanCheckRun_Result_SqlReviewReport struct {func (x *PlanCheckRun_Result_SqlReviewReport) Reset() {*x = PlanCheckRun_Result_SqlReviewReport{}- mi := &file_v1_plan_service_proto_msgTypes[32]+ mi := &file_v1_plan_service_proto_msgTypes[30]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -2315,7 +2217,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[32]+ mi := &file_v1_plan_service_proto_msgTypes[30]if x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -2392,7 +2294,7 @@ const file_v1_plan_service_proto_rawDesc = "" +"\x11UpdatePlanRequest\x12+\n" +"\x04plan\x18\x01 \x01(\v2\x11.bytebase.v1.PlanB\x04\xe2A\x01\x02R\x04plan\x12A\n" +"\vupdate_mask\x18\x02 \x01(\v2\x1a.google.protobuf.FieldMaskB\x04\xe2A\x01\x02R\n" +- "updateMask\"\xd0\x14\n" ++ "updateMask\"\xf9\x12\n" +"\x04Plan\x12\x12\n" +"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +"\x05issue\x18\x03 \x01(\tR\x05issue\x12\x14\n" +@@ -2406,17 +2308,15 @@ const file_v1_plan_service_proto_rawDesc = "" +"\vupdate_time\x18\n" +" \x01(\v2\x1a.google.protobuf.TimestampB\x04\xe2A\x01\x03R\n" +"updateTime\x12r\n" +- "\x1bplan_check_run_status_count\x18\v \x03(\v2..bytebase.v1.Plan.PlanCheckRunStatusCountEntryB\x04\xe2A\x01\x03R\x17planCheckRunStatusCount\x12F\n" +- "\x0erelease_source\x18\f \x01(\v2\x1f.bytebase.v1.Plan.ReleaseSourceR\rreleaseSource\x12<\n" ++ "\x1bplan_check_run_status_count\x18\v \x03(\v2..bytebase.v1.Plan.PlanCheckRunStatusCountEntryB\x04\xe2A\x01\x03R\x17planCheckRunStatusCount\x12<\n" +"\n" +"deployment\x18\r \x01(\v2\x1c.bytebase.v1.Plan.DeploymentR\n" +"deployment\x1aJ\n" +"\x04Step\x12\x14\n" +"\x05title\x18\x02 \x01(\tR\x05title\x12,\n" +- "\x05specs\x18\x01 \x03(\v2\x16.bytebase.v1.Plan.SpecR\x05specs\x1a\x89\x03\n" ++ "\x05specs\x18\x01 \x03(\v2\x16.bytebase.v1.Plan.SpecR\x05specs\x1a\xb4\x02\n" +"\x04Spec\x12\x0e\n" +- "\x02id\x18\x05 \x01(\tR\x02id\x12S\n" +- "\x13spec_release_source\x18\b \x01(\v2#.bytebase.v1.Plan.SpecReleaseSourceR\x11specReleaseSource\x12^\n" ++ "\x02id\x18\x05 \x01(\tR\x02id\x12^\n" +"\x16create_database_config\x18\x01 \x01(\v2&.bytebase.v1.Plan.CreateDatabaseConfigH\x00R\x14createDatabaseConfig\x12^\n" +"\x16change_database_config\x18\x02 \x01(\v2&.bytebase.v1.Plan.ChangeDatabaseConfigH\x00R\x14changeDatabaseConfig\x12R\n" +"\x12export_data_config\x18\a \x01(\v2\".bytebase.v1.Plan.ExportDataConfigH\x00R\x10exportDataConfigB\b\n" +@@ -2432,10 +2332,12 @@ const file_v1_plan_service_proto_rawDesc = "" +"\tcollation\x18\x05 \x01(\tB\x04\xe2A\x01\x01R\tcollation\x12\x1e\n" +"\acluster\x18\x06 \x01(\tB\x04\xe2A\x01\x01R\acluster\x12\x1a\n" +"\x05owner\x18\a \x01(\tB\x04\xe2A\x01\x01R\x05owner\x12&\n" +- "\venvironment\x18\t \x01(\tB\x04\xe2A\x01\x01R\venvironment\x1a\xd0\x04\n" ++ "\venvironment\x18\t \x01(\tB\x04\xe2A\x01\x01R\venvironment\x1a\x85\x05\n" +"\x14ChangeDatabaseConfig\x12\x16\n" +"\x06target\x18\x01 \x01(\tR\x06target\x12\x14\n" +- "\x05sheet\x18\x02 \x01(\tR\x05sheet\x12?\n" ++ "\x05sheet\x18\x02 \x01(\tR\x05sheet\x123\n" ++ "\arelease\x18\t \x01(\tB\x19\xfaA\x16\n" ++ "\x14bytebase.com/ReleaseR\arelease\x12?\n" +"\x04type\x18\x03 \x01(\x0e2+.bytebase.v1.Plan.ChangeDatabaseConfig.TypeR\x04type\x12W\n" +"\vghost_flags\x18\a \x03(\v26.bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntryR\n" +"ghostFlags\x12z\n" +@@ -2464,12 +2366,7 @@ const file_v1_plan_service_proto_rawDesc = "" +"\x17database_group_mappings\x18\x02 \x03(\v21.bytebase.v1.Plan.Deployment.DatabaseGroupMappingR\x15databaseGroupMappings\x1a[\n" +"\x14DatabaseGroupMapping\x12%\n" +"\x0edatabase_group\x18\x01 \x01(\tR\rdatabaseGroup\x12\x1c\n" +- "\tdatabases\x18\x02 \x03(\tR\tdatabases\x1aD\n" +- "\rReleaseSource\x123\n" +- "\arelease\x18\x01 \x01(\tB\x19\xfaA\x16\n" +- "\x14bytebase.com/ReleaseR\arelease\x1a'\n" +- "\x11SpecReleaseSource\x12\x12\n" +- "\x04file\x18\x01 \x01(\tR\x04file:7\xeaA4\n" ++ "\tdatabases\x18\x02 \x03(\tR\tdatabases:7\xeaA4\n" +"\x11bytebase.com/Plan\x12\x1fprojects/{project}/plans/{plan}J\x04\b\x02\x10\x03\"\xab\x01\n" +"\x18ListPlanCheckRunsRequest\x122\n" +"\x06parent\x18\x01 \x01(\tB\x1a\xe2A\x01\x02\xfaA\x13\n" +@@ -2577,7 +2474,7 @@ func file_v1_plan_service_proto_rawDescGZIP() []byte {}var file_v1_plan_service_proto_enumTypes = make([]protoimpl.EnumInfo, 4)-var file_v1_plan_service_proto_msgTypes = make([]protoimpl.MessageInfo, 33)+var file_v1_plan_service_proto_msgTypes = make([]protoimpl.MessageInfo, 31)var file_v1_plan_service_proto_goTypes = []any{(Plan_ChangeDatabaseConfig_Type)(0), // 0: bytebase.v1.Plan.ChangeDatabaseConfig.Type(PlanCheckRun_Type)(0), // 1: bytebase.v1.PlanCheckRun.Type@@ -2607,81 +2504,77 @@ var file_v1_plan_service_proto_goTypes = []any{(*Plan_ChangeDatabaseConfig)(nil), // 25: bytebase.v1.Plan.ChangeDatabaseConfig(*Plan_ExportDataConfig)(nil), // 26: bytebase.v1.Plan.ExportDataConfig(*Plan_Deployment)(nil), // 27: bytebase.v1.Plan.Deployment- (*Plan_ReleaseSource)(nil), // 28: bytebase.v1.Plan.ReleaseSource- (*Plan_SpecReleaseSource)(nil), // 29: bytebase.v1.Plan.SpecReleaseSource- nil, // 30: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry- (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 31: bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail- (*Plan_Deployment_DatabaseGroupMapping)(nil), // 32: bytebase.v1.Plan.Deployment.DatabaseGroupMapping- (*PreviewPlanResponse_DatabaseFiles)(nil), // 33: bytebase.v1.PreviewPlanResponse.DatabaseFiles- (*PlanCheckRun_Result)(nil), // 34: bytebase.v1.PlanCheckRun.Result- (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 35: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- (*PlanCheckRun_Result_SqlReviewReport)(nil), // 36: bytebase.v1.PlanCheckRun.Result.SqlReviewReport- (*fieldmaskpb.FieldMask)(nil), // 37: google.protobuf.FieldMask- (*timestamppb.Timestamp)(nil), // 38: google.protobuf.Timestamp- (ExportFormat)(0), // 39: bytebase.v1.ExportFormat- (*ChangedResources)(nil), // 40: bytebase.v1.ChangedResources- (*Position)(nil), // 41: bytebase.v1.Position+ nil, // 28: bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry+ (*Plan_ChangeDatabaseConfig_PreUpdateBackupDetail)(nil), // 29: bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail+ (*Plan_Deployment_DatabaseGroupMapping)(nil), // 30: bytebase.v1.Plan.Deployment.DatabaseGroupMapping+ (*PreviewPlanResponse_DatabaseFiles)(nil), // 31: bytebase.v1.PreviewPlanResponse.DatabaseFiles+ (*PlanCheckRun_Result)(nil), // 32: bytebase.v1.PlanCheckRun.Result+ (*PlanCheckRun_Result_SqlSummaryReport)(nil), // 33: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ (*PlanCheckRun_Result_SqlReviewReport)(nil), // 34: bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ (*fieldmaskpb.FieldMask)(nil), // 35: google.protobuf.FieldMask+ (*timestamppb.Timestamp)(nil), // 36: google.protobuf.Timestamp+ (ExportFormat)(0), // 37: bytebase.v1.ExportFormat+ (*ChangedResources)(nil), // 38: bytebase.v1.ChangedResources+ (*Position)(nil), // 39: bytebase.v1.Position}var file_v1_plan_service_proto_depIdxs = []int32{11, // 0: bytebase.v1.ListPlansResponse.plans:type_name -> bytebase.v1.Plan11, // 1: bytebase.v1.SearchPlansResponse.plans:type_name -> bytebase.v1.Plan11, // 2: bytebase.v1.CreatePlanRequest.plan:type_name -> bytebase.v1.Plan11, // 3: bytebase.v1.UpdatePlanRequest.plan:type_name -> bytebase.v1.Plan- 37, // 4: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask+ 35, // 4: bytebase.v1.UpdatePlanRequest.update_mask:type_name -> google.protobuf.FieldMask21, // 5: bytebase.v1.Plan.steps:type_name -> bytebase.v1.Plan.Step22, // 6: bytebase.v1.Plan.specs:type_name -> bytebase.v1.Plan.Spec- 38, // 7: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp- 38, // 8: bytebase.v1.Plan.update_time:type_name -> google.protobuf.Timestamp+ 36, // 7: bytebase.v1.Plan.create_time:type_name -> google.protobuf.Timestamp+ 36, // 8: bytebase.v1.Plan.update_time:type_name -> google.protobuf.Timestamp23, // 9: bytebase.v1.Plan.plan_check_run_status_count:type_name -> bytebase.v1.Plan.PlanCheckRunStatusCountEntry- 28, // 10: bytebase.v1.Plan.release_source:type_name -> bytebase.v1.Plan.ReleaseSource- 27, // 11: bytebase.v1.Plan.deployment:type_name -> bytebase.v1.Plan.Deployment- 20, // 12: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun- 11, // 13: bytebase.v1.PreviewPlanResponse.plan:type_name -> bytebase.v1.Plan- 33, // 14: bytebase.v1.PreviewPlanResponse.out_of_order_files:type_name -> bytebase.v1.PreviewPlanResponse.DatabaseFiles- 33, // 15: bytebase.v1.PreviewPlanResponse.applied_but_modified_files:type_name -> bytebase.v1.PreviewPlanResponse.DatabaseFiles- 1, // 16: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type- 2, // 17: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status- 34, // 18: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result- 38, // 19: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp- 22, // 20: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec- 29, // 21: bytebase.v1.Plan.Spec.spec_release_source:type_name -> bytebase.v1.Plan.SpecReleaseSource- 24, // 22: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig- 25, // 23: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig- 26, // 24: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig- 0, // 25: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type- 30, // 26: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry- 31, // 27: bytebase.v1.Plan.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail- 39, // 28: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat- 32, // 29: bytebase.v1.Plan.Deployment.database_group_mappings:type_name -> bytebase.v1.Plan.Deployment.DatabaseGroupMapping- 3, // 30: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status- 35, // 31: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport- 36, // 32: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport- 40, // 33: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources- 41, // 34: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position- 41, // 35: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position- 4, // 36: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest- 5, // 37: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest- 7, // 38: bytebase.v1.PlanService.SearchPlans:input_type -> bytebase.v1.SearchPlansRequest- 9, // 39: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest- 10, // 40: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest- 12, // 41: bytebase.v1.PlanService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest- 14, // 42: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest- 16, // 43: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:input_type -> bytebase.v1.BatchCancelPlanCheckRunsRequest- 18, // 44: bytebase.v1.PlanService.PreviewPlan:input_type -> bytebase.v1.PreviewPlanRequest- 11, // 45: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan- 6, // 46: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse- 8, // 47: bytebase.v1.PlanService.SearchPlans:output_type -> bytebase.v1.SearchPlansResponse- 11, // 48: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan- 11, // 49: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan- 13, // 50: bytebase.v1.PlanService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse- 15, // 51: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse- 17, // 52: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:output_type -> bytebase.v1.BatchCancelPlanCheckRunsResponse- 19, // 53: bytebase.v1.PlanService.PreviewPlan:output_type -> bytebase.v1.PreviewPlanResponse- 45, // [45:54] is the sub-list for method output_type- 36, // [36:45] is the sub-list for method input_type- 36, // [36:36] is the sub-list for extension type_name- 36, // [36:36] is the sub-list for extension extendee- 0, // [0:36] is the sub-list for field type_name+ 27, // 10: bytebase.v1.Plan.deployment:type_name -> bytebase.v1.Plan.Deployment+ 20, // 11: bytebase.v1.ListPlanCheckRunsResponse.plan_check_runs:type_name -> bytebase.v1.PlanCheckRun+ 11, // 12: bytebase.v1.PreviewPlanResponse.plan:type_name -> bytebase.v1.Plan+ 31, // 13: bytebase.v1.PreviewPlanResponse.out_of_order_files:type_name -> bytebase.v1.PreviewPlanResponse.DatabaseFiles+ 31, // 14: bytebase.v1.PreviewPlanResponse.applied_but_modified_files:type_name -> bytebase.v1.PreviewPlanResponse.DatabaseFiles+ 1, // 15: bytebase.v1.PlanCheckRun.type:type_name -> bytebase.v1.PlanCheckRun.Type+ 2, // 16: bytebase.v1.PlanCheckRun.status:type_name -> bytebase.v1.PlanCheckRun.Status+ 32, // 17: bytebase.v1.PlanCheckRun.results:type_name -> bytebase.v1.PlanCheckRun.Result+ 36, // 18: bytebase.v1.PlanCheckRun.create_time:type_name -> google.protobuf.Timestamp+ 22, // 19: bytebase.v1.Plan.Step.specs:type_name -> bytebase.v1.Plan.Spec+ 24, // 20: bytebase.v1.Plan.Spec.create_database_config:type_name -> bytebase.v1.Plan.CreateDatabaseConfig+ 25, // 21: bytebase.v1.Plan.Spec.change_database_config:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig+ 26, // 22: bytebase.v1.Plan.Spec.export_data_config:type_name -> bytebase.v1.Plan.ExportDataConfig+ 0, // 23: bytebase.v1.Plan.ChangeDatabaseConfig.type:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.Type+ 28, // 24: bytebase.v1.Plan.ChangeDatabaseConfig.ghost_flags:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.GhostFlagsEntry+ 29, // 25: bytebase.v1.Plan.ChangeDatabaseConfig.pre_update_backup_detail:type_name -> bytebase.v1.Plan.ChangeDatabaseConfig.PreUpdateBackupDetail+ 37, // 26: bytebase.v1.Plan.ExportDataConfig.format:type_name -> bytebase.v1.ExportFormat+ 30, // 27: bytebase.v1.Plan.Deployment.database_group_mappings:type_name -> bytebase.v1.Plan.Deployment.DatabaseGroupMapping+ 3, // 28: bytebase.v1.PlanCheckRun.Result.status:type_name -> bytebase.v1.PlanCheckRun.Result.Status+ 33, // 29: bytebase.v1.PlanCheckRun.Result.sql_summary_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlSummaryReport+ 34, // 30: bytebase.v1.PlanCheckRun.Result.sql_review_report:type_name -> bytebase.v1.PlanCheckRun.Result.SqlReviewReport+ 38, // 31: bytebase.v1.PlanCheckRun.Result.SqlSummaryReport.changed_resources:type_name -> bytebase.v1.ChangedResources+ 39, // 32: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.start_position:type_name -> bytebase.v1.Position+ 39, // 33: bytebase.v1.PlanCheckRun.Result.SqlReviewReport.end_position:type_name -> bytebase.v1.Position+ 4, // 34: bytebase.v1.PlanService.GetPlan:input_type -> bytebase.v1.GetPlanRequest+ 5, // 35: bytebase.v1.PlanService.ListPlans:input_type -> bytebase.v1.ListPlansRequest+ 7, // 36: bytebase.v1.PlanService.SearchPlans:input_type -> bytebase.v1.SearchPlansRequest+ 9, // 37: bytebase.v1.PlanService.CreatePlan:input_type -> bytebase.v1.CreatePlanRequest+ 10, // 38: bytebase.v1.PlanService.UpdatePlan:input_type -> bytebase.v1.UpdatePlanRequest+ 12, // 39: bytebase.v1.PlanService.ListPlanCheckRuns:input_type -> bytebase.v1.ListPlanCheckRunsRequest+ 14, // 40: bytebase.v1.PlanService.RunPlanChecks:input_type -> bytebase.v1.RunPlanChecksRequest+ 16, // 41: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:input_type -> bytebase.v1.BatchCancelPlanCheckRunsRequest+ 18, // 42: bytebase.v1.PlanService.PreviewPlan:input_type -> bytebase.v1.PreviewPlanRequest+ 11, // 43: bytebase.v1.PlanService.GetPlan:output_type -> bytebase.v1.Plan+ 6, // 44: bytebase.v1.PlanService.ListPlans:output_type -> bytebase.v1.ListPlansResponse+ 8, // 45: bytebase.v1.PlanService.SearchPlans:output_type -> bytebase.v1.SearchPlansResponse+ 11, // 46: bytebase.v1.PlanService.CreatePlan:output_type -> bytebase.v1.Plan+ 11, // 47: bytebase.v1.PlanService.UpdatePlan:output_type -> bytebase.v1.Plan+ 13, // 48: bytebase.v1.PlanService.ListPlanCheckRuns:output_type -> bytebase.v1.ListPlanCheckRunsResponse+ 15, // 49: bytebase.v1.PlanService.RunPlanChecks:output_type -> bytebase.v1.RunPlanChecksResponse+ 17, // 50: bytebase.v1.PlanService.BatchCancelPlanCheckRuns:output_type -> bytebase.v1.BatchCancelPlanCheckRunsResponse+ 19, // 51: bytebase.v1.PlanService.PreviewPlan:output_type -> bytebase.v1.PreviewPlanResponse+ 43, // [43:52] is the sub-list for method output_type+ 34, // [34:43] is the sub-list for method input_type+ 34, // [34:34] is the sub-list for extension type_name+ 34, // [34:34] is the sub-list for extension extendee+ 0, // [0:34] is the sub-list for field type_name}func init() { file_v1_plan_service_proto_init() }@@ -2699,7 +2592,7 @@ func file_v1_plan_service_proto_init() {}file_v1_plan_service_proto_msgTypes[21].OneofWrappers = []any{}file_v1_plan_service_proto_msgTypes[22].OneofWrappers = []any{}- file_v1_plan_service_proto_msgTypes[30].OneofWrappers = []any{+ file_v1_plan_service_proto_msgTypes[28].OneofWrappers = []any{(*PlanCheckRun_Result_SqlSummaryReport_)(nil),(*PlanCheckRun_Result_SqlReviewReport_)(nil),}@@ -2709,7 +2602,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: 4,- NumMessages: 33,+ NumMessages: 31,NumExtensions: 0,NumServices: 1,},diff --git a/proto/store/store/plan.proto b/proto/store/store/plan.protoindex 5776cdcb1a..d33f74295a 100644--- a/proto/store/store/plan.proto+++ b/proto/store/store/plan.proto@@ -3,7 +3,6 @@ syntax = "proto3";package bytebase.store;import "google/api/field_behavior.proto";-import "google/api/resource.proto";import "store/common.proto";import "store/plan_check_run.proto";@@ -12,15 +11,11 @@ option go_package = "generated-go/store";message PlanConfig {repeated Spec specs = 1;- ReleaseSource release_source = 3;-Deployment deployment = 4;message Spec {// A UUID4 string that uniquely identifies the Spec.string id = 5;- SpecReleaseSource spec_release_source = 8;-oneof config {CreateDatabaseConfig create_database_config = 1;ChangeDatabaseConfig change_database_config = 2;@@ -60,6 +55,10 @@ message PlanConfig {// The resource name of the sheet.// Format: projects/{project}/sheets/{sheet}string sheet = 2;+ // The resource name of the release.+ // Format: projects/{project}/releases/{release}+ string release = 9;+// Type is the database change type.enum Type {TYPE_UNSPECIFIED = 0;@@ -94,17 +93,6 @@ message PlanConfig {optional string password = 4;}- message ReleaseSource {- // The release.- // Format: projects/{project}/releases/{release}- string release = 1 [(google.api.resource_reference) = {type: "bytebase.com/Release"}];- }-- message SpecReleaseSource {- // Format: projects/{project}/releases/{release}/files/{id}- string file = 1;- }-message Deployment {// The environments deploy order.repeated string environments = 1;diff --git a/proto/v1/v1/plan_service.proto b/proto/v1/v1/plan_service.protoindex 26576de928..26871b9593 100644--- a/proto/v1/v1/plan_service.proto+++ b/proto/v1/v1/plan_service.proto@@ -243,8 +243,6 @@ message Plan {// A UUID4 string that uniquely identifies the Spec.string id = 5;- SpecReleaseSource spec_release_source = 8;-oneof config {CreateDatabaseConfig create_database_config = 1;ChangeDatabaseConfig change_database_config = 2;@@ -266,8 +264,6 @@ message Plan {// - ERRORmap<string, int32> plan_check_run_status_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY];- ReleaseSource release_source = 12;-Deployment deployment = 13;message CreateDatabaseConfig {@@ -302,6 +298,11 @@ message Plan {// The resource name of the sheet.// Format: projects/{project}/sheets/{sheet}string sheet = 2;++ // The resource name of the release.+ // Format: projects/{project}/releases/{release}+ string release = 9 [(google.api.resource_reference) = {type: "bytebase.com/Release"}];+// Type is the database change type.enum Type {TYPE_UNSPECIFIED = 0;@@ -354,18 +355,6 @@ message Plan {repeated string databases = 2;}}-- message ReleaseSource {- // The release.- // Format: projects/{project}/releases/{release}- string release = 1 [(google.api.resource_reference) = {type: "bytebase.com/Release"}];- }-- message SpecReleaseSource {- // Format: projects/{project}/releases/{release}/files/{file}- // {file} is URL path escaped.- string file = 1;- }}message ListPlanCheckRunsRequest {