Skip to content

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

chore: remove issue comment earliest allowed time (#16198)

p0ny05c35791095d
diff --git a/backend/api/v1/issue_service_convert.go b/backend/api/v1/issue_service_convert.go
index 94cebb045c..888249e9e2 100644
--- a/backend/api/v1/issue_service_convert.go
+++ b/backend/api/v1/issue_service_convert.go
@@ -414,12 +414,10 @@ func convertToIssueCommentEventApprovalStatus(s storepb.IssueCommentPayload_Appr
func convertToIssueCommentEventTaskUpdate(u *storepb.IssueCommentPayload_TaskUpdate_) *v1pb.IssueComment_TaskUpdate_ {
return &v1pb.IssueComment_TaskUpdate_{
TaskUpdate: &v1pb.IssueComment_TaskUpdate{
- Tasks: u.TaskUpdate.Tasks,
- FromSheet: u.TaskUpdate.FromSheet,
- ToSheet: u.TaskUpdate.ToSheet,
- FromEarliestAllowedTime: u.TaskUpdate.FromEarliestAllowedTime,
- ToEarliestAllowedTime: u.TaskUpdate.ToEarliestAllowedTime,
- ToStatus: convertToIssueCommentEventTaskUpdateStatus(u.TaskUpdate.ToStatus),
+ Tasks: u.TaskUpdate.Tasks,
+ FromSheet: u.TaskUpdate.FromSheet,
+ ToSheet: u.TaskUpdate.ToSheet,
+ ToStatus: convertToIssueCommentEventTaskUpdateStatus(u.TaskUpdate.ToStatus),
},
}
}
diff --git a/backend/migrator/migration/3.7/0005##remove_issue_comment_earliest_allowed_at.sql b/backend/migrator/migration/3.7/0005##remove_issue_comment_earliest_allowed_at.sql
new file mode 100644
index 0000000000..fb1511795e
--- /dev/null
+++ b/backend/migrator/migration/3.7/0005##remove_issue_comment_earliest_allowed_at.sql
@@ -0,0 +1 @@
+DELETE FROM issue_comment WHERE (payload->'taskUpdate')?|'{toEarliestAllowedTime, fromEarliestAllowedTime}';
diff --git a/backend/migrator/migrator_test.go b/backend/migrator/migrator_test.go
index b842bfb28c..7ea5d7cf9d 100644
--- a/backend/migrator/migrator_test.go
+++ b/backend/migrator/migrator_test.go
@@ -12,7 +12,7 @@ import (
func TestLatestVersion(t *testing.T) {
files, err := getSortedVersionedFiles()
require.NoError(t, err)
- require.Equal(t, semver.MustParse("3.7.4"), *files[len(files)-1].version)
+ require.Equal(t, semver.MustParse("3.7.5"), *files[len(files)-1].version)
}
func TestVersionUnique(t *testing.T) {
diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionSentence.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionSentence.vue
index 04a258e23b..c5e773d043 100644
--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionSentence.vue
+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/ActionSentence.vue
@@ -3,7 +3,6 @@
</template>
<script lang="tsx" setup>
-import dayjs from "dayjs";
import type { h } from "vue";
import { defineComponent } from "vue";
import { Translation, useI18n } from "vue-i18n";
@@ -13,8 +12,7 @@ import {
type ComposedIssueComment,
} from "@/store";
import { extractUserId } from "@/store";
-import { getDateForPbTimestamp, type ComposedIssue } from "@/types";
-import { type Timestamp } from "@/types/proto/google/protobuf/timestamp";
+import { type ComposedIssue } from "@/types";
import {
IssueComment_Approval,
IssueComment_Approval_Status,
@@ -40,12 +38,6 @@ const props = defineProps<{
const { t } = useI18n();
const userStore = useUserStore();
-const isValidTimestamp = (timestamp: Timestamp | undefined) => {
- if (!timestamp) {
- return false;
- }
- return timestamp.seconds.toNumber() > 0;
-};
const renderActionSentence = () => {
const { issueComment, issue } = props;
@@ -108,14 +100,8 @@ const renderActionSentence = () => {
};
return renderVerbTypeTarget(params);
} else if (issueComment.type === IssueCommentType.TASK_UPDATE) {
- const {
- tasks,
- fromSheet,
- toSheet,
- fromEarliestAllowedTime,
- toEarliestAllowedTime,
- toStatus,
- } = IssueComment_TaskUpdate.fromPartial(issueComment.taskUpdate || {});
+ const { tasks, fromSheet, toSheet, toStatus } =
+ IssueComment_TaskUpdate.fromPartial(issueComment.taskUpdate || {});
if (toStatus !== undefined) {
const params: VerbTypeTarget = {
@@ -173,24 +159,6 @@ const renderActionSentence = () => {
}}
</Translation>
);
- } else if (
- isValidTimestamp(fromEarliestAllowedTime) ||
- isValidTimestamp(toEarliestAllowedTime)
- ) {
- const timeFormat = "YYYY-MM-DD HH:mm:ss UTCZZ";
- return t("activity.sentence.changed-from-to", {
- name: t("task.earliest-allowed-time"),
- oldValue: isValidTimestamp(fromEarliestAllowedTime)
- ? dayjs(getDateForPbTimestamp(fromEarliestAllowedTime)).format(
- timeFormat
- )
- : "Unset",
- newValue: isValidTimestamp(toEarliestAllowedTime)
- ? dayjs(getDateForPbTimestamp(toEarliestAllowedTime)).format(
- timeFormat
- )
- : "Unset",
- });
}
} else if (issueComment.type === IssueCommentType.TASK_PRIOR_BACKUP) {
const { task, tables, originalLine, database, error } =
diff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.json
index 3537e2c509..ccf249979e 100644
--- a/frontend/src/locales/en-US.json
+++ b/frontend/src/locales/en-US.json
@@ -248,7 +248,6 @@
},
"summary-report": "Summary report"
},
- "earliest-allowed-time": "Earliest rollout time",
"comment": "Comment",
"started": "Started",
"view-change": "View change",
diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.json
index 002540f7c4..58c552255b 100644
--- a/frontend/src/locales/es-ES.json
+++ b/frontend/src/locales/es-ES.json
@@ -248,7 +248,6 @@
},
"summary-report": "Informe resumido"
},
- "earliest-allowed-time": "Tiempo de lanzamiento más temprano",
"comment": "Comentario",
"started": "Iniciado",
"view-change": "Ver cambio",
diff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.json
index 67cd7f3419..182709e9b2 100644
--- a/frontend/src/locales/ja-JP.json
+++ b/frontend/src/locales/ja-JP.json
@@ -248,7 +248,6 @@
},
"summary-report": "概略報告"
},
- "earliest-allowed-time": "最も早い展開時期",
"comment": "コメント",
"started": "から始まりました",
"view-change": "変更を表示する",
diff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.json
index 10d38e52f7..8b3a09f03e 100644
--- a/frontend/src/locales/vi-VN.json
+++ b/frontend/src/locales/vi-VN.json
@@ -248,7 +248,6 @@
},
"summary-report": "Báo cáo tổng hợp"
},
- "earliest-allowed-time": "Thời gian triển khai sớm nhất",
"comment": "Bình luận",
"started": "Bắt đầu",
"view-change": "Xem thay đổi",
diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json
index 4e1e61bbb3..a024f45c13 100644
--- a/frontend/src/locales/zh-CN.json
+++ b/frontend/src/locales/zh-CN.json
@@ -248,7 +248,6 @@
},
"summary-report": "概要报告"
},
- "earliest-allowed-time": "最早允许发布时间",
"comment": "评论",
"started": "开始于",
"view-change": "查看变更",
diff --git a/frontend/src/types/proto/v1/issue_service.ts b/frontend/src/types/proto/v1/issue_service.ts
index e38d1054df..5ff6800955 100644
--- a/frontend/src/types/proto/v1/issue_service.ts
+++ b/frontend/src/types/proto/v1/issue_service.ts
@@ -825,8 +825,6 @@ export interface IssueComment_TaskUpdate {
| undefined;
/** Format: projects/{project}/sheets/{sheet} */
toSheet?: string | undefined;
- fromEarliestAllowedTime?: Timestamp | undefined;
- toEarliestAllowedTime?: Timestamp | undefined;
toStatus?: IssueComment_TaskUpdate_Status | undefined;
}
@@ -3826,14 +3824,7 @@ export const IssueComment_StageEnd: MessageFns<IssueComment_StageEnd> = {
};
function createBaseIssueComment_TaskUpdate(): IssueComment_TaskUpdate {
- return {
- tasks: [],
- fromSheet: undefined,
- toSheet: undefined,
- fromEarliestAllowedTime: undefined,
- toEarliestAllowedTime: undefined,
- toStatus: undefined,
- };
+ return { tasks: [], fromSheet: undefined, toSheet: undefined, toStatus: undefined };
}
export const IssueComment_TaskUpdate: MessageFns<IssueComment_TaskUpdate> = {
@@ -3847,12 +3838,6 @@ export const IssueComment_TaskUpdate: MessageFns<IssueComment_TaskUpdate> = {
if (message.toSheet !== undefined) {
writer.uint32(26).string(message.toSheet);
}
- if (message.fromEarliestAllowedTime !== undefined) {
- Timestamp.encode(message.fromEarliestAllowedTime, writer.uint32(34).fork()).join();
- }
- if (message.toEarliestAllowedTime !== undefined) {
- Timestamp.encode(message.toEarliestAllowedTime, writer.uint32(42).fork()).join();
- }
if (message.toStatus !== undefined) {
writer.uint32(48).int32(issueComment_TaskUpdate_StatusToNumber(message.toStatus));
}
@@ -3890,22 +3875,6 @@ export const IssueComment_TaskUpdate: MessageFns<IssueComment_TaskUpdate> = {
message.toSheet = reader.string();
continue;
}
- case 4: {
- if (tag !== 34) {
- break;
- }
-
- message.fromEarliestAllowedTime = Timestamp.decode(reader, reader.uint32());
- continue;
- }
- case 5: {
- if (tag !== 42) {
- break;
- }
-
- message.toEarliestAllowedTime = Timestamp.decode(reader, reader.uint32());
- continue;
- }
case 6: {
if (tag !== 48) {
break;
@@ -3928,12 +3897,6 @@ export const IssueComment_TaskUpdate: MessageFns<IssueComment_TaskUpdate> = {
tasks: globalThis.Array.isArray(object?.tasks) ? object.tasks.map((e: any) => globalThis.String(e)) : [],
fromSheet: isSet(object.fromSheet) ? globalThis.String(object.fromSheet) : undefined,
toSheet: isSet(object.toSheet) ? globalThis.String(object.toSheet) : undefined,
- fromEarliestAllowedTime: isSet(object.fromEarliestAllowedTime)
- ? fromJsonTimestamp(object.fromEarliestAllowedTime)
- : undefined,
- toEarliestAllowedTime: isSet(object.toEarliestAllowedTime)
- ? fromJsonTimestamp(object.toEarliestAllowedTime)
- : undefined,
toStatus: isSet(object.toStatus) ? issueComment_TaskUpdate_StatusFromJSON(object.toStatus) : undefined,
};
},
@@ -3949,12 +3912,6 @@ export const IssueComment_TaskUpdate: MessageFns<IssueComment_TaskUpdate> = {
if (message.toSheet !== undefined) {
obj.toSheet = message.toSheet;
}
- if (message.fromEarliestAllowedTime !== undefined) {
- obj.fromEarliestAllowedTime = fromTimestamp(message.fromEarliestAllowedTime).toISOString();
- }
- if (message.toEarliestAllowedTime !== undefined) {
- obj.toEarliestAllowedTime = fromTimestamp(message.toEarliestAllowedTime).toISOString();
- }
if (message.toStatus !== undefined) {
obj.toStatus = issueComment_TaskUpdate_StatusToJSON(message.toStatus);
}
@@ -3969,14 +3926,6 @@ export const IssueComment_TaskUpdate: MessageFns<IssueComment_TaskUpdate> = {
message.tasks = object.tasks?.map((e) => e) || [];
message.fromSheet = object.fromSheet ?? undefined;
message.toSheet = object.toSheet ?? undefined;
- message.fromEarliestAllowedTime =
- (object.fromEarliestAllowedTime !== undefined && object.fromEarliestAllowedTime !== null)
- ? Timestamp.fromPartial(object.fromEarliestAllowedTime)
- : undefined;
- message.toEarliestAllowedTime =
- (object.toEarliestAllowedTime !== undefined && object.toEarliestAllowedTime !== null)
- ? Timestamp.fromPartial(object.toEarliestAllowedTime)
- : undefined;
message.toStatus = object.toStatus ?? undefined;
return message;
},
diff --git a/proto/gen/grpc-doc/openapi.yaml b/proto/gen/grpc-doc/openapi.yaml
index 110478bbf6..beef8f11a3 100644
--- a/proto/gen/grpc-doc/openapi.yaml
+++ b/proto/gen/grpc-doc/openapi.yaml
@@ -10353,12 +10353,6 @@ components:
toSheet:
type: string
description: 'Format: projects/{project}/sheets/{sheet}'
- fromEarliestAllowedTime:
- type: string
- format: date-time
- toEarliestAllowedTime:
- type: string
- format: date-time
toStatus:
enum:
- STATUS_UNSPECIFIED
diff --git a/proto/gen/grpc-doc/store/README.md b/proto/gen/grpc-doc/store/README.md
index c4da140372..fc7a3a3c2d 100644
--- a/proto/gen/grpc-doc/store/README.md
+++ b/proto/gen/grpc-doc/store/README.md
@@ -2722,8 +2722,6 @@ InstanceRole is the API message for instance role.
| tasks | [string](#string) | repeated | |
| from_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |
| to_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |
-| from_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |
-| to_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |
| to_status | [IssueCommentPayload.TaskUpdate.Status](#bytebase-store-IssueCommentPayload-TaskUpdate-Status) | optional | |
diff --git a/proto/gen/grpc-doc/store/index.html b/proto/gen/grpc-doc/store/index.html
index f172c0fd61..88e3478e90 100644
--- a/proto/gen/grpc-doc/store/index.html
+++ b/proto/gen/grpc-doc/store/index.html
@@ -7725,20 +7725,6 @@ Format: users/{userUID}. </p></td>
<td><p>Format: projects/{project}/sheets/{sheet} </p></td>
</tr>
- <tr>
- <td>from_earliest_allowed_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td>optional</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>to_earliest_allowed_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td>optional</td>
- <td><p> </p></td>
- </tr>
-
<tr>
<td>to_status</td>
<td><a href="#bytebase.store.IssueCommentPayload.TaskUpdate.Status">IssueCommentPayload.TaskUpdate.Status</a></td>
diff --git a/proto/gen/grpc-doc/v1/README.md b/proto/gen/grpc-doc/v1/README.md
index f02a7d225c..0f06ae101a 100644
--- a/proto/gen/grpc-doc/v1/README.md
+++ b/proto/gen/grpc-doc/v1/README.md
@@ -3553,8 +3553,6 @@ LIST, HASH (https://www.postgresql.org/docs/current/ddl-partitioning.html)
| tasks | [string](#string) | repeated | |
| from_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |
| to_sheet | [string](#string) | optional | Format: projects/{project}/sheets/{sheet} |
-| from_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |
-| to_earliest_allowed_time | [google.protobuf.Timestamp](#google-protobuf-Timestamp) | optional | |
| to_status | [IssueComment.TaskUpdate.Status](#bytebase-v1-IssueComment-TaskUpdate-Status) | optional | |
diff --git a/proto/gen/grpc-doc/v1/index.html b/proto/gen/grpc-doc/v1/index.html
index 4e2567442e..0358901d4f 100644
--- a/proto/gen/grpc-doc/v1/index.html
+++ b/proto/gen/grpc-doc/v1/index.html
@@ -10792,20 +10792,6 @@ Keys are the following:
<td><p>Format: projects/{project}/sheets/{sheet} </p></td>
</tr>
- <tr>
- <td>from_earliest_allowed_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td>optional</td>
- <td><p> </p></td>
- </tr>
-
- <tr>
- <td>to_earliest_allowed_time</td>
- <td><a href="#google.protobuf.Timestamp">google.protobuf.Timestamp</a></td>
- <td>optional</td>
- <td><p> </p></td>
- </tr>
-
<tr>
<td>to_status</td>
<td><a href="#bytebase.v1.IssueComment.TaskUpdate.Status">IssueComment.TaskUpdate.Status</a></td>
diff --git a/proto/generated-go/store/issue_comment.pb.go b/proto/generated-go/store/issue_comment.pb.go
index 3fbf424a86..762e767024 100644
--- a/proto/generated-go/store/issue_comment.pb.go
+++ b/proto/generated-go/store/issue_comment.pb.go
@@ -9,7 +9,6 @@ package store
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
- timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
unsafe "unsafe"
@@ -519,12 +518,10 @@ type IssueCommentPayload_TaskUpdate struct {
// Format: projects/{project}/sheets/{sheet}
FromSheet *string `protobuf:"bytes,2,opt,name=from_sheet,json=fromSheet,proto3,oneof" json:"from_sheet,omitempty"`
// Format: projects/{project}/sheets/{sheet}
- ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`
- FromEarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=from_earliest_allowed_time,json=fromEarliestAllowedTime,proto3,oneof" json:"from_earliest_allowed_time,omitempty"`
- ToEarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=to_earliest_allowed_time,json=toEarliestAllowedTime,proto3,oneof" json:"to_earliest_allowed_time,omitempty"`
- ToStatus *IssueCommentPayload_TaskUpdate_Status `protobuf:"varint,6,opt,name=to_status,json=toStatus,proto3,enum=bytebase.store.IssueCommentPayload_TaskUpdate_Status,oneof" json:"to_status,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`
+ ToStatus *IssueCommentPayload_TaskUpdate_Status `protobuf:"varint,6,opt,name=to_status,json=toStatus,proto3,enum=bytebase.store.IssueCommentPayload_TaskUpdate_Status,oneof" json:"to_status,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *IssueCommentPayload_TaskUpdate) Reset() {
@@ -578,20 +575,6 @@ func (x *IssueCommentPayload_TaskUpdate) GetToSheet() string {
return ""
}
-func (x *IssueCommentPayload_TaskUpdate) GetFromEarliestAllowedTime() *timestamppb.Timestamp {
- if x != nil {
- return x.FromEarliestAllowedTime
- }
- return nil
-}
-
-func (x *IssueCommentPayload_TaskUpdate) GetToEarliestAllowedTime() *timestamppb.Timestamp {
- if x != nil {
- return x.ToEarliestAllowedTime
- }
- return nil
-}
-
func (x *IssueCommentPayload_TaskUpdate) GetToStatus() IssueCommentPayload_TaskUpdate_Status {
if x != nil && x.ToStatus != nil {
return *x.ToStatus
@@ -731,7 +714,7 @@ var File_store_issue_comment_proto protoreflect.FileDescriptor
const file_store_issue_comment_proto_rawDesc = "" +
"\n" +
- "\x19store/issue_comment.proto\x12\x0ebytebase.store\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf2\x10\n" +
+ "\x19store/issue_comment.proto\x12\x0ebytebase.store\"\xfe\x0e\n" +
"\x13IssueCommentPayload\x12\x18\n" +
"\acomment\x18\x01 \x01(\tR\acomment\x12J\n" +
"\bapproval\x18\x02 \x01(\v2,.bytebase.store.IssueCommentPayload.ApprovalH\x00R\bapproval\x12T\n" +
@@ -772,16 +755,14 @@ const file_store_issue_comment_proto_rawDesc = "" +
"\n" +
"_to_status\x1a \n" +
"\bStageEnd\x12\x14\n" +
- "\x05stage\x18\x01 \x01(\tR\x05stage\x1a\xca\x04\n" +
+ "\x05stage\x18\x01 \x01(\tR\x05stage\x1a\xd6\x02\n" +
"\n" +
"TaskUpdate\x12\x14\n" +
"\x05tasks\x18\x01 \x03(\tR\x05tasks\x12\"\n" +
"\n" +
"from_sheet\x18\x02 \x01(\tH\x00R\tfromSheet\x88\x01\x01\x12\x1e\n" +
- "\bto_sheet\x18\x03 \x01(\tH\x01R\atoSheet\x88\x01\x01\x12\\\n" +
- "\x1afrom_earliest_allowed_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampH\x02R\x17fromEarliestAllowedTime\x88\x01\x01\x12X\n" +
- "\x18to_earliest_allowed_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampH\x03R\x15toEarliestAllowedTime\x88\x01\x01\x12W\n" +
- "\tto_status\x18\x06 \x01(\x0e25.bytebase.store.IssueCommentPayload.TaskUpdate.StatusH\x04R\btoStatus\x88\x01\x01\"k\n" +
+ "\bto_sheet\x18\x03 \x01(\tH\x01R\atoSheet\x88\x01\x01\x12W\n" +
+ "\tto_status\x18\x06 \x01(\x0e25.bytebase.store.IssueCommentPayload.TaskUpdate.StatusH\x02R\btoStatus\x88\x01\x01\"k\n" +
"\x06Status\x12\x16\n" +
"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
"\aPENDING\x10\x01\x12\v\n" +
@@ -792,9 +773,7 @@ const file_store_issue_comment_proto_rawDesc = "" +
"\aSKIPPED\x10\x05\x12\f\n" +
"\bCANCELED\x10\x06B\r\n" +
"\v_from_sheetB\v\n" +
- "\t_to_sheetB\x1d\n" +
- "\x1b_from_earliest_allowed_timeB\x1b\n" +
- "\x19_to_earliest_allowed_timeB\f\n" +
+ "\t_to_sheetB\f\n" +
"\n" +
"_to_status\x1a\x9d\x02\n" +
"\x0fTaskPriorBackup\x12\x12\n" +
@@ -834,7 +813,6 @@ var file_store_issue_comment_proto_goTypes = []any{
(*IssueCommentPayload_TaskUpdate)(nil), // 7: bytebase.store.IssueCommentPayload.TaskUpdate
(*IssueCommentPayload_TaskPriorBackup)(nil), // 8: bytebase.store.IssueCommentPayload.TaskPriorBackup
(*IssueCommentPayload_TaskPriorBackup_Table)(nil), // 9: bytebase.store.IssueCommentPayload.TaskPriorBackup.Table
- (*timestamppb.Timestamp)(nil), // 10: google.protobuf.Timestamp
}
var file_store_issue_comment_proto_depIdxs = []int32{
4, // 0: bytebase.store.IssueCommentPayload.approval:type_name -> bytebase.store.IssueCommentPayload.Approval
@@ -845,15 +823,13 @@ var file_store_issue_comment_proto_depIdxs = []int32{
0, // 5: bytebase.store.IssueCommentPayload.Approval.status:type_name -> bytebase.store.IssueCommentPayload.Approval.Status
1, // 6: bytebase.store.IssueCommentPayload.IssueUpdate.from_status:type_name -> bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus
1, // 7: bytebase.store.IssueCommentPayload.IssueUpdate.to_status:type_name -> bytebase.store.IssueCommentPayload.IssueUpdate.IssueStatus
- 10, // 8: bytebase.store.IssueCommentPayload.TaskUpdate.from_earliest_allowed_time:type_name -> google.protobuf.Timestamp
- 10, // 9: bytebase.store.IssueCommentPayload.TaskUpdate.to_earliest_allowed_time:type_name -> google.protobuf.Timestamp
- 2, // 10: bytebase.store.IssueCommentPayload.TaskUpdate.to_status:type_name -> bytebase.store.IssueCommentPayload.TaskUpdate.Status
- 9, // 11: bytebase.store.IssueCommentPayload.TaskPriorBackup.tables:type_name -> bytebase.store.IssueCommentPayload.TaskPriorBackup.Table
- 12, // [12:12] is the sub-list for method output_type
- 12, // [12:12] is the sub-list for method input_type
- 12, // [12:12] is the sub-list for extension type_name
- 12, // [12:12] is the sub-list for extension extendee
- 0, // [0:12] is the sub-list for field type_name
+ 2, // 8: bytebase.store.IssueCommentPayload.TaskUpdate.to_status:type_name -> bytebase.store.IssueCommentPayload.TaskUpdate.Status
+ 9, // 9: bytebase.store.IssueCommentPayload.TaskPriorBackup.tables:type_name -> bytebase.store.IssueCommentPayload.TaskPriorBackup.Table
+ 10, // [10:10] is the sub-list for method output_type
+ 10, // [10:10] is the sub-list for method input_type
+ 10, // [10:10] is the sub-list for extension type_name
+ 10, // [10:10] is the sub-list for extension extendee
+ 0, // [0:10] is the sub-list for field type_name
}
func init() { file_store_issue_comment_proto_init() }
diff --git a/proto/generated-go/v1/issue_service.pb.go b/proto/generated-go/v1/issue_service.pb.go
index b231359d3e..3b0d2642e4 100644
--- a/proto/generated-go/v1/issue_service.pb.go
+++ b/proto/generated-go/v1/issue_service.pb.go
@@ -2375,12 +2375,10 @@ type IssueComment_TaskUpdate struct {
// Format: projects/{project}/sheets/{sheet}
FromSheet *string `protobuf:"bytes,2,opt,name=from_sheet,json=fromSheet,proto3,oneof" json:"from_sheet,omitempty"`
// Format: projects/{project}/sheets/{sheet}
- ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`
- FromEarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=from_earliest_allowed_time,json=fromEarliestAllowedTime,proto3,oneof" json:"from_earliest_allowed_time,omitempty"`
- ToEarliestAllowedTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=to_earliest_allowed_time,json=toEarliestAllowedTime,proto3,oneof" json:"to_earliest_allowed_time,omitempty"`
- ToStatus *IssueComment_TaskUpdate_Status `protobuf:"varint,6,opt,name=to_status,json=toStatus,proto3,enum=bytebase.v1.IssueComment_TaskUpdate_Status,oneof" json:"to_status,omitempty"`
- unknownFields protoimpl.UnknownFields
- sizeCache protoimpl.SizeCache
+ ToSheet *string `protobuf:"bytes,3,opt,name=to_sheet,json=toSheet,proto3,oneof" json:"to_sheet,omitempty"`
+ ToStatus *IssueComment_TaskUpdate_Status `protobuf:"varint,6,opt,name=to_status,json=toStatus,proto3,enum=bytebase.v1.IssueComment_TaskUpdate_Status,oneof" json:"to_status,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
}
func (x *IssueComment_TaskUpdate) Reset() {
@@ -2434,20 +2432,6 @@ func (x *IssueComment_TaskUpdate) GetToSheet() string {
return ""
}
-func (x *IssueComment_TaskUpdate) GetFromEarliestAllowedTime() *timestamppb.Timestamp {
- if x != nil {
- return x.FromEarliestAllowedTime
- }
- return nil
-}
-
-func (x *IssueComment_TaskUpdate) GetToEarliestAllowedTime() *timestamppb.Timestamp {
- if x != nil {
- return x.ToEarliestAllowedTime
- }
- return nil
-}
-
func (x *IssueComment_TaskUpdate) GetToStatus() IssueComment_TaskUpdate_Status {
if x != nil && x.ToStatus != nil {
return *x.ToStatus
@@ -2732,7 +2716,7 @@ const file_v1_issue_service_proto_rawDesc = "" +
"\x12bytebase.com/IssueR\x06parent\x12>\n" +
"\rissue_comment\x18\x02 \x01(\v2\x19.bytebase.v1.IssueCommentR\fissueComment\x12A\n" +
"\vupdate_mask\x18\x03 \x01(\v2\x1a.google.protobuf.FieldMaskB\x04\xe2A\x01\x02R\n" +
- "updateMask\"\xec\x10\n" +
+ "updateMask\"\xf8\x0e\n" +
"\fIssueComment\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x18\n" +
"\acomment\x18\x02 \x01(\tR\acomment\x12\x18\n" +
@@ -2777,16 +2761,14 @@ const file_v1_issue_service_proto_rawDesc = "" +
"\n" +
"_to_statusJ\x04\b\a\x10\bJ\x04\b\b\x10\t\x1a \n" +
"\bStageEnd\x12\x14\n" +
- "\x05stage\x18\x01 \x01(\tR\x05stage\x1a\xc0\x04\n" +
+ "\x05stage\x18\x01 \x01(\tR\x05stage\x1a\xcc\x02\n" +
"\n" +
"TaskUpdate\x12\x14\n" +
"\x05tasks\x18\x01 \x03(\tR\x05tasks\x12\"\n" +
"\n" +
"from_sheet\x18\x02 \x01(\tH\x00R\tfromSheet\x88\x01\x01\x12\x1e\n" +
- "\bto_sheet\x18\x03 \x01(\tH\x01R\atoSheet\x88\x01\x01\x12\\\n" +
- "\x1afrom_earliest_allowed_time\x18\x04 \x01(\v2\x1a.google.protobuf.TimestampH\x02R\x17fromEarliestAllowedTime\x88\x01\x01\x12X\n" +
- "\x18to_earliest_allowed_time\x18\x05 \x01(\v2\x1a.google.protobuf.TimestampH\x03R\x15toEarliestAllowedTime\x88\x01\x01\x12M\n" +
- "\tto_status\x18\x06 \x01(\x0e2+.bytebase.v1.IssueComment.TaskUpdate.StatusH\x04R\btoStatus\x88\x01\x01\"k\n" +
+ "\bto_sheet\x18\x03 \x01(\tH\x01R\atoSheet\x88\x01\x01\x12M\n" +
+ "\tto_status\x18\x06 \x01(\x0e2+.bytebase.v1.IssueComment.TaskUpdate.StatusH\x02R\btoStatus\x88\x01\x01\"k\n" +
"\x06Status\x12\x16\n" +
"\x12STATUS_UNSPECIFIED\x10\x00\x12\v\n" +
"\aPENDING\x10\x01\x12\v\n" +
@@ -2797,9 +2779,7 @@ const file_v1_issue_service_proto_rawDesc = "" +
"\aSKIPPED\x10\x05\x12\f\n" +
"\bCANCELED\x10\x06B\r\n" +
"\v_from_sheetB\v\n" +
- "\t_to_sheetB\x1d\n" +
- "\x1b_from_earliest_allowed_timeB\x1b\n" +
- "\x19_to_earliest_allowed_timeB\f\n" +
+ "\t_to_sheetB\f\n" +
"\n" +
"_to_status\x1a\x93\x02\n" +
"\x0fTaskPriorBackup\x12\x12\n" +
@@ -2930,39 +2910,37 @@ var file_v1_issue_service_proto_depIdxs = []int32{
6, // 34: bytebase.v1.IssueComment.Approval.status:type_name -> bytebase.v1.IssueComment.Approval.Status
0, // 35: bytebase.v1.IssueComment.IssueUpdate.from_status:type_name -> bytebase.v1.IssueStatus
0, // 36: bytebase.v1.IssueComment.IssueUpdate.to_status:type_name -> bytebase.v1.IssueStatus
- 40, // 37: bytebase.v1.IssueComment.TaskUpdate.from_earliest_allowed_time:type_name -> google.protobuf.Timestamp
- 40, // 38: bytebase.v1.IssueComment.TaskUpdate.to_earliest_allowed_time:type_name -> google.protobuf.Timestamp
- 7, // 39: bytebase.v1.IssueComment.TaskUpdate.to_status:type_name -> bytebase.v1.IssueComment.TaskUpdate.Status
- 38, // 40: bytebase.v1.IssueComment.TaskPriorBackup.tables:type_name -> bytebase.v1.IssueComment.TaskPriorBackup.Table
- 8, // 41: bytebase.v1.IssueService.GetIssue:input_type -> bytebase.v1.GetIssueRequest
- 9, // 42: bytebase.v1.IssueService.CreateIssue:input_type -> bytebase.v1.CreateIssueRequest
- 10, // 43: bytebase.v1.IssueService.ListIssues:input_type -> bytebase.v1.ListIssuesRequest
- 12, // 44: bytebase.v1.IssueService.SearchIssues:input_type -> bytebase.v1.SearchIssuesRequest
- 14, // 45: bytebase.v1.IssueService.UpdateIssue:input_type -> bytebase.v1.UpdateIssueRequest
- 26, // 46: bytebase.v1.IssueService.ListIssueComments:input_type -> bytebase.v1.ListIssueCommentsRequest
- 28, // 47: bytebase.v1.IssueService.CreateIssueComment:input_type -> bytebase.v1.CreateIssueCommentRequest
- 29, // 48: bytebase.v1.IssueService.UpdateIssueComment:input_type -> bytebase.v1.UpdateIssueCommentRequest
- 15, // 49: bytebase.v1.IssueService.BatchUpdateIssuesStatus:input_type -> bytebase.v1.BatchUpdateIssuesStatusRequest
- 17, // 50: bytebase.v1.IssueService.ApproveIssue:input_type -> bytebase.v1.ApproveIssueRequest
- 18, // 51: bytebase.v1.IssueService.RejectIssue:input_type -> bytebase.v1.RejectIssueRequest
- 19, // 52: bytebase.v1.IssueService.RequestIssue:input_type -> bytebase.v1.RequestIssueRequest
- 20, // 53: bytebase.v1.IssueService.GetIssue:output_type -> bytebase.v1.Issue
- 20, // 54: bytebase.v1.IssueService.CreateIssue:output_type -> bytebase.v1.Issue
- 11, // 55: bytebase.v1.IssueService.ListIssues:output_type -> bytebase.v1.ListIssuesResponse
- 13, // 56: bytebase.v1.IssueService.SearchIssues:output_type -> bytebase.v1.SearchIssuesResponse
- 20, // 57: bytebase.v1.IssueService.UpdateIssue:output_type -> bytebase.v1.Issue
- 27, // 58: bytebase.v1.IssueService.ListIssueComments:output_type -> bytebase.v1.ListIssueCommentsResponse
- 30, // 59: bytebase.v1.IssueService.CreateIssueComment:output_type -> bytebase.v1.IssueComment
- 30, // 60: bytebase.v1.IssueService.UpdateIssueComment:output_type -> bytebase.v1.IssueComment
- 16, // 61: bytebase.v1.IssueService.BatchUpdateIssuesStatus:output_type -> bytebase.v1.BatchUpdateIssuesStatusResponse
- 20, // 62: bytebase.v1.IssueService.ApproveIssue:output_type -> bytebase.v1.Issue
- 20, // 63: bytebase.v1.IssueService.RejectIssue:output_type -> bytebase.v1.Issue
- 20, // 64: bytebase.v1.IssueService.RequestIssue:output_type -> bytebase.v1.Issue
- 53, // [53:65] is the sub-list for method output_type
- 41, // [41:53] is the sub-list for method input_type
- 41, // [41:41] is the sub-list for extension type_name
- 41, // [41:41] is the sub-list for extension extendee
- 0, // [0:41] is the sub-list for field type_name
+ 7, // 37: bytebase.v1.IssueComment.TaskUpdate.to_status:type_name -> bytebase.v1.IssueComment.TaskUpdate.Status
+ 38, // 38: bytebase.v1.IssueComment.TaskPriorBackup.tables:type_name -> bytebase.v1.IssueComment.TaskPriorBackup.Table
+ 8, // 39: bytebase.v1.IssueService.GetIssue:input_type -> bytebase.v1.GetIssueRequest
+ 9, // 40: bytebase.v1.IssueService.CreateIssue:input_type -> bytebase.v1.CreateIssueRequest
+ 10, // 41: bytebase.v1.IssueService.ListIssues:input_type -> bytebase.v1.ListIssuesRequest
+ 12, // 42: bytebase.v1.IssueService.SearchIssues:input_type -> bytebase.v1.SearchIssuesRequest
+ 14, // 43: bytebase.v1.IssueService.UpdateIssue:input_type -> bytebase.v1.UpdateIssueRequest
+ 26, // 44: bytebase.v1.IssueService.ListIssueComments:input_type -> bytebase.v1.ListIssueCommentsRequest
+ 28, // 45: bytebase.v1.IssueService.CreateIssueComment:input_type -> bytebase.v1.CreateIssueCommentRequest
+ 29, // 46: bytebase.v1.IssueService.UpdateIssueComment:input_type -> bytebase.v1.UpdateIssueCommentRequest
+ 15, // 47: bytebase.v1.IssueService.BatchUpdateIssuesStatus:input_type -> bytebase.v1.BatchUpdateIssuesStatusRequest
+ 17, // 48: bytebase.v1.IssueService.ApproveIssue:input_type -> bytebase.v1.ApproveIssueRequest
+ 18, // 49: bytebase.v1.IssueService.RejectIssue:input_type -> bytebase.v1.RejectIssueRequest
+ 19, // 50: bytebase.v1.IssueService.RequestIssue:input_type -> bytebase.v1.RequestIssueRequest
+ 20, // 51: bytebase.v1.IssueService.GetIssue:output_type -> bytebase.v1.Issue
+ 20, // 52: bytebase.v1.IssueService.CreateIssue:output_type -> bytebase.v1.Issue
+ 11, // 53: bytebase.v1.IssueService.ListIssues:output_type -> bytebase.v1.ListIssuesResponse
+ 13, // 54: bytebase.v1.IssueService.SearchIssues:output_type -> bytebase.v1.SearchIssuesResponse
+ 20, // 55: bytebase.v1.IssueService.UpdateIssue:output_type -> bytebase.v1.Issue
+ 27, // 56: bytebase.v1.IssueService.ListIssueComments:output_type -> bytebase.v1.ListIssueCommentsResponse
+ 30, // 57: bytebase.v1.IssueService.CreateIssueComment:output_type -> bytebase.v1.IssueComment
+ 30, // 58: bytebase.v1.IssueService.UpdateIssueComment:output_type -> bytebase.v1.IssueComment
+ 16, // 59: bytebase.v1.IssueService.BatchUpdateIssuesStatus:output_type -> bytebase.v1.BatchUpdateIssuesStatusResponse
+ 20, // 60: bytebase.v1.IssueService.ApproveIssue:output_type -> bytebase.v1.Issue
+ 20, // 61: bytebase.v1.IssueService.RejectIssue:output_type -> bytebase.v1.Issue
+ 20, // 62: bytebase.v1.IssueService.RequestIssue:output_type -> bytebase.v1.Issue
+ 51, // [51:63] is the sub-list for method output_type
+ 39, // [39:51] is the sub-list for method input_type
+ 39, // [39:39] is the sub-list for extension type_name
+ 39, // [39:39] is the sub-list for extension extendee
+ 0, // [0:39] is the sub-list for field type_name
}
func init() { file_v1_issue_service_proto_init() }
diff --git a/proto/store/store/issue_comment.proto b/proto/store/store/issue_comment.proto
index 6f797dde94..4d53ca7889 100644
--- a/proto/store/store/issue_comment.proto
+++ b/proto/store/store/issue_comment.proto
@@ -2,8 +2,6 @@ syntax = "proto3";
package bytebase.store;
-import "google/protobuf/timestamp.proto";
-
option go_package = "generated-go/store";
message IssueCommentPayload {
@@ -56,8 +54,6 @@ message IssueCommentPayload {
optional string from_sheet = 2;
// Format: projects/{project}/sheets/{sheet}
optional string to_sheet = 3;
- optional google.protobuf.Timestamp from_earliest_allowed_time = 4;
- optional google.protobuf.Timestamp to_earliest_allowed_time = 5;
optional Status to_status = 6;
enum Status {
diff --git a/proto/v1/v1/issue_service.proto b/proto/v1/v1/issue_service.proto
index ca0755083f..bc1e947381 100644
--- a/proto/v1/v1/issue_service.proto
+++ b/proto/v1/v1/issue_service.proto
@@ -592,8 +592,6 @@ message IssueComment {
optional string from_sheet = 2;
// Format: projects/{project}/sheets/{sheet}
optional string to_sheet = 3;
- optional google.protobuf.Timestamp from_earliest_allowed_time = 4;
- optional google.protobuf.Timestamp to_earliest_allowed_time = 5;
optional Status to_status = 6;
enum Status {