Skip to content

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

fix: remove the oneof of activity payload (#5556)

h3n4l738156db82a4
diff --git a/backend/migrator/migration/prod/1.16/0001##remove_activity_payload_oneof.sql b/backend/migrator/migration/prod/1.16/0001##remove_activity_payload_oneof.sql
new file mode 100644
index 0000000000..5c492b9dbd
--- /dev/null
+++ b/backend/migrator/migration/prod/1.16/0001##remove_activity_payload_oneof.sql
@@ -0,0 +1,6 @@
+UPDATE activity SET
+ payload = payload->'issueCommentCreatePayload'
+WHERE
+ "type"='bb.issue.comment.create'
+ AND
+ payload ? 'issueCommentCreatePayload';
\ No newline at end of file
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index eeae7d9ff9..fb69743c96 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("1.16.0"), releaseVersion)
+ require.Equal(t, semver.MustParse("1.16.1"), releaseVersion)
}
diff --git a/backend/tests/activity_store_proto_migrate_test.go b/backend/tests/activity_store_proto_migrate_test.go
deleted file mode 100644
index ce8029d9a0..0000000000
--- a/backend/tests/activity_store_proto_migrate_test.go
+++ /dev/null
@@ -1,225 +0,0 @@
-package tests
-
-import (
- "context"
- "database/sql"
- "encoding/json"
- "fmt"
- "testing"
-
- "github.com/stretchr/testify/require"
- "go.uber.org/zap/zapcore"
- "google.golang.org/protobuf/encoding/protojson"
- "google.golang.org/protobuf/proto"
-
- "github.com/bytebase/bytebase/backend/common/log"
- api "github.com/bytebase/bytebase/backend/legacyapi"
- "github.com/bytebase/bytebase/backend/tests/fake"
- storepb "github.com/bytebase/bytebase/proto/generated-go/store"
-)
-
-/*
- * Compare proto/generated-go/store/activity.pb.go and backend/legacyapi/activity.go to see what fields should be migrated.
- */
-
-const (
- MigrateActivityIssueCommentCreatePayloadStatementFmt = `
-UPDATE %s
-SET payload = jsonb_build_object('issueCommentCreatePayload',
- CASE
- WHEN payload ? 'externalApprovalEvent' THEN
- -- If the key 'externalApprovalEvent' exists updates its' value of key 'type' and 'action'.
- CASE
- WHEN payload #> '{externalApprovalEvent, action}' = '"APPROVE"' THEN
- jsonb_set(jsonb_set(payload, '{externalApprovalEvent, type}', '"TYPE_FEISHU"'), '{externalApprovalEvent, action}', '"ACTION_APPROVE"')
- ELSE
- jsonb_set(jsonb_set(payload, '{externalApprovalEvent, type}', '"TYPE_FEISHU"'), '{externalApprovalEvent, action}', '"ACTION_REJECT"')
- END
- WHEN payload ? 'taskRollbackBy' THEN
- -- Proto3 maps int64 to JSON string, so we need to convert them to string.
- jsonb_set(
- jsonb_set(
- jsonb_set(
- jsonb_set(
- payload, '{taskRollbackBy, issueId}', to_jsonb(payload #>> '{taskRollbackBy, issueId}')
- ), '{taskRollbackBy, taskId}', to_jsonb(payload #>> '{taskRollbackBy, taskId}')
- ), '{taskRollbackBy, rollbackByIssueId}', to_jsonb(payload #>> '{taskRollbackBy, rollbackByIssueId}')
- ), '{taskRollbackBy, rollbackByTaskId}', to_jsonb(payload #>> '{taskRollbackBy, rollbackByTaskId}')
- )
- ELSE
- payload
- END
-)
-WHERE "type"='bb.issue.comment.create';
-`
-)
-
-func TestMigrateActivityIssueCreatePayload(t *testing.T) {
- t.Skip("IssueCreatePayload is no need to migrate")
-}
-
-func TestMigrateActivityIssueCommentCreatePayload(t *testing.T) {
- testCases := []struct {
- legacyPayload *api.ActivityIssueCommentCreatePayload
- protoPayload *storepb.ActivityPayload
- }{
- {
- legacyPayload: &api.ActivityIssueCommentCreatePayload{
- IssueName: "issue1",
- },
- protoPayload: &storepb.ActivityPayload{
- Payload: &storepb.ActivityPayload_IssueCommentCreatePayload{
- IssueCommentCreatePayload: &storepb.ActivityIssueCommentCreatePayload{
- IssueName: "issue1",
- },
- },
- },
- },
- {
- legacyPayload: &api.ActivityIssueCommentCreatePayload{
- IssueName: "issue1",
- ExternalApprovalEvent: &api.ExternalApprovalEvent{
- Type: api.ExternalApprovalTypeFeishu,
- Action: api.ExternalApprovalEventActionApprove,
- StageName: "stage1",
- },
- },
- protoPayload: &storepb.ActivityPayload{
- Payload: &storepb.ActivityPayload_IssueCommentCreatePayload{
- IssueCommentCreatePayload: &storepb.ActivityIssueCommentCreatePayload{
- IssueName: "issue1",
- Event: &storepb.ActivityIssueCommentCreatePayload_ExternalApprovalEvent_{
- ExternalApprovalEvent: &storepb.ActivityIssueCommentCreatePayload_ExternalApprovalEvent{
- Type: storepb.ActivityIssueCommentCreatePayload_ExternalApprovalEvent_TYPE_FEISHU,
- Action: storepb.ActivityIssueCommentCreatePayload_ExternalApprovalEvent_ACTION_APPROVE,
- StageName: "stage1",
- },
- },
- },
- },
- },
- },
- {
- legacyPayload: &api.ActivityIssueCommentCreatePayload{
- IssueName: "issue1",
- ExternalApprovalEvent: &api.ExternalApprovalEvent{
- Type: api.ExternalApprovalTypeFeishu,
- Action: api.ExternalApprovalEventActionReject,
- StageName: "stage1",
- },
- },
- protoPayload: &storepb.ActivityPayload{
- Payload: &storepb.ActivityPayload_IssueCommentCreatePayload{
- IssueCommentCreatePayload: &storepb.ActivityIssueCommentCreatePayload{
- IssueName: "issue1",
- Event: &storepb.ActivityIssueCommentCreatePayload_ExternalApprovalEvent_{
- ExternalApprovalEvent: &storepb.ActivityIssueCommentCreatePayload_ExternalApprovalEvent{
- Type: storepb.ActivityIssueCommentCreatePayload_ExternalApprovalEvent_TYPE_FEISHU,
- Action: storepb.ActivityIssueCommentCreatePayload_ExternalApprovalEvent_ACTION_REJECT,
- StageName: "stage1",
- },
- },
- },
- },
- },
- },
- {
- legacyPayload: &api.ActivityIssueCommentCreatePayload{
- IssueName: "issue1",
- TaskRollbackBy: &api.TaskRollbackBy{
- IssueID: 1,
- TaskID: 2,
- RollbackByIssueID: 3,
- RollbackByTaskID: 4,
- },
- },
- protoPayload: &storepb.ActivityPayload{
- Payload: &storepb.ActivityPayload_IssueCommentCreatePayload{
- IssueCommentCreatePayload: &storepb.ActivityIssueCommentCreatePayload{
- IssueName: "issue1",
- Event: &storepb.ActivityIssueCommentCreatePayload_TaskRollbackBy_{
- TaskRollbackBy: &storepb.ActivityIssueCommentCreatePayload_TaskRollbackBy{
- IssueId: 1,
- TaskId: 2,
- RollbackByIssueId: 3,
- RollbackByTaskId: 4,
- },
- },
- },
- },
- },
- },
- }
-
- a := require.New(t)
- log.SetLevel(zapcore.DebugLevel)
- ctx := context.Background()
- ctl := &controller{}
- dataDir := t.TempDir()
- err := ctl.StartServerWithExternalPg(ctx, &config{
- dataDir: dataDir,
- vcsProviderCreator: fake.NewGitLab,
- })
- a.NoError(err)
- defer ctl.Close(ctx)
- metaDB, err := sql.Open("pgx", ctl.profile.PgURL)
- a.NoError(err)
- legacyTableName := fmt.Sprintf("legacy_%s", t.Name())
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf(`CREATE TABLE %s(payload JSONB, "type" TEXT NOT NULL DEFAULT 'bb.issue.comment.create');`, legacyTableName))
- a.NoError(err)
- protoTableName := fmt.Sprintf("proto_%s", t.Name())
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf(`CREATE TABLE %s(payload JSONB);`, protoTableName))
- a.NoError(err)
-
- for _, tc := range testCases {
- {
- // Apply migrate SQL to legacy table and unmarshal to compare with proto payload.
- payload, err := json.Marshal(tc.legacyPayload)
- a.NoError(err)
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf("INSERT INTO %s(payload) VALUES($1);", legacyTableName), payload)
- a.NoError(err)
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf(MigrateActivityIssueCommentCreatePayloadStatementFmt, legacyTableName))
- a.NoError(err)
- var storePayload string
- err = metaDB.QueryRowContext(ctx, fmt.Sprintf("SELECT payload FROM %s;", legacyTableName)).Scan(&storePayload)
- a.NoError(err)
- var protoPayload storepb.ActivityPayload
- err = protojson.Unmarshal([]byte(storePayload), &protoPayload)
- a.NoError(err)
- a.True(proto.Equal(tc.protoPayload, &protoPayload))
-
- // Remove data
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf("DELETE FROM %s;", legacyTableName))
- a.NoError(err)
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf("DELETE FROM %s;", protoTableName))
- a.NoError(err)
- }
-
- {
- // Seed data to proto table and legacy table, and execute migrate SQL to legacy table and unmarshal to compare with proto payload.
- payload, err := json.Marshal(tc.legacyPayload)
- a.NoError(err)
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf("INSERT INTO %s(payload) VALUES($1);", legacyTableName), payload)
- a.NoError(err)
- payload, err = protojson.Marshal(tc.protoPayload)
- a.NoError(err)
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf("INSERT INTO %s(payload) VALUES($1);", protoTableName), payload)
- a.NoError(err)
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf(MigrateActivityIssueCommentCreatePayloadStatementFmt, legacyTableName))
- a.NoError(err)
- var legacyPayload string
- err = metaDB.QueryRowContext(ctx, fmt.Sprintf("SELECT payload FROM %s;", legacyTableName)).Scan(&legacyPayload)
- a.NoError(err)
- var protoPayload string
- err = metaDB.QueryRowContext(ctx, fmt.Sprintf("SELECT payload FROM %s;", protoTableName)).Scan(&protoPayload)
- a.NoError(err)
- a.Equal(protoPayload, legacyPayload)
-
- // Remove data
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf("DELETE FROM %s;", legacyTableName))
- a.NoError(err)
- _, err = metaDB.ExecContext(ctx, fmt.Sprintf("DELETE FROM %s;", protoTableName))
- a.NoError(err)
- }
- }
-}
diff --git a/frontend/src/types/proto/store/activity.ts b/frontend/src/types/proto/store/activity.ts
index 10f78d4531..db0710637a 100644
--- a/frontend/src/types/proto/store/activity.ts
+++ b/frontend/src/types/proto/store/activity.ts
@@ -4,11 +4,6 @@ import * as _m0 from "protobufjs/minimal";
export const protobufPackage = "bytebase.store";
-export interface ActivityPayload {
- issueCreatePayload?: ActivityIssueCreatePayload | undefined;
- issueCommentCreatePayload?: ActivityIssueCommentCreatePayload | undefined;
-}
-
/**
* ActivityIssueCreatePayload is the payloads for creating issues.
* These payload types are only used when marshalling to the json format for saving into the database.
@@ -177,91 +172,6 @@ export function activityIssueCommentCreatePayload_ApprovalEvent_StatusToJSON(
}
}
-function createBaseActivityPayload(): ActivityPayload {
- return { issueCreatePayload: undefined, issueCommentCreatePayload: undefined };
-}
-
-export const ActivityPayload = {
- encode(message: ActivityPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.issueCreatePayload !== undefined) {
- ActivityIssueCreatePayload.encode(message.issueCreatePayload, writer.uint32(10).fork()).ldelim();
- }
- if (message.issueCommentCreatePayload !== undefined) {
- ActivityIssueCommentCreatePayload.encode(message.issueCommentCreatePayload, writer.uint32(18).fork()).ldelim();
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): ActivityPayload {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseActivityPayload();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag != 10) {
- break;
- }
-
- message.issueCreatePayload = ActivityIssueCreatePayload.decode(reader, reader.uint32());
- continue;
- case 2:
- if (tag != 18) {
- break;
- }
-
- message.issueCommentCreatePayload = ActivityIssueCommentCreatePayload.decode(reader, reader.uint32());
- continue;
- }
- if ((tag & 7) == 4 || tag == 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): ActivityPayload {
- return {
- issueCreatePayload: isSet(object.issueCreatePayload)
- ? ActivityIssueCreatePayload.fromJSON(object.issueCreatePayload)
- : undefined,
- issueCommentCreatePayload: isSet(object.issueCommentCreatePayload)
- ? ActivityIssueCommentCreatePayload.fromJSON(object.issueCommentCreatePayload)
- : undefined,
- };
- },
-
- toJSON(message: ActivityPayload): unknown {
- const obj: any = {};
- message.issueCreatePayload !== undefined && (obj.issueCreatePayload = message.issueCreatePayload
- ? ActivityIssueCreatePayload.toJSON(message.issueCreatePayload)
- : undefined);
- message.issueCommentCreatePayload !== undefined &&
- (obj.issueCommentCreatePayload = message.issueCommentCreatePayload
- ? ActivityIssueCommentCreatePayload.toJSON(message.issueCommentCreatePayload)
- : undefined);
- return obj;
- },
-
- create(base?: DeepPartial<ActivityPayload>): ActivityPayload {
- return ActivityPayload.fromPartial(base ?? {});
- },
-
- fromPartial(object: DeepPartial<ActivityPayload>): ActivityPayload {
- const message = createBaseActivityPayload();
- message.issueCreatePayload = (object.issueCreatePayload !== undefined && object.issueCreatePayload !== null)
- ? ActivityIssueCreatePayload.fromPartial(object.issueCreatePayload)
- : undefined;
- message.issueCommentCreatePayload =
- (object.issueCommentCreatePayload !== undefined && object.issueCommentCreatePayload !== null)
- ? ActivityIssueCommentCreatePayload.fromPartial(object.issueCommentCreatePayload)
- : undefined;
- return message;
- },
-};
-
function createBaseActivityIssueCreatePayload(): ActivityIssueCreatePayload {
return { issueName: "" };
}
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 382d1c262e..914f92001d 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -9,7 +9,6 @@
- [ActivityIssueCommentCreatePayload.ExternalApprovalEvent](#bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent)
- [ActivityIssueCommentCreatePayload.TaskRollbackBy](#bytebase-store-ActivityIssueCommentCreatePayload-TaskRollbackBy)
- [ActivityIssueCreatePayload](#bytebase-store-ActivityIssueCreatePayload)
- - [ActivityPayload](#bytebase-store-ActivityPayload)
- [ActivityIssueCommentCreatePayload.ApprovalEvent.Status](#bytebase-store-ActivityIssueCommentCreatePayload-ApprovalEvent-Status)
- [ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action](#bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent-Action)
@@ -167,22 +166,6 @@ convert to the expected struct there.
-
-<a name="bytebase-store-ActivityPayload"></a>
-
-### ActivityPayload
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| issue_create_payload | [ActivityIssueCreatePayload](#bytebase-store-ActivityIssueCreatePayload) | | |
-| issue_comment_create_payload | [ActivityIssueCommentCreatePayload](#bytebase-store-ActivityIssueCommentCreatePayload) | | |
-
-
-
-
-
diff --git a/proto/generated-go/store/activity.pb.go b/proto/generated-go/store/activity.pb.go
index 07b760c6b2..db3deedc4d 100644
--- a/proto/generated-go/store/activity.pb.go
+++ b/proto/generated-go/store/activity.pb.go
@@ -63,7 +63,7 @@ func (x ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type) Number() p
// Deprecated: Use ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.Descriptor instead.
func (ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type) EnumDescriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{2, 1, 0}
+ return file_store_activity_proto_rawDescGZIP(), []int{1, 1, 0}
}
type ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action int32
@@ -112,7 +112,7 @@ func (x ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action) Number()
// Deprecated: Use ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.Descriptor instead.
func (ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action) EnumDescriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{2, 1, 1}
+ return file_store_activity_proto_rawDescGZIP(), []int{1, 1, 1}
}
type ActivityIssueCommentCreatePayload_ApprovalEvent_Status int32
@@ -161,90 +161,9 @@ func (x ActivityIssueCommentCreatePayload_ApprovalEvent_Status) Number() protore
// Deprecated: Use ActivityIssueCommentCreatePayload_ApprovalEvent_Status.Descriptor instead.
func (ActivityIssueCommentCreatePayload_ApprovalEvent_Status) EnumDescriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{2, 2, 0}
+ return file_store_activity_proto_rawDescGZIP(), []int{1, 2, 0}
}
-type ActivityPayload struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Types that are assignable to Payload:
- //
- // *ActivityPayload_IssueCreatePayload
- // *ActivityPayload_IssueCommentCreatePayload
- Payload isActivityPayload_Payload `protobuf_oneof:"payload"`
-}
-
-func (x *ActivityPayload) Reset() {
- *x = ActivityPayload{}
- if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *ActivityPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ActivityPayload) ProtoMessage() {}
-
-func (x *ActivityPayload) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[0]
- 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 ActivityPayload.ProtoReflect.Descriptor instead.
-func (*ActivityPayload) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{0}
-}
-
-func (m *ActivityPayload) GetPayload() isActivityPayload_Payload {
- if m != nil {
- return m.Payload
- }
- return nil
-}
-
-func (x *ActivityPayload) GetIssueCreatePayload() *ActivityIssueCreatePayload {
- if x, ok := x.GetPayload().(*ActivityPayload_IssueCreatePayload); ok {
- return x.IssueCreatePayload
- }
- return nil
-}
-
-func (x *ActivityPayload) GetIssueCommentCreatePayload() *ActivityIssueCommentCreatePayload {
- if x, ok := x.GetPayload().(*ActivityPayload_IssueCommentCreatePayload); ok {
- return x.IssueCommentCreatePayload
- }
- return nil
-}
-
-type isActivityPayload_Payload interface {
- isActivityPayload_Payload()
-}
-
-type ActivityPayload_IssueCreatePayload struct {
- IssueCreatePayload *ActivityIssueCreatePayload `protobuf:"bytes,1,opt,name=issue_create_payload,json=issueCreatePayload,proto3,oneof"`
-}
-
-type ActivityPayload_IssueCommentCreatePayload struct {
- IssueCommentCreatePayload *ActivityIssueCommentCreatePayload `protobuf:"bytes,2,opt,name=issue_comment_create_payload,json=issueCommentCreatePayload,proto3,oneof"`
-}
-
-func (*ActivityPayload_IssueCreatePayload) isActivityPayload_Payload() {}
-
-func (*ActivityPayload_IssueCommentCreatePayload) isActivityPayload_Payload() {}
-
// ActivityIssueCreatePayload is the payloads for creating issues.
// These payload types are only used when marshalling to the json format for saving into the database.
// So we annotate with json tag using camelCase naming which is consistent with normal
@@ -262,7 +181,7 @@ type ActivityIssueCreatePayload struct {
func (x *ActivityIssueCreatePayload) Reset() {
*x = ActivityIssueCreatePayload{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[1]
+ mi := &file_store_activity_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -275,7 +194,7 @@ func (x *ActivityIssueCreatePayload) String() string {
func (*ActivityIssueCreatePayload) ProtoMessage() {}
func (x *ActivityIssueCreatePayload) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[1]
+ mi := &file_store_activity_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -288,7 +207,7 @@ func (x *ActivityIssueCreatePayload) ProtoReflect() protoreflect.Message {
// Deprecated: Use ActivityIssueCreatePayload.ProtoReflect.Descriptor instead.
func (*ActivityIssueCreatePayload) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{1}
+ return file_store_activity_proto_rawDescGZIP(), []int{0}
}
func (x *ActivityIssueCreatePayload) GetIssueName() string {
@@ -317,7 +236,7 @@ type ActivityIssueCommentCreatePayload struct {
func (x *ActivityIssueCommentCreatePayload) Reset() {
*x = ActivityIssueCommentCreatePayload{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[2]
+ mi := &file_store_activity_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -330,7 +249,7 @@ func (x *ActivityIssueCommentCreatePayload) String() string {
func (*ActivityIssueCommentCreatePayload) ProtoMessage() {}
func (x *ActivityIssueCommentCreatePayload) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[2]
+ mi := &file_store_activity_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -343,7 +262,7 @@ func (x *ActivityIssueCommentCreatePayload) ProtoReflect() protoreflect.Message
// Deprecated: Use ActivityIssueCommentCreatePayload.ProtoReflect.Descriptor instead.
func (*ActivityIssueCommentCreatePayload) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{2}
+ return file_store_activity_proto_rawDescGZIP(), []int{1}
}
func (m *ActivityIssueCommentCreatePayload) GetEvent() isActivityIssueCommentCreatePayload_Event {
@@ -422,7 +341,7 @@ type ActivityIssueCommentCreatePayload_TaskRollbackBy struct {
func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) Reset() {
*x = ActivityIssueCommentCreatePayload_TaskRollbackBy{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[3]
+ mi := &file_store_activity_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -435,7 +354,7 @@ func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) String() string {
func (*ActivityIssueCommentCreatePayload_TaskRollbackBy) ProtoMessage() {}
func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[3]
+ mi := &file_store_activity_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -448,7 +367,7 @@ func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) ProtoReflect() protor
// Deprecated: Use ActivityIssueCommentCreatePayload_TaskRollbackBy.ProtoReflect.Descriptor instead.
func (*ActivityIssueCommentCreatePayload_TaskRollbackBy) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{2, 0}
+ return file_store_activity_proto_rawDescGZIP(), []int{1, 0}
}
func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) GetIssueId() int64 {
@@ -492,7 +411,7 @@ type ActivityIssueCommentCreatePayload_ExternalApprovalEvent struct {
func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) Reset() {
*x = ActivityIssueCommentCreatePayload_ExternalApprovalEvent{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[4]
+ mi := &file_store_activity_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -505,7 +424,7 @@ func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) String() strin
func (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent) ProtoMessage() {}
func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[4]
+ mi := &file_store_activity_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -518,7 +437,7 @@ func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) ProtoReflect()
// Deprecated: Use ActivityIssueCommentCreatePayload_ExternalApprovalEvent.ProtoReflect.Descriptor instead.
func (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{2, 1}
+ return file_store_activity_proto_rawDescGZIP(), []int{1, 1}
}
func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) GetType() ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type {
@@ -554,7 +473,7 @@ type ActivityIssueCommentCreatePayload_ApprovalEvent struct {
func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) Reset() {
*x = ActivityIssueCommentCreatePayload_ApprovalEvent{}
if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[5]
+ mi := &file_store_activity_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -567,7 +486,7 @@ func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) String() string {
func (*ActivityIssueCommentCreatePayload_ApprovalEvent) ProtoMessage() {}
func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[5]
+ mi := &file_store_activity_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -580,7 +499,7 @@ func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) ProtoReflect() protore
// Deprecated: Use ActivityIssueCommentCreatePayload_ApprovalEvent.ProtoReflect.Descriptor instead.
func (*ActivityIssueCommentCreatePayload_ApprovalEvent) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{2, 2}
+ return file_store_activity_proto_rawDescGZIP(), []int{1, 2}
}
func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) GetStatus() ActivityIssueCommentCreatePayload_ApprovalEvent_Status {
@@ -595,101 +514,86 @@ var File_store_activity_proto protoreflect.FileDescriptor
var file_store_activity_proto_rawDesc = []byte{
0x0a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65,
- 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0xf2, 0x01, 0x0a, 0x0f, 0x41, 0x63, 0x74, 0x69, 0x76,
- 0x69, 0x74, 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x5e, 0x0a, 0x14, 0x69, 0x73,
- 0x73, 0x75, 0x65, 0x5f, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f,
- 0x61, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69,
+ 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x22, 0x3b, 0x0a, 0x1a, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69,
0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79,
- 0x6c, 0x6f, 0x61, 0x64, 0x48, 0x00, 0x52, 0x12, 0x69, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65,
- 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x74, 0x0a, 0x1c, 0x69, 0x73,
- 0x73, 0x75, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x5f, 0x63, 0x72, 0x65, 0x61,
- 0x74, 0x65, 0x5f, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x31, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43,
- 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c,
- 0x6f, 0x61, 0x64, 0x48, 0x00, 0x52, 0x19, 0x69, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d,
- 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
- 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x3b, 0x0a, 0x1a, 0x41,
- 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x72, 0x65, 0x61,
- 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x73,
- 0x75, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69,
- 0x73, 0x73, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0xf8, 0x08, 0x0a, 0x21, 0x41, 0x63, 0x74,
+ 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x6e, 0x61,
+ 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65, 0x4e,
+ 0x61, 0x6d, 0x65, 0x22, 0xf8, 0x08, 0x0a, 0x21, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79,
+ 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61,
+ 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x81, 0x01, 0x0a, 0x17, 0x65, 0x78,
+ 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f,
+ 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x47, 0x2e, 0x62, 0x79,
+ 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74,
0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
- 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x81,
- 0x01, 0x0a, 0x17, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x5f, 0x61, 0x70, 0x70, 0x72,
- 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,
- 0x32, 0x47, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72,
- 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43,
- 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c,
- 0x6f, 0x61, 0x64, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72,
- 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x15, 0x65, 0x78, 0x74,
- 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65,
- 0x6e, 0x74, 0x12, 0x6c, 0x0a, 0x10, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62,
- 0x61, 0x63, 0x6b, 0x5f, 0x62, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63,
- 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65,
- 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e,
- 0x54, 0x61, 0x73, 0x6b, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x00,
- 0x52, 0x0e, 0x74, 0x61, 0x73, 0x6b, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x79,
- 0x12, 0x68, 0x0a, 0x0e, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65,
- 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
+ 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x45,
+ 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x15, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
+ 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x6c, 0x0a,
+ 0x10, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x62,
+ 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74,
+ 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61, 0x73, 0x6b, 0x52,
+ 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x48, 0x00, 0x52, 0x0e, 0x74, 0x61, 0x73,
+ 0x6b, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x12, 0x68, 0x0a, 0x0e, 0x61,
+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73,
+ 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,
+ 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45,
+ 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,
+ 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x6e,
+ 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x73, 0x73, 0x75, 0x65,
+ 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0xa4, 0x01, 0x0a, 0x0e, 0x54, 0x61, 0x73, 0x6b, 0x52, 0x6f, 0x6c,
+ 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x79, 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, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
+ 0x01, 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x14, 0x72,
+ 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x62, 0x79, 0x5f, 0x69, 0x73, 0x73, 0x75, 0x65,
+ 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11, 0x72, 0x6f, 0x6c, 0x6c, 0x62,
+ 0x61, 0x63, 0x6b, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x49, 0x64, 0x12, 0x2d, 0x0a, 0x13,
+ 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x62, 0x79, 0x5f, 0x74, 0x61, 0x73, 0x6b,
+ 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x72, 0x6f, 0x6c, 0x6c, 0x62,
+ 0x61, 0x63, 0x6b, 0x42, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64, 0x1a, 0xf8, 0x02, 0x0a, 0x15,
+ 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,
+ 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x60, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20,
+ 0x01, 0x28, 0x0e, 0x32, 0x4c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73,
+ 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73,
+ 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50,
+ 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41,
+ 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70,
+ 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x66, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f,
+ 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4e, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61,
+ 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74,
+ 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65,
+ 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x45, 0x78, 0x74, 0x65, 0x72,
+ 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74,
+ 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12,
+ 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
+ 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2d,
+ 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,
+ 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x49, 0x53, 0x48, 0x55, 0x10, 0x01, 0x22, 0x47, 0x0a,
+ 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12, 0x41, 0x43, 0x54, 0x49, 0x4f,
+ 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
+ 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56,
+ 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x52, 0x45,
+ 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x1a, 0xac, 0x01, 0x0a, 0x0d, 0x41, 0x70, 0x70, 0x72, 0x6f,
+ 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x5e, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
+ 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x46, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69,
0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x41, 0x70, 0x70, 0x72,
- 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x00, 0x52, 0x0d, 0x61, 0x70, 0x70,
- 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x69, 0x73,
- 0x73, 0x75, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09,
- 0x69, 0x73, 0x73, 0x75, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x1a, 0xa4, 0x01, 0x0a, 0x0e, 0x54, 0x61,
- 0x73, 0x6b, 0x52, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x79, 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, 0x17, 0x0a, 0x07, 0x74, 0x61, 0x73, 0x6b, 0x5f,
- 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x74, 0x61, 0x73, 0x6b, 0x49, 0x64,
- 0x12, 0x2f, 0x0a, 0x14, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x62, 0x79, 0x5f,
- 0x69, 0x73, 0x73, 0x75, 0x65, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x11,
- 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x49,
- 0x64, 0x12, 0x2d, 0x0a, 0x13, 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x5f, 0x62, 0x79,
- 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10,
- 0x72, 0x6f, 0x6c, 0x6c, 0x62, 0x61, 0x63, 0x6b, 0x42, 0x79, 0x54, 0x61, 0x73, 0x6b, 0x49, 0x64,
- 0x1a, 0xf8, 0x02, 0x0a, 0x15, 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70,
- 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x60, 0x0a, 0x04, 0x74, 0x79,
- 0x70, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69,
- 0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x43, 0x72,
- 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x45, 0x78, 0x74, 0x65,
- 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e,
- 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x66, 0x0a, 0x06,
- 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4e, 0x2e, 0x62,
- 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41, 0x63,
- 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65,
- 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2e,
- 0x45, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c,
- 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63,
- 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1d, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x61,
- 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x73, 0x74, 0x61, 0x67, 0x65, 0x4e,
- 0x61, 0x6d, 0x65, 0x22, 0x2d, 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, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x45, 0x49, 0x53, 0x48, 0x55,
- 0x10, 0x01, 0x22, 0x47, 0x0a, 0x06, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x16, 0x0a, 0x12,
- 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49,
- 0x45, 0x44, 0x10, 0x00, 0x12, 0x12, 0x0a, 0x0e, 0x41, 0x43, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x41,
- 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x10, 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x43, 0x54, 0x49,
- 0x4f, 0x4e, 0x5f, 0x52, 0x45, 0x4a, 0x45, 0x43, 0x54, 0x10, 0x02, 0x1a, 0xac, 0x01, 0x0a, 0x0d,
- 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x5e, 0x0a,
- 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x46, 0x2e,
- 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2e, 0x41,
- 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x43, 0x6f, 0x6d, 0x6d,
- 0x65, 0x6e, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64,
- 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x53,
- 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3b, 0x0a,
- 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55,
- 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
- 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08,
- 0x41, 0x50, 0x50, 0x52, 0x4f, 0x56, 0x45, 0x44, 0x10, 0x02, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76,
- 0x65, 0x6e, 0x74, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
- 0x6d, 0x2f, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x62, 0x79, 0x74, 0x65, 0x62,
- 0x61, 0x73, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x74,
- 0x6f, 0x72, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
+ 0x6f, 0x76, 0x61, 0x6c, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
+ 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x3b, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74,
+ 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53,
+ 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45,
+ 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x52, 0x4f,
+ 0x56, 0x45, 0x44, 0x10, 0x02, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x42, 0x2e,
+ 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x62, 0x79, 0x74,
+ 0x65, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2f, 0x61,
+ 0x70, 0x69, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x62, 0x06,
+ 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@@ -705,32 +609,29 @@ func file_store_activity_proto_rawDescGZIP() []byte {
}
var file_store_activity_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
-var file_store_activity_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
+var file_store_activity_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
var file_store_activity_proto_goTypes = []interface{}{
(ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type)(0), // 0: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type
(ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action)(0), // 1: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action
(ActivityIssueCommentCreatePayload_ApprovalEvent_Status)(0), // 2: bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.Status
- (*ActivityPayload)(nil), // 3: bytebase.store.ActivityPayload
- (*ActivityIssueCreatePayload)(nil), // 4: bytebase.store.ActivityIssueCreatePayload
- (*ActivityIssueCommentCreatePayload)(nil), // 5: bytebase.store.ActivityIssueCommentCreatePayload
- (*ActivityIssueCommentCreatePayload_TaskRollbackBy)(nil), // 6: bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy
- (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent)(nil), // 7: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent
- (*ActivityIssueCommentCreatePayload_ApprovalEvent)(nil), // 8: bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent
+ (*ActivityIssueCreatePayload)(nil), // 3: bytebase.store.ActivityIssueCreatePayload
+ (*ActivityIssueCommentCreatePayload)(nil), // 4: bytebase.store.ActivityIssueCommentCreatePayload
+ (*ActivityIssueCommentCreatePayload_TaskRollbackBy)(nil), // 5: bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy
+ (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent)(nil), // 6: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent
+ (*ActivityIssueCommentCreatePayload_ApprovalEvent)(nil), // 7: bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent
}
var file_store_activity_proto_depIdxs = []int32{
- 4, // 0: bytebase.store.ActivityPayload.issue_create_payload:type_name -> bytebase.store.ActivityIssueCreatePayload
- 5, // 1: bytebase.store.ActivityPayload.issue_comment_create_payload:type_name -> bytebase.store.ActivityIssueCommentCreatePayload
- 7, // 2: bytebase.store.ActivityIssueCommentCreatePayload.external_approval_event:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent
- 6, // 3: bytebase.store.ActivityIssueCommentCreatePayload.task_rollback_by:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy
- 8, // 4: bytebase.store.ActivityIssueCommentCreatePayload.approval_event:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent
- 0, // 5: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.type:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type
- 1, // 6: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.action:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action
- 2, // 7: bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.status:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.Status
- 8, // [8:8] is the sub-list for method output_type
- 8, // [8:8] is the sub-list for method input_type
- 8, // [8:8] is the sub-list for extension type_name
- 8, // [8:8] is the sub-list for extension extendee
- 0, // [0:8] is the sub-list for field type_name
+ 6, // 0: bytebase.store.ActivityIssueCommentCreatePayload.external_approval_event:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent
+ 5, // 1: bytebase.store.ActivityIssueCommentCreatePayload.task_rollback_by:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy
+ 7, // 2: bytebase.store.ActivityIssueCommentCreatePayload.approval_event:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent
+ 0, // 3: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.type:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type
+ 1, // 4: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.action:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action
+ 2, // 5: bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.status:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.Status
+ 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_activity_proto_init() }
@@ -740,18 +641,6 @@ func file_store_activity_proto_init() {
}
if !protoimpl.UnsafeEnabled {
file_store_activity_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
- switch v := v.(*ActivityPayload); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_store_activity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ActivityIssueCreatePayload); i {
case 0:
return &v.state
@@ -763,7 +652,7 @@ func file_store_activity_proto_init() {
return nil
}
}
- file_store_activity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
+ file_store_activity_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ActivityIssueCommentCreatePayload); i {
case 0:
return &v.state
@@ -775,7 +664,7 @@ func file_store_activity_proto_init() {
return nil
}
}
- file_store_activity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
+ file_store_activity_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ActivityIssueCommentCreatePayload_TaskRollbackBy); i {
case 0:
return &v.state
@@ -787,7 +676,7 @@ func file_store_activity_proto_init() {
return nil
}
}
- file_store_activity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
+ file_store_activity_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ActivityIssueCommentCreatePayload_ExternalApprovalEvent); i {
case 0:
return &v.state
@@ -799,7 +688,7 @@ func file_store_activity_proto_init() {
return nil
}
}
- file_store_activity_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
+ file_store_activity_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ActivityIssueCommentCreatePayload_ApprovalEvent); i {
case 0:
return &v.state
@@ -812,11 +701,7 @@ func file_store_activity_proto_init() {
}
}
}
- file_store_activity_proto_msgTypes[0].OneofWrappers = []interface{}{
- (*ActivityPayload_IssueCreatePayload)(nil),
- (*ActivityPayload_IssueCommentCreatePayload)(nil),
- }
- file_store_activity_proto_msgTypes[2].OneofWrappers = []interface{}{
+ file_store_activity_proto_msgTypes[1].OneofWrappers = []interface{}{
(*ActivityIssueCommentCreatePayload_ExternalApprovalEvent_)(nil),
(*ActivityIssueCommentCreatePayload_TaskRollbackBy_)(nil),
(*ActivityIssueCommentCreatePayload_ApprovalEvent_)(nil),
@@ -827,7 +712,7 @@ func file_store_activity_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_store_activity_proto_rawDesc,
NumEnums: 3,
- NumMessages: 6,
+ NumMessages: 5,
NumExtensions: 0,
NumServices: 0,
},
diff --git a/proto/store/activity.proto b/proto/store/activity.proto
index 116aa7bd8c..239b4afd83 100644
--- a/proto/store/activity.proto
+++ b/proto/store/activity.proto
@@ -4,13 +4,6 @@ package bytebase.store;
option go_package = "github.com/bytebase/bytebase/api/proto/store";
-message ActivityPayload {
- oneof payload {
- ActivityIssueCreatePayload issue_create_payload = 1;
- ActivityIssueCommentCreatePayload issue_comment_create_payload = 2;
- }
-}
-
// ActivityIssueCreatePayload is the payloads for creating issues.
// These payload types are only used when marshalling to the json format for saving into the database.
// So we annotate with json tag using camelCase naming which is consistent with normal