Atlas-4078 : UI - Lineage tab not shown on UI for entity with type Dataset or Process.
Signed-off-by: nixonrodrigues <nixon@apache.org>
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 @@
// 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 @@
return true;
}
});
+ if (!isLineageRender) {
+ isLineageRender = (typeName === "DataSet" || typeName === "Process") ? true : null;
+ }
if (collectionJSON && collectionJSON.guid) {
var tagGuid = collectionJSON.guid;