Commit b5ce624f by prasad pawar Committed by nixonrodrigues

Atlas-4078 :- UI - Lineage tab not shown on UI for entity with type Dataset or Process

parent ab92cf1e
......@@ -167,6 +167,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") {
......@@ -176,6 +177,9 @@ define(['require',
return true;
}
});
if (!isLineageRender) {
isLineageRender = (typeName === "DataSet" || typeName === "Process") ? true : null;
}
if (collectionJSON && collectionJSON.guid) {
var tagGuid = collectionJSON.guid;
......
......@@ -171,6 +171,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") {
......@@ -180,7 +181,9 @@ define(['require',
return true;
}
});
if (!isLineageRender) {
isLineageRender = (typeName === "DataSet" || typeName === "Process") ? true : null;
}
if (collectionJSON && collectionJSON.guid) {
var tagGuid = collectionJSON.guid;
this.readOnly = Enums.entityStateReadOnly[collectionJSON.status];
......@@ -194,6 +197,7 @@ define(['require',
}
if (collectionJSON) {
this.name = Utils.getName(collectionJSON);
if (collectionJSON.attributes) {
if (collectionJSON.typeName) {
collectionJSON.attributes.typeName = _.escape(collectionJSON.typeName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment