Return-Path: X-Original-To: apmail-atlas-commits-archive@minotaur.apache.org Delivered-To: apmail-atlas-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CD85818B9F for ; Sun, 20 Dec 2015 12:47:38 +0000 (UTC) Received: (qmail 94250 invoked by uid 500); 20 Dec 2015 12:47:38 -0000 Delivered-To: apmail-atlas-commits-archive@atlas.apache.org Received: (qmail 94217 invoked by uid 500); 20 Dec 2015 12:47:38 -0000 Mailing-List: contact commits-help@atlas.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.incubator.apache.org Delivered-To: mailing list commits@atlas.incubator.apache.org Received: (qmail 94208 invoked by uid 99); 20 Dec 2015 12:47:38 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Dec 2015 12:47:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 15B11C9614 for ; Sun, 20 Dec 2015 12:47:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.779 X-Spam-Level: * X-Spam-Status: No, score=1.779 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id PghHdHgjWnmI for ; Sun, 20 Dec 2015 12:47:37 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with SMTP id 3A6E9201BC for ; Sun, 20 Dec 2015 12:47:37 +0000 (UTC) Received: (qmail 94205 invoked by uid 99); 20 Dec 2015 12:47:37 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 20 Dec 2015 12:47:37 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id F3C99DFD7A; Sun, 20 Dec 2015 12:47:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sumasai@apache.org To: commits@atlas.incubator.apache.org Message-Id: <764a2ac8192b4735ab96c963057aafce@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: incubator-atlas git commit: ATLAS-405 UI: Lineage is broken seemingly if there are more than one input Processes creating a Dataset (darshankumar89 via sumasai) Date: Sun, 20 Dec 2015 12:47:36 +0000 (UTC) Repository: incubator-atlas Updated Branches: refs/heads/branch-0.6-incubating f2fec7cfb -> 70f468340 ATLAS-405 UI: Lineage is broken seemingly if there are more than one input Processes creating a Dataset (darshankumar89 via sumasai) Project: http://git-wip-us.apache.org/repos/asf/incubator-atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-atlas/commit/70f46834 Tree: http://git-wip-us.apache.org/repos/asf/incubator-atlas/tree/70f46834 Diff: http://git-wip-us.apache.org/repos/asf/incubator-atlas/diff/70f46834 Branch: refs/heads/branch-0.6-incubating Commit: 70f4683401a55fbbaf95bbfcb7f1d2a55ede1337 Parents: f2fec7c Author: Suma Shivaprasad Authored: Sun Dec 20 18:16:57 2015 +0530 Committer: Suma Shivaprasad Committed: Sun Dec 20 18:17:21 2015 +0530 ---------------------------------------------------------------------- .../modules/lineage/lineage_ioController.js | 19 +++++++++++-------- release-log.txt | 1 + 2 files changed, 12 insertions(+), 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/70f46834/dashboard/public/modules/lineage/lineage_ioController.js ---------------------------------------------------------------------- diff --git a/dashboard/public/modules/lineage/lineage_ioController.js b/dashboard/public/modules/lineage/lineage_ioController.js index bb8fcec..41f69c2 100644 --- a/dashboard/public/modules/lineage/lineage_ioController.js +++ b/dashboard/public/modules/lineage/lineage_ioController.js @@ -29,7 +29,7 @@ angular.module('dgc.lineage').controller('Lineage_ioController', ['$element', '$ $.each(edgs, function(key, value) { for (var k = 0; k < value.length; k++) { newEdgsObj[value[k]] = newEdgsObj[value[k]] || []; - newEdgsObj[value[k]] = [key]; + newEdgsObj[value[k]].push(key); } }); return newEdgsObj; @@ -41,8 +41,8 @@ angular.module('dgc.lineage').controller('Lineage_ioController', ['$element', '$ type: 'outputs' }).$promise.then( function lineageSuccess(response1) { - // $scope.$emit('show_lineage'); - $('#lineageGraph').removeClass('hide'); + // $scope.$emit('show_lineage'); + $('#lineageGraph').removeClass('hide'); LineageResource.get({ tableName: tableData.tableName, type: 'inputs' @@ -98,7 +98,6 @@ angular.module('dgc.lineage').controller('Lineage_ioController', ['$element', '$ } function loadProcess(edges, vertices) { - var urlCalls = []; var deferred = $q.defer(); for (var guid in edges) { @@ -436,7 +435,7 @@ angular.module('dgc.lineage').controller('Lineage_ioController', ['$element', '$ // Function to center node when clicked/dropped so node doesn't get lost when collapsing/moving with large amount of children. function centerNode(source) { - var scale = (depthwidth === 10) ? zoomListener.scale() : 0.4; + var scale = zoomListener.scale(); var x = -source.y0; var y = -source.x0; x = x * scale - 130; @@ -492,7 +491,9 @@ angular.module('dgc.lineage').controller('Lineage_ioController', ['$element', '$ } }; childCount(0, root); - tree = tree.nodeSize([50, 100]); + //tree = tree.nodeSize([50, 100]); + tree = tree.separation(function(a, b) { return ((a.parent === root) && (b.parent === root)) ? 3 : 1; }) + .size([viewerHeight, viewerWidth - 160]); // Compute the new tree layout. var nodes = tree.nodes(root).reverse(); @@ -522,7 +523,7 @@ angular.module('dgc.lineage').controller('Lineage_ioController', ['$element', '$ if (levelWidth.length > 1 && depthwidth === 10) { for (var o = 0; o < levelWidth.length; o++) { if (levelWidth[o] > 4) { - depthwidth = 70; + depthwidth = 10; break; } } @@ -559,7 +560,9 @@ angular.module('dgc.lineage').controller('Lineage_ioController', ['$element', '$ nodeEnter.append("image") .attr("class", "nodeImage") .attr("xlink:href", function(d) { - return (d.type && d.type !== '' && d.type.toLowerCase().indexOf('edges') !== -1) ? '../img/process.png' : '../img/tableicon.png'; + return (d.type && d.type !== '' && d.type.toLowerCase().indexOf('edges') !== -1) ? + ((d.guid === $scope.guid) ? '../img/process1.png' : '../img/process.png') : + ((d.guid === $scope.guid) ? '../img/tableicon1.png' : '../img/tableicon.png'); }) .on('mouseover', function(d) { if (d.type === 'edges' || 'Table') { http://git-wip-us.apache.org/repos/asf/incubator-atlas/blob/70f46834/release-log.txt ---------------------------------------------------------------------- diff --git a/release-log.txt b/release-log.txt index 8fc9ccf..c778ff0 100644 --- a/release-log.txt +++ b/release-log.txt @@ -9,6 +9,7 @@ ATLAS-3 Mixed Index creation fails with Date types (sumasai via shwethags) ATLAS-47 Entity mutations for complex types (sumasai via shwethags) ALL CHANGES: +ATLAS-405 UI: Lineage is broken seemingly if there are more than one input Processes creating a Dataset (darshankumar89 via sumasai) ATLAS-402 UI : Validation of Associating a Tag (darshankumar89 via sumasai) ATLAS-395 UI : In details page maps not displayed for different data models (darshankumar89 via sumasai) ATLAS-394 Fix BaseResourceIT.waitForNotification (shwethags via sumasai)