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

nixon pushed a commit to branch branch-0.8
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/branch-0.8 by this push:
     new 50d7449  Atlas-4078 : UI - Lineage tab not shown on UI for entity with 
type Dataset or Process.
50d7449 is described below

commit 50d74493f24791c7b360f011411b9cb729e95bb6
Author: prasad pawar <[email protected]>
AuthorDate: Tue Dec 15 10:27:48 2020 +0530

    Atlas-4078 : UI - Lineage tab not shown on UI for entity with type Dataset 
or Process.
    
    Signed-off-by: nixonrodrigues <[email protected]>
---
 dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js 
b/dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
index 6faa8a8..8e2931b 100644
--- a/dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
+++ b/dashboardv2/public/js/views/detail_page/DetailPageLayoutView.js
@@ -116,6 +116,7 @@ define(['require',
 
                     // check if entity is process
                     var isProcess = false,
+                        typeName = Utils.getName(collectionJSON, 'typeName'),
                         superTypes = Utils.getNestedSuperTypes({ data: 
this.activeEntityDef.toJSON(), collection: this.entityDefCollection }),
                         isLineageRender = _.find(superTypes, function(type) {
                             if (type === "DataSet" || type === "Process") {
@@ -125,6 +126,9 @@ define(['require',
                                 return true;
                             }
                         });
+                    if (!isLineageRender) {
+                        isLineageRender = (typeName === "DataSet" || typeName 
=== "Process") ? true : null;
+                    }
 
                     if (collectionJSON && collectionJSON.guid) {
                         var tagGuid = collectionJSON.guid;

Reply via email to