Skip to content

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

refactor: remove ComposedTaskRun type and use dedicated taskRunLog store (#17307)

boojack0416d083ff8c
diff --git a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/IssueCreatedCommentV1.vue b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/IssueCreatedCommentV1.vue
index a64c254d3c..519d74129f 100644
--- a/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/IssueCreatedCommentV1.vue
+++ b/frontend/src/components/IssueV1/components/IssueCommentSection/IssueCommentView/IssueCreatedCommentV1.vue
@@ -98,7 +98,7 @@ import MarkdownEditor from "@/components/MarkdownEditor";
import UserAvatar from "@/components/User/UserAvatar.vue";
import HumanizeTs from "@/components/misc/HumanizeTs.vue";
import { planServiceClientConnect, issueServiceClientConnect } from "@/grpcweb";
-import { useUserStore, useCurrentUserV1, extractUserId } from "@/store";
+import { useUserStore } from "@/store";
import { useCurrentProjectV1 } from "@/store";
import { getTimeForPbTimestampProtoEs, type ComposedIssue } from "@/types";
import { UpdateIssueRequestSchema } from "@/types/proto-es/v1/issue_service_pb";
@@ -116,7 +116,6 @@ const props = defineProps<{
}>();
const userStore = useUserStore();
-const currentUser = useCurrentUserV1();
const { project } = useCurrentProjectV1();
const issueList = ref([]);
@@ -141,12 +140,8 @@ const description = computed(() => {
});
const allowEdit = computed(() => {
- // Check if user is the creator or has permission to update
- if (extractUserId(props.issue.creator) === currentUser.value.email) {
- return true;
- }
- // Check for plan update permission if we have a plan, otherwise issue update
- if (props.issue.planEntity) {
+ // Check for plan update permission if we have a plan, otherwise issue update.
+ if (props.issue.plan) {
return hasProjectPermissionV2(project.value, "bb.plans.update");
}
return hasProjectPermissionV2(project.value, "bb.issues.update");
diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
index 00a508c948..a92fdf0712 100644
--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue
@@ -31,9 +31,9 @@ import { computed } from "vue";
import { useI18n } from "vue-i18n";
import { useCurrentProjectV1 } from "@/store";
import { getProjectIdRolloutUidStageUidTaskUid } from "@/store/modules/v1/common";
+import { useTaskRunLogStore } from "@/store/modules/v1/taskRunLog";
import {
unknownTask,
- type ComposedTaskRun,
getTimeForPbTimestampProtoEs,
getDateForPbTimestampProtoEs,
} from "@/types";
@@ -41,6 +41,7 @@ import {
TaskRun_Status,
Task_Type,
} from "@/types/proto-es/v1/rollout_service_pb";
+import type { TaskRun } from "@/types/proto-es/v1/rollout_service_pb";
import { isPostgresFamily } from "@/types/v1/instance";
import { databaseForTask } from "@/utils";
import { databaseV1Url, extractTaskUID, flattenTaskV1List } from "@/utils";
@@ -54,12 +55,13 @@ export type CommentLink = {
};
const props = defineProps<{
- taskRun: ComposedTaskRun;
+ taskRun: TaskRun;
}>();
const { issue } = useIssueContext();
const { project } = useCurrentProjectV1();
const { t } = useI18n();
+const taskRunLogStore = useTaskRunLogStore();
const earliestAllowedTime = computed(() => {
return props.taskRun.runTime
@@ -112,7 +114,8 @@ const comment = computed(() => {
}
}
- const lastLogEntry = last(taskRun.taskRunLog.entries);
+ const taskRunLog = taskRunLogStore.getTaskRunLog(taskRun.name);
+ const lastLogEntry = last(taskRunLog.entries);
if (lastLogEntry) {
return displayTaskRunLogEntryType(lastLogEntry.type);
}
diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue
index c77aa8efbb..138864b8d5 100644
--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue
+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunSection.vue
@@ -5,18 +5,17 @@
</template>
<script lang="ts" setup>
-import { create } from "@bufbuild/protobuf";
import { computed, watchEffect } from "vue";
import {
useIssueContext,
taskRunListForTask,
} from "@/components/IssueV1/logic";
-import { rolloutServiceClientConnect } from "@/grpcweb";
-import { GetTaskRunLogRequestSchema } from "@/types/proto-es/v1/rollout_service_pb";
+import { useTaskRunLogStore } from "@/store/modules/v1/taskRunLog";
import { TaskRun_Status } from "@/types/proto-es/v1/rollout_service_pb";
import TaskRunTable from "./TaskRunTable.vue";
const { issue, selectedTask } = useIssueContext();
+const taskRunLogStore = useTaskRunLogStore();
const flattenTaskRunList = computed(() => {
return taskRunListForTask(issue.value, selectedTask.value);
@@ -26,11 +25,7 @@ watchEffect(async () => {
// Fetching the latest task run log for running task runs of selected task.
for (const taskRun of flattenTaskRunList.value) {
if (taskRun.status === TaskRun_Status.RUNNING) {
- const request = create(GetTaskRunLogRequestSchema, {
- parent: taskRun.name,
- });
- const response = await rolloutServiceClientConnect.getTaskRunLog(request);
- taskRun.taskRunLog = response;
+ await taskRunLogStore.fetchTaskRunLog(taskRun.name);
}
}
});
diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunTable.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunTable.vue
index a2542fc08b..34bbfeb419 100644
--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunTable.vue
+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunTable.vue
@@ -32,12 +32,15 @@ import { useI18n } from "vue-i18n";
import HumanizeDate from "@/components/misc/HumanizeDate.vue";
import { Drawer, DrawerContent } from "@/components/v2";
import { useCurrentProjectV1, useSheetV1Store } from "@/store";
+import { useTaskRunLogStore } from "@/store/modules/v1/taskRunLog";
import {
getDateForPbTimestampProtoEs,
getTimeForPbTimestampProtoEs,
- type ComposedTaskRun,
} from "@/types";
-import { TaskRun_Status } from "@/types/proto-es/v1/rollout_service_pb";
+import {
+ TaskRun_Status,
+ type TaskRun,
+} from "@/types/proto-es/v1/rollout_service_pb";
import { databaseForTask } from "@/utils";
import { humanizeDurationV1, sheetNameOfTaskV1 } from "@/utils";
import { useIssueContext } from "../../logic";
@@ -52,11 +55,12 @@ defineOptions({
});
defineProps<{
- taskRunList: ComposedTaskRun[];
+ taskRunList: TaskRun[];
}>();
const { t } = useI18n();
const { project } = useCurrentProjectV1();
+const taskRunLogStore = useTaskRunLogStore();
const { selectedTask } = useIssueContext();
const sheet = computedAsync(async () => {
@@ -68,22 +72,22 @@ const sheet = computedAsync(async () => {
const taskRunDetailContext = ref<{
show: boolean;
- taskRun?: ComposedTaskRun;
+ taskRun?: TaskRun;
}>({
show: false,
});
-const rowKey = (taskRun: ComposedTaskRun) => {
+const rowKey = (taskRun: TaskRun) => {
return taskRun.name;
};
-const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
+const columnList = computed((): DataTableColumn<TaskRun>[] => {
return [
{
key: "status",
title: "",
width: 30,
- render: (taskRun: ComposedTaskRun) => (
+ render: (taskRun: TaskRun) => (
<TaskRunStatusIcon status={taskRun.status} />
),
},
@@ -94,7 +98,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
className: "",
minWidth: 140,
resizable: true,
- render: (taskRun: ComposedTaskRun) => (
+ render: (taskRun: TaskRun) => (
<div class="flex flex-row justify-start items-center">
<TaskRunComment taskRun={taskRun} />
</div>
@@ -122,7 +126,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
key: "createTime",
title: t("task.created"),
width: 100,
- render: (taskRun: ComposedTaskRun) => (
+ render: (taskRun: TaskRun) => (
<HumanizeDate date={getDateForPbTimestampProtoEs(taskRun.createTime)} />
),
},
@@ -130,7 +134,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
key: "startTime",
title: t("task.started"),
width: 100,
- render: (taskRun: ComposedTaskRun) => (
+ render: (taskRun: TaskRun) => (
<HumanizeDate date={getDateForPbTimestampProtoEs(taskRun.startTime)} />
),
},
@@ -138,7 +142,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
key: "executionDuration",
title: t("task.execution-time"),
width: 120,
- render: (taskRun: ComposedTaskRun) => {
+ render: (taskRun: TaskRun) => {
return humanizeDurationV1(executionDurationOfTaskRun(taskRun));
},
},
@@ -146,7 +150,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
key: "actions",
title: "",
width: 60,
- render: (taskRun: ComposedTaskRun) =>
+ render: (taskRun: TaskRun) =>
shouldShowDetailButton(taskRun) ? (
<NButton size="tiny" onClick={() => showDetail(taskRun)}>
{t("common.detail")}
@@ -156,9 +160,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
];
});
-const executionDurationOfTaskRun = (
- taskRun: ComposedTaskRun
-): Duration | undefined => {
+const executionDurationOfTaskRun = (taskRun: TaskRun): Duration | undefined => {
const { startTime, updateTime } = taskRun;
if (!startTime || !updateTime) {
return undefined;
@@ -182,7 +184,7 @@ const executionDurationOfTaskRun = (
});
};
-const shouldShowDetailButton = (taskRun: ComposedTaskRun) => {
+const shouldShowDetailButton = (taskRun: TaskRun) => {
return [
TaskRun_Status.RUNNING,
TaskRun_Status.DONE,
@@ -191,15 +193,16 @@ const shouldShowDetailButton = (taskRun: ComposedTaskRun) => {
].includes(taskRun.status);
};
-const showDetail = (taskRun: ComposedTaskRun) => {
+const showDetail = (taskRun: TaskRun) => {
taskRunDetailContext.value = {
show: true,
taskRun,
};
};
-const getFlattenLogEntry = (taskRun: ComposedTaskRun) => {
- const entry = last(taskRun.taskRunLog.entries);
+const getFlattenLogEntry = (taskRun: TaskRun) => {
+ const taskRunLog = taskRunLogStore.getTaskRunLog(taskRun.name);
+ const entry = last(taskRunLog.entries);
if (!entry) {
return undefined;
}
diff --git a/frontend/src/components/Plan/components/SpecDetailView/FailedTaskRunsSection.vue b/frontend/src/components/Plan/components/SpecDetailView/FailedTaskRunsSection.vue
index b7784c46ed..460f73be32 100644
--- a/frontend/src/components/Plan/components/SpecDetailView/FailedTaskRunsSection.vue
+++ b/frontend/src/components/Plan/components/SpecDetailView/FailedTaskRunsSection.vue
@@ -50,7 +50,6 @@
</template>
<script lang="tsx" setup>
-import { create } from "@bufbuild/protobuf";
import { ExternalLinkIcon } from "lucide-vue-next";
import { NButton, type DataTableColumn, NDataTable } from "naive-ui";
import { computed, reactive, ref, watchEffect } from "vue";
@@ -60,14 +59,14 @@ import TaskRunDetail from "@/components/IssueV1/components/TaskRunSection/TaskRu
import TaskRunStatusIcon from "@/components/IssueV1/components/TaskRunSection/TaskRunStatusIcon.vue";
import HumanizeDate from "@/components/misc/HumanizeDate.vue";
import { Drawer, DrawerContent } from "@/components/v2";
-import { rolloutServiceClientConnect } from "@/grpcweb";
import { PROJECT_V1_ROUTE_ROLLOUT_DETAIL_TASK_DETAIL } from "@/router/dashboard/projectV1";
import { useCurrentProjectV1, useDatabaseV1Store } from "@/store";
-import { getDateForPbTimestampProtoEs, type ComposedTaskRun } from "@/types";
+import { useTaskRunLogStore } from "@/store/modules/v1/taskRunLog";
+import { getDateForPbTimestampProtoEs } from "@/types";
import {
TaskRun_Status,
- GetTaskRunLogRequestSchema,
Task_Status,
+ type TaskRun,
} from "@/types/proto-es/v1/rollout_service_pb";
import {
extractTaskUID,
@@ -87,13 +86,14 @@ const { project } = useCurrentProjectV1();
const { rollout, taskRuns } = usePlanContextWithRollout();
const selectedSpec = useSelectedSpec();
const databaseStore = useDatabaseV1Store();
+const taskRunLogStore = useTaskRunLogStore();
// Pagination state
const currentPage = ref(1);
const taskRunDetailContext = reactive<{
show: boolean;
- taskRun?: ComposedTaskRun;
+ taskRun?: TaskRun;
}>({
show: false,
});
@@ -112,7 +112,7 @@ const taskRunList = computed(() => {
return [];
}
- const latestFailedTaskRuns: ComposedTaskRun[] = [];
+ const latestFailedTaskRuns: TaskRun[] = [];
// For each failed task, find its latest task run
for (const failedTask of failedSpecTasks.value) {
@@ -121,7 +121,7 @@ const taskRunList = computed(() => {
// Get all task runs for this failed task
const taskRunsForTask = taskRuns.value.filter(
(taskRun) => extractTaskUID(taskRun.name) === taskUID
- ) as ComposedTaskRun[];
+ ) as TaskRun[];
if (taskRunsForTask.length > 0) {
// Sort by creation time to get the latest first
@@ -146,7 +146,7 @@ const shouldShowSection = computed(() => {
});
// Helper function to get the task for a task run
-const getTaskForTaskRun = (taskRun: ComposedTaskRun) => {
+const getTaskForTaskRun = (taskRun: TaskRun) => {
const taskUID = extractTaskUID(taskRun.name);
return failedSpecTasks.value.find(
(task) => extractTaskUID(task.name) === taskUID
@@ -165,20 +165,16 @@ const isLoading = computed(() => {
watchEffect(async () => {
for (const taskRun of taskRunList.value) {
if (taskRun.status === TaskRun_Status.RUNNING) {
- const request = create(GetTaskRunLogRequestSchema, {
- parent: taskRun.name,
- });
- const response = await rolloutServiceClientConnect.getTaskRunLog(request);
- taskRun.taskRunLog = response;
+ await taskRunLogStore.fetchTaskRunLog(taskRun.name);
}
}
});
-const rowKey = (taskRun: ComposedTaskRun) => {
+const rowKey = (taskRun: TaskRun) => {
return taskRun.name;
};
-const rowProps = (taskRun: ComposedTaskRun) => {
+const rowProps = (taskRun: TaskRun) => {
return {
style: "cursor: pointer;",
onClick: () => {
@@ -189,13 +185,13 @@ const rowProps = (taskRun: ComposedTaskRun) => {
};
};
-const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
+const columnList = computed((): DataTableColumn<TaskRun>[] => {
return [
{
key: "status",
title: "",
width: "30px",
- render: (taskRun: ComposedTaskRun) => (
+ render: (taskRun: TaskRun) => (
<TaskRunStatusIcon status={taskRun.status} />
),
},
@@ -204,7 +200,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
title: t("common.database"),
width: "256px",
resizable: true,
- render: (taskRun: ComposedTaskRun) => {
+ render: (taskRun: TaskRun) => {
const task = getTaskForTaskRun(taskRun);
return task?.target ? (
<DatabaseDisplay showEnvironment database={task.target} />
@@ -217,7 +213,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
key: "comment",
title: t("task.comment"),
resizable: true,
- render: (taskRun: ComposedTaskRun) => (
+ render: (taskRun: TaskRun) => (
<div class="flex flex-row justify-start items-center">
<TaskRunComment
taskRun={taskRun}
@@ -231,7 +227,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
key: "startTime",
title: t("task.started"),
width: "100px",
- render: (taskRun: ComposedTaskRun) => (
+ render: (taskRun: TaskRun) => (
<HumanizeDate date={getDateForPbTimestampProtoEs(taskRun.startTime)} />
),
},
@@ -239,7 +235,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
key: "actions",
title: "",
width: "100px",
- render: (taskRun: ComposedTaskRun) =>
+ render: (taskRun: TaskRun) =>
shouldShowDetailButton(taskRun) ? (
<NButton
size="tiny"
@@ -256,7 +252,7 @@ const columnList = computed((): DataTableColumn<ComposedTaskRun>[] => {
];
});
-const shouldShowDetailButton = (taskRun: ComposedTaskRun) => {
+const shouldShowDetailButton = (taskRun: TaskRun) => {
return [
TaskRun_Status.RUNNING,
TaskRun_Status.DONE,
@@ -266,7 +262,7 @@ const shouldShowDetailButton = (taskRun: ComposedTaskRun) => {
};
// Helper function to get route params for a task run
-const getTaskRouteParams = (taskRun: ComposedTaskRun) => {
+const getTaskRouteParams = (taskRun: TaskRun) => {
const task = getTaskForTaskRun(taskRun);
if (!task) return null;
@@ -293,7 +289,7 @@ const selectedDatabase = computed(() => {
});
// Navigate to task detail page
-const navigateToTaskDetail = (taskRun: ComposedTaskRun) => {
+const navigateToTaskDetail = (taskRun: TaskRun) => {
const params = getTaskRouteParams(taskRun);
if (params) {
router.push({
@@ -309,7 +305,7 @@ const navigateToTaskDetail = (taskRun: ComposedTaskRun) => {
};
// Show task run detail in drawer
-const showDetail = (taskRun: ComposedTaskRun) => {
+const showDetail = (taskRun: TaskRun) => {
taskRunDetailContext.taskRun = taskRun;
taskRunDetailContext.show = true;
};
diff --git a/frontend/src/store/modules/v1/experimental-issue.ts b/frontend/src/store/modules/v1/experimental-issue.ts
index eb54230b85..9323e7d70a 100644
--- a/frontend/src/store/modules/v1/experimental-issue.ts
+++ b/frontend/src/store/modules/v1/experimental-issue.ts
@@ -6,7 +6,7 @@ import {
rolloutServiceClientConnect,
} from "@/grpcweb";
import { useProjectV1Store } from "@/store";
-import type { ComposedIssue, ComposedProject, ComposedTaskRun } from "@/types";
+import type { ComposedIssue, ComposedProject } from "@/types";
import {
emptyIssue,
emptyRollout,
@@ -30,7 +30,6 @@ import {
ListTaskRunsRequestSchema,
CreateRolloutRequestSchema,
} from "@/types/proto-es/v1/rollout_service_pb";
-import { TaskRunLogSchema } from "@/types/proto-es/v1/rollout_service_pb";
import { extractProjectResourceName, hasProjectPermissionV2 } from "@/utils";
import { DEFAULT_PAGE_SIZE } from "../common";
@@ -93,15 +92,7 @@ export const composeIssue = async (
});
const response = await rolloutServiceClientConnect.listTaskRuns(request);
const taskRuns = response.taskRuns;
- const composedTaskRuns: ComposedTaskRun[] = [];
- for (const taskRun of taskRuns) {
- const composed: ComposedTaskRun = {
- ...taskRun,
- taskRunLog: create(TaskRunLogSchema, {}),
- };
- composedTaskRuns.push(composed);
- }
- issue.rolloutTaskRunList = composedTaskRuns;
+ issue.rolloutTaskRunList = taskRuns;
}
}
diff --git a/frontend/src/store/modules/v1/taskRunLog.ts b/frontend/src/store/modules/v1/taskRunLog.ts
new file mode 100644
index 0000000000..6cb8f53b19
--- /dev/null
+++ b/frontend/src/store/modules/v1/taskRunLog.ts
@@ -0,0 +1,57 @@
+import { create } from "@bufbuild/protobuf";
+import { defineStore } from "pinia";
+import { reactive } from "vue";
+import { rolloutServiceClientConnect } from "@/grpcweb";
+import {
+ GetTaskRunLogRequestSchema,
+ TaskRunLogSchema,
+} from "@/types/proto-es/v1/rollout_service_pb";
+import type { TaskRunLog } from "@/types/proto-es/v1/rollout_service_pb";
+
+export const useTaskRunLogStore = defineStore("taskRunLog", () => {
+ // Map from taskRun name to TaskRunLog
+ const taskRunLogByName = reactive(new Map<string, TaskRunLog>());
+
+ const getTaskRunLog = (taskRunName: string): TaskRunLog => {
+ const existing = taskRunLogByName.get(taskRunName);
+ if (existing) {
+ return existing;
+ }
+
+ // Return empty log if not found
+ const emptyLog = create(TaskRunLogSchema, {});
+ taskRunLogByName.set(taskRunName, emptyLog);
+ return emptyLog;
+ };
+
+ const fetchTaskRunLog = async (taskRunName: string): Promise<TaskRunLog> => {
+ const existing = taskRunLogByName.get(taskRunName);
+ if (existing) {
+ return existing;
+ }
+
+ try {
+ const request = create(GetTaskRunLogRequestSchema, {
+ parent: taskRunName,
+ });
+ const response = await rolloutServiceClientConnect.getTaskRunLog(request);
+ taskRunLogByName.set(taskRunName, response);
+ return response;
+ } catch (error) {
+ console.error(`Failed to fetch task run log for ${taskRunName}:`, error);
+ const emptyLog = create(TaskRunLogSchema, {});
+ taskRunLogByName.set(taskRunName, emptyLog);
+ return emptyLog;
+ }
+ };
+
+ const clearCache = () => {
+ taskRunLogByName.clear();
+ };
+
+ return {
+ getTaskRunLog,
+ fetchTaskRunLog,
+ clearCache,
+ };
+});
diff --git a/frontend/src/types/v1/issue/issue.ts b/frontend/src/types/v1/issue/issue.ts
index 55a8e78180..ebf5ec0076 100644
--- a/frontend/src/types/v1/issue/issue.ts
+++ b/frontend/src/types/v1/issue/issue.ts
@@ -1,5 +1,4 @@
import { create as createProto } from "@bufbuild/protobuf";
-import type { ComposedTaskRun } from "@/types";
import {
EMPTY_PROJECT_NAME,
EMPTY_ROLLOUT_NAME,
@@ -13,6 +12,7 @@ import {
Issue_Type,
} from "@/types/proto-es/v1/issue_service_pb";
import type { Plan, PlanCheckRun } from "@/types/proto-es/v1/plan_service_pb";
+import type { TaskRun } from "@/types/proto-es/v1/rollout_service_pb";
import type { Rollout } from "@/types/proto-es/v1/rollout_service_pb";
import { EMPTY_ID, UNKNOWN_ID } from "../../const";
@@ -22,7 +22,7 @@ export interface ComposedIssue extends Issue {
planEntity: Plan | undefined;
planCheckRunList: PlanCheckRun[];
rolloutEntity: Rollout | undefined;
- rolloutTaskRunList: ComposedTaskRun[];
+ rolloutTaskRunList: TaskRun[];
project: string;
}
diff --git a/frontend/src/types/v1/issue/rollout.ts b/frontend/src/types/v1/issue/rollout.ts
index 2de66440f9..b7909de843 100644
--- a/frontend/src/types/v1/issue/rollout.ts
+++ b/frontend/src/types/v1/issue/rollout.ts
@@ -1,9 +1,5 @@
import { create } from "@bufbuild/protobuf";
import { EMPTY_ID, UNKNOWN_ID } from "@/types/const";
-import type {
- TaskRun,
- TaskRunLog,
-} from "@/types/proto-es/v1/rollout_service_pb";
import {
StageSchema,
TaskSchema,
@@ -53,7 +49,3 @@ export const TaskTypeListWithStatement: Task_Type[] = [
Task_Type.DATABASE_SCHEMA_UPDATE_GHOST,
Task_Type.DATABASE_EXPORT,
];
-
-export interface ComposedTaskRun extends TaskRun {
- taskRunLog: TaskRunLog;
-}