You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ch...@apache.org on 2020/10/16 02:16:47 UTC

[incubator-dolphinscheduler] branch dev updated: [Fix][ui] Fix the problem that all pre-tasks are lost after dag reformatting #3823

This is an automated email from the ASF dual-hosted git repository.

chenxingchun pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git


The following commit(s) were added to refs/heads/dev by this push:
     new 6564e96  [Fix][ui] Fix the problem that all pre-tasks are lost after dag reformatting #3823
     new 60bf3f8  Merge pull request #3824 from elonlo/bugfix-dag-reformat-miss-pretask
6564e96 is described below

commit 6564e96315b1a9011ea9c97145450df5c59f318f
Author: dashi <da...@fordeal.com>
AuthorDate: Fri Sep 25 17:51:28 2020 +0800

    [Fix][ui] Fix the problem that all pre-tasks are lost after dag reformatting #3823
---
 dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js
index d7f2f78..74671cc 100644
--- a/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js
+++ b/dolphinscheduler-ui/src/js/conf/home/pages/dag/_source/dag.js
@@ -135,10 +135,12 @@ Dag.prototype.backfill = function (arg) {
     const dataObject = {}
     g.nodes().forEach(function (v) {
       const node = g.node(v)
+      const location = store.state.dag.locations[node.label]
       const obj = {}
-      obj.name = node.label
+      obj.name = location.name
       obj.x = node.x + marginX
       obj.y = node.y
+      obj.targetarr = location.targetarr
       dataObject[node.label] = obj
     })
     jsPlumb.ready(() => {