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: remove usedByIssue from store/sheet.proto (#7814)
p0ny2eded343b3cb
diff --git a/frontend/src/types/proto/store/sheet.ts b/frontend/src/types/proto/store/sheet.tsindex 88d955e903..a6aa381b16 100644--- a/frontend/src/types/proto/store/sheet.ts+++ b/frontend/src/types/proto/store/sheet.ts@@ -8,11 +8,7 @@ export const protobufPackage = "bytebase.store";export interface SheetPayload {type: SheetPayload_Type;- vcsPayload?:- | SheetPayload_VCSPayload- | undefined;- /** used_by_issues link to the issues where the sheet is used. */- usedByIssues: SheetPayload_UsedByIssue[];+ vcsPayload?: SheetPayload_VCSPayload | undefined;schemaDesign?: SheetPayload_SchemaDesign | undefined;}@@ -60,11 +56,6 @@ export interface SheetPayload_VCSPayload {pushEvent?: PushEvent | undefined;}-export interface SheetPayload_UsedByIssue {- issueId: number;- issueTitle: string;-}-export interface SheetPayload_SchemaDesign {/** The type of the schema design. */type: SheetPayload_SchemaDesign_Type;@@ -120,7 +111,7 @@ export function sheetPayload_SchemaDesign_TypeToJSON(object: SheetPayload_Schema}function createBaseSheetPayload(): SheetPayload {- return { type: 0, vcsPayload: undefined, usedByIssues: [], schemaDesign: undefined };+ return { type: 0, vcsPayload: undefined, schemaDesign: undefined };}export const SheetPayload = {@@ -131,11 +122,8 @@ export const SheetPayload = {if (message.vcsPayload !== undefined) {SheetPayload_VCSPayload.encode(message.vcsPayload, writer.uint32(18).fork()).ldelim();}- for (const v of message.usedByIssues) {- SheetPayload_UsedByIssue.encode(v!, writer.uint32(26).fork()).ldelim();- }if (message.schemaDesign !== undefined) {- SheetPayload_SchemaDesign.encode(message.schemaDesign, writer.uint32(34).fork()).ldelim();+ SheetPayload_SchemaDesign.encode(message.schemaDesign, writer.uint32(26).fork()).ldelim();}return writer;},@@ -166,13 +154,6 @@ export const SheetPayload = {break;}- message.usedByIssues.push(SheetPayload_UsedByIssue.decode(reader, reader.uint32()));- continue;- case 4:- if (tag !== 34) {- break;- }-message.schemaDesign = SheetPayload_SchemaDesign.decode(reader, reader.uint32());continue;}@@ -188,9 +169,6 @@ export const SheetPayload = {return {type: isSet(object.type) ? sheetPayload_TypeFromJSON(object.type) : 0,vcsPayload: isSet(object.vcsPayload) ? SheetPayload_VCSPayload.fromJSON(object.vcsPayload) : undefined,- usedByIssues: Array.isArray(object?.usedByIssues)- ? object.usedByIssues.map((e: any) => SheetPayload_UsedByIssue.fromJSON(e))- : [],schemaDesign: isSet(object.schemaDesign) ? SheetPayload_SchemaDesign.fromJSON(object.schemaDesign) : undefined,};},@@ -200,11 +178,6 @@ export const SheetPayload = {message.type !== undefined && (obj.type = sheetPayload_TypeToJSON(message.type));message.vcsPayload !== undefined &&(obj.vcsPayload = message.vcsPayload ? SheetPayload_VCSPayload.toJSON(message.vcsPayload) : undefined);- if (message.usedByIssues) {- obj.usedByIssues = message.usedByIssues.map((e) => e ? SheetPayload_UsedByIssue.toJSON(e) : undefined);- } else {- obj.usedByIssues = [];- }message.schemaDesign !== undefined &&(obj.schemaDesign = message.schemaDesign ? SheetPayload_SchemaDesign.toJSON(message.schemaDesign) : undefined);return obj;@@ -220,7 +193,6 @@ export const SheetPayload = {message.vcsPayload = (object.vcsPayload !== undefined && object.vcsPayload !== null)? SheetPayload_VCSPayload.fromPartial(object.vcsPayload): undefined;- message.usedByIssues = object.usedByIssues?.map((e) => SheetPayload_UsedByIssue.fromPartial(e)) || [];message.schemaDesign = (object.schemaDesign !== undefined && object.schemaDesign !== null)? SheetPayload_SchemaDesign.fromPartial(object.schemaDesign): undefined;@@ -367,77 +339,6 @@ export const SheetPayload_VCSPayload = {},};-function createBaseSheetPayload_UsedByIssue(): SheetPayload_UsedByIssue {- return { issueId: 0, issueTitle: "" };-}--export const SheetPayload_UsedByIssue = {- encode(message: SheetPayload_UsedByIssue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {- if (message.issueId !== 0) {- writer.uint32(8).int64(message.issueId);- }- if (message.issueTitle !== "") {- writer.uint32(18).string(message.issueTitle);- }- return writer;- },-- decode(input: _m0.Reader | Uint8Array, length?: number): SheetPayload_UsedByIssue {- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);- let end = length === undefined ? reader.len : reader.pos + length;- const message = createBaseSheetPayload_UsedByIssue();- while (reader.pos < end) {- const tag = reader.uint32();- switch (tag >>> 3) {- case 1:- if (tag !== 8) {- break;- }-- message.issueId = longToNumber(reader.int64() as Long);- continue;- case 2:- if (tag !== 18) {- break;- }-- message.issueTitle = reader.string();- continue;- }- if ((tag & 7) === 4 || tag === 0) {- break;- }- reader.skipType(tag & 7);- }- return message;- },-- fromJSON(object: any): SheetPayload_UsedByIssue {- return {- issueId: isSet(object.issueId) ? Number(object.issueId) : 0,- issueTitle: isSet(object.issueTitle) ? String(object.issueTitle) : "",- };- },-- toJSON(message: SheetPayload_UsedByIssue): unknown {- const obj: any = {};- message.issueId !== undefined && (obj.issueId = Math.round(message.issueId));- message.issueTitle !== undefined && (obj.issueTitle = message.issueTitle);- return obj;- },-- create(base?: DeepPartial<SheetPayload_UsedByIssue>): SheetPayload_UsedByIssue {- return SheetPayload_UsedByIssue.fromPartial(base ?? {});- },-- fromPartial(object: DeepPartial<SheetPayload_UsedByIssue>): SheetPayload_UsedByIssue {- const message = createBaseSheetPayload_UsedByIssue();- message.issueId = object.issueId ?? 0;- message.issueTitle = object.issueTitle ?? "";- return message;- },-};-function createBaseSheetPayload_SchemaDesign(): SheetPayload_SchemaDesign {return { type: 0, engine: 0, baselineSheetId: "", baselineSchemaDesignId: "", baselineChangeHistoryId: "" };}diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.mdindex d5d7cae448..7be35af662 100644--- a/proto/gen/grpc-doc/store/README.md+++ b/proto/gen/grpc-doc/store/README.md@@ -152,7 +152,6 @@- [store/sheet.proto](#store_sheet-proto)- [SheetPayload](#bytebase-store-SheetPayload)- [SheetPayload.SchemaDesign](#bytebase-store-SheetPayload-SchemaDesign)- - [SheetPayload.UsedByIssue](#bytebase-store-SheetPayload-UsedByIssue)- [SheetPayload.VCSPayload](#bytebase-store-SheetPayload-VCSPayload)- [SheetPayload.SchemaDesign.Type](#bytebase-store-SheetPayload-SchemaDesign-Type)@@ -2318,7 +2317,6 @@ We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.| ----- | ---- | ----- | ----------- || type | [SheetPayload.Type](#bytebase-store-SheetPayload-Type) | | || vcs_payload | [SheetPayload.VCSPayload](#bytebase-store-SheetPayload-VCSPayload) | | |-| used_by_issues | [SheetPayload.UsedByIssue](#bytebase-store-SheetPayload-UsedByIssue) | repeated | used_by_issues link to the issues where the sheet is used. || schema_design | [SheetPayload.SchemaDesign](#bytebase-store-SheetPayload-SchemaDesign) | | |@@ -2345,22 +2343,6 @@ We support three types of SMTP encryption: NONE, STARTTLS, and SSL/TLS.-<a name="bytebase-store-SheetPayload-UsedByIssue"></a>--### SheetPayload.UsedByIssue----| Field | Type | Label | Description |-| ----- | ---- | ----- | ----------- |-| issue_id | [int64](#int64) | | |-| issue_title | [string](#string) | | |------<a name="bytebase-store-SheetPayload-VCSPayload"></a>### SheetPayload.VCSPayloaddiff --git a/proto/generated-go/store/sheet.pb.go b/proto/generated-go/store/sheet.pb.goindex 8c969485ea..e640298268 100644--- a/proto/generated-go/store/sheet.pb.go+++ b/proto/generated-go/store/sheet.pb.go@@ -115,7 +115,7 @@ func (x SheetPayload_SchemaDesign_Type) Number() protoreflect.EnumNumber {// Deprecated: Use SheetPayload_SchemaDesign_Type.Descriptor instead.func (SheetPayload_SchemaDesign_Type) EnumDescriptor() ([]byte, []int) {- return file_store_sheet_proto_rawDescGZIP(), []int{0, 2, 0}+ return file_store_sheet_proto_rawDescGZIP(), []int{0, 1, 0}}type SheetPayload struct {@@ -123,11 +123,9 @@ type SheetPayload struct {sizeCache protoimpl.SizeCacheunknownFields protoimpl.UnknownFields- Type SheetPayload_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.SheetPayload_Type" json:"type,omitempty"`- VcsPayload *SheetPayload_VCSPayload `protobuf:"bytes,2,opt,name=vcs_payload,json=vcsPayload,proto3" json:"vcs_payload,omitempty"`- // used_by_issues link to the issues where the sheet is used.- UsedByIssues []*SheetPayload_UsedByIssue `protobuf:"bytes,3,rep,name=used_by_issues,json=usedByIssues,proto3" json:"used_by_issues,omitempty"`- SchemaDesign *SheetPayload_SchemaDesign `protobuf:"bytes,4,opt,name=schema_design,json=schemaDesign,proto3" json:"schema_design,omitempty"`+ Type SheetPayload_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.SheetPayload_Type" json:"type,omitempty"`+ VcsPayload *SheetPayload_VCSPayload `protobuf:"bytes,2,opt,name=vcs_payload,json=vcsPayload,proto3" json:"vcs_payload,omitempty"`+ SchemaDesign *SheetPayload_SchemaDesign `protobuf:"bytes,3,opt,name=schema_design,json=schemaDesign,proto3" json:"schema_design,omitempty"`}func (x *SheetPayload) Reset() {@@ -176,13 +174,6 @@ func (x *SheetPayload) GetVcsPayload() *SheetPayload_VCSPayload {return nil}-func (x *SheetPayload) GetUsedByIssues() []*SheetPayload_UsedByIssue {- if x != nil {- return x.UsedByIssues- }- return nil-}-func (x *SheetPayload) GetSchemaDesign() *SheetPayload_SchemaDesign {if x != nil {return x.SchemaDesign@@ -285,61 +276,6 @@ func (x *SheetPayload_VCSPayload) GetPushEvent() *PushEvent {return nil}-type SheetPayload_UsedByIssue struct {- state protoimpl.MessageState- sizeCache protoimpl.SizeCache- unknownFields protoimpl.UnknownFields-- IssueId int64 `protobuf:"varint,1,opt,name=issue_id,json=issueId,proto3" json:"issue_id,omitempty"`- IssueTitle string `protobuf:"bytes,2,opt,name=issue_title,json=issueTitle,proto3" json:"issue_title,omitempty"`-}--func (x *SheetPayload_UsedByIssue) Reset() {- *x = SheetPayload_UsedByIssue{}- if protoimpl.UnsafeEnabled {- mi := &file_store_sheet_proto_msgTypes[2]- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- ms.StoreMessageInfo(mi)- }-}--func (x *SheetPayload_UsedByIssue) String() string {- return protoimpl.X.MessageStringOf(x)-}--func (*SheetPayload_UsedByIssue) ProtoMessage() {}--func (x *SheetPayload_UsedByIssue) ProtoReflect() protoreflect.Message {- mi := &file_store_sheet_proto_msgTypes[2]- if protoimpl.UnsafeEnabled && x != nil {- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))- if ms.LoadMessageInfo() == nil {- ms.StoreMessageInfo(mi)- }- return ms- }- return mi.MessageOf(x)-}--// Deprecated: Use SheetPayload_UsedByIssue.ProtoReflect.Descriptor instead.-func (*SheetPayload_UsedByIssue) Descriptor() ([]byte, []int) {- return file_store_sheet_proto_rawDescGZIP(), []int{0, 1}-}--func (x *SheetPayload_UsedByIssue) GetIssueId() int64 {- if x != nil {- return x.IssueId- }- return 0-}--func (x *SheetPayload_UsedByIssue) GetIssueTitle() string {- if x != nil {- return x.IssueTitle- }- return ""-}-type SheetPayload_SchemaDesign struct {state protoimpl.MessageStatesizeCache protoimpl.SizeCache@@ -360,7 +296,7 @@ type SheetPayload_SchemaDesign struct {func (x *SheetPayload_SchemaDesign) Reset() {*x = SheetPayload_SchemaDesign{}if protoimpl.UnsafeEnabled {- mi := &file_store_sheet_proto_msgTypes[3]+ mi := &file_store_sheet_proto_msgTypes[2]ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))ms.StoreMessageInfo(mi)}@@ -373,7 +309,7 @@ func (x *SheetPayload_SchemaDesign) String() string {func (*SheetPayload_SchemaDesign) ProtoMessage() {}func (x *SheetPayload_SchemaDesign) ProtoReflect() protoreflect.Message {- mi := &file_store_sheet_proto_msgTypes[3]+ mi := &file_store_sheet_proto_msgTypes[2]if protoimpl.UnsafeEnabled && x != nil {ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))if ms.LoadMessageInfo() == nil {@@ -386,7 +322,7 @@ func (x *SheetPayload_SchemaDesign) ProtoReflect() protoreflect.Message {// Deprecated: Use SheetPayload_SchemaDesign.ProtoReflect.Descriptor instead.func (*SheetPayload_SchemaDesign) Descriptor() ([]byte, []int) {- return file_store_sheet_proto_rawDescGZIP(), []int{0, 2}+ return file_store_sheet_proto_rawDescGZIP(), []int{0, 1}}func (x *SheetPayload_SchemaDesign) GetType() SheetPayload_SchemaDesign_Type {@@ -431,7 +367,7 @@ var file_store_sheet_proto_rawDesc = []byte{0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,0x6f, 0x72, 0x65, 0x1a, 0x12, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x76,- 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8e, 0x08, 0x0a, 0x0c, 0x53, 0x68, 0x65,+ 0x63, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xf3, 0x06, 0x0a, 0x0c, 0x53, 0x68, 0x65,0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x35, 0x0a, 0x04, 0x74, 0x79, 0x70,0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61,@@ -440,13 +376,8 @@ var file_store_sheet_proto_rawDesc = []byte{0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c,0x6f, 0x61, 0x64, 0x2e, 0x56, 0x43, 0x53, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x52, 0x0a,- 0x76, 0x63, 0x73, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x4e, 0x0a, 0x0e, 0x75, 0x73,- 0x65, 0x64, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03,- 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74,- 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,- 0x2e, 0x55, 0x73, 0x65, 0x64, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x52, 0x0c, 0x75, 0x73,- 0x65, 0x64, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x73, 0x12, 0x4e, 0x0a, 0x0d, 0x73, 0x63,- 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28,+ 0x76, 0x63, 0x73, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x4e, 0x0a, 0x0d, 0x73, 0x63,+ 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28,0x0b, 0x32, 0x29, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,0x72, 0x65, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e,0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x52, 0x0c, 0x73, 0x63,@@ -466,39 +397,34 @@ var file_store_sheet_proto_rawDesc = []byte{0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x62, 0x79,0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x50, 0x75, 0x73,0x68, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x52, 0x09, 0x70, 0x75, 0x73, 0x68, 0x45, 0x76, 0x65, 0x6e,- 0x74, 0x1a, 0x49, 0x0a, 0x0b, 0x55, 0x73, 0x65, 0x64, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65,- 0x12, 0x19, 0x0a, 0x08, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,- 0x28, 0x03, 0x52, 0x07, 0x69, 0x73, 0x73, 0x75, 0x65, 0x49, 0x64, 0x12, 0x1f, 0x0a, 0x0b, 0x69,- 0x73, 0x73, 0x75, 0x65, 0x5f, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x54, 0x69, 0x74, 0x6c, 0x65, 0x1a, 0xe9, 0x02, 0x0a,- 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x12, 0x42, 0x0a,- 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x2e, 0x2e, 0x62, 0x79,- 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x53, 0x68, 0x65,- 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70,- 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,- 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f,- 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e,- 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x68,- 0x65, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x61,- 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74, 0x49, 0x64, 0x12, 0x39, 0x0a,- 0x19, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09,- 0x52, 0x16, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61,- 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x12, 0x3b, 0x0a, 0x1a, 0x62, 0x61, 0x73, 0x65,- 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x5f, 0x68, 0x69, 0x73, 0x74,- 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x62, 0x61,- 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x48, 0x69, 0x73, 0x74,- 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x41, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a,- 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45,- 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x41, 0x49, 0x4e, 0x5f, 0x42, 0x52, 0x41, 0x4e,- 0x43, 0x48, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x45, 0x52, 0x53, 0x4f, 0x4e, 0x41, 0x4c,- 0x5f, 0x44, 0x52, 0x41, 0x46, 0x54, 0x10, 0x02, 0x22, 0x2f, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65,- 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,- 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x43, 0x48, 0x45, 0x4d, 0x41,- 0x5f, 0x44, 0x45, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x42, 0x14, 0x5a, 0x12, 0x67, 0x65, 0x6e,- 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62,- 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x74, 0x1a, 0xe9, 0x02, 0x0a, 0x0c, 0x53, 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69,+ 0x67, 0x6e, 0x12, 0x42, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e,+ 0x32, 0x2e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,+ 0x65, 0x2e, 0x53, 0x68, 0x65, 0x65, 0x74, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x2e, 0x54, 0x79, 0x70, 0x65,+ 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x2e, 0x0a, 0x06, 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65,+ 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x16, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73,+ 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x45, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x52, 0x06,+ 0x65, 0x6e, 0x67, 0x69, 0x6e, 0x65, 0x12, 0x2a, 0x0a, 0x11, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69,+ 0x6e, 0x65, 0x5f, 0x73, 0x68, 0x65, 0x65, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x0f, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53, 0x68, 0x65, 0x65, 0x74,+ 0x49, 0x64, 0x12, 0x39, 0x0a, 0x19, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x73,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x5f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x69, 0x64, 0x18,+ 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x16, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x53,+ 0x63, 0x68, 0x65, 0x6d, 0x61, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x49, 0x64, 0x12, 0x3b, 0x0a,+ 0x1a, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65,+ 0x5f, 0x68, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x05, 0x20, 0x01, 0x28,+ 0x09, 0x52, 0x17, 0x62, 0x61, 0x73, 0x65, 0x6c, 0x69, 0x6e, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67,+ 0x65, 0x48, 0x69, 0x73, 0x74, 0x6f, 0x72, 0x79, 0x49, 0x64, 0x22, 0x41, 0x0a, 0x04, 0x54, 0x79,+ 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,+ 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x41, 0x49, 0x4e,+ 0x5f, 0x42, 0x52, 0x41, 0x4e, 0x43, 0x48, 0x10, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x50, 0x45, 0x52,+ 0x53, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x44, 0x52, 0x41, 0x46, 0x54, 0x10, 0x02, 0x22, 0x2f, 0x0a,+ 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e,+ 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x11, 0x0a, 0x0d, 0x53,+ 0x43, 0x48, 0x45, 0x4d, 0x41, 0x5f, 0x44, 0x45, 0x53, 0x49, 0x47, 0x4e, 0x10, 0x01, 0x42, 0x14,+ 0x5a, 0x12, 0x67, 0x65, 0x6e, 0x65, 0x72, 0x61, 0x74, 0x65, 0x64, 0x2d, 0x67, 0x6f, 0x2f, 0x73,+ 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,}var (@@ -514,30 +440,28 @@ func file_store_sheet_proto_rawDescGZIP() []byte {}var file_store_sheet_proto_enumTypes = make([]protoimpl.EnumInfo, 2)-var file_store_sheet_proto_msgTypes = make([]protoimpl.MessageInfo, 4)+var file_store_sheet_proto_msgTypes = make([]protoimpl.MessageInfo, 3)var file_store_sheet_proto_goTypes = []interface{}{(SheetPayload_Type)(0), // 0: bytebase.store.SheetPayload.Type(SheetPayload_SchemaDesign_Type)(0), // 1: bytebase.store.SheetPayload.SchemaDesign.Type(*SheetPayload)(nil), // 2: bytebase.store.SheetPayload(*SheetPayload_VCSPayload)(nil), // 3: bytebase.store.SheetPayload.VCSPayload- (*SheetPayload_UsedByIssue)(nil), // 4: bytebase.store.SheetPayload.UsedByIssue- (*SheetPayload_SchemaDesign)(nil), // 5: bytebase.store.SheetPayload.SchemaDesign- (*PushEvent)(nil), // 6: bytebase.store.PushEvent- (Engine)(0), // 7: bytebase.store.Engine+ (*SheetPayload_SchemaDesign)(nil), // 4: bytebase.store.SheetPayload.SchemaDesign+ (*PushEvent)(nil), // 5: bytebase.store.PushEvent+ (Engine)(0), // 6: bytebase.store.Engine}var file_store_sheet_proto_depIdxs = []int32{0, // 0: bytebase.store.SheetPayload.type:type_name -> bytebase.store.SheetPayload.Type3, // 1: bytebase.store.SheetPayload.vcs_payload:type_name -> bytebase.store.SheetPayload.VCSPayload- 4, // 2: bytebase.store.SheetPayload.used_by_issues:type_name -> bytebase.store.SheetPayload.UsedByIssue- 5, // 3: bytebase.store.SheetPayload.schema_design:type_name -> bytebase.store.SheetPayload.SchemaDesign- 6, // 4: bytebase.store.SheetPayload.VCSPayload.push_event:type_name -> bytebase.store.PushEvent- 1, // 5: bytebase.store.SheetPayload.SchemaDesign.type:type_name -> bytebase.store.SheetPayload.SchemaDesign.Type- 7, // 6: bytebase.store.SheetPayload.SchemaDesign.engine:type_name -> bytebase.store.Engine- 7, // [7:7] is the sub-list for method output_type- 7, // [7:7] is the sub-list for method input_type- 7, // [7:7] is the sub-list for extension type_name- 7, // [7:7] is the sub-list for extension extendee- 0, // [0:7] is the sub-list for field type_name+ 4, // 2: bytebase.store.SheetPayload.schema_design:type_name -> bytebase.store.SheetPayload.SchemaDesign+ 5, // 3: bytebase.store.SheetPayload.VCSPayload.push_event:type_name -> bytebase.store.PushEvent+ 1, // 4: bytebase.store.SheetPayload.SchemaDesign.type:type_name -> bytebase.store.SheetPayload.SchemaDesign.Type+ 6, // 5: bytebase.store.SheetPayload.SchemaDesign.engine:type_name -> bytebase.store.Engine+ 6, // [6:6] is the sub-list for method output_type+ 6, // [6:6] is the sub-list for method input_type+ 6, // [6:6] is the sub-list for extension type_name+ 6, // [6:6] is the sub-list for extension extendee+ 0, // [0:6] is the sub-list for field type_name}func init() { file_store_sheet_proto_init() }@@ -573,18 +497,6 @@ func file_store_sheet_proto_init() {}}file_store_sheet_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {- switch v := v.(*SheetPayload_UsedByIssue); i {- case 0:- return &v.state- case 1:- return &v.sizeCache- case 2:- return &v.unknownFields- default:- return nil- }- }- file_store_sheet_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {switch v := v.(*SheetPayload_SchemaDesign); i {case 0:return &v.state@@ -603,7 +515,7 @@ func file_store_sheet_proto_init() {GoPackagePath: reflect.TypeOf(x{}).PkgPath(),RawDescriptor: file_store_sheet_proto_rawDesc,NumEnums: 2,- NumMessages: 4,+ NumMessages: 3,NumExtensions: 0,NumServices: 0,},diff --git a/proto/store/sheet.proto b/proto/store/sheet.protoindex dd60b1af14..62cc05802b 100644--- a/proto/store/sheet.proto+++ b/proto/store/sheet.proto@@ -27,13 +27,6 @@ message SheetPayload {}VCSPayload vcs_payload = 2;- message UsedByIssue {- int64 issue_id = 1;- string issue_title = 2;- }- // used_by_issues link to the issues where the sheet is used.- repeated UsedByIssue used_by_issues = 3;-message SchemaDesign {enum Type {TYPE_UNSPECIFIED = 0;@@ -53,5 +46,5 @@ message SheetPayload {// The id of the baseline change history including the baseline change history.(optional)string baseline_change_history_id = 5;}- SchemaDesign schema_design = 4;+ SchemaDesign schema_design = 3;}