From 16913bacd79fbbdc9caa9154e9c9161be0a6ad68 Mon Sep 17 00:00:00 2001 From: Jave-Chen Date: Fri, 17 Jan 2020 21:55:50 +0800 Subject: [PATCH 01/13] fix return, obj error (#1855) --- .../api/service/ExecutorService.java | 4 +++- .../common/model/DateInterval.java | 15 +++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ExecutorService.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ExecutorService.java index 8fa4c013c7..3296624df3 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ExecutorService.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ExecutorService.java @@ -550,7 +550,9 @@ public class ExecutorService extends BaseService{ }else{ command.setCommandParam(JSONUtils.toJson(cmdParam)); return processDao.createCommand(command); - } + } + + return 0; } /** diff --git a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/DateInterval.java b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/DateInterval.java index 9dc2f34cc1..4ea764cf80 100644 --- a/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/DateInterval.java +++ b/dolphinscheduler-common/src/main/java/org/apache/dolphinscheduler/common/model/DateInterval.java @@ -35,12 +35,15 @@ public class DateInterval { @Override public boolean equals(Object obj) { - if (this == o) return true; - if (o == null || getClass() != o.getClass()) return false; - DateInterval that = (DateInterval) o; - return startTime.equals(that.startTime) && - endTime.equals(that.endTime); - + if (obj == null || getClass() != obj.getClass()) { + return false; + } else if (this == obj) { + return true; + } else { + DateInterval that = (DateInterval) obj; + return startTime.equals(that.startTime) && + endTime.equals(that.endTime); + } } public Date getStartTime() { From 9549910fccb52b2b8726ca26c79dd6daa3aff385 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Sun, 19 Jan 2020 11:59:06 +0800 Subject: [PATCH 02/13] Fix UDF function list delete data without refresh and page data display widened #1851 (#1853) * fix udfs assignment and task instance page jump #1789 * jest add coverage display * Fix data echo, style, popup cannot be closed and license * Fix data echo, style, popup cannot be closed and license * fix * Requests the previous page when there is no data on the list page * Fix DAG task nodes keep requesting API and tooltip background color modification * Modify list tooltip theme color * Fix UDF function list delete data without refresh and page data display widened --- .../resource/pages/udf/pages/function/_source/createUdf.vue | 3 ++- .../resource/pages/udf/pages/function/_source/list.vue | 3 ++- .../src/js/module/components/transfer/resource.vue | 6 +++--- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue index 13a337d557..01d8d22650 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/resource/pages/udf/pages/function/_source/createUdf.vue @@ -76,7 +76,8 @@ filterable v-model="resourceId" :disabled="isUpdate" - style="width: 200px"> + :add-title="true" + style="width: 261px"> id: item.id }).then(res => { this.$refs[`poptip-${i}`][0].doClose() - this.$emit('_updateList') + this.$emit('on-update') this.$message.success(res.msg) }).catch(e => { this.$refs[`poptip-${i}`][0].doClose() @@ -156,6 +156,7 @@ v-ps