Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
feat(frontend): patch task with updatedTs field (#1902)
Liu Ji0c9c99dfa63f
diff --git a/frontend/src/components/Issue/logic/common.ts b/frontend/src/components/Issue/logic/common.tsindex 9f3eda8977..6ef43fe7c1 100644--- a/frontend/src/components/Issue/logic/common.ts+++ b/frontend/src/components/Issue/logic/common.ts@@ -148,6 +148,7 @@ export const useCommonLogic = () => {task.id,{statement: maybeFormatStatementOnSave(newStatement, task.database),+ updatedTs: task.updatedTs,},postUpdated);diff --git a/frontend/src/components/Issue/logic/extra.ts b/frontend/src/components/Issue/logic/extra.tsindex cc197aafb2..d26bd0dda8 100644--- a/frontend/src/components/Issue/logic/extra.ts+++ b/frontend/src/components/Issue/logic/extra.ts@@ -123,10 +123,12 @@ export const useExtraIssueLogic = () => {selectedTask.value.earliestAllowedTs = newEarliestAllowedTsMs;}} else {+ const task = selectedTask.value as Task;const taskPatch: TaskPatch = {earliestAllowedTs: newEarliestAllowedTsMs,+ updatedTs: task.updatedTs,};- patchTask((selectedTask.value as Task).id, taskPatch);+ patchTask(task.id, taskPatch);}};@@ -186,6 +188,7 @@ export const useExtraIssueLogic = () => {id: stage.id,status: newStatus,comment,+ updatedTs: stage.updatedTs,};taskStore.updateStageAllTaskStatus({@@ -212,6 +215,7 @@ export const useExtraIssueLogic = () => {const taskStatusPatch: TaskStatusPatch = {status: newStatus,comment: comment,+ updatedTs: task.updatedTs,};taskStore.updateStatus({diff --git a/frontend/src/types/pipeline/stage.ts b/frontend/src/types/pipeline/stage.tsindex a776f57a6f..bc38cc5a43 100644--- a/frontend/src/types/pipeline/stage.ts+++ b/frontend/src/types/pipeline/stage.ts@@ -39,4 +39,6 @@ export type StageAllTaskStatusPatch = {status: TaskStatus;comment?: string;++ updatedTs: number;};diff --git a/frontend/src/types/pipeline/task.ts b/frontend/src/types/pipeline/task.tsindex faf4fdb078..b0f2466f84 100644--- a/frontend/src/types/pipeline/task.ts+++ b/frontend/src/types/pipeline/task.ts@@ -159,12 +159,16 @@ export type TaskCreate = {export type TaskPatch = {statement?: string;earliestAllowedTs?: number;++ updatedTs: number;};export type TaskStatusPatch = {// Domain specific fieldsstatus: TaskStatus;comment?: string;++ updatedTs: number;};// TaskRun is one run of a particular task