You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2021/12/02 11:33:59 UTC
[dolphinscheduler] branch dev updated: [Fix-7103] Fix the issue with the sqoop task missing the verification of props. (#7119)
This is an automated email from the ASF dual-hosted git repository.
kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new 6beae19 [Fix-7103] Fix the issue with the sqoop task missing the verification of props. (#7119)
6beae19 is described below
commit 6beae191e2df497b7624728f0208c3a5ab7f0543
Author: Hua Jiang <ji...@163.com>
AuthorDate: Thu Dec 2 19:33:51 2021 +0800
[Fix-7103] Fix the issue with the sqoop task missing the verification of props. (#7119)
* add the verification of parameters for the sqoop task
---
.../src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue | 5 +++++
dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js | 2 +-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue
index 60cd5ec..9fedf1d 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/formModel/tasks/sqoop.vue
@@ -951,10 +951,15 @@
* verification
*/
_verification () {
+ // localParams Subcomponent verification
+ if (!this.$refs.refLocalParams._verifProp()) {
+ return false
+ }
let sqoopParams = {
jobType: this.jobType,
localParams: this.localParams
}
+
if (this.jobType === 'CUSTOM') {
if (!shellEditor.getValue()) {
this.$message.warning(`${i18n.$t('Please enter Custom Shell(required)')}`)
diff --git a/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js b/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
index 7a632da..dc63c50 100644
--- a/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
+++ b/dolphinscheduler-ui/src/js/module/i18n/locale/zh_CN.js
@@ -257,7 +257,7 @@ export default {
'prop(required)': 'prop(必填)',
'value(optional)': 'value(选填)',
'value(required)': 'value(必填)',
- 'prop is empty': 'prop不能为空',
+ 'prop is empty': '自定义参数prop不能为空',
'value is empty': 'value不能为空',
'prop is repeat': 'prop中有重复',
'Start Time': '开始时间',