Skip to content

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

chore: remove grouping from issue payload (#8054)

p0ny97aa5a1f9373
diff --git a/backend/migrator/migration/prod/2.8/0001##remove_grouping_from_issue_payload.sql b/backend/migrator/migration/prod/2.8/0001##remove_grouping_from_issue_payload.sql
new file mode 100644
index 0000000000..0b5830b927
--- /dev/null
+++ b/backend/migrator/migration/prod/2.8/0001##remove_grouping_from_issue_payload.sql
@@ -0,0 +1,7 @@
+ALTER TABLE issue DISABLE TRIGGER update_issue_updated_ts;
+
+UPDATE issue
+SET payload = payload - 'grouping'
+WHERE payload ? 'grouping';
+
+ALTER TABLE issue ENABLE TRIGGER update_issue_updated_ts;
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index 18083eb6e6..35e6a786b3 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -241,5 +241,5 @@ func TestMigrationCompatibility(t *testing.T) {
func TestGetCutoffVersion(t *testing.T) {
releaseVersion, err := getProdCutoffVersion()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("2.8.0"), releaseVersion)
+ require.Equal(t, semver.MustParse("2.8.1"), releaseVersion)
}
diff --git a/frontend/src/components/Issue/logic/common.ts b/frontend/src/components/Issue/logic/common.ts
index 64aa2b2b73..a577f16921 100644
--- a/frontend/src/components/Issue/logic/common.ts
+++ b/frontend/src/components/Issue/logic/common.ts
@@ -32,7 +32,6 @@ import {
languageOfEngineV1,
dialectOfEngineV1,
} from "@/types";
-import { IssuePayload } from "@/types/proto/store/issue";
import {
Sheet_Visibility,
Sheet_Source,
@@ -416,18 +415,9 @@ export const isTaskEditable = (task: Task): boolean => {
return false;
};
-export const isGroupingChangeIssue = (issue: Issue): boolean => {
- const route = useRoute();
- if (!route || !route.query) {
- return false;
- }
- if (route.query.databaseGroupName && route.query.databaseGroupName !== "") {
- return true;
- }
- const groupName = (issue.payload as IssuePayload).grouping?.databaseGroupName;
- if (groupName && groupName !== "") {
- return true;
- }
+// Deprecated in favor of IssueV1.
+// See https://github.com/bytebase/bytebase/pull/8054.
+export const isGroupingChangeIssue = (_: Issue): boolean => {
return false;
};
diff --git a/frontend/src/types/proto/store/issue.ts b/frontend/src/types/proto/store/issue.ts
index ee8ef1bb3c..29800da9d3 100644
--- a/frontend/src/types/proto/store/issue.ts
+++ b/frontend/src/types/proto/store/issue.ts
@@ -9,12 +9,6 @@ export const protobufPackage = "bytebase.store";
export interface IssuePayload {
approval?: IssuePayloadApproval | undefined;
grantRequest?: GrantRequest | undefined;
- grouping?: Grouping | undefined;
-}
-
-export interface Grouping {
- /** The group name, format projects/{project}/database_groups/{database_group} */
- databaseGroupName: string;
}
export interface GrantRequest {
@@ -27,7 +21,7 @@ export interface GrantRequest {
}
function createBaseIssuePayload(): IssuePayload {
- return { approval: undefined, grantRequest: undefined, grouping: undefined };
+ return { approval: undefined, grantRequest: undefined };
}
export const IssuePayload = {
@@ -38,9 +32,6 @@ export const IssuePayload = {
if (message.grantRequest !== undefined) {
GrantRequest.encode(message.grantRequest, writer.uint32(18).fork()).ldelim();
}
- if (message.grouping !== undefined) {
- Grouping.encode(message.grouping, writer.uint32(26).fork()).ldelim();
- }
return writer;
},
@@ -65,13 +56,6 @@ export const IssuePayload = {
message.grantRequest = GrantRequest.decode(reader, reader.uint32());
continue;
- case 3:
- if (tag !== 26) {
- break;
- }
-
- message.grouping = Grouping.decode(reader, reader.uint32());
- continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
@@ -85,7 +69,6 @@ export const IssuePayload = {
return {
approval: isSet(object.approval) ? IssuePayloadApproval.fromJSON(object.approval) : undefined,
grantRequest: isSet(object.grantRequest) ? GrantRequest.fromJSON(object.grantRequest) : undefined,
- grouping: isSet(object.grouping) ? Grouping.fromJSON(object.grouping) : undefined,
};
},
@@ -95,7 +78,6 @@ export const IssuePayload = {
(obj.approval = message.approval ? IssuePayloadApproval.toJSON(message.approval) : undefined);
message.grantRequest !== undefined &&
(obj.grantRequest = message.grantRequest ? GrantRequest.toJSON(message.grantRequest) : undefined);
- message.grouping !== undefined && (obj.grouping = message.grouping ? Grouping.toJSON(message.grouping) : undefined);
return obj;
},
@@ -111,65 +93,6 @@ export const IssuePayload = {
message.grantRequest = (object.grantRequest !== undefined && object.grantRequest !== null)
? GrantRequest.fromPartial(object.grantRequest)
: undefined;
- message.grouping = (object.grouping !== undefined && object.grouping !== null)
- ? Grouping.fromPartial(object.grouping)
- : undefined;
- return message;
- },
-};
-
-function createBaseGrouping(): Grouping {
- return { databaseGroupName: "" };
-}
-
-export const Grouping = {
- encode(message: Grouping, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.databaseGroupName !== "") {
- writer.uint32(10).string(message.databaseGroupName);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): Grouping {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseGrouping();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 10) {
- break;
- }
-
- message.databaseGroupName = reader.string();
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): Grouping {
- return { databaseGroupName: isSet(object.databaseGroupName) ? String(object.databaseGroupName) : "" };
- },
-
- toJSON(message: Grouping): unknown {
- const obj: any = {};
- message.databaseGroupName !== undefined && (obj.databaseGroupName = message.databaseGroupName);
- return obj;
- },
-
- create(base?: DeepPartial<Grouping>): Grouping {
- return Grouping.fromPartial(base ?? {});
- },
-
- fromPartial(object: DeepPartial<Grouping>): Grouping {
- const message = createBaseGrouping();
- message.databaseGroupName = object.databaseGroupName ?? "";
return message;
},
};
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 8cf56207a2..10e1f42ea7 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -90,7 +90,6 @@
- [store/issue.proto](#store_issue-proto)
- [GrantRequest](#bytebase-store-GrantRequest)
- - [Grouping](#bytebase-store-Grouping)
- [IssuePayload](#bytebase-store-IssuePayload)
- [store/plan.proto](#store_plan-proto)
@@ -1448,21 +1447,6 @@ InstanceOptions is the option for instances.
-<a name="bytebase-store-Grouping"></a>
-
-### Grouping
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| database_group_name | [string](#string) | | The group name, format projects/{project}/database_groups/{database_group} |
-
-
-
-
-
-
<a name="bytebase-store-IssuePayload"></a>
### IssuePayload
@@ -1473,7 +1457,6 @@ InstanceOptions is the option for instances.
| ----- | ---- | ----- | ----------- |
| approval | [IssuePayloadApproval](#bytebase-store-IssuePayloadApproval) | | |
| grant_request | [GrantRequest](#bytebase-store-GrantRequest) | | |
-| grouping | [Grouping](#bytebase-store-Grouping) | | |
diff --git a/proto/generated-go/store/issue.pb.go b/proto/generated-go/store/issue.pb.go
index 2a7249feea..e6d16f6dae 100644
--- a/proto/generated-go/store/issue.pb.go
+++ b/proto/generated-go/store/issue.pb.go
@@ -29,7 +29,6 @@ type IssuePayload struct {
Approval *IssuePayloadApproval `protobuf:"bytes,1,opt,name=approval,proto3" json:"approval,omitempty"`
GrantRequest *GrantRequest `protobuf:"bytes,2,opt,name=grant_request,json=grantRequest,proto3" json:"grant_request,omitempty"`
- Grouping *Grouping `protobuf:"bytes,3,opt,name=grouping,proto3" json:"grouping,omitempty"`
}
func (x *IssuePayload) Reset() {
@@ -78,61 +77,6 @@ func (x *IssuePayload) GetGrantRequest() *GrantRequest {
return nil
}
-func (x *IssuePayload) GetGrouping() *Grouping {
- if x != nil {
- return x.Grouping
- }
- return nil
-}
-
-type Grouping struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // The group name, format projects/{project}/database_groups/{database_group}
- DatabaseGroupName string `protobuf:"bytes,1,opt,name=database_group_name,json=databaseGroupName,proto3" json:"database_group_name,omitempty"`
-}
-
-func (x *Grouping) Reset() {
- *x = Grouping{}
- if protoimpl.UnsafeEnabled {
- mi := &file_store_issue_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *Grouping) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*Grouping) ProtoMessage() {}
-
-func (x *Grouping) ProtoReflect() protoreflect.Message {
- mi := &file_store_issue_proto_msgTypes[1]
- 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 Grouping.ProtoReflect.Descriptor instead.
-func (*Grouping) Descriptor() ([]byte, []int) {
- return file_store_issue_proto_rawDescGZIP(), []int{1}
-}
-
-func (x *Grouping) GetDatabaseGroupName() string {
- if x != nil {
- return x.DatabaseGroupName
- }
- return ""
-}
-
type GrantRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
@@ -149,7 +93,7 @@ type GrantRequest struct {
func (x *GrantRequest) Reset() {
*x = GrantRequest{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_issue_proto_msgTypes[2]
+ mi := &file_store_issue_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -162,7 +106,7 @@ func (x *GrantRequest) String() string {
func (*GrantRequest) ProtoMessage() {}
func (x *GrantRequest) ProtoReflect() protoreflect.Message {
- mi := &file_store_issue_proto_msgTypes[2]
+ mi := &file_store_issue_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -175,7 +119,7 @@ func (x *GrantRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GrantRequest.ProtoReflect.Descriptor instead.
func (*GrantRequest) Descriptor() ([]byte, []int) {
- return file_store_issue_proto_rawDescGZIP(), []int{2}
+ return file_store_issue_proto_rawDescGZIP(), []int{1}
}
func (x *GrantRequest) GetRole() string {
@@ -216,7 +160,7 @@ var file_store_issue_proto_rawDesc = []byte{
0x6f, 0x74, 0x6f, 0x1a, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65,
0x2f, 0x65, 0x78, 0x70, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x73, 0x74, 0x6f,
0x72, 0x65, 0x2f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74,
- 0x6f, 0x22, 0xc9, 0x01, 0x0a, 0x0c, 0x49, 0x73, 0x73, 0x75, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f,
+ 0x6f, 0x22, 0x93, 0x01, 0x0a, 0x0c, 0x49, 0x73, 0x73, 0x75, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f,
0x61, 0x64, 0x12, 0x40, 0x0a, 0x08, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x18, 0x01,
0x20, 0x01, 0x28, 0x0b, 0x32, 0x24, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e,
0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x49, 0x73, 0x73, 0x75, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f,
@@ -225,26 +169,19 @@ var file_store_issue_proto_rawDesc = []byte{
0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x62, 0x79,
0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x72, 0x61,
0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x0c, 0x67, 0x72, 0x61, 0x6e, 0x74,
- 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70,
- 0x69, 0x6e, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x62, 0x79, 0x74, 0x65,
- 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x47, 0x72, 0x6f, 0x75, 0x70,
- 0x69, 0x6e, 0x67, 0x52, 0x08, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x6e, 0x67, 0x22, 0x3a, 0x0a,
- 0x08, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x2e, 0x0a, 0x13, 0x64, 0x61, 0x74,
- 0x61, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x5f, 0x6e, 0x61, 0x6d, 0x65,
- 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x11, 0x64, 0x61, 0x74, 0x61, 0x62, 0x61, 0x73, 0x65,
- 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x0c, 0x47, 0x72,
- 0x61, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f,
- 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x12,
- 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73,
- 0x65, 0x72, 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18,
- 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74,
- 0x79, 0x70, 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74,
- 0x69, 0x6f, 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f,
- 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
- 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69,
- 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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,
+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0xa2, 0x01, 0x0a, 0x0c, 0x47, 0x72, 0x61, 0x6e,
+ 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x72, 0x6f, 0x6c, 0x65,
+ 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x72, 0x6f, 0x6c, 0x65, 0x12, 0x12, 0x0a, 0x04,
+ 0x75, 0x73, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72,
+ 0x12, 0x2f, 0x0a, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70,
+ 0x65, 0x2e, 0x45, 0x78, 0x70, 0x72, 0x52, 0x09, 0x63, 0x6f, 0x6e, 0x64, 0x69, 0x74, 0x69, 0x6f,
+ 0x6e, 0x12, 0x39, 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x18,
+ 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70,
+ 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e,
+ 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 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 (
@@ -259,26 +196,24 @@ func file_store_issue_proto_rawDescGZIP() []byte {
return file_store_issue_proto_rawDescData
}
-var file_store_issue_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
+var file_store_issue_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
var file_store_issue_proto_goTypes = []interface{}{
(*IssuePayload)(nil), // 0: bytebase.store.IssuePayload
- (*Grouping)(nil), // 1: bytebase.store.Grouping
- (*GrantRequest)(nil), // 2: bytebase.store.GrantRequest
- (*IssuePayloadApproval)(nil), // 3: bytebase.store.IssuePayloadApproval
- (*expr.Expr)(nil), // 4: google.type.Expr
- (*durationpb.Duration)(nil), // 5: google.protobuf.Duration
+ (*GrantRequest)(nil), // 1: bytebase.store.GrantRequest
+ (*IssuePayloadApproval)(nil), // 2: bytebase.store.IssuePayloadApproval
+ (*expr.Expr)(nil), // 3: google.type.Expr
+ (*durationpb.Duration)(nil), // 4: google.protobuf.Duration
}
var file_store_issue_proto_depIdxs = []int32{
- 3, // 0: bytebase.store.IssuePayload.approval:type_name -> bytebase.store.IssuePayloadApproval
- 2, // 1: bytebase.store.IssuePayload.grant_request:type_name -> bytebase.store.GrantRequest
- 1, // 2: bytebase.store.IssuePayload.grouping:type_name -> bytebase.store.Grouping
- 4, // 3: bytebase.store.GrantRequest.condition:type_name -> google.type.Expr
- 5, // 4: bytebase.store.GrantRequest.expiration:type_name -> google.protobuf.Duration
- 5, // [5:5] is the sub-list for method output_type
- 5, // [5:5] is the sub-list for method input_type
- 5, // [5:5] is the sub-list for extension type_name
- 5, // [5:5] is the sub-list for extension extendee
- 0, // [0:5] is the sub-list for field type_name
+ 2, // 0: bytebase.store.IssuePayload.approval:type_name -> bytebase.store.IssuePayloadApproval
+ 1, // 1: bytebase.store.IssuePayload.grant_request:type_name -> bytebase.store.GrantRequest
+ 3, // 2: bytebase.store.GrantRequest.condition:type_name -> google.type.Expr
+ 4, // 3: bytebase.store.GrantRequest.expiration:type_name -> google.protobuf.Duration
+ 4, // [4:4] is the sub-list for method output_type
+ 4, // [4:4] is the sub-list for method input_type
+ 4, // [4:4] is the sub-list for extension type_name
+ 4, // [4:4] is the sub-list for extension extendee
+ 0, // [0:4] is the sub-list for field type_name
}
func init() { file_store_issue_proto_init() }
@@ -301,18 +236,6 @@ func file_store_issue_proto_init() {
}
}
file_store_issue_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*Grouping); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_store_issue_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*GrantRequest); i {
case 0:
return &v.state
@@ -331,7 +254,7 @@ func file_store_issue_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_issue_proto_rawDesc,
NumEnums: 0,
- NumMessages: 3,
+ NumMessages: 2,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/store/issue.proto b/proto/store/issue.proto
index 36776bcad7..8df39bfca0 100644
--- a/proto/store/issue.proto
+++ b/proto/store/issue.proto
@@ -11,12 +11,6 @@ option go_package = "generated-go/store";
message IssuePayload {
IssuePayloadApproval approval = 1;
GrantRequest grant_request = 2;
- Grouping grouping = 3;
-}
-
-message Grouping {
- // The group name, format projects/{project}/database_groups/{database_group}
- string database_group_name = 1;
}
message GrantRequest {