Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
Rename task_run.error to detail
天舟c6c00948a7b1
diff --git a/api/task_run.go b/api/task_run.goindex efd1f6b1f7..f35a8ba025 100644--- a/api/task_run.go+++ b/api/task_run.go@@ -48,7 +48,7 @@ type TaskRun struct {Name string `jsonapi:"attr,name"`Status TaskRunStatus `jsonapi:"attr,status"`Type TaskType `jsonapi:"attr,type"`- Error string `jsonapi:"attr,error"`+ Detail string `jsonapi:"attr,detail"`Payload string `jsonapi:"attr,payload"`}diff --git a/frontend/src/components/TaskRunTable.vue b/frontend/src/components/TaskRunTable.vueindex 34eaa29109..21c84f1f22 100644--- a/frontend/src/components/TaskRunTable.vue+++ b/frontend/src/components/TaskRunTable.vue@@ -74,7 +74,7 @@</div></BBTableCell><BBTableCell class="table-cell w-36">- {{ taskRun.error }}+ {{ taskRun.detail }}</BBTableCell><BBTableCell class="table-cell w-12"><div class="flex flex-row items-center space-x-2">@@ -109,7 +109,7 @@ const columnList: BBTableColumn[] = [title: "Status",},{- title: "Error",+ title: "Detail",},{title: "Invoker",diff --git a/frontend/src/types/pipeline/task.ts b/frontend/src/types/pipeline/task.tsindex 907a75a498..85bd70962c 100644--- a/frontend/src/types/pipeline/task.ts+++ b/frontend/src/types/pipeline/task.ts@@ -101,6 +101,6 @@ export type TaskRun = {name: string;status: TaskRunStatus;type: TaskType;- error: string;+ detail: string;payload?: TaskPayload;};diff --git a/store/migration/10001__init_schema.sql b/store/migration/10001__init_schema.sqlindex cf721bd8db..8ab2236c8a 100644--- a/store/migration/10001__init_schema.sql+++ b/store/migration/10001__init_schema.sql@@ -531,7 +531,7 @@ CREATE TABLE task_run ()),`type` TEXT NOT NULL CHECK (`type` LIKE 'bb.task.%'),- error TEXT NOT NULL DEFAULT '',+ detail TEXT NOT NULL DEFAULT '',payload TEXT NOT NULL DEFAULT '');diff --git a/store/seed/release/10001__init_seed.sql b/store/seed/release/10001__init_seed.sqlindex ec0f4156a2..edfd82cb3d 100644--- a/store/seed/release/10001__init_seed.sql+++ b/store/seed/release/10001__init_seed.sql@@ -317,7 +317,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUES@@ -340,7 +340,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUESdiff --git a/store/seed/test/10120__task_run.sql b/store/seed/test/10120__task_run.sqlindex abe4927dfa..09ae757f29 100644--- a/store/seed/test/10120__task_run.sql+++ b/store/seed/test/10120__task_run.sql@@ -9,7 +9,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUES@@ -37,7 +37,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUES@@ -64,7 +64,7 @@ INSERT INTOname,`status`,`type`,- error+ detail)VALUES(@@ -89,7 +89,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUES@@ -117,7 +117,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUES@@ -145,7 +145,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUES@@ -173,7 +173,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUES@@ -201,7 +201,7 @@ INSERT INTOname,`status`,`type`,- error,+ detail,payload)VALUESdiff --git a/store/task_run.go b/store/task_run.goindex 90a7fd34bf..bd1fb2e385 100644--- a/store/task_run.go+++ b/store/task_run.go@@ -39,7 +39,7 @@ func (s *TaskRunService) CreateTaskRun(ctx context.Context, tx *sql.Tx, create *payload)VALUES (?, ?, ?, ?, 'RUNNING', ?, ?)- RETURNING id, creator_id, created_ts, updater_id, updated_ts, task_id, name, `+"`status`, `type`, error, payload"+`+ RETURNING id, creator_id, created_ts, updater_id, updated_ts, task_id, name, `+"`status`, `type`, detail, payload"+``,create.CreatorId,create.CreatorId,@@ -66,7 +66,7 @@ func (s *TaskRunService) CreateTaskRun(ctx context.Context, tx *sql.Tx, create *&taskRun.Name,&taskRun.Status,&taskRun.Type,- &taskRun.Error,+ &taskRun.Detail,&taskRun.Payload,); err != nil {return nil, FormatError(err)@@ -122,7 +122,7 @@ func (s *TaskRunService) PatchTaskRunStatus(ctx context.Context, tx *sql.Tx, patUPDATE task_runSET `+strings.Join(set, ", ")+`WHERE `+strings.Join(where, " AND ")+`- RETURNING id, creator_id, created_ts, updater_id, updated_ts, task_id, name, `+"`status`, `type`, error, payload"+`+ RETURNING id, creator_id, created_ts, updater_id, updated_ts, task_id, name, `+"`status`, `type`, detail, payload"+``,args...,)@@ -144,7 +144,7 @@ func (s *TaskRunService) PatchTaskRunStatus(ctx context.Context, tx *sql.Tx, pat&taskRun.Name,&taskRun.Status,&taskRun.Type,- &taskRun.Error,+ &taskRun.Detail,&taskRun.Payload,); err != nil {return nil, FormatError(err)@@ -182,7 +182,7 @@ func (s *TaskRunService) findTaskRunList(ctx context.Context, tx *sql.Tx, find *name,`+"`status`,"+``+"`type`,"+`- error,+ detail,payloadFROM task_runWHERE `+strings.Join(where, " AND "),@@ -207,7 +207,7 @@ func (s *TaskRunService) findTaskRunList(ctx context.Context, tx *sql.Tx, find *&taskRun.Name,&taskRun.Status,&taskRun.Type,- &taskRun.Error,+ &taskRun.Detail,&taskRun.Payload,); err != nil {return nil, FormatError(err)