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', ...@@ -167,6 +167,7 @@ define(['require',
// check if entity is process // check if entity is process
var isProcess = false, var isProcess = false,
typeName = Utils.getName(collectionJSON, 'typeName'),
superTypes = Utils.getNestedSuperTypes({ data: this.activeEntityDef.toJSON(), collection: this.entityDefCollection }), superTypes = Utils.getNestedSuperTypes({ data: this.activeEntityDef.toJSON(), collection: this.entityDefCollection }),
isLineageRender = _.find(superTypes, function(type) { isLineageRender = _.find(superTypes, function(type) {
if (type === "DataSet" || type === "Process") { if (type === "DataSet" || type === "Process") {
...@@ -176,6 +177,9 @@ define(['require', ...@@ -176,6 +177,9 @@ define(['require',
return true; return true;
} }
}); });
if (!isLineageRender) {
isLineageRender = (typeName === "DataSet" || typeName === "Process") ? true : null;
}
if (collectionJSON && collectionJSON.guid) { if (collectionJSON && collectionJSON.guid) {
var tagGuid = collectionJSON.guid; var tagGuid = collectionJSON.guid;
...@@ -393,7 +397,7 @@ define(['require', ...@@ -393,7 +397,7 @@ define(['require',
case "raudits": case "raudits":
regionRef = this.RReplicationAuditTableLayoutView; regionRef = this.RReplicationAuditTableLayoutView;
break; break;
case "profile": case "profile":
regionRef = this.RProfileLayoutView; regionRef = this.RProfileLayoutView;
break; break;
} }
......
...@@ -171,6 +171,7 @@ define(['require', ...@@ -171,6 +171,7 @@ define(['require',
// check if entity is process // check if entity is process
var isProcess = false, var isProcess = false,
typeName = Utils.getName(collectionJSON, 'typeName'),
superTypes = Utils.getNestedSuperTypes({ data: this.activeEntityDef.toJSON(), collection: this.entityDefCollection }), superTypes = Utils.getNestedSuperTypes({ data: this.activeEntityDef.toJSON(), collection: this.entityDefCollection }),
isLineageRender = _.find(superTypes, function(type) { isLineageRender = _.find(superTypes, function(type) {
if (type === "DataSet" || type === "Process") { if (type === "DataSet" || type === "Process") {
...@@ -180,7 +181,9 @@ define(['require', ...@@ -180,7 +181,9 @@ define(['require',
return true; return true;
} }
}); });
if (!isLineageRender) {
isLineageRender = (typeName === "DataSet" || typeName === "Process") ? true : null;
}
if (collectionJSON && collectionJSON.guid) { if (collectionJSON && collectionJSON.guid) {
var tagGuid = collectionJSON.guid; var tagGuid = collectionJSON.guid;
this.readOnly = Enums.entityStateReadOnly[collectionJSON.status]; this.readOnly = Enums.entityStateReadOnly[collectionJSON.status];
...@@ -194,6 +197,7 @@ define(['require', ...@@ -194,6 +197,7 @@ define(['require',
} }
if (collectionJSON) { if (collectionJSON) {
this.name = Utils.getName(collectionJSON); this.name = Utils.getName(collectionJSON);
if (collectionJSON.attributes) { if (collectionJSON.attributes) {
if (collectionJSON.typeName) { if (collectionJSON.typeName) {
collectionJSON.attributes.typeName = _.escape(collectionJSON.typeName); collectionJSON.attributes.typeName = _.escape(collectionJSON.typeName);
...@@ -397,7 +401,7 @@ define(['require', ...@@ -397,7 +401,7 @@ define(['require',
case "raudits": case "raudits":
regionRef = this.RReplicationAuditTableLayoutView; regionRef = this.RReplicationAuditTableLayoutView;
break; break;
case "profile": case "profile":
regionRef = this.RProfileLayoutView; regionRef = this.RProfileLayoutView;
break; break;
} }
......
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