Skip to content

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

chore: handle task schema version (#14341)

boojackdddfe7eed28d
diff --git a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
index 70c16ac71f..357304273c 100644
--- a/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
+++ b/frontend/src/components/IssueV1/components/TaskListSection/TaskCard.vue
@@ -58,7 +58,7 @@ import { InstanceV1Name } from "@/components/v2";
import { Workflow } from "@/types/proto/v1/project_service";
import type { Task } from "@/types/proto/v1/rollout_service";
import { Task_Type, task_StatusToJSON } from "@/types/proto/v1/rollout_service";
-import { extractSchemaVersionFromTask } from "@/utils";
+import { extractSchemaVersionFromTask, isDev } from "@/utils";
import { databaseForTask, isTaskFinished, useIssueContext } from "../../logic";
import TaskStatusIcon from "../TaskStatusIcon.vue";
import TaskExtraActionsButton from "./TaskExtraActionsButton.vue";
@@ -96,12 +96,15 @@ const secondaryViewMode = computed((): SecondaryViewMode => {
const schemaVersion = computed(() => {
const v = extractSchemaVersionFromTask(props.task);
+ if (isDev()) {
+ // For unversioned tasks, the schema version of task should be empty.
+ return v;
+ }
// Always show the schema version for tasks from a release source.
if (issue.value.planEntity?.releaseSource?.release) {
return v;
}
-
// show the schema version for a task if
// the project is standard mode and VCS workflow
if (isCreating.value) return "";