Skip to content

Commit e12d23f

Browse files
committed
refactor(SettingPanel.vue): add option to skip failed tables during migration and update localization for new feature
1 parent 1c7690b commit e12d23f

4 files changed

Lines changed: 18 additions & 20 deletions

File tree

packages/dag/src/components/migration/SettingPanel.vue

Lines changed: 14 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -714,10 +714,6 @@ const schema = {
714714
},
715715
default: 'Disable',
716716
enum: [
717-
// {
718-
// label: '直接跳过异常的表,任务继续运行 ',
719-
// value: 'SkipTable'
720-
// },
721717
{
722718
label: t(
723719
'packages_dag_migration_settingpanel_anzhaomorenzhong',
@@ -730,7 +726,21 @@ const schema = {
730726
),
731727
value: 'SkipData',
732728
},
729+
{
730+
label: t(
731+
'packages_dag_SkipTableForMigrateSnapshot',
732+
),
733+
value: 'SkipTableForMigrateSnapshot',
734+
},
733735
],
736+
'x-reactions': {
737+
dependencies: ['type'],
738+
fulfill: {
739+
schema: {
740+
'x-component-props.options': `{{options=$self.dataSource,$values.syncType === "migrate" && $deps[0] !== "cdc" ? options : options.filter(item => item.value !== "SkipTableForMigrateSnapshot")}}`,
741+
},
742+
},
743+
},
734744
},
735745
limitMode: {
736746
type: 'string',
@@ -836,22 +846,6 @@ const schema = {
836846
},
837847
},
838848
},
839-
enableSkipErrorTable: {
840-
title: t('packages_dag_enableSkipErrorTable'),
841-
type: 'boolean',
842-
'x-decorator': 'FormItem',
843-
'x-decorator-props': {
844-
tooltip: t('packages_dag_enableSkipErrorTable_tip'),
845-
},
846-
'x-component': 'Switch',
847-
'x-reactions': {
848-
fulfill: {
849-
state: {
850-
visible: '{{$values.syncType === "migrate"}}',
851-
},
852-
},
853-
},
854-
},
855849
planStartDateFlag: {
856850
title: t('packages_dag_task_setting_plan_start_date'), //计划时间
857851
type: 'boolean',

packages/dag/src/locale/lang/en.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1197,4 +1197,6 @@ export default {
11971197
packages_dag_skip_error_recover_selected: 'Recover Selected',
11981198
packages_dag_skip_error_recover_all: 'Recover All',
11991199
packages_dag_only_show_skip: 'Only Show Skipped',
1200+
packages_dag_SkipTableForMigrateSnapshot:
1201+
'Skip failed tables, then stop after full sync',
12001202
}

packages/dag/src/locale/lang/zh-CN.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,4 +1051,5 @@ export default {
10511051
packages_dag_skip_error_recover_selected: '恢复选中',
10521052
packages_dag_skip_error_recover_all: '恢复全部',
10531053
packages_dag_only_show_skip: '仅显示已跳过',
1054+
packages_dag_SkipTableForMigrateSnapshot: '跳过异常表,完成全量后报错停止',
10541055
}

packages/dag/src/locale/lang/zh-TW.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,4 +1035,5 @@ export default {
10351035
packages_dag_skip_error_recover_selected: '恢復選中',
10361036
packages_dag_skip_error_recover_all: '恢復全部',
10371037
packages_dag_only_show_skip: '僅顯示已跳過',
1038+
packages_dag_SkipTableForMigrateSnapshot: '跳过异常表,完成全量后报错停止',
10381039
}

0 commit comments

Comments
 (0)