Skip to content

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

chore: remove unused activity store proto (#12791)

Danny Xu31c44ee1f9f0
diff --git a/frontend/src/types/proto/store/activity.ts b/frontend/src/types/proto/store/activity.ts
deleted file mode 100644
index 95130f6762..0000000000
--- a/frontend/src/types/proto/store/activity.ts
+++ /dev/null
@@ -1,778 +0,0 @@
-/* eslint-disable */
-import Long from "long";
-import _m0 from "protobufjs/minimal";
-import { ApprovalStep } from "./approval";
-
-export const protobufPackage = "bytebase.store";
-
-/**
- * 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
- * json naming convention. More importantly, frontend code can simply use JSON.parse to
- * convert to the expected struct there.
- */
-export interface ActivityIssueCreatePayload {
- issueName: string;
-}
-
-/** ActivityIssueCommentCreatePayload is the payloads for creating issue comments. */
-export interface ActivityIssueCommentCreatePayload {
- externalApprovalEvent?: ActivityIssueCommentCreatePayload_ExternalApprovalEvent | undefined;
- taskRollbackBy?: ActivityIssueCommentCreatePayload_TaskRollbackBy | undefined;
- approvalEvent?: ActivityIssueCommentCreatePayload_ApprovalEvent | undefined;
- issueName: string;
-}
-
-/**
- * TaskRollbackBy records an issue rollback activity.
- * The task with taskID in IssueID is rollbacked by the task with RollbackByTaskID in RollbackByIssueID.
- */
-export interface ActivityIssueCommentCreatePayload_TaskRollbackBy {
- issueId: Long;
- taskId: Long;
- rollbackByIssueId: Long;
- rollbackByTaskId: Long;
-}
-
-export interface ActivityIssueCommentCreatePayload_ExternalApprovalEvent {
- type: ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type;
- action: ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action;
- stageName: string;
-}
-
-export enum ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type {
- TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
- TYPE_FEISHU = "TYPE_FEISHU",
- UNRECOGNIZED = "UNRECOGNIZED",
-}
-
-export function activityIssueCommentCreatePayload_ExternalApprovalEvent_TypeFromJSON(
- object: any,
-): ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type {
- switch (object) {
- case 0:
- case "TYPE_UNSPECIFIED":
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_UNSPECIFIED;
- case 1:
- case "TYPE_FEISHU":
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_FEISHU;
- case -1:
- case "UNRECOGNIZED":
- default:
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.UNRECOGNIZED;
- }
-}
-
-export function activityIssueCommentCreatePayload_ExternalApprovalEvent_TypeToJSON(
- object: ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type,
-): string {
- switch (object) {
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_UNSPECIFIED:
- return "TYPE_UNSPECIFIED";
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_FEISHU:
- return "TYPE_FEISHU";
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export function activityIssueCommentCreatePayload_ExternalApprovalEvent_TypeToNumber(
- object: ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type,
-): number {
- switch (object) {
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_UNSPECIFIED:
- return 0;
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_FEISHU:
- return 1;
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.UNRECOGNIZED:
- default:
- return -1;
- }
-}
-
-export enum ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action {
- ACTION_UNSPECIFIED = "ACTION_UNSPECIFIED",
- ACTION_APPROVE = "ACTION_APPROVE",
- ACTION_REJECT = "ACTION_REJECT",
- UNRECOGNIZED = "UNRECOGNIZED",
-}
-
-export function activityIssueCommentCreatePayload_ExternalApprovalEvent_ActionFromJSON(
- object: any,
-): ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action {
- switch (object) {
- case 0:
- case "ACTION_UNSPECIFIED":
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_UNSPECIFIED;
- case 1:
- case "ACTION_APPROVE":
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_APPROVE;
- case 2:
- case "ACTION_REJECT":
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_REJECT;
- case -1:
- case "UNRECOGNIZED":
- default:
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.UNRECOGNIZED;
- }
-}
-
-export function activityIssueCommentCreatePayload_ExternalApprovalEvent_ActionToJSON(
- object: ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action,
-): string {
- switch (object) {
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_UNSPECIFIED:
- return "ACTION_UNSPECIFIED";
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_APPROVE:
- return "ACTION_APPROVE";
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_REJECT:
- return "ACTION_REJECT";
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export function activityIssueCommentCreatePayload_ExternalApprovalEvent_ActionToNumber(
- object: ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action,
-): number {
- switch (object) {
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_UNSPECIFIED:
- return 0;
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_APPROVE:
- return 1;
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_REJECT:
- return 2;
- case ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.UNRECOGNIZED:
- default:
- return -1;
- }
-}
-
-export interface ActivityIssueCommentCreatePayload_ApprovalEvent {
- /** The new status. */
- status: ActivityIssueCommentCreatePayload_ApprovalEvent_Status;
-}
-
-export enum ActivityIssueCommentCreatePayload_ApprovalEvent_Status {
- STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
- PENDING = "PENDING",
- APPROVED = "APPROVED",
- REJECTED = "REJECTED",
- UNRECOGNIZED = "UNRECOGNIZED",
-}
-
-export function activityIssueCommentCreatePayload_ApprovalEvent_StatusFromJSON(
- object: any,
-): ActivityIssueCommentCreatePayload_ApprovalEvent_Status {
- switch (object) {
- case 0:
- case "STATUS_UNSPECIFIED":
- return ActivityIssueCommentCreatePayload_ApprovalEvent_Status.STATUS_UNSPECIFIED;
- case 1:
- case "PENDING":
- return ActivityIssueCommentCreatePayload_ApprovalEvent_Status.PENDING;
- case 2:
- case "APPROVED":
- return ActivityIssueCommentCreatePayload_ApprovalEvent_Status.APPROVED;
- case 3:
- case "REJECTED":
- return ActivityIssueCommentCreatePayload_ApprovalEvent_Status.REJECTED;
- case -1:
- case "UNRECOGNIZED":
- default:
- return ActivityIssueCommentCreatePayload_ApprovalEvent_Status.UNRECOGNIZED;
- }
-}
-
-export function activityIssueCommentCreatePayload_ApprovalEvent_StatusToJSON(
- object: ActivityIssueCommentCreatePayload_ApprovalEvent_Status,
-): string {
- switch (object) {
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.STATUS_UNSPECIFIED:
- return "STATUS_UNSPECIFIED";
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.PENDING:
- return "PENDING";
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.APPROVED:
- return "APPROVED";
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.REJECTED:
- return "REJECTED";
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.UNRECOGNIZED:
- default:
- return "UNRECOGNIZED";
- }
-}
-
-export function activityIssueCommentCreatePayload_ApprovalEvent_StatusToNumber(
- object: ActivityIssueCommentCreatePayload_ApprovalEvent_Status,
-): number {
- switch (object) {
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.STATUS_UNSPECIFIED:
- return 0;
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.PENDING:
- return 1;
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.APPROVED:
- return 2;
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.REJECTED:
- return 3;
- case ActivityIssueCommentCreatePayload_ApprovalEvent_Status.UNRECOGNIZED:
- default:
- return -1;
- }
-}
-
-export interface ActivityIssueApprovalNotifyPayload {
- approvalStep: ApprovalStep | undefined;
-}
-
-function createBaseActivityIssueCreatePayload(): ActivityIssueCreatePayload {
- return { issueName: "" };
-}
-
-export const ActivityIssueCreatePayload = {
- encode(message: ActivityIssueCreatePayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.issueName !== "") {
- writer.uint32(10).string(message.issueName);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): ActivityIssueCreatePayload {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseActivityIssueCreatePayload();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 10) {
- break;
- }
-
- message.issueName = reader.string();
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): ActivityIssueCreatePayload {
- return { issueName: isSet(object.issueName) ? globalThis.String(object.issueName) : "" };
- },
-
- toJSON(message: ActivityIssueCreatePayload): unknown {
- const obj: any = {};
- if (message.issueName !== "") {
- obj.issueName = message.issueName;
- }
- return obj;
- },
-
- create(base?: DeepPartial<ActivityIssueCreatePayload>): ActivityIssueCreatePayload {
- return ActivityIssueCreatePayload.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<ActivityIssueCreatePayload>): ActivityIssueCreatePayload {
- const message = createBaseActivityIssueCreatePayload();
- message.issueName = object.issueName ?? "";
- return message;
- },
-};
-
-function createBaseActivityIssueCommentCreatePayload(): ActivityIssueCommentCreatePayload {
- return { externalApprovalEvent: undefined, taskRollbackBy: undefined, approvalEvent: undefined, issueName: "" };
-}
-
-export const ActivityIssueCommentCreatePayload = {
- encode(message: ActivityIssueCommentCreatePayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.externalApprovalEvent !== undefined) {
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent.encode(
- message.externalApprovalEvent,
- writer.uint32(10).fork(),
- ).ldelim();
- }
- if (message.taskRollbackBy !== undefined) {
- ActivityIssueCommentCreatePayload_TaskRollbackBy.encode(message.taskRollbackBy, writer.uint32(18).fork())
- .ldelim();
- }
- if (message.approvalEvent !== undefined) {
- ActivityIssueCommentCreatePayload_ApprovalEvent.encode(message.approvalEvent, writer.uint32(26).fork()).ldelim();
- }
- if (message.issueName !== "") {
- writer.uint32(34).string(message.issueName);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): ActivityIssueCommentCreatePayload {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseActivityIssueCommentCreatePayload();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 10) {
- break;
- }
-
- message.externalApprovalEvent = ActivityIssueCommentCreatePayload_ExternalApprovalEvent.decode(
- reader,
- reader.uint32(),
- );
- continue;
- case 2:
- if (tag !== 18) {
- break;
- }
-
- message.taskRollbackBy = ActivityIssueCommentCreatePayload_TaskRollbackBy.decode(reader, reader.uint32());
- continue;
- case 3:
- if (tag !== 26) {
- break;
- }
-
- message.approvalEvent = ActivityIssueCommentCreatePayload_ApprovalEvent.decode(reader, reader.uint32());
- continue;
- case 4:
- if (tag !== 34) {
- break;
- }
-
- message.issueName = reader.string();
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): ActivityIssueCommentCreatePayload {
- return {
- externalApprovalEvent: isSet(object.externalApprovalEvent)
- ? ActivityIssueCommentCreatePayload_ExternalApprovalEvent.fromJSON(object.externalApprovalEvent)
- : undefined,
- taskRollbackBy: isSet(object.taskRollbackBy)
- ? ActivityIssueCommentCreatePayload_TaskRollbackBy.fromJSON(object.taskRollbackBy)
- : undefined,
- approvalEvent: isSet(object.approvalEvent)
- ? ActivityIssueCommentCreatePayload_ApprovalEvent.fromJSON(object.approvalEvent)
- : undefined,
- issueName: isSet(object.issueName) ? globalThis.String(object.issueName) : "",
- };
- },
-
- toJSON(message: ActivityIssueCommentCreatePayload): unknown {
- const obj: any = {};
- if (message.externalApprovalEvent !== undefined) {
- obj.externalApprovalEvent = ActivityIssueCommentCreatePayload_ExternalApprovalEvent.toJSON(
- message.externalApprovalEvent,
- );
- }
- if (message.taskRollbackBy !== undefined) {
- obj.taskRollbackBy = ActivityIssueCommentCreatePayload_TaskRollbackBy.toJSON(message.taskRollbackBy);
- }
- if (message.approvalEvent !== undefined) {
- obj.approvalEvent = ActivityIssueCommentCreatePayload_ApprovalEvent.toJSON(message.approvalEvent);
- }
- if (message.issueName !== "") {
- obj.issueName = message.issueName;
- }
- return obj;
- },
-
- create(base?: DeepPartial<ActivityIssueCommentCreatePayload>): ActivityIssueCommentCreatePayload {
- return ActivityIssueCommentCreatePayload.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<ActivityIssueCommentCreatePayload>): ActivityIssueCommentCreatePayload {
- const message = createBaseActivityIssueCommentCreatePayload();
- message.externalApprovalEvent =
- (object.externalApprovalEvent !== undefined && object.externalApprovalEvent !== null)
- ? ActivityIssueCommentCreatePayload_ExternalApprovalEvent.fromPartial(object.externalApprovalEvent)
- : undefined;
- message.taskRollbackBy = (object.taskRollbackBy !== undefined && object.taskRollbackBy !== null)
- ? ActivityIssueCommentCreatePayload_TaskRollbackBy.fromPartial(object.taskRollbackBy)
- : undefined;
- message.approvalEvent = (object.approvalEvent !== undefined && object.approvalEvent !== null)
- ? ActivityIssueCommentCreatePayload_ApprovalEvent.fromPartial(object.approvalEvent)
- : undefined;
- message.issueName = object.issueName ?? "";
- return message;
- },
-};
-
-function createBaseActivityIssueCommentCreatePayload_TaskRollbackBy(): ActivityIssueCommentCreatePayload_TaskRollbackBy {
- return { issueId: Long.ZERO, taskId: Long.ZERO, rollbackByIssueId: Long.ZERO, rollbackByTaskId: Long.ZERO };
-}
-
-export const ActivityIssueCommentCreatePayload_TaskRollbackBy = {
- encode(
- message: ActivityIssueCommentCreatePayload_TaskRollbackBy,
- writer: _m0.Writer = _m0.Writer.create(),
- ): _m0.Writer {
- if (!message.issueId.isZero()) {
- writer.uint32(8).int64(message.issueId);
- }
- if (!message.taskId.isZero()) {
- writer.uint32(16).int64(message.taskId);
- }
- if (!message.rollbackByIssueId.isZero()) {
- writer.uint32(24).int64(message.rollbackByIssueId);
- }
- if (!message.rollbackByTaskId.isZero()) {
- writer.uint32(32).int64(message.rollbackByTaskId);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): ActivityIssueCommentCreatePayload_TaskRollbackBy {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseActivityIssueCommentCreatePayload_TaskRollbackBy();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 8) {
- break;
- }
-
- message.issueId = reader.int64() as Long;
- continue;
- case 2:
- if (tag !== 16) {
- break;
- }
-
- message.taskId = reader.int64() as Long;
- continue;
- case 3:
- if (tag !== 24) {
- break;
- }
-
- message.rollbackByIssueId = reader.int64() as Long;
- continue;
- case 4:
- if (tag !== 32) {
- break;
- }
-
- message.rollbackByTaskId = reader.int64() as Long;
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): ActivityIssueCommentCreatePayload_TaskRollbackBy {
- return {
- issueId: isSet(object.issueId) ? Long.fromValue(object.issueId) : Long.ZERO,
- taskId: isSet(object.taskId) ? Long.fromValue(object.taskId) : Long.ZERO,
- rollbackByIssueId: isSet(object.rollbackByIssueId) ? Long.fromValue(object.rollbackByIssueId) : Long.ZERO,
- rollbackByTaskId: isSet(object.rollbackByTaskId) ? Long.fromValue(object.rollbackByTaskId) : Long.ZERO,
- };
- },
-
- toJSON(message: ActivityIssueCommentCreatePayload_TaskRollbackBy): unknown {
- const obj: any = {};
- if (!message.issueId.isZero()) {
- obj.issueId = (message.issueId || Long.ZERO).toString();
- }
- if (!message.taskId.isZero()) {
- obj.taskId = (message.taskId || Long.ZERO).toString();
- }
- if (!message.rollbackByIssueId.isZero()) {
- obj.rollbackByIssueId = (message.rollbackByIssueId || Long.ZERO).toString();
- }
- if (!message.rollbackByTaskId.isZero()) {
- obj.rollbackByTaskId = (message.rollbackByTaskId || Long.ZERO).toString();
- }
- return obj;
- },
-
- create(
- base?: DeepPartial<ActivityIssueCommentCreatePayload_TaskRollbackBy>,
- ): ActivityIssueCommentCreatePayload_TaskRollbackBy {
- return ActivityIssueCommentCreatePayload_TaskRollbackBy.fromPartial(base ?? {});
- },
- fromPartial(
- object: DeepPartial<ActivityIssueCommentCreatePayload_TaskRollbackBy>,
- ): ActivityIssueCommentCreatePayload_TaskRollbackBy {
- const message = createBaseActivityIssueCommentCreatePayload_TaskRollbackBy();
- message.issueId = (object.issueId !== undefined && object.issueId !== null)
- ? Long.fromValue(object.issueId)
- : Long.ZERO;
- message.taskId = (object.taskId !== undefined && object.taskId !== null)
- ? Long.fromValue(object.taskId)
- : Long.ZERO;
- message.rollbackByIssueId = (object.rollbackByIssueId !== undefined && object.rollbackByIssueId !== null)
- ? Long.fromValue(object.rollbackByIssueId)
- : Long.ZERO;
- message.rollbackByTaskId = (object.rollbackByTaskId !== undefined && object.rollbackByTaskId !== null)
- ? Long.fromValue(object.rollbackByTaskId)
- : Long.ZERO;
- return message;
- },
-};
-
-function createBaseActivityIssueCommentCreatePayload_ExternalApprovalEvent(): ActivityIssueCommentCreatePayload_ExternalApprovalEvent {
- return {
- type: ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_UNSPECIFIED,
- action: ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_UNSPECIFIED,
- stageName: "",
- };
-}
-
-export const ActivityIssueCommentCreatePayload_ExternalApprovalEvent = {
- encode(
- message: ActivityIssueCommentCreatePayload_ExternalApprovalEvent,
- writer: _m0.Writer = _m0.Writer.create(),
- ): _m0.Writer {
- if (message.type !== ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_UNSPECIFIED) {
- writer.uint32(8).int32(activityIssueCommentCreatePayload_ExternalApprovalEvent_TypeToNumber(message.type));
- }
- if (message.action !== ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_UNSPECIFIED) {
- writer.uint32(16).int32(activityIssueCommentCreatePayload_ExternalApprovalEvent_ActionToNumber(message.action));
- }
- if (message.stageName !== "") {
- writer.uint32(26).string(message.stageName);
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): ActivityIssueCommentCreatePayload_ExternalApprovalEvent {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseActivityIssueCommentCreatePayload_ExternalApprovalEvent();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 8) {
- break;
- }
-
- message.type = activityIssueCommentCreatePayload_ExternalApprovalEvent_TypeFromJSON(reader.int32());
- continue;
- case 2:
- if (tag !== 16) {
- break;
- }
-
- message.action = activityIssueCommentCreatePayload_ExternalApprovalEvent_ActionFromJSON(reader.int32());
- continue;
- case 3:
- if (tag !== 26) {
- break;
- }
-
- message.stageName = reader.string();
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): ActivityIssueCommentCreatePayload_ExternalApprovalEvent {
- return {
- type: isSet(object.type)
- ? activityIssueCommentCreatePayload_ExternalApprovalEvent_TypeFromJSON(object.type)
- : ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_UNSPECIFIED,
- action: isSet(object.action)
- ? activityIssueCommentCreatePayload_ExternalApprovalEvent_ActionFromJSON(object.action)
- : ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_UNSPECIFIED,
- stageName: isSet(object.stageName) ? globalThis.String(object.stageName) : "",
- };
- },
-
- toJSON(message: ActivityIssueCommentCreatePayload_ExternalApprovalEvent): unknown {
- const obj: any = {};
- if (message.type !== ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_UNSPECIFIED) {
- obj.type = activityIssueCommentCreatePayload_ExternalApprovalEvent_TypeToJSON(message.type);
- }
- if (message.action !== ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_UNSPECIFIED) {
- obj.action = activityIssueCommentCreatePayload_ExternalApprovalEvent_ActionToJSON(message.action);
- }
- if (message.stageName !== "") {
- obj.stageName = message.stageName;
- }
- return obj;
- },
-
- create(
- base?: DeepPartial<ActivityIssueCommentCreatePayload_ExternalApprovalEvent>,
- ): ActivityIssueCommentCreatePayload_ExternalApprovalEvent {
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent.fromPartial(base ?? {});
- },
- fromPartial(
- object: DeepPartial<ActivityIssueCommentCreatePayload_ExternalApprovalEvent>,
- ): ActivityIssueCommentCreatePayload_ExternalApprovalEvent {
- const message = createBaseActivityIssueCommentCreatePayload_ExternalApprovalEvent();
- message.type = object.type ?? ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.TYPE_UNSPECIFIED;
- message.action = object.action ?? ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.ACTION_UNSPECIFIED;
- message.stageName = object.stageName ?? "";
- return message;
- },
-};
-
-function createBaseActivityIssueCommentCreatePayload_ApprovalEvent(): ActivityIssueCommentCreatePayload_ApprovalEvent {
- return { status: ActivityIssueCommentCreatePayload_ApprovalEvent_Status.STATUS_UNSPECIFIED };
-}
-
-export const ActivityIssueCommentCreatePayload_ApprovalEvent = {
- encode(
- message: ActivityIssueCommentCreatePayload_ApprovalEvent,
- writer: _m0.Writer = _m0.Writer.create(),
- ): _m0.Writer {
- if (message.status !== ActivityIssueCommentCreatePayload_ApprovalEvent_Status.STATUS_UNSPECIFIED) {
- writer.uint32(8).int32(activityIssueCommentCreatePayload_ApprovalEvent_StatusToNumber(message.status));
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): ActivityIssueCommentCreatePayload_ApprovalEvent {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseActivityIssueCommentCreatePayload_ApprovalEvent();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 8) {
- break;
- }
-
- message.status = activityIssueCommentCreatePayload_ApprovalEvent_StatusFromJSON(reader.int32());
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): ActivityIssueCommentCreatePayload_ApprovalEvent {
- return {
- status: isSet(object.status)
- ? activityIssueCommentCreatePayload_ApprovalEvent_StatusFromJSON(object.status)
- : ActivityIssueCommentCreatePayload_ApprovalEvent_Status.STATUS_UNSPECIFIED,
- };
- },
-
- toJSON(message: ActivityIssueCommentCreatePayload_ApprovalEvent): unknown {
- const obj: any = {};
- if (message.status !== ActivityIssueCommentCreatePayload_ApprovalEvent_Status.STATUS_UNSPECIFIED) {
- obj.status = activityIssueCommentCreatePayload_ApprovalEvent_StatusToJSON(message.status);
- }
- return obj;
- },
-
- create(
- base?: DeepPartial<ActivityIssueCommentCreatePayload_ApprovalEvent>,
- ): ActivityIssueCommentCreatePayload_ApprovalEvent {
- return ActivityIssueCommentCreatePayload_ApprovalEvent.fromPartial(base ?? {});
- },
- fromPartial(
- object: DeepPartial<ActivityIssueCommentCreatePayload_ApprovalEvent>,
- ): ActivityIssueCommentCreatePayload_ApprovalEvent {
- const message = createBaseActivityIssueCommentCreatePayload_ApprovalEvent();
- message.status = object.status ?? ActivityIssueCommentCreatePayload_ApprovalEvent_Status.STATUS_UNSPECIFIED;
- return message;
- },
-};
-
-function createBaseActivityIssueApprovalNotifyPayload(): ActivityIssueApprovalNotifyPayload {
- return { approvalStep: undefined };
-}
-
-export const ActivityIssueApprovalNotifyPayload = {
- encode(message: ActivityIssueApprovalNotifyPayload, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
- if (message.approvalStep !== undefined) {
- ApprovalStep.encode(message.approvalStep, writer.uint32(10).fork()).ldelim();
- }
- return writer;
- },
-
- decode(input: _m0.Reader | Uint8Array, length?: number): ActivityIssueApprovalNotifyPayload {
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
- let end = length === undefined ? reader.len : reader.pos + length;
- const message = createBaseActivityIssueApprovalNotifyPayload();
- while (reader.pos < end) {
- const tag = reader.uint32();
- switch (tag >>> 3) {
- case 1:
- if (tag !== 10) {
- break;
- }
-
- message.approvalStep = ApprovalStep.decode(reader, reader.uint32());
- continue;
- }
- if ((tag & 7) === 4 || tag === 0) {
- break;
- }
- reader.skipType(tag & 7);
- }
- return message;
- },
-
- fromJSON(object: any): ActivityIssueApprovalNotifyPayload {
- return { approvalStep: isSet(object.approvalStep) ? ApprovalStep.fromJSON(object.approvalStep) : undefined };
- },
-
- toJSON(message: ActivityIssueApprovalNotifyPayload): unknown {
- const obj: any = {};
- if (message.approvalStep !== undefined) {
- obj.approvalStep = ApprovalStep.toJSON(message.approvalStep);
- }
- return obj;
- },
-
- create(base?: DeepPartial<ActivityIssueApprovalNotifyPayload>): ActivityIssueApprovalNotifyPayload {
- return ActivityIssueApprovalNotifyPayload.fromPartial(base ?? {});
- },
- fromPartial(object: DeepPartial<ActivityIssueApprovalNotifyPayload>): ActivityIssueApprovalNotifyPayload {
- const message = createBaseActivityIssueApprovalNotifyPayload();
- message.approvalStep = (object.approvalStep !== undefined && object.approvalStep !== null)
- ? ApprovalStep.fromPartial(object.approvalStep)
- : undefined;
- return message;
- },
-};
-
-type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
-
-export type DeepPartial<T> = T extends Builtin ? T
- : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
- : Partial<T>;
-
-if (_m0.util.Long !== Long) {
- _m0.util.Long = Long as any;
- _m0.configure();
-}
-
-function isSet(value: any): boolean {
- return value !== null && value !== undefined;
-}
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index 6edcc1f147..98a1c95c4e 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -3,32 +3,6 @@
## Table of Contents
-- [store/approval.proto](#store_approval-proto)
- - [ApprovalFlow](#bytebase-store-ApprovalFlow)
- - [ApprovalNode](#bytebase-store-ApprovalNode)
- - [ApprovalStep](#bytebase-store-ApprovalStep)
- - [ApprovalTemplate](#bytebase-store-ApprovalTemplate)
- - [IssuePayloadApproval](#bytebase-store-IssuePayloadApproval)
- - [IssuePayloadApproval.Approver](#bytebase-store-IssuePayloadApproval-Approver)
-
- - [ApprovalNode.GroupValue](#bytebase-store-ApprovalNode-GroupValue)
- - [ApprovalNode.Type](#bytebase-store-ApprovalNode-Type)
- - [ApprovalStep.Type](#bytebase-store-ApprovalStep-Type)
- - [IssuePayloadApproval.Approver.Status](#bytebase-store-IssuePayloadApproval-Approver-Status)
- - [IssuePayloadApproval.RiskLevel](#bytebase-store-IssuePayloadApproval-RiskLevel)
-
-- [store/activity.proto](#store_activity-proto)
- - [ActivityIssueApprovalNotifyPayload](#bytebase-store-ActivityIssueApprovalNotifyPayload)
- - [ActivityIssueCommentCreatePayload](#bytebase-store-ActivityIssueCommentCreatePayload)
- - [ActivityIssueCommentCreatePayload.ApprovalEvent](#bytebase-store-ActivityIssueCommentCreatePayload-ApprovalEvent)
- - [ActivityIssueCommentCreatePayload.ExternalApprovalEvent](#bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent)
- - [ActivityIssueCommentCreatePayload.TaskRollbackBy](#bytebase-store-ActivityIssueCommentCreatePayload-TaskRollbackBy)
- - [ActivityIssueCreatePayload](#bytebase-store-ActivityIssueCreatePayload)
-
- - [ActivityIssueCommentCreatePayload.ApprovalEvent.Status](#bytebase-store-ActivityIssueCommentCreatePayload-ApprovalEvent-Status)
- - [ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action](#bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent-Action)
- - [ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type](#bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent-Type)
-
- [store/common.proto](#store_common-proto)
- [PageToken](#bytebase-store-PageToken)
- [Position](#bytebase-store-Position)
@@ -43,6 +17,20 @@
- [Advice.Status](#bytebase-store-Advice-Status)
+- [store/approval.proto](#store_approval-proto)
+ - [ApprovalFlow](#bytebase-store-ApprovalFlow)
+ - [ApprovalNode](#bytebase-store-ApprovalNode)
+ - [ApprovalStep](#bytebase-store-ApprovalStep)
+ - [ApprovalTemplate](#bytebase-store-ApprovalTemplate)
+ - [IssuePayloadApproval](#bytebase-store-IssuePayloadApproval)
+ - [IssuePayloadApproval.Approver](#bytebase-store-IssuePayloadApproval-Approver)
+
+ - [ApprovalNode.GroupValue](#bytebase-store-ApprovalNode-GroupValue)
+ - [ApprovalNode.Type](#bytebase-store-ApprovalNode-Type)
+ - [ApprovalStep.Type](#bytebase-store-ApprovalStep-Type)
+ - [IssuePayloadApproval.Approver.Status](#bytebase-store-IssuePayloadApproval-Approver-Status)
+ - [IssuePayloadApproval.RiskLevel](#bytebase-store-IssuePayloadApproval-RiskLevel)
+
- [store/audit_log.proto](#store_audit_log-proto)
- [AuditLog](#bytebase-store-AuditLog)
@@ -301,110 +289,39 @@
-<a name="store_approval-proto"></a>
+<a name="store_common-proto"></a>
<p align="right"><a href="#top">Top</a></p>
-## store/approval.proto
-
-
-
-<a name="bytebase-store-ApprovalFlow"></a>
-
-### ApprovalFlow
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| steps | [ApprovalStep](#bytebase-store-ApprovalStep) | repeated | |
-
-
-
-
-
-
-<a name="bytebase-store-ApprovalNode"></a>
-
-### ApprovalNode
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| type | [ApprovalNode.Type](#bytebase-store-ApprovalNode-Type) | | |
-| group_value | [ApprovalNode.GroupValue](#bytebase-store-ApprovalNode-GroupValue) | | |
-| role | [string](#string) | | Format: roles/{role} |
-| external_node_id | [string](#string) | | |
-
-
-
-
-
-
-<a name="bytebase-store-ApprovalStep"></a>
-
-### ApprovalStep
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| type | [ApprovalStep.Type](#bytebase-store-ApprovalStep-Type) | | |
-| nodes | [ApprovalNode](#bytebase-store-ApprovalNode) | repeated | |
-
-
-
-
-
-
-<a name="bytebase-store-ApprovalTemplate"></a>
-
-### ApprovalTemplate
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| flow | [ApprovalFlow](#bytebase-store-ApprovalFlow) | | |
-| title | [string](#string) | | |
-| description | [string](#string) | | |
-| creator_id | [int32](#int32) | | |
-
-
-
+## store/common.proto
-<a name="bytebase-store-IssuePayloadApproval"></a>
+<a name="bytebase-store-PageToken"></a>
-### IssuePayloadApproval
-IssuePayloadApproval is a part of the payload of an issue.
-IssuePayloadApproval records the approval template used and the approval history.
+### PageToken
+Used internally for obfuscating the page token.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| approval_templates | [ApprovalTemplate](#bytebase-store-ApprovalTemplate) | repeated | |
-| approvers | [IssuePayloadApproval.Approver](#bytebase-store-IssuePayloadApproval-Approver) | repeated | |
-| approval_finding_done | [bool](#bool) | | If the value is `false`, it means that the backend is still finding matching approval templates. If `true`, other fields are available. |
-| approval_finding_error | [string](#string) | | |
-| risk_level | [IssuePayloadApproval.RiskLevel](#bytebase-store-IssuePayloadApproval-RiskLevel) | | |
+| limit | [int32](#int32) | | |
+| offset | [int32](#int32) | | |
-<a name="bytebase-store-IssuePayloadApproval-Approver"></a>
+<a name="bytebase-store-Position"></a>
-### IssuePayloadApproval.Approver
+### Position
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| status | [IssuePayloadApproval.Approver.Status](#bytebase-store-IssuePayloadApproval-Approver-Status) | | The new status. |
-| principal_id | [int32](#int32) | | The principal id of the approver. |
+| line | [int32](#int32) | | |
+| column | [int32](#int32) | | |
@@ -413,80 +330,82 @@ IssuePayloadApproval records the approval template used and the approval history
-<a name="bytebase-store-ApprovalNode-GroupValue"></a>
-
-### ApprovalNode.GroupValue
-The predefined user groups are:
-- WORKSPACE_OWNER
-- WORKSPACE_DBA
-- PROJECT_OWNER
-- PROJECT_MEMBER
-
-| Name | Number | Description |
-| ---- | ------ | ----------- |
-| GROUP_VALUE_UNSPECIFILED | 0 | |
-| WORKSPACE_OWNER | 1 | |
-| WORKSPACE_DBA | 2 | |
-| PROJECT_OWNER | 3 | |
-| PROJECT_MEMBER | 4 | |
-
-
+<a name="bytebase-store-Engine"></a>
-<a name="bytebase-store-ApprovalNode-Type"></a>
+### Engine
-### ApprovalNode.Type
-Type of the ApprovalNode.
-type determines who should approve this node.
-ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.
-See GroupValue below for the predefined user groups.
| Name | Number | Description |
| ---- | ------ | ----------- |
-| TYPE_UNSPECIFIED | 0 | |
-| ANY_IN_GROUP | 1 | |
+| ENGINE_UNSPECIFIED | 0 | |
+| CLICKHOUSE | 1 | |
+| MYSQL | 2 | |
+| POSTGRES | 3 | |
+| SNOWFLAKE | 4 | |
+| SQLITE | 5 | |
+| TIDB | 6 | |
+| MONGODB | 7 | |
+| REDIS | 8 | |
+| ORACLE | 9 | |
+| SPANNER | 10 | |
+| MSSQL | 11 | |
+| REDSHIFT | 12 | |
+| MARIADB | 13 | |
+| OCEANBASE | 14 | |
+| DM | 15 | |
+| RISINGWAVE | 16 | |
+| OCEANBASE_ORACLE | 17 | |
+| STARROCKS | 18 | |
+| DORIS | 19 | |
+| HIVE | 20 | |
+| ELASTICSEARCH | 21 | |
+| BIGQUERY | 22 | |
+| DYNAMODB | 23 | |
+| DATABRICKS | 24 | |
-<a name="bytebase-store-ApprovalStep-Type"></a>
+<a name="bytebase-store-ExportFormat"></a>
+
+### ExportFormat
-### ApprovalStep.Type
-Type of the ApprovalStep
-ALL means every node must be approved to proceed.
-ANY means approving any node will proceed.
| Name | Number | Description |
| ---- | ------ | ----------- |
-| TYPE_UNSPECIFIED | 0 | |
-| ALL | 1 | |
-| ANY | 2 | |
+| FORMAT_UNSPECIFIED | 0 | |
+| CSV | 1 | |
+| JSON | 2 | |
+| SQL | 3 | |
+| XLSX | 4 | |
-<a name="bytebase-store-IssuePayloadApproval-Approver-Status"></a>
+<a name="bytebase-store-MaskingLevel"></a>
-### IssuePayloadApproval.Approver.Status
+### MaskingLevel
| Name | Number | Description |
| ---- | ------ | ----------- |
-| STATUS_UNSPECIFIED | 0 | |
-| PENDING | 1 | |
-| APPROVED | 2 | |
-| REJECTED | 3 | |
+| MASKING_LEVEL_UNSPECIFIED | 0 | |
+| NONE | 1 | |
+| PARTIAL | 2 | |
+| FULL | 3 | |
-<a name="bytebase-store-IssuePayloadApproval-RiskLevel"></a>
+<a name="bytebase-store-VCSType"></a>
-### IssuePayloadApproval.RiskLevel
+### VCSType
| Name | Number | Description |
| ---- | ------ | ----------- |
-| RISK_LEVEL_UNSPECIFIED | 0 | |
-| LOW | 1 | |
-| MODERATE | 2 | |
-| HIGH | 3 | |
+| VCS_TYPE_UNSPECIFIED | 0 | |
+| GITHUB | 1 | GitHub type. Using for GitHub community edition(ce). |
+| GITLAB | 2 | GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee). |
+| BITBUCKET | 3 | BitBucket type. Using for BitBucket cloud or BitBucket server. |
+| AZURE_DEVOPS | 4 | Azure DevOps. Using for Azure DevOps GitOps workflow. |
@@ -497,197 +416,161 @@ ANY means approving any node will proceed.
-<a name="store_activity-proto"></a>
+<a name="store_advice-proto"></a>
<p align="right"><a href="#top">Top</a></p>
-## store/activity.proto
+## store/advice.proto
-<a name="bytebase-store-ActivityIssueApprovalNotifyPayload"></a>
+<a name="bytebase-store-Advice"></a>
-### ActivityIssueApprovalNotifyPayload
+### Advice
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| approval_step | [ApprovalStep](#bytebase-store-ApprovalStep) | | |
-
-
-
-
+| status | [Advice.Status](#bytebase-store-Advice-Status) | | The advice status. |
+| code | [int32](#int32) | | The advice code. |
+| title | [string](#string) | | The advice title. |
+| content | [string](#string) | | The advice content. |
+| detail | [string](#string) | | The advice detail. |
+| start_position | [Position](#bytebase-store-Position) | | 1-based positions of the sql statment. |
+| end_position | [Position](#bytebase-store-Position) | | |
-<a name="bytebase-store-ActivityIssueCommentCreatePayload"></a>
-### ActivityIssueCommentCreatePayload
-ActivityIssueCommentCreatePayload is the payloads for creating issue comments.
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| external_approval_event | [ActivityIssueCommentCreatePayload.ExternalApprovalEvent](#bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent) | | |
-| task_rollback_by | [ActivityIssueCommentCreatePayload.TaskRollbackBy](#bytebase-store-ActivityIssueCommentCreatePayload-TaskRollbackBy) | | |
-| approval_event | [ActivityIssueCommentCreatePayload.ApprovalEvent](#bytebase-store-ActivityIssueCommentCreatePayload-ApprovalEvent) | | |
-| issue_name | [string](#string) | | |
+
+<a name="bytebase-store-Advice-Status"></a>
+### Advice.Status
+| Name | Number | Description |
+| ---- | ------ | ----------- |
+| STATUS_UNSPECIFIED | 0 | Unspecified. |
+| SUCCESS | 1 | |
+| WARNING | 2 | |
+| ERROR | 3 | |
-<a name="bytebase-store-ActivityIssueCommentCreatePayload-ApprovalEvent"></a>
-### ActivityIssueCommentCreatePayload.ApprovalEvent
+
+
+
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| status | [ActivityIssueCommentCreatePayload.ApprovalEvent.Status](#bytebase-store-ActivityIssueCommentCreatePayload-ApprovalEvent-Status) | | The new status. |
+<a name="store_approval-proto"></a>
+<p align="right"><a href="#top">Top</a></p>
+## store/approval.proto
-<a name="bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent"></a>
+<a name="bytebase-store-ApprovalFlow"></a>
-### ActivityIssueCommentCreatePayload.ExternalApprovalEvent
+### ApprovalFlow
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| type | [ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type](#bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent-Type) | | |
-| action | [ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action](#bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent-Action) | | |
-| stage_name | [string](#string) | | |
-
-
-
-
-
-
-<a name="bytebase-store-ActivityIssueCommentCreatePayload-TaskRollbackBy"></a>
-
-### ActivityIssueCommentCreatePayload.TaskRollbackBy
-TaskRollbackBy records an issue rollback activity.
-The task with taskID in IssueID is rollbacked by the task with RollbackByTaskID in RollbackByIssueID.
-
+| steps | [ApprovalStep](#bytebase-store-ApprovalStep) | repeated | |
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| issue_id | [int64](#int64) | | |
-| task_id | [int64](#int64) | | |
-| rollback_by_issue_id | [int64](#int64) | | |
-| rollback_by_task_id | [int64](#int64) | | |
+<a name="bytebase-store-ApprovalNode"></a>
-<a name="bytebase-store-ActivityIssueCreatePayload"></a>
+### ApprovalNode
-### ActivityIssueCreatePayload
-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
-json naming convention. More importantly, frontend code can simply use JSON.parse to
-convert to the expected struct there.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| issue_name | [string](#string) | | |
-
-
-
-
-
-
-
-
-<a name="bytebase-store-ActivityIssueCommentCreatePayload-ApprovalEvent-Status"></a>
+| type | [ApprovalNode.Type](#bytebase-store-ApprovalNode-Type) | | |
+| group_value | [ApprovalNode.GroupValue](#bytebase-store-ApprovalNode-GroupValue) | | |
+| role | [string](#string) | | Format: roles/{role} |
+| external_node_id | [string](#string) | | |
-### ActivityIssueCommentCreatePayload.ApprovalEvent.Status
-| Name | Number | Description |
-| ---- | ------ | ----------- |
-| STATUS_UNSPECIFIED | 0 | |
-| PENDING | 1 | |
-| APPROVED | 2 | |
-| REJECTED | 3 | |
-<a name="bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent-Action"></a>
+<a name="bytebase-store-ApprovalStep"></a>
-### ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action
+### ApprovalStep
-| Name | Number | Description |
-| ---- | ------ | ----------- |
-| ACTION_UNSPECIFIED | 0 | |
-| ACTION_APPROVE | 1 | |
-| ACTION_REJECT | 2 | |
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| type | [ApprovalStep.Type](#bytebase-store-ApprovalStep-Type) | | |
+| nodes | [ApprovalNode](#bytebase-store-ApprovalNode) | repeated | |
-<a name="bytebase-store-ActivityIssueCommentCreatePayload-ExternalApprovalEvent-Type"></a>
-### ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type
-| Name | Number | Description |
-| ---- | ------ | ----------- |
-| TYPE_UNSPECIFIED | 0 | |
-| TYPE_FEISHU | 1 | |
+<a name="bytebase-store-ApprovalTemplate"></a>
-
+### ApprovalTemplate
-
-
+| Field | Type | Label | Description |
+| ----- | ---- | ----- | ----------- |
+| flow | [ApprovalFlow](#bytebase-store-ApprovalFlow) | | |
+| title | [string](#string) | | |
+| description | [string](#string) | | |
+| creator_id | [int32](#int32) | | |
-<a name="store_common-proto"></a>
-<p align="right"><a href="#top">Top</a></p>
-## store/common.proto
-<a name="bytebase-store-PageToken"></a>
+<a name="bytebase-store-IssuePayloadApproval"></a>
-### PageToken
-Used internally for obfuscating the page token.
+### IssuePayloadApproval
+IssuePayloadApproval is a part of the payload of an issue.
+IssuePayloadApproval records the approval template used and the approval history.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| limit | [int32](#int32) | | |
-| offset | [int32](#int32) | | |
+| approval_templates | [ApprovalTemplate](#bytebase-store-ApprovalTemplate) | repeated | |
+| approvers | [IssuePayloadApproval.Approver](#bytebase-store-IssuePayloadApproval-Approver) | repeated | |
+| approval_finding_done | [bool](#bool) | | If the value is `false`, it means that the backend is still finding matching approval templates. If `true`, other fields are available. |
+| approval_finding_error | [string](#string) | | |
+| risk_level | [IssuePayloadApproval.RiskLevel](#bytebase-store-IssuePayloadApproval-RiskLevel) | | |
-<a name="bytebase-store-Position"></a>
+<a name="bytebase-store-IssuePayloadApproval-Approver"></a>
-### Position
+### IssuePayloadApproval.Approver
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
-| line | [int32](#int32) | | |
-| column | [int32](#int32) | | |
+| status | [IssuePayloadApproval.Approver.Status](#bytebase-store-IssuePayloadApproval-Approver-Status) | | The new status. |
+| principal_id | [int32](#int32) | | The principal id of the approver. |
@@ -696,133 +579,80 @@ Used internally for obfuscating the page token.
-<a name="bytebase-store-Engine"></a>
-
-### Engine
+<a name="bytebase-store-ApprovalNode-GroupValue"></a>
+### ApprovalNode.GroupValue
+The predefined user groups are:
+- WORKSPACE_OWNER
+- WORKSPACE_DBA
+- PROJECT_OWNER
+- PROJECT_MEMBER
| Name | Number | Description |
| ---- | ------ | ----------- |
-| ENGINE_UNSPECIFIED | 0 | |
-| CLICKHOUSE | 1 | |
-| MYSQL | 2 | |
-| POSTGRES | 3 | |
-| SNOWFLAKE | 4 | |
-| SQLITE | 5 | |
-| TIDB | 6 | |
-| MONGODB | 7 | |
-| REDIS | 8 | |
-| ORACLE | 9 | |
-| SPANNER | 10 | |
-| MSSQL | 11 | |
-| REDSHIFT | 12 | |
-| MARIADB | 13 | |
-| OCEANBASE | 14 | |
-| DM | 15 | |
-| RISINGWAVE | 16 | |
-| OCEANBASE_ORACLE | 17 | |
-| STARROCKS | 18 | |
-| DORIS | 19 | |
-| HIVE | 20 | |
-| ELASTICSEARCH | 21 | |
-| BIGQUERY | 22 | |
-| DYNAMODB | 23 | |
-| DATABRICKS | 24 | |
-
+| GROUP_VALUE_UNSPECIFILED | 0 | |
+| WORKSPACE_OWNER | 1 | |
+| WORKSPACE_DBA | 2 | |
+| PROJECT_OWNER | 3 | |
+| PROJECT_MEMBER | 4 | |
-<a name="bytebase-store-ExportFormat"></a>
-### ExportFormat
+<a name="bytebase-store-ApprovalNode-Type"></a>
+### ApprovalNode.Type
+Type of the ApprovalNode.
+type determines who should approve this node.
+ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.
+See GroupValue below for the predefined user groups.
| Name | Number | Description |
| ---- | ------ | ----------- |
-| FORMAT_UNSPECIFIED | 0 | |
-| CSV | 1 | |
-| JSON | 2 | |
-| SQL | 3 | |
-| XLSX | 4 | |
-
+| TYPE_UNSPECIFIED | 0 | |
+| ANY_IN_GROUP | 1 | |
-<a name="bytebase-store-MaskingLevel"></a>
-### MaskingLevel
+<a name="bytebase-store-ApprovalStep-Type"></a>
+### ApprovalStep.Type
+Type of the ApprovalStep
+ALL means every node must be approved to proceed.
+ANY means approving any node will proceed.
| Name | Number | Description |
| ---- | ------ | ----------- |
-| MASKING_LEVEL_UNSPECIFIED | 0 | |
-| NONE | 1 | |
-| PARTIAL | 2 | |
-| FULL | 3 | |
+| TYPE_UNSPECIFIED | 0 | |
+| ALL | 1 | |
+| ANY | 2 | |
-<a name="bytebase-store-VCSType"></a>
+<a name="bytebase-store-IssuePayloadApproval-Approver-Status"></a>
-### VCSType
+### IssuePayloadApproval.Approver.Status
| Name | Number | Description |
| ---- | ------ | ----------- |
-| VCS_TYPE_UNSPECIFIED | 0 | |
-| GITHUB | 1 | GitHub type. Using for GitHub community edition(ce). |
-| GITLAB | 2 | GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee). |
-| BITBUCKET | 3 | BitBucket type. Using for BitBucket cloud or BitBucket server. |
-| AZURE_DEVOPS | 4 | Azure DevOps. Using for Azure DevOps GitOps workflow. |
-
-
-
-
-
-
-
-
-
-
-<a name="store_advice-proto"></a>
-<p align="right"><a href="#top">Top</a></p>
-
-## store/advice.proto
-
-
-
-<a name="bytebase-store-Advice"></a>
-
-### Advice
-
-
-
-| Field | Type | Label | Description |
-| ----- | ---- | ----- | ----------- |
-| status | [Advice.Status](#bytebase-store-Advice-Status) | | The advice status. |
-| code | [int32](#int32) | | The advice code. |
-| title | [string](#string) | | The advice title. |
-| content | [string](#string) | | The advice content. |
-| detail | [string](#string) | | The advice detail. |
-| start_position | [Position](#bytebase-store-Position) | | 1-based positions of the sql statment. |
-| end_position | [Position](#bytebase-store-Position) | | |
-
-
-
-
+| STATUS_UNSPECIFIED | 0 | |
+| PENDING | 1 | |
+| APPROVED | 2 | |
+| REJECTED | 3 | |
-
-<a name="bytebase-store-Advice-Status"></a>
+<a name="bytebase-store-IssuePayloadApproval-RiskLevel"></a>
-### Advice.Status
+### IssuePayloadApproval.RiskLevel
| Name | Number | Description |
| ---- | ------ | ----------- |
-| STATUS_UNSPECIFIED | 0 | Unspecified. |
-| SUCCESS | 1 | |
-| WARNING | 2 | |
-| ERROR | 3 | |
+| RISK_LEVEL_UNSPECIFIED | 0 | |
+| LOW | 1 | |
+| MODERATE | 2 | |
+| HIGH | 3 | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index d6851cacd4..d447e2d8ef 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -175,52 +175,32 @@
<li>
- <a href="#store%2fapproval.proto">store/approval.proto</a>
+ <a href="#store%2fcommon.proto">store/common.proto</a>
<ul>
<li>
- <a href="#bytebase.store.ApprovalFlow"><span class="badge">M</span>ApprovalFlow</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ApprovalNode"><span class="badge">M</span>ApprovalNode</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ApprovalStep"><span class="badge">M</span>ApprovalStep</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ApprovalTemplate"><span class="badge">M</span>ApprovalTemplate</a>
- </li>
-
- <li>
- <a href="#bytebase.store.IssuePayloadApproval"><span class="badge">M</span>IssuePayloadApproval</a>
+ <a href="#bytebase.store.PageToken"><span class="badge">M</span>PageToken</a>
</li>
<li>
- <a href="#bytebase.store.IssuePayloadApproval.Approver"><span class="badge">M</span>IssuePayloadApproval.Approver</a>
+ <a href="#bytebase.store.Position"><span class="badge">M</span>Position</a>
</li>
<li>
- <a href="#bytebase.store.ApprovalNode.GroupValue"><span class="badge">E</span>ApprovalNode.GroupValue</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ApprovalNode.Type"><span class="badge">E</span>ApprovalNode.Type</a>
+ <a href="#bytebase.store.Engine"><span class="badge">E</span>Engine</a>
</li>
<li>
- <a href="#bytebase.store.ApprovalStep.Type"><span class="badge">E</span>ApprovalStep.Type</a>
+ <a href="#bytebase.store.ExportFormat"><span class="badge">E</span>ExportFormat</a>
</li>
<li>
- <a href="#bytebase.store.IssuePayloadApproval.Approver.Status"><span class="badge">E</span>IssuePayloadApproval.Approver.Status</a>
+ <a href="#bytebase.store.MaskingLevel"><span class="badge">E</span>MaskingLevel</a>
</li>
<li>
- <a href="#bytebase.store.IssuePayloadApproval.RiskLevel"><span class="badge">E</span>IssuePayloadApproval.RiskLevel</a>
+ <a href="#bytebase.store.VCSType"><span class="badge">E</span>VCSType</a>
</li>
@@ -230,44 +210,16 @@
<li>
- <a href="#store%2factivity.proto">store/activity.proto</a>
+ <a href="#store%2fadvice.proto">store/advice.proto</a>
<ul>
<li>
- <a href="#bytebase.store.ActivityIssueApprovalNotifyPayload"><span class="badge">M</span>ActivityIssueApprovalNotifyPayload</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ActivityIssueCommentCreatePayload"><span class="badge">M</span>ActivityIssueCommentCreatePayload</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent"><span class="badge">M</span>ActivityIssueCommentCreatePayload.ApprovalEvent</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent"><span class="badge">M</span>ActivityIssueCommentCreatePayload.ExternalApprovalEvent</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy"><span class="badge">M</span>ActivityIssueCommentCreatePayload.TaskRollbackBy</a>
- </li>
-
- <li>
- <a href="#bytebase.store.ActivityIssueCreatePayload"><span class="badge">M</span>ActivityIssueCreatePayload</a>
- </li>
-
-
- <li>
- <a href="#bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.Status"><span class="badge">E</span>ActivityIssueCommentCreatePayload.ApprovalEvent.Status</a>
+ <a href="#bytebase.store.Advice"><span class="badge">M</span>Advice</a>
</li>
- <li>
- <a href="#bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action"><span class="badge">E</span>ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action</a>
- </li>
<li>
- <a href="#bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type"><span class="badge">E</span>ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type</a>
+ <a href="#bytebase.store.Advice.Status"><span class="badge">E</span>Advice.Status</a>
</li>
@@ -277,51 +229,52 @@
<li>
- <a href="#store%2fcommon.proto">store/common.proto</a>
+ <a href="#store%2fapproval.proto">store/approval.proto</a>
<ul>
<li>
- <a href="#bytebase.store.PageToken"><span class="badge">M</span>PageToken</a>
+ <a href="#bytebase.store.ApprovalFlow"><span class="badge">M</span>ApprovalFlow</a>
</li>
<li>
- <a href="#bytebase.store.Position"><span class="badge">M</span>Position</a>
+ <a href="#bytebase.store.ApprovalNode"><span class="badge">M</span>ApprovalNode</a>
</li>
-
<li>
- <a href="#bytebase.store.Engine"><span class="badge">E</span>Engine</a>
+ <a href="#bytebase.store.ApprovalStep"><span class="badge">M</span>ApprovalStep</a>
</li>
<li>
- <a href="#bytebase.store.ExportFormat"><span class="badge">E</span>ExportFormat</a>
+ <a href="#bytebase.store.ApprovalTemplate"><span class="badge">M</span>ApprovalTemplate</a>
</li>
<li>
- <a href="#bytebase.store.MaskingLevel"><span class="badge">E</span>MaskingLevel</a>
+ <a href="#bytebase.store.IssuePayloadApproval"><span class="badge">M</span>IssuePayloadApproval</a>
</li>
<li>
- <a href="#bytebase.store.VCSType"><span class="badge">E</span>VCSType</a>
+ <a href="#bytebase.store.IssuePayloadApproval.Approver"><span class="badge">M</span>IssuePayloadApproval.Approver</a>
</li>
+ <li>
+ <a href="#bytebase.store.ApprovalNode.GroupValue"><span class="badge">E</span>ApprovalNode.GroupValue</a>
+ </li>
- </ul>
- </li>
-
-
- <li>
- <a href="#store%2fadvice.proto">store/advice.proto</a>
- <ul>
+ <li>
+ <a href="#bytebase.store.ApprovalNode.Type"><span class="badge">E</span>ApprovalNode.Type</a>
+ </li>
<li>
- <a href="#bytebase.store.Advice"><span class="badge">M</span>Advice</a>
+ <a href="#bytebase.store.ApprovalStep.Type"><span class="badge">E</span>ApprovalStep.Type</a>
</li>
+ <li>
+ <a href="#bytebase.store.IssuePayloadApproval.Approver.Status"><span class="badge">E</span>IssuePayloadApproval.Approver.Status</a>
+ </li>
<li>
- <a href="#bytebase.store.Advice.Status"><span class="badge">E</span>Advice.Status</a>
+ <a href="#bytebase.store.IssuePayloadApproval.RiskLevel"><span class="badge">E</span>IssuePayloadApproval.RiskLevel</a>
</li>
@@ -1388,37 +1341,13 @@
<div class="file-heading">
- <h2 id="store/approval.proto">store/approval.proto</h2><a href="#title">Top</a>
+ <h2 id="store/common.proto">store/common.proto</h2><a href="#title">Top</a>
</div>
<p></p>
- <h3 id="bytebase.store.ApprovalFlow">ApprovalFlow</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>steps</td>
- <td><a href="#bytebase.store.ApprovalStep">ApprovalStep</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ApprovalNode">ApprovalNode</h3>
- <p></p>
+ <h3 id="bytebase.store.PageToken">PageToken</h3>
+ <p>Used internally for obfuscating the page token.</p>
<table class="field-table">
@@ -1428,64 +1357,19 @@
<tbody>
<tr>
- <td>type</td>
- <td><a href="#bytebase.store.ApprovalNode.Type">ApprovalNode.Type</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>group_value</td>
- <td><a href="#bytebase.store.ApprovalNode.GroupValue">ApprovalNode.GroupValue</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>role</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>Format: roles/{role} </p></td>
- </tr>
-
- <tr>
- <td>external_node_id</td>
- <td><a href="#string">string</a></td>
+ <td>limit</td>
+ <td><a href="#int32">int32</a></td>
<td></td>
<td><p> </p></td>
</tr>
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ApprovalStep">ApprovalStep</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
<tr>
- <td>type</td>
- <td><a href="#bytebase.store.ApprovalStep.Type">ApprovalStep.Type</a></td>
+ <td>offset</td>
+ <td><a href="#int32">int32</a></td>
<td></td>
<td><p> </p></td>
</tr>
- <tr>
- <td>nodes</td>
- <td><a href="#bytebase.store.ApprovalNode">ApprovalNode</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
</tbody>
</table>
@@ -1493,7 +1377,7 @@
- <h3 id="bytebase.store.ApprovalTemplate">ApprovalTemplate</h3>
+ <h3 id="bytebase.store.Position">Position</h3>
<p></p>
@@ -1504,28 +1388,14 @@
<tbody>
<tr>
- <td>flow</td>
- <td><a href="#bytebase.store.ApprovalFlow">ApprovalFlow</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>title</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>description</td>
- <td><a href="#string">string</a></td>
+ <td>line</td>
+ <td><a href="#int32">int32</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>creator_id</td>
+ <td>column</td>
<td><a href="#int32">int32</a></td>
<td></td>
<td><p> </p></td>
@@ -1538,94 +1408,10 @@
- <h3 id="bytebase.store.IssuePayloadApproval">IssuePayloadApproval</h3>
- <p>IssuePayloadApproval is a part of the payload of an issue.</p><p>IssuePayloadApproval records the approval template used and the approval history.</p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>approval_templates</td>
- <td><a href="#bytebase.store.ApprovalTemplate">ApprovalTemplate</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>approvers</td>
- <td><a href="#bytebase.store.IssuePayloadApproval.Approver">IssuePayloadApproval.Approver</a></td>
- <td>repeated</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>approval_finding_done</td>
- <td><a href="#bool">bool</a></td>
- <td></td>
- <td><p>If the value is `false`, it means that the backend is still finding matching approval templates.
-If `true`, other fields are available. </p></td>
- </tr>
-
- <tr>
- <td>approval_finding_error</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>risk_level</td>
- <td><a href="#bytebase.store.IssuePayloadApproval.RiskLevel">IssuePayloadApproval.RiskLevel</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
- <h3 id="bytebase.store.IssuePayloadApproval.Approver">IssuePayloadApproval.Approver</h3>
+ <h3 id="bytebase.store.Engine">Engine</h3>
<p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>status</td>
- <td><a href="#bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</a></td>
- <td></td>
- <td><p>The new status. </p></td>
- </tr>
-
- <tr>
- <td>principal_id</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p>The principal id of the approver. </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
-
-
- <h3 id="bytebase.store.ApprovalNode.GroupValue">ApprovalNode.GroupValue</h3>
- <p>The predefined user groups are:</p><p>- WORKSPACE_OWNER</p><p>- WORKSPACE_DBA</p><p>- PROJECT_OWNER</p><p>- PROJECT_MEMBER</p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
@@ -1633,63 +1419,160 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>GROUP_VALUE_UNSPECIFILED</td>
+ <td>ENGINE_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>WORKSPACE_OWNER</td>
+ <td>CLICKHOUSE</td>
<td>1</td>
<td><p></p></td>
</tr>
<tr>
- <td>WORKSPACE_DBA</td>
+ <td>MYSQL</td>
<td>2</td>
<td><p></p></td>
</tr>
<tr>
- <td>PROJECT_OWNER</td>
+ <td>POSTGRES</td>
<td>3</td>
<td><p></p></td>
</tr>
<tr>
- <td>PROJECT_MEMBER</td>
+ <td>SNOWFLAKE</td>
<td>4</td>
<td><p></p></td>
</tr>
- </tbody>
- </table>
-
- <h3 id="bytebase.store.ApprovalNode.Type">ApprovalNode.Type</h3>
- <p>Type of the ApprovalNode.</p><p>type determines who should approve this node.</p><p>ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.</p><p>See GroupValue below for the predefined user groups.</p>
- <table class="enum-table">
- <thead>
- <tr><td>Name</td><td>Number</td><td>Description</td></tr>
- </thead>
- <tbody>
+ <tr>
+ <td>SQLITE</td>
+ <td>5</td>
+ <td><p></p></td>
+ </tr>
<tr>
- <td>TYPE_UNSPECIFIED</td>
- <td>0</td>
+ <td>TIDB</td>
+ <td>6</td>
<td><p></p></td>
</tr>
<tr>
- <td>ANY_IN_GROUP</td>
- <td>1</td>
+ <td>MONGODB</td>
+ <td>7</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>REDIS</td>
+ <td>8</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>ORACLE</td>
+ <td>9</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>SPANNER</td>
+ <td>10</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MSSQL</td>
+ <td>11</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>REDSHIFT</td>
+ <td>12</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>MARIADB</td>
+ <td>13</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>OCEANBASE</td>
+ <td>14</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>DM</td>
+ <td>15</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>RISINGWAVE</td>
+ <td>16</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>OCEANBASE_ORACLE</td>
+ <td>17</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>STARROCKS</td>
+ <td>18</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>DORIS</td>
+ <td>19</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>HIVE</td>
+ <td>20</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>ELASTICSEARCH</td>
+ <td>21</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>BIGQUERY</td>
+ <td>22</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>DYNAMODB</td>
+ <td>23</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>DATABRICKS</td>
+ <td>24</td>
<td><p></p></td>
</tr>
</tbody>
</table>
- <h3 id="bytebase.store.ApprovalStep.Type">ApprovalStep.Type</h3>
- <p>Type of the ApprovalStep</p><p>ALL means every node must be approved to proceed.</p><p>ANY means approving any node will proceed.</p>
+ <h3 id="bytebase.store.ExportFormat">ExportFormat</h3>
+ <p></p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
@@ -1697,27 +1580,39 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>TYPE_UNSPECIFIED</td>
+ <td>FORMAT_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>ALL</td>
+ <td>CSV</td>
<td>1</td>
<td><p></p></td>
</tr>
<tr>
- <td>ANY</td>
+ <td>JSON</td>
<td>2</td>
<td><p></p></td>
</tr>
+ <tr>
+ <td>SQL</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>XLSX</td>
+ <td>4</td>
+ <td><p></p></td>
+ </tr>
+
</tbody>
</table>
- <h3 id="bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</h3>
+ <h3 id="bytebase.store.MaskingLevel">MaskingLevel</h3>
<p></p>
<table class="enum-table">
<thead>
@@ -1726,25 +1621,25 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>STATUS_UNSPECIFIED</td>
+ <td>MASKING_LEVEL_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>PENDING</td>
+ <td>NONE</td>
<td>1</td>
<td><p></p></td>
</tr>
<tr>
- <td>APPROVED</td>
+ <td>PARTIAL</td>
<td>2</td>
<td><p></p></td>
</tr>
<tr>
- <td>REJECTED</td>
+ <td>FULL</td>
<td>3</td>
<td><p></p></td>
</tr>
@@ -1752,7 +1647,7 @@ If `true`, other fields are available. </p></td>
</tbody>
</table>
- <h3 id="bytebase.store.IssuePayloadApproval.RiskLevel">IssuePayloadApproval.RiskLevel</h3>
+ <h3 id="bytebase.store.VCSType">VCSType</h3>
<p></p>
<table class="enum-table">
<thead>
@@ -1761,27 +1656,33 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>RISK_LEVEL_UNSPECIFIED</td>
+ <td>VCS_TYPE_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>LOW</td>
+ <td>GITHUB</td>
<td>1</td>
- <td><p></p></td>
+ <td><p>GitHub type. Using for GitHub community edition(ce).</p></td>
</tr>
<tr>
- <td>MODERATE</td>
+ <td>GITLAB</td>
<td>2</td>
- <td><p></p></td>
+ <td><p>GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee).</p></td>
</tr>
<tr>
- <td>HIGH</td>
+ <td>BITBUCKET</td>
<td>3</td>
- <td><p></p></td>
+ <td><p>BitBucket type. Using for BitBucket cloud or BitBucket server.</p></td>
+ </tr>
+
+ <tr>
+ <td>AZURE_DEVOPS</td>
+ <td>4</td>
+ <td><p>Azure DevOps. Using for Azure DevOps GitOps workflow.</p></td>
</tr>
</tbody>
@@ -1794,12 +1695,12 @@ If `true`, other fields are available. </p></td>
<div class="file-heading">
- <h2 id="store/activity.proto">store/activity.proto</h2><a href="#title">Top</a>
+ <h2 id="store/advice.proto">store/advice.proto</h2><a href="#title">Top</a>
</div>
<p></p>
- <h3 id="bytebase.store.ActivityIssueApprovalNotifyPayload">ActivityIssueApprovalNotifyPayload</h3>
+ <h3 id="bytebase.store.Advice">Advice</h3>
<p></p>
@@ -1810,65 +1711,111 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>approval_step</td>
- <td><a href="#bytebase.store.ApprovalStep">ApprovalStep</a></td>
+ <td>status</td>
+ <td><a href="#bytebase.store.Advice.Status">Advice.Status</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The advice status. </p></td>
</tr>
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.ActivityIssueCommentCreatePayload">ActivityIssueCommentCreatePayload</h3>
- <p>ActivityIssueCommentCreatePayload is the payloads for creating issue comments.</p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
<tr>
- <td>external_approval_event</td>
- <td><a href="#bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent">ActivityIssueCommentCreatePayload.ExternalApprovalEvent</a></td>
+ <td>code</td>
+ <td><a href="#int32">int32</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The advice code. </p></td>
</tr>
<tr>
- <td>task_rollback_by</td>
- <td><a href="#bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy">ActivityIssueCommentCreatePayload.TaskRollbackBy</a></td>
+ <td>title</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The advice title. </p></td>
</tr>
<tr>
- <td>approval_event</td>
- <td><a href="#bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent">ActivityIssueCommentCreatePayload.ApprovalEvent</a></td>
+ <td>content</td>
+ <td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The advice content. </p></td>
</tr>
<tr>
- <td>issue_name</td>
+ <td>detail</td>
<td><a href="#string">string</a></td>
<td></td>
- <td><p> </p></td>
+ <td><p>The advice detail. </p></td>
</tr>
- </tbody>
- </table>
+ <tr>
+ <td>start_position</td>
+ <td><a href="#bytebase.store.Position">Position</a></td>
+ <td></td>
+ <td><p>1-based positions of the sql statment. </p></td>
+ </tr>
+
+ <tr>
+ <td>end_position</td>
+ <td><a href="#bytebase.store.Position">Position</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
- <h3 id="bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent">ActivityIssueCommentCreatePayload.ApprovalEvent</h3>
+
+
+ <h3 id="bytebase.store.Advice.Status">Advice.Status</h3>
+ <p></p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>STATUS_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p>Unspecified.</p></td>
+ </tr>
+
+ <tr>
+ <td>SUCCESS</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>WARNING</td>
+ <td>2</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>ERROR</td>
+ <td>3</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+
+
+ <div class="file-heading">
+ <h2 id="store/approval.proto">store/approval.proto</h2><a href="#title">Top</a>
+ </div>
+ <p></p>
+
+
+ <h3 id="bytebase.store.ApprovalFlow">ApprovalFlow</h3>
<p></p>
@@ -1879,10 +1826,10 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>status</td>
- <td><a href="#bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.Status">ActivityIssueCommentCreatePayload.ApprovalEvent.Status</a></td>
- <td></td>
- <td><p>The new status. </p></td>
+ <td>steps</td>
+ <td><a href="#bytebase.store.ApprovalStep">ApprovalStep</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
</tr>
</tbody>
@@ -1892,7 +1839,7 @@ If `true`, other fields are available. </p></td>
- <h3 id="bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent">ActivityIssueCommentCreatePayload.ExternalApprovalEvent</h3>
+ <h3 id="bytebase.store.ApprovalNode">ApprovalNode</h3>
<p></p>
@@ -1904,20 +1851,27 @@ If `true`, other fields are available. </p></td>
<tr>
<td>type</td>
- <td><a href="#bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type">ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type</a></td>
+ <td><a href="#bytebase.store.ApprovalNode.Type">ApprovalNode.Type</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>action</td>
- <td><a href="#bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action">ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action</a></td>
+ <td>group_value</td>
+ <td><a href="#bytebase.store.ApprovalNode.GroupValue">ApprovalNode.GroupValue</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>stage_name</td>
+ <td>role</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p>Format: roles/{role} </p></td>
+ </tr>
+
+ <tr>
+ <td>external_node_id</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
@@ -1930,8 +1884,8 @@ If `true`, other fields are available. </p></td>
- <h3 id="bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy">ActivityIssueCommentCreatePayload.TaskRollbackBy</h3>
- <p>TaskRollbackBy records an issue rollback activity.</p><p>The task with taskID in IssueID is rollbacked by the task with RollbackByTaskID in RollbackByIssueID.</p>
+ <h3 id="bytebase.store.ApprovalStep">ApprovalStep</h3>
+ <p></p>
<table class="field-table">
@@ -1941,29 +1895,60 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>issue_id</td>
- <td><a href="#int64">int64</a></td>
+ <td>type</td>
+ <td><a href="#bytebase.store.ApprovalStep.Type">ApprovalStep.Type</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>task_id</td>
- <td><a href="#int64">int64</a></td>
+ <td>nodes</td>
+ <td><a href="#bytebase.store.ApprovalNode">ApprovalNode</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.ApprovalTemplate">ApprovalTemplate</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>flow</td>
+ <td><a href="#bytebase.store.ApprovalFlow">ApprovalFlow</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>rollback_by_issue_id</td>
- <td><a href="#int64">int64</a></td>
+ <td>title</td>
+ <td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
<tr>
- <td>rollback_by_task_id</td>
- <td><a href="#int64">int64</a></td>
+ <td>description</td>
+ <td><a href="#string">string</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>creator_id</td>
+ <td><a href="#int32">int32</a></td>
<td></td>
<td><p> </p></td>
</tr>
@@ -1975,8 +1960,8 @@ If `true`, other fields are available. </p></td>
- <h3 id="bytebase.store.ActivityIssueCreatePayload">ActivityIssueCreatePayload</h3>
- <p>ActivityIssueCreatePayload is the payloads for creating issues.</p><p>These payload types are only used when marshalling to the json format for saving into the database.</p><p>So we annotate with json tag using camelCase naming which is consistent with normal</p><p>json naming convention. More importantly, frontend code can simply use JSON.parse to</p><p>convert to the expected struct there.</p>
+ <h3 id="bytebase.store.IssuePayloadApproval">IssuePayloadApproval</h3>
+ <p>IssuePayloadApproval is a part of the payload of an issue.</p><p>IssuePayloadApproval records the approval template used and the approval history.</p>
<table class="field-table">
@@ -1986,12 +1971,72 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>issue_name</td>
+ <td>approval_templates</td>
+ <td><a href="#bytebase.store.ApprovalTemplate">ApprovalTemplate</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>approvers</td>
+ <td><a href="#bytebase.store.IssuePayloadApproval.Approver">IssuePayloadApproval.Approver</a></td>
+ <td>repeated</td>
+ <td><p> </p></td>
+ </tr>
+
+ <tr>
+ <td>approval_finding_done</td>
+ <td><a href="#bool">bool</a></td>
+ <td></td>
+ <td><p>If the value is `false`, it means that the backend is still finding matching approval templates.
+If `true`, other fields are available. </p></td>
+ </tr>
+
+ <tr>
+ <td>approval_finding_error</td>
<td><a href="#string">string</a></td>
<td></td>
<td><p> </p></td>
</tr>
+ <tr>
+ <td>risk_level</td>
+ <td><a href="#bytebase.store.IssuePayloadApproval.RiskLevel">IssuePayloadApproval.RiskLevel</a></td>
+ <td></td>
+ <td><p> </p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <h3 id="bytebase.store.IssuePayloadApproval.Approver">IssuePayloadApproval.Approver</h3>
+ <p></p>
+
+
+ <table class="field-table">
+ <thead>
+ <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>status</td>
+ <td><a href="#bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</a></td>
+ <td></td>
+ <td><p>The new status. </p></td>
+ </tr>
+
+ <tr>
+ <td>principal_id</td>
+ <td><a href="#int32">int32</a></td>
+ <td></td>
+ <td><p>The principal id of the approver. </p></td>
+ </tr>
+
</tbody>
</table>
@@ -2001,8 +2046,8 @@ If `true`, other fields are available. </p></td>
- <h3 id="bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.Status">ActivityIssueCommentCreatePayload.ApprovalEvent.Status</h3>
- <p></p>
+ <h3 id="bytebase.store.ApprovalNode.GroupValue">ApprovalNode.GroupValue</h3>
+ <p>The predefined user groups are:</p><p>- WORKSPACE_OWNER</p><p>- WORKSPACE_DBA</p><p>- PROJECT_OWNER</p><p>- PROJECT_MEMBER</p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
@@ -2010,34 +2055,40 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>STATUS_UNSPECIFIED</td>
+ <td>GROUP_VALUE_UNSPECIFILED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>PENDING</td>
+ <td>WORKSPACE_OWNER</td>
<td>1</td>
<td><p></p></td>
</tr>
<tr>
- <td>APPROVED</td>
+ <td>WORKSPACE_DBA</td>
<td>2</td>
<td><p></p></td>
</tr>
<tr>
- <td>REJECTED</td>
+ <td>PROJECT_OWNER</td>
<td>3</td>
<td><p></p></td>
</tr>
+ <tr>
+ <td>PROJECT_MEMBER</td>
+ <td>4</td>
+ <td><p></p></td>
+ </tr>
+
</tbody>
</table>
- <h3 id="bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action">ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action</h3>
- <p></p>
+ <h3 id="bytebase.store.ApprovalNode.Type">ApprovalNode.Type</h3>
+ <p>Type of the ApprovalNode.</p><p>type determines who should approve this node.</p><p>ANY_IN_GROUP means the ApprovalNode can be approved by an user from our predefined user group.</p><p>See GroupValue below for the predefined user groups.</p>
<table class="enum-table">
<thead>
<tr><td>Name</td><td>Number</td><td>Description</td></tr>
@@ -2045,19 +2096,42 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>ACTION_UNSPECIFIED</td>
+ <td>TYPE_UNSPECIFIED</td>
+ <td>0</td>
+ <td><p></p></td>
+ </tr>
+
+ <tr>
+ <td>ANY_IN_GROUP</td>
+ <td>1</td>
+ <td><p></p></td>
+ </tr>
+
+ </tbody>
+ </table>
+
+ <h3 id="bytebase.store.ApprovalStep.Type">ApprovalStep.Type</h3>
+ <p>Type of the ApprovalStep</p><p>ALL means every node must be approved to proceed.</p><p>ANY means approving any node will proceed.</p>
+ <table class="enum-table">
+ <thead>
+ <tr><td>Name</td><td>Number</td><td>Description</td></tr>
+ </thead>
+ <tbody>
+
+ <tr>
+ <td>TYPE_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>ACTION_APPROVE</td>
+ <td>ALL</td>
<td>1</td>
<td><p></p></td>
</tr>
<tr>
- <td>ACTION_REJECT</td>
+ <td>ANY</td>
<td>2</td>
<td><p></p></td>
</tr>
@@ -2065,7 +2139,7 @@ If `true`, other fields are available. </p></td>
</tbody>
</table>
- <h3 id="bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type">ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type</h3>
+ <h3 id="bytebase.store.IssuePayloadApproval.Approver.Status">IssuePayloadApproval.Approver.Status</h3>
<p></p>
<table class="enum-table">
<thead>
@@ -2074,326 +2148,25 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>TYPE_UNSPECIFIED</td>
+ <td>STATUS_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>TYPE_FEISHU</td>
+ <td>PENDING</td>
<td>1</td>
<td><p></p></td>
</tr>
- </tbody>
- </table>
-
-
-
-
-
-
-
- <div class="file-heading">
- <h2 id="store/common.proto">store/common.proto</h2><a href="#title">Top</a>
- </div>
- <p></p>
-
-
- <h3 id="bytebase.store.PageToken">PageToken</h3>
- <p>Used internally for obfuscating the page token.</p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>limit</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>offset</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
- <h3 id="bytebase.store.Position">Position</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>line</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>column</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
-
-
- <h3 id="bytebase.store.Engine">Engine</h3>
- <p></p>
- <table class="enum-table">
- <thead>
- <tr><td>Name</td><td>Number</td><td>Description</td></tr>
- </thead>
- <tbody>
-
<tr>
- <td>ENGINE_UNSPECIFIED</td>
- <td>0</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>CLICKHOUSE</td>
- <td>1</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>MYSQL</td>
- <td>2</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>POSTGRES</td>
- <td>3</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>SNOWFLAKE</td>
- <td>4</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>SQLITE</td>
- <td>5</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>TIDB</td>
- <td>6</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>MONGODB</td>
- <td>7</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>REDIS</td>
- <td>8</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>ORACLE</td>
- <td>9</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>SPANNER</td>
- <td>10</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>MSSQL</td>
- <td>11</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>REDSHIFT</td>
- <td>12</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>MARIADB</td>
- <td>13</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>OCEANBASE</td>
- <td>14</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>DM</td>
- <td>15</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>RISINGWAVE</td>
- <td>16</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>OCEANBASE_ORACLE</td>
- <td>17</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>STARROCKS</td>
- <td>18</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>DORIS</td>
- <td>19</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>HIVE</td>
- <td>20</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>ELASTICSEARCH</td>
- <td>21</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>BIGQUERY</td>
- <td>22</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>DYNAMODB</td>
- <td>23</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>DATABRICKS</td>
- <td>24</td>
- <td><p></p></td>
- </tr>
-
- </tbody>
- </table>
-
- <h3 id="bytebase.store.ExportFormat">ExportFormat</h3>
- <p></p>
- <table class="enum-table">
- <thead>
- <tr><td>Name</td><td>Number</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>FORMAT_UNSPECIFIED</td>
- <td>0</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>CSV</td>
- <td>1</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>JSON</td>
- <td>2</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>SQL</td>
- <td>3</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>XLSX</td>
- <td>4</td>
- <td><p></p></td>
- </tr>
-
- </tbody>
- </table>
-
- <h3 id="bytebase.store.MaskingLevel">MaskingLevel</h3>
- <p></p>
- <table class="enum-table">
- <thead>
- <tr><td>Name</td><td>Number</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>MASKING_LEVEL_UNSPECIFIED</td>
- <td>0</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>NONE</td>
- <td>1</td>
- <td><p></p></td>
- </tr>
-
- <tr>
- <td>PARTIAL</td>
+ <td>APPROVED</td>
<td>2</td>
<td><p></p></td>
</tr>
<tr>
- <td>FULL</td>
+ <td>REJECTED</td>
<td>3</td>
<td><p></p></td>
</tr>
@@ -2401,7 +2174,7 @@ If `true`, other fields are available. </p></td>
</tbody>
</table>
- <h3 id="bytebase.store.VCSType">VCSType</h3>
+ <h3 id="bytebase.store.IssuePayloadApproval.RiskLevel">IssuePayloadApproval.RiskLevel</h3>
<p></p>
<table class="enum-table">
<thead>
@@ -2410,146 +2183,25 @@ If `true`, other fields are available. </p></td>
<tbody>
<tr>
- <td>VCS_TYPE_UNSPECIFIED</td>
+ <td>RISK_LEVEL_UNSPECIFIED</td>
<td>0</td>
<td><p></p></td>
</tr>
<tr>
- <td>GITHUB</td>
- <td>1</td>
- <td><p>GitHub type. Using for GitHub community edition(ce).</p></td>
- </tr>
-
- <tr>
- <td>GITLAB</td>
- <td>2</td>
- <td><p>GitLab type. Using for GitLab community edition(ce) and enterprise edition(ee).</p></td>
- </tr>
-
- <tr>
- <td>BITBUCKET</td>
- <td>3</td>
- <td><p>BitBucket type. Using for BitBucket cloud or BitBucket server.</p></td>
- </tr>
-
- <tr>
- <td>AZURE_DEVOPS</td>
- <td>4</td>
- <td><p>Azure DevOps. Using for Azure DevOps GitOps workflow.</p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
-
-
- <div class="file-heading">
- <h2 id="store/advice.proto">store/advice.proto</h2><a href="#title">Top</a>
- </div>
- <p></p>
-
-
- <h3 id="bytebase.store.Advice">Advice</h3>
- <p></p>
-
-
- <table class="field-table">
- <thead>
- <tr><td>Field</td><td>Type</td><td>Label</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>status</td>
- <td><a href="#bytebase.store.Advice.Status">Advice.Status</a></td>
- <td></td>
- <td><p>The advice status. </p></td>
- </tr>
-
- <tr>
- <td>code</td>
- <td><a href="#int32">int32</a></td>
- <td></td>
- <td><p>The advice code. </p></td>
- </tr>
-
- <tr>
- <td>title</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The advice title. </p></td>
- </tr>
-
- <tr>
- <td>content</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The advice content. </p></td>
- </tr>
-
- <tr>
- <td>detail</td>
- <td><a href="#string">string</a></td>
- <td></td>
- <td><p>The advice detail. </p></td>
- </tr>
-
- <tr>
- <td>start_position</td>
- <td><a href="#bytebase.store.Position">Position</a></td>
- <td></td>
- <td><p>1-based positions of the sql statment. </p></td>
- </tr>
-
- <tr>
- <td>end_position</td>
- <td><a href="#bytebase.store.Position">Position</a></td>
- <td></td>
- <td><p> </p></td>
- </tr>
-
- </tbody>
- </table>
-
-
-
-
-
-
-
- <h3 id="bytebase.store.Advice.Status">Advice.Status</h3>
- <p></p>
- <table class="enum-table">
- <thead>
- <tr><td>Name</td><td>Number</td><td>Description</td></tr>
- </thead>
- <tbody>
-
- <tr>
- <td>STATUS_UNSPECIFIED</td>
- <td>0</td>
- <td><p>Unspecified.</p></td>
- </tr>
-
- <tr>
- <td>SUCCESS</td>
+ <td>LOW</td>
<td>1</td>
<td><p></p></td>
</tr>
<tr>
- <td>WARNING</td>
+ <td>MODERATE</td>
<td>2</td>
<td><p></p></td>
</tr>
<tr>
- <td>ERROR</td>
+ <td>HIGH</td>
<td>3</td>
<td><p></p></td>
</tr>
diff --git a/proto/generated-go/store/activity.pb.go b/proto/generated-go/store/activity.pb.go
deleted file mode 100644
index bf6c66d25c..0000000000
--- a/proto/generated-go/store/activity.pb.go
+++ /dev/null
@@ -1,799 +0,0 @@
-// Code generated by protoc-gen-go. DO NOT EDIT.
-// versions:
-// protoc-gen-go v1.34.2
-// protoc (unknown)
-// source: store/activity.proto
-
-package store
-
-import (
- protoreflect "google.golang.org/protobuf/reflect/protoreflect"
- protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- reflect "reflect"
- sync "sync"
-)
-
-const (
- // Verify that this generated code is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
- // Verify that runtime/protoimpl is sufficiently up-to-date.
- _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
-)
-
-type ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type int32
-
-const (
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_TYPE_UNSPECIFIED ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type = 0
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_TYPE_FEISHU ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type = 1
-)
-
-// Enum value maps for ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.
-var (
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type_name = map[int32]string{
- 0: "TYPE_UNSPECIFIED",
- 1: "TYPE_FEISHU",
- }
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type_value = map[string]int32{
- "TYPE_UNSPECIFIED": 0,
- "TYPE_FEISHU": 1,
- }
-)
-
-func (x ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type) Enum() *ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type {
- p := new(ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type)
- *p = x
- return p
-}
-
-func (x ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type) Descriptor() protoreflect.EnumDescriptor {
- return file_store_activity_proto_enumTypes[0].Descriptor()
-}
-
-func (ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type) Type() protoreflect.EnumType {
- return &file_store_activity_proto_enumTypes[0]
-}
-
-func (x ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type.Descriptor instead.
-func (ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type) EnumDescriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{1, 1, 0}
-}
-
-type ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action int32
-
-const (
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_ACTION_UNSPECIFIED ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action = 0
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_ACTION_APPROVE ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action = 1
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_ACTION_REJECT ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action = 2
-)
-
-// Enum value maps for ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.
-var (
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action_name = map[int32]string{
- 0: "ACTION_UNSPECIFIED",
- 1: "ACTION_APPROVE",
- 2: "ACTION_REJECT",
- }
- ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action_value = map[string]int32{
- "ACTION_UNSPECIFIED": 0,
- "ACTION_APPROVE": 1,
- "ACTION_REJECT": 2,
- }
-)
-
-func (x ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action) Enum() *ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action {
- p := new(ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action)
- *p = x
- return p
-}
-
-func (x ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action) Descriptor() protoreflect.EnumDescriptor {
- return file_store_activity_proto_enumTypes[1].Descriptor()
-}
-
-func (ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action) Type() protoreflect.EnumType {
- return &file_store_activity_proto_enumTypes[1]
-}
-
-func (x ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action.Descriptor instead.
-func (ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action) EnumDescriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{1, 1, 1}
-}
-
-type ActivityIssueCommentCreatePayload_ApprovalEvent_Status int32
-
-const (
- ActivityIssueCommentCreatePayload_ApprovalEvent_STATUS_UNSPECIFIED ActivityIssueCommentCreatePayload_ApprovalEvent_Status = 0
- ActivityIssueCommentCreatePayload_ApprovalEvent_PENDING ActivityIssueCommentCreatePayload_ApprovalEvent_Status = 1
- ActivityIssueCommentCreatePayload_ApprovalEvent_APPROVED ActivityIssueCommentCreatePayload_ApprovalEvent_Status = 2
- ActivityIssueCommentCreatePayload_ApprovalEvent_REJECTED ActivityIssueCommentCreatePayload_ApprovalEvent_Status = 3
-)
-
-// Enum value maps for ActivityIssueCommentCreatePayload_ApprovalEvent_Status.
-var (
- ActivityIssueCommentCreatePayload_ApprovalEvent_Status_name = map[int32]string{
- 0: "STATUS_UNSPECIFIED",
- 1: "PENDING",
- 2: "APPROVED",
- 3: "REJECTED",
- }
- ActivityIssueCommentCreatePayload_ApprovalEvent_Status_value = map[string]int32{
- "STATUS_UNSPECIFIED": 0,
- "PENDING": 1,
- "APPROVED": 2,
- "REJECTED": 3,
- }
-)
-
-func (x ActivityIssueCommentCreatePayload_ApprovalEvent_Status) Enum() *ActivityIssueCommentCreatePayload_ApprovalEvent_Status {
- p := new(ActivityIssueCommentCreatePayload_ApprovalEvent_Status)
- *p = x
- return p
-}
-
-func (x ActivityIssueCommentCreatePayload_ApprovalEvent_Status) String() string {
- return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
-}
-
-func (ActivityIssueCommentCreatePayload_ApprovalEvent_Status) Descriptor() protoreflect.EnumDescriptor {
- return file_store_activity_proto_enumTypes[2].Descriptor()
-}
-
-func (ActivityIssueCommentCreatePayload_ApprovalEvent_Status) Type() protoreflect.EnumType {
- return &file_store_activity_proto_enumTypes[2]
-}
-
-func (x ActivityIssueCommentCreatePayload_ApprovalEvent_Status) Number() protoreflect.EnumNumber {
- return protoreflect.EnumNumber(x)
-}
-
-// Deprecated: Use ActivityIssueCommentCreatePayload_ApprovalEvent_Status.Descriptor instead.
-func (ActivityIssueCommentCreatePayload_ApprovalEvent_Status) EnumDescriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{1, 2, 0}
-}
-
-// 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
-// json naming convention. More importantly, frontend code can simply use JSON.parse to
-// convert to the expected struct there.
-type ActivityIssueCreatePayload struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- IssueName string `protobuf:"bytes,1,opt,name=issue_name,json=issueName,proto3" json:"issue_name,omitempty"`
-}
-
-func (x *ActivityIssueCreatePayload) Reset() {
- *x = ActivityIssueCreatePayload{}
- if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[0]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *ActivityIssueCreatePayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ActivityIssueCreatePayload) ProtoMessage() {}
-
-func (x *ActivityIssueCreatePayload) 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 ActivityIssueCreatePayload.ProtoReflect.Descriptor instead.
-func (*ActivityIssueCreatePayload) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{0}
-}
-
-func (x *ActivityIssueCreatePayload) GetIssueName() string {
- if x != nil {
- return x.IssueName
- }
- return ""
-}
-
-// ActivityIssueCommentCreatePayload is the payloads for creating issue comments.
-type ActivityIssueCommentCreatePayload struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // Types that are assignable to Event:
- //
- // *ActivityIssueCommentCreatePayload_ExternalApprovalEvent_
- // *ActivityIssueCommentCreatePayload_TaskRollbackBy_
- // *ActivityIssueCommentCreatePayload_ApprovalEvent_
- Event isActivityIssueCommentCreatePayload_Event `protobuf_oneof:"event"`
- IssueName string `protobuf:"bytes,4,opt,name=issue_name,json=issueName,proto3" json:"issue_name,omitempty"`
-}
-
-func (x *ActivityIssueCommentCreatePayload) Reset() {
- *x = ActivityIssueCommentCreatePayload{}
- if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[1]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *ActivityIssueCommentCreatePayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ActivityIssueCommentCreatePayload) ProtoMessage() {}
-
-func (x *ActivityIssueCommentCreatePayload) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_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 ActivityIssueCommentCreatePayload.ProtoReflect.Descriptor instead.
-func (*ActivityIssueCommentCreatePayload) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{1}
-}
-
-func (m *ActivityIssueCommentCreatePayload) GetEvent() isActivityIssueCommentCreatePayload_Event {
- if m != nil {
- return m.Event
- }
- return nil
-}
-
-func (x *ActivityIssueCommentCreatePayload) GetExternalApprovalEvent() *ActivityIssueCommentCreatePayload_ExternalApprovalEvent {
- if x, ok := x.GetEvent().(*ActivityIssueCommentCreatePayload_ExternalApprovalEvent_); ok {
- return x.ExternalApprovalEvent
- }
- return nil
-}
-
-func (x *ActivityIssueCommentCreatePayload) GetTaskRollbackBy() *ActivityIssueCommentCreatePayload_TaskRollbackBy {
- if x, ok := x.GetEvent().(*ActivityIssueCommentCreatePayload_TaskRollbackBy_); ok {
- return x.TaskRollbackBy
- }
- return nil
-}
-
-func (x *ActivityIssueCommentCreatePayload) GetApprovalEvent() *ActivityIssueCommentCreatePayload_ApprovalEvent {
- if x, ok := x.GetEvent().(*ActivityIssueCommentCreatePayload_ApprovalEvent_); ok {
- return x.ApprovalEvent
- }
- return nil
-}
-
-func (x *ActivityIssueCommentCreatePayload) GetIssueName() string {
- if x != nil {
- return x.IssueName
- }
- return ""
-}
-
-type isActivityIssueCommentCreatePayload_Event interface {
- isActivityIssueCommentCreatePayload_Event()
-}
-
-type ActivityIssueCommentCreatePayload_ExternalApprovalEvent_ struct {
- ExternalApprovalEvent *ActivityIssueCommentCreatePayload_ExternalApprovalEvent `protobuf:"bytes,1,opt,name=external_approval_event,json=externalApprovalEvent,proto3,oneof"`
-}
-
-type ActivityIssueCommentCreatePayload_TaskRollbackBy_ struct {
- TaskRollbackBy *ActivityIssueCommentCreatePayload_TaskRollbackBy `protobuf:"bytes,2,opt,name=task_rollback_by,json=taskRollbackBy,proto3,oneof"`
-}
-
-type ActivityIssueCommentCreatePayload_ApprovalEvent_ struct {
- ApprovalEvent *ActivityIssueCommentCreatePayload_ApprovalEvent `protobuf:"bytes,3,opt,name=approval_event,json=approvalEvent,proto3,oneof"`
-}
-
-func (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent_) isActivityIssueCommentCreatePayload_Event() {
-}
-
-func (*ActivityIssueCommentCreatePayload_TaskRollbackBy_) isActivityIssueCommentCreatePayload_Event() {
-}
-
-func (*ActivityIssueCommentCreatePayload_ApprovalEvent_) isActivityIssueCommentCreatePayload_Event() {
-}
-
-type ActivityIssueApprovalNotifyPayload struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- ApprovalStep *ApprovalStep `protobuf:"bytes,1,opt,name=approval_step,json=approvalStep,proto3" json:"approval_step,omitempty"`
-}
-
-func (x *ActivityIssueApprovalNotifyPayload) Reset() {
- *x = ActivityIssueApprovalNotifyPayload{}
- if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[2]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *ActivityIssueApprovalNotifyPayload) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ActivityIssueApprovalNotifyPayload) ProtoMessage() {}
-
-func (x *ActivityIssueApprovalNotifyPayload) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_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 ActivityIssueApprovalNotifyPayload.ProtoReflect.Descriptor instead.
-func (*ActivityIssueApprovalNotifyPayload) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{2}
-}
-
-func (x *ActivityIssueApprovalNotifyPayload) GetApprovalStep() *ApprovalStep {
- if x != nil {
- return x.ApprovalStep
- }
- return nil
-}
-
-// TaskRollbackBy records an issue rollback activity.
-// The task with taskID in IssueID is rollbacked by the task with RollbackByTaskID in RollbackByIssueID.
-type ActivityIssueCommentCreatePayload_TaskRollbackBy 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"`
- TaskId int64 `protobuf:"varint,2,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
- RollbackByIssueId int64 `protobuf:"varint,3,opt,name=rollback_by_issue_id,json=rollbackByIssueId,proto3" json:"rollback_by_issue_id,omitempty"`
- RollbackByTaskId int64 `protobuf:"varint,4,opt,name=rollback_by_task_id,json=rollbackByTaskId,proto3" json:"rollback_by_task_id,omitempty"`
-}
-
-func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) Reset() {
- *x = ActivityIssueCommentCreatePayload_TaskRollbackBy{}
- if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[3]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ActivityIssueCommentCreatePayload_TaskRollbackBy) ProtoMessage() {}
-
-func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[3]
- 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 ActivityIssueCommentCreatePayload_TaskRollbackBy.ProtoReflect.Descriptor instead.
-func (*ActivityIssueCommentCreatePayload_TaskRollbackBy) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{1, 0}
-}
-
-func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) GetIssueId() int64 {
- if x != nil {
- return x.IssueId
- }
- return 0
-}
-
-func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) GetTaskId() int64 {
- if x != nil {
- return x.TaskId
- }
- return 0
-}
-
-func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) GetRollbackByIssueId() int64 {
- if x != nil {
- return x.RollbackByIssueId
- }
- return 0
-}
-
-func (x *ActivityIssueCommentCreatePayload_TaskRollbackBy) GetRollbackByTaskId() int64 {
- if x != nil {
- return x.RollbackByTaskId
- }
- return 0
-}
-
-type ActivityIssueCommentCreatePayload_ExternalApprovalEvent struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- Type ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type `protobuf:"varint,1,opt,name=type,proto3,enum=bytebase.store.ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type" json:"type,omitempty"`
- Action ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action `protobuf:"varint,2,opt,name=action,proto3,enum=bytebase.store.ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action" json:"action,omitempty"`
- StageName string `protobuf:"bytes,3,opt,name=stage_name,json=stageName,proto3" json:"stage_name,omitempty"`
-}
-
-func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) Reset() {
- *x = ActivityIssueCommentCreatePayload_ExternalApprovalEvent{}
- if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[4]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent) ProtoMessage() {}
-
-func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[4]
- 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 ActivityIssueCommentCreatePayload_ExternalApprovalEvent.ProtoReflect.Descriptor instead.
-func (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{1, 1}
-}
-
-func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) GetType() ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Type {
- if x != nil {
- return x.Type
- }
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_TYPE_UNSPECIFIED
-}
-
-func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) GetAction() ActivityIssueCommentCreatePayload_ExternalApprovalEvent_Action {
- if x != nil {
- return x.Action
- }
- return ActivityIssueCommentCreatePayload_ExternalApprovalEvent_ACTION_UNSPECIFIED
-}
-
-func (x *ActivityIssueCommentCreatePayload_ExternalApprovalEvent) GetStageName() string {
- if x != nil {
- return x.StageName
- }
- return ""
-}
-
-type ActivityIssueCommentCreatePayload_ApprovalEvent struct {
- state protoimpl.MessageState
- sizeCache protoimpl.SizeCache
- unknownFields protoimpl.UnknownFields
-
- // The new status.
- Status ActivityIssueCommentCreatePayload_ApprovalEvent_Status `protobuf:"varint,1,opt,name=status,proto3,enum=bytebase.store.ActivityIssueCommentCreatePayload_ApprovalEvent_Status" json:"status,omitempty"`
-}
-
-func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) Reset() {
- *x = ActivityIssueCommentCreatePayload_ApprovalEvent{}
- if protoimpl.UnsafeEnabled {
- mi := &file_store_activity_proto_msgTypes[5]
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
- ms.StoreMessageInfo(mi)
- }
-}
-
-func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) String() string {
- return protoimpl.X.MessageStringOf(x)
-}
-
-func (*ActivityIssueCommentCreatePayload_ApprovalEvent) ProtoMessage() {}
-
-func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) ProtoReflect() protoreflect.Message {
- mi := &file_store_activity_proto_msgTypes[5]
- 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 ActivityIssueCommentCreatePayload_ApprovalEvent.ProtoReflect.Descriptor instead.
-func (*ActivityIssueCommentCreatePayload_ApprovalEvent) Descriptor() ([]byte, []int) {
- return file_store_activity_proto_rawDescGZIP(), []int{1, 2}
-}
-
-func (x *ActivityIssueCommentCreatePayload_ApprovalEvent) GetStatus() ActivityIssueCommentCreatePayload_ApprovalEvent_Status {
- if x != nil {
- return x.Status
- }
- return ActivityIssueCommentCreatePayload_ApprovalEvent_STATUS_UNSPECIFIED
-}
-
-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, 0x1a, 0x14, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x2f, 0x61, 0x70,
- 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 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, 0x86, 0x09, 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, 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, 0xba, 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, 0x49,
- 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, 0x12, 0x0c, 0x0a, 0x08, 0x52,
- 0x45, 0x4a, 0x45, 0x43, 0x54, 0x45, 0x44, 0x10, 0x03, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65,
- 0x6e, 0x74, 0x22, 0x67, 0x0a, 0x22, 0x41, 0x63, 0x74, 0x69, 0x76, 0x69, 0x74, 0x79, 0x49, 0x73,
- 0x73, 0x75, 0x65, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x4e, 0x6f, 0x74, 0x69, 0x66,
- 0x79, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x41, 0x0a, 0x0d, 0x61, 0x70, 0x70, 0x72,
- 0x6f, 0x76, 0x61, 0x6c, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
- 0x1c, 0x2e, 0x62, 0x79, 0x74, 0x65, 0x62, 0x61, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x6f, 0x72, 0x65,
- 0x2e, 0x41, 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x65, 0x70, 0x52, 0x0c, 0x61,
- 0x70, 0x70, 0x72, 0x6f, 0x76, 0x61, 0x6c, 0x53, 0x74, 0x65, 0x70, 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 (
- file_store_activity_proto_rawDescOnce sync.Once
- file_store_activity_proto_rawDescData = file_store_activity_proto_rawDesc
-)
-
-func file_store_activity_proto_rawDescGZIP() []byte {
- file_store_activity_proto_rawDescOnce.Do(func() {
- file_store_activity_proto_rawDescData = protoimpl.X.CompressGZIP(file_store_activity_proto_rawDescData)
- })
- return file_store_activity_proto_rawDescData
-}
-
-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_goTypes = []any{
- (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
- (*ActivityIssueCreatePayload)(nil), // 3: bytebase.store.ActivityIssueCreatePayload
- (*ActivityIssueCommentCreatePayload)(nil), // 4: bytebase.store.ActivityIssueCommentCreatePayload
- (*ActivityIssueApprovalNotifyPayload)(nil), // 5: bytebase.store.ActivityIssueApprovalNotifyPayload
- (*ActivityIssueCommentCreatePayload_TaskRollbackBy)(nil), // 6: bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy
- (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent)(nil), // 7: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent
- (*ActivityIssueCommentCreatePayload_ApprovalEvent)(nil), // 8: bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent
- (*ApprovalStep)(nil), // 9: bytebase.store.ApprovalStep
-}
-var file_store_activity_proto_depIdxs = []int32{
- 7, // 0: bytebase.store.ActivityIssueCommentCreatePayload.external_approval_event:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent
- 6, // 1: bytebase.store.ActivityIssueCommentCreatePayload.task_rollback_by:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.TaskRollbackBy
- 8, // 2: bytebase.store.ActivityIssueCommentCreatePayload.approval_event:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent
- 9, // 3: bytebase.store.ActivityIssueApprovalNotifyPayload.approval_step:type_name -> bytebase.store.ApprovalStep
- 0, // 4: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.type:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Type
- 1, // 5: bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.action:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ExternalApprovalEvent.Action
- 2, // 6: bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.status:type_name -> bytebase.store.ActivityIssueCommentCreatePayload.ApprovalEvent.Status
- 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
-}
-
-func init() { file_store_activity_proto_init() }
-func file_store_activity_proto_init() {
- if File_store_activity_proto != nil {
- return
- }
- file_store_approval_proto_init()
- if !protoimpl.UnsafeEnabled {
- file_store_activity_proto_msgTypes[0].Exporter = func(v any, i int) any {
- switch v := v.(*ActivityIssueCreatePayload); 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 any, i int) any {
- switch v := v.(*ActivityIssueCommentCreatePayload); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_store_activity_proto_msgTypes[2].Exporter = func(v any, i int) any {
- switch v := v.(*ActivityIssueApprovalNotifyPayload); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_store_activity_proto_msgTypes[3].Exporter = func(v any, i int) any {
- switch v := v.(*ActivityIssueCommentCreatePayload_TaskRollbackBy); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_store_activity_proto_msgTypes[4].Exporter = func(v any, i int) any {
- switch v := v.(*ActivityIssueCommentCreatePayload_ExternalApprovalEvent); i {
- case 0:
- return &v.state
- case 1:
- return &v.sizeCache
- case 2:
- return &v.unknownFields
- default:
- return nil
- }
- }
- file_store_activity_proto_msgTypes[5].Exporter = func(v any, i int) any {
- switch v := v.(*ActivityIssueCommentCreatePayload_ApprovalEvent); 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].OneofWrappers = []any{
- (*ActivityIssueCommentCreatePayload_ExternalApprovalEvent_)(nil),
- (*ActivityIssueCommentCreatePayload_TaskRollbackBy_)(nil),
- (*ActivityIssueCommentCreatePayload_ApprovalEvent_)(nil),
- }
- type x struct{}
- out := protoimpl.TypeBuilder{
- File: protoimpl.DescBuilder{
- GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
- RawDescriptor: file_store_activity_proto_rawDesc,
- NumEnums: 3,
- NumMessages: 6,
- NumExtensions: 0,
- NumServices: 0,
- },
- GoTypes: file_store_activity_proto_goTypes,
- DependencyIndexes: file_store_activity_proto_depIdxs,
- EnumInfos: file_store_activity_proto_enumTypes,
- MessageInfos: file_store_activity_proto_msgTypes,
- }.Build()
- File_store_activity_proto = out.File
- file_store_activity_proto_rawDesc = nil
- file_store_activity_proto_goTypes = nil
- file_store_activity_proto_depIdxs = nil
-}
diff --git a/proto/store/activity.proto b/proto/store/activity.proto
deleted file mode 100644
index 09f7d8587f..0000000000
--- a/proto/store/activity.proto
+++ /dev/null
@@ -1,66 +0,0 @@
-syntax = "proto3";
-
-package bytebase.store;
-
-import "store/approval.proto";
-
-option go_package = "generated-go/store";
-
-// 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
-// json naming convention. More importantly, frontend code can simply use JSON.parse to
-// convert to the expected struct there.
-message ActivityIssueCreatePayload {
- string issue_name = 1;
-}
-
-// ActivityIssueCommentCreatePayload is the payloads for creating issue comments.
-message ActivityIssueCommentCreatePayload {
- // TaskRollbackBy records an issue rollback activity.
- // The task with taskID in IssueID is rollbacked by the task with RollbackByTaskID in RollbackByIssueID.
- message TaskRollbackBy {
- int64 issue_id = 1;
- int64 task_id = 2;
- int64 rollback_by_issue_id = 3;
- int64 rollback_by_task_id = 4;
- }
-
- message ExternalApprovalEvent {
- enum Type {
- TYPE_UNSPECIFIED = 0;
- TYPE_FEISHU = 1;
- }
- Type type = 1;
-
- enum Action {
- ACTION_UNSPECIFIED = 0;
- ACTION_APPROVE = 1;
- ACTION_REJECT = 2;
- }
- Action action = 2;
- string stage_name = 3;
- }
-
- message ApprovalEvent {
- enum Status {
- STATUS_UNSPECIFIED = 0;
- PENDING = 1;
- APPROVED = 2;
- REJECTED = 3;
- }
- // The new status.
- Status status = 1;
- }
-
- oneof event {
- ExternalApprovalEvent external_approval_event = 1;
- TaskRollbackBy task_rollback_by = 2;
- ApprovalEvent approval_event = 3;
- }
- string issue_name = 4;
-}
-
-message ActivityIssueApprovalNotifyPayload {
- ApprovalStep approval_step = 1;
-}