Commit 454feb47 by Hemanth Yamijala

ATLAS-733 UI: undefined XHR request is made for every entity GET page request.…

ATLAS-733 UI: undefined XHR request is made for every entity GET page request. (kevalbhatt18 via yhemanth)
parent af63bb88
...@@ -65,26 +65,51 @@ define(['require', ...@@ -65,26 +65,51 @@ define(['require',
if (_.isArray(keyValue)) { if (_.isArray(keyValue)) {
var subLink = ""; var subLink = "";
for (var i = 0; i < keyValue.length; i++) { for (var i = 0; i < keyValue.length; i++) {
var inputOutputField = keyValue[i]; var inputOutputField = keyValue[i],
id = undefined;
if (_.isObject(inputOutputField.id)) { if (_.isObject(inputOutputField.id)) {
id = inputOutputField.id.id; id = inputOutputField.id.id;
} else { } else {
id = inputOutputField.id; id = inputOutputField.id;
} }
that.fetchInputOutputValue(id); if (id) {
//var coma = (i = 0) ? ('') : (','); that.fetchInputOutputValue(id);
subLink += '<div data-id="' + id + '"></div>'; subLink += '<div data-id="' + id + '"></div>';
} else {
subLink += '<div></div>';
}
} }
table += '<tr><td>' + key + '</td><td>' + subLink + '</td></tr>'; table += '<tr><td>' + key + '</td><td>' + subLink + '</td></tr>';
} else if (_.isObject(keyValue)) { } else if (_.isObject(keyValue)) {
var id = ""; var id = undefined;
if (_.isObject(keyValue.id)) { if (_.isObject(keyValue.id)) {
id = keyValue.id.id; id = keyValue.id.id;
} else { } else {
id = keyValue.id; id = keyValue.id;
} }
that.fetchInputOutputValue(id); if (id) {
table += '<tr><td>' + key + '</td><td><div data-id="' + id + '"></div></td></tr>'; that.fetchInputOutputValue(id);
table += '<tr><td>' + key + '</td><td><div data-id="' + id + '"></div></td></tr>';
} else {
var stringArr = [];
_.each(keyValue, function(val, key) {
var value = "";
if (_.isObject(val)) {
value = JSON.stringify(val);
} else {
value = val;
}
var attrName = "<span>" + key + " : " + value + "</span>";
stringArr.push(attrName);
});
var jointValues = stringArr.join(", ");
if (jointValues.length) {
table += '<tr><td>' + key + '</td><td><div>' + jointValues + '</div></td></tr>';
} else {
table += '<tr><td>' + key + '</td><td></td></tr>';
}
}
} else { } else {
if (key == "createTime" || key == "lastAccessTime" || key == "retention") { if (key == "createTime" || key == "lastAccessTime" || key == "retention") {
table += '<tr><td>' + key + '</td><td>' + new Date(valueObject[key]) + '</td></tr>'; table += '<tr><td>' + key + '</td><td>' + new Date(valueObject[key]) + '</td></tr>';
......
...@@ -20,6 +20,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset ...@@ -20,6 +20,7 @@ ATLAS-409 Atlas will not import avro tables with schema read from a file (dosset
ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags) ATLAS-379 Create sqoop and falcon metadata addons (venkatnrangan,bvellanki,sowmyaramesh via shwethags)
ALL CHANGES: ALL CHANGES:
ATLAS-733 UI: "undefined" XHR request is made for every entity GET page request. (kevalbhatt18 via yhemanth)
ATLAS-663,ATLAS-673 Install Setup: SOLR (tbeerbower via sumasai) ATLAS-663,ATLAS-673 Install Setup: SOLR (tbeerbower via sumasai)
ATLAS-629 Kafka messages in ATLAS_HOOK might be lost in HA mode at the instant of failover. (yhemanth) ATLAS-629 Kafka messages in ATLAS_HOOK might be lost in HA mode at the instant of failover. (yhemanth)
ATLAS-758 hdfs location of hive table is pointing to old location even after rename ( sumasai ) ATLAS-758 hdfs location of hive table is pointing to old location even after rename ( sumasai )
......
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