Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: update task status words for export data issue (#11566)
boojack9f8b9eac2dac
diff --git a/backend/runner/taskrun/data_export_executor.go b/backend/runner/taskrun/data_export_executor.goindex fcbfd52dbc..115be12354 100644--- a/backend/runner/taskrun/data_export_executor.go+++ b/backend/runner/taskrun/data_export_executor.go@@ -115,6 +115,11 @@ func (exec *DataExportExecutor) RunOnce(ctx context.Context, _ context.Context,return true, nil, errors.Wrap(err, "failed to get query span")}+ exec.stateCfg.TaskRunExecutionStatuses.Store(taskRunUID,+ state.TaskRunExecutionStatus{+ ExecutionStatus: v1pb.TaskRun_EXECUTING,+ UpdateTime: time.Now(),+ })exportRequest := &v1pb.ExportRequest{Name: fmt.Sprintf("instances/%s", instance.ResourceID),ConnectionDatabase: database.DatabaseName,diff --git a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vueindex 5ca342dc65..5dd3907428 100644--- a/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue+++ b/frontend/src/components/IssueV1/components/TaskRunSection/TaskRunComment.vue@@ -38,6 +38,7 @@ import {extractChangeHistoryUID,extractTaskUID,flattenTaskV1List,+ isDatabaseDataExportIssue,} from "@/utils";import { databaseForTask, specForTask, useIssueContext } from "../../logic";@@ -78,6 +79,9 @@ const comment = computed(() => {return t("task-run.status.enqueued");} else if (taskRun.status === TaskRun_Status.RUNNING) {if (taskRun.executionStatus === TaskRun_ExecutionStatus.PRE_EXECUTING) {+ if (isDatabaseDataExportIssue(issue.value)) {+ return t("task-run.status.preparing-to-export-data");+ }return t("task-run.status.dumping-schema-before-executing-sql");} else if (taskRun.executionStatus === TaskRun_ExecutionStatus.EXECUTING) {if (taskRun.executionDetail) {@@ -93,6 +97,9 @@ const comment = computed(() => {(taskRun.executionDetail.commandEndPosition?.column ?? 0) + 1,});}+ if (isDatabaseDataExportIssue(issue.value)) {+ return t("task-run.status.exporting-data");+ }return t("task-run.status.executing-sql");} else if (taskRun.executionStatus === TaskRun_ExecutionStatus.POST_EXECUTINGdiff --git a/frontend/src/locales/en-US.json b/frontend/src/locales/en-US.jsonindex 36a1b13c85..3f7e1e4f42 100644--- a/frontend/src/locales/en-US.json+++ b/frontend/src/locales/en-US.json@@ -411,6 +411,8 @@"enqueued": "Waiting for execution.","enqueued-with-rollout-time": "Waiting to execute after {time}.","dumping-schema-before-executing-sql": "Preparing to execute, dumping schema.",+ "preparing-to-export-data": "Preparing to export data.",+ "exporting-data": "Exporting data.","executing-sql": "Executing SQL.","executing-sql-detail": "Executing SQL {current} of {total}, from ({startLine}, {startColumn}) to ({endLine}, {endColumn}).","dumping-schema-after-executing-sql": "SQL execution completed, dumping schema.",diff --git a/frontend/src/locales/es-ES.json b/frontend/src/locales/es-ES.jsonindex 7e497752c6..304fcd9338 100644--- a/frontend/src/locales/es-ES.json+++ b/frontend/src/locales/es-ES.json@@ -411,6 +411,8 @@"enqueued": "Esperando a ser ejecutada.","enqueued-with-rollout-time": "Esperando para ejecutar, {time} para ejecutar.","dumping-schema-before-executing-sql": "Listo para ejecutar, exportando esquema.",+ "preparing-to-export-data": "Preparándose para exportar datos.",+ "exporting-data": "Exportación de datos.","executing-sql": "Ejecutando SQL.","executing-sql-detail": "Ejecutando SQL {actual} de {total}, desde ({startLine}, {startColumn}) hasta ({endLine}, {endColumn}).","dumping-schema-after-executing-sql": "Ejecución SQL completada, exportando esquema ahora.",@@ -3389,4 +3391,4 @@"head": "Cabeza","show-diff-with-branch-baseline": "Mostrar diferencia con la línea base de la rama"}-}+}\ No newline at end of filediff --git a/frontend/src/locales/ja-JP.json b/frontend/src/locales/ja-JP.jsonindex c369966405..7118d0f22a 100644--- a/frontend/src/locales/ja-JP.json+++ b/frontend/src/locales/ja-JP.json@@ -411,6 +411,8 @@"enqueued": "実行待ちです。","enqueued-with-rollout-time": "{time} 後に実行するために待機中です。","dumping-schema-before-executing-sql": "実行の準備中、スキーマをダンプしています。",+ "preparing-to-export-data": "データをエクスポートする準備をしています。",+ "exporting-data": "データをエクスポートしています。","executing-sql": "SQL を実行中です。","executing-sql-detail": "SQL を実行中です ({current}/{total})、({startLine}, {startColumn}) から ({endLine}, {endColumn}) まで。","dumping-schema-after-executing-sql": "SQL の実行が完了し、スキーマをダンプしています。",@@ -3389,4 +3391,4 @@"head": "頭","show-diff-with-branch-baseline": "ブランチベースラインとの差分を表示"}-}+}\ No newline at end of filediff --git a/frontend/src/locales/vi-VN.json b/frontend/src/locales/vi-VN.jsonindex 81ecd6a27b..c7262fd4ef 100644--- a/frontend/src/locales/vi-VN.json+++ b/frontend/src/locales/vi-VN.json@@ -411,6 +411,8 @@"enqueued": "Đang chờ thi hành án.","enqueued-with-rollout-time": "Đang chờ thực thi sau {time}.","dumping-schema-before-executing-sql": "Đang chuẩn bị thực thi, kết xuất lược đồ.",+ "preparing-to-export-data": "Đang chuẩn bị xuất dữ liệu.",+ "exporting-data": "Xuất dữ liệu.","executing-sql": "Thực thi SQL.","executing-sql-detail": "Thực thi SQL {current} của {total}, từ ({startLine}, {startColumn}) đến ({endLine}, {endColumn}).","dumping-schema-after-executing-sql": "Thực thi SQL đã hoàn thành, lược đồ kết xuất.",@@ -3389,4 +3391,4 @@"head": "Cái đầu","show-diff-with-branch-baseline": "Hiển thị sự khác biệt với đường cơ sở của nhánh"}-}+}\ No newline at end of filediff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.jsonindex 211a843e70..f9daa333b8 100644--- a/frontend/src/locales/zh-CN.json+++ b/frontend/src/locales/zh-CN.json@@ -411,6 +411,8 @@"enqueued": "等待执行。","enqueued-with-rollout-time": "等待执行,{time}后执行。","dumping-schema-before-executing-sql": "准备执行,正在导出 schema。",+ "preparing-to-export-data": "准备导出数据。",+ "exporting-data": "正在导出数据。","executing-sql": "正在执行 SQL。","executing-sql-detail": "正在执行 SQL {current} of {total},从 ({startLine}, {startColumn}) 到 ({endLine}, {endColumn})。","dumping-schema-after-executing-sql": "SQL 执行完毕,正在导出 schema。",@@ -3389,4 +3391,4 @@"head": "当前","show-diff-with-branch-baseline": "显示与分支基线之间的差异"}-}+}\ No newline at end of file