You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by sa...@apache.org on 2019/10/17 12:56:04 UTC

[atlas] branch master updated: ATLAS-3471: Regression : UI - Relationship attributes are not displayed in Audit Details Table

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

sarath pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git


The following commit(s) were added to refs/heads/master by this push:
     new e04acda  ATLAS-3471: Regression : UI - Relationship attributes are not displayed in Audit Details Table
e04acda is described below

commit e04acda4868a8db9b41f6b55d33b25c66bccebe3
Author: kevalbhatt <kb...@apache.org>
AuthorDate: Thu Oct 17 17:51:20 2019 +0530

    ATLAS-3471: Regression : UI - Relationship attributes are not displayed in Audit Details Table
    
    Signed-off-by: Sarath Subramanian <sa...@apache.org>
---
 dashboardv2/public/css/scss/common.scss            |   3 +-
 .../audit/CreateAuditTableLayoutView_tmpl.html     | 118 +++++++++++++++++++--
 .../js/views/audit/CreateAuditTableLayoutView.js   |  98 +++++++++++++----
 dashboardv3/public/css/scss/common.scss            |   3 +-
 dashboardv3/public/css/scss/theme.scss             |   1 +
 .../audit/CreateAuditTableLayoutView_tmpl.html     | 118 +++++++++++++++++++--
 .../js/views/audit/CreateAuditTableLayoutView.js   |  98 +++++++++++++----
 7 files changed, 375 insertions(+), 64 deletions(-)

diff --git a/dashboardv2/public/css/scss/common.scss b/dashboardv2/public/css/scss/common.scss
index 84afbc8..4fcfa90 100644
--- a/dashboardv2/public/css/scss/common.scss
+++ b/dashboardv2/public/css/scss/common.scss
@@ -207,7 +207,7 @@ pre {
 .footer-content {
     position: fixed;
     right: 0px;
-    padding: 10px;
+    padding: 2px;
     bottom: 0;
     background: white;
 }
@@ -215,6 +215,7 @@ pre {
 #accordion {
     .panel-default>.panel-heading {
         cursor: pointer;
+        width: 100%;
     }
 }
 
diff --git a/dashboardv2/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html b/dashboardv2/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
index 88808d1..1934339 100644
--- a/dashboardv2/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
+++ b/dashboardv2/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
@@ -14,13 +14,111 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
 -->
-<h4>Name: <span data-id="name"></span></h4>
-<table class="table table-bordered table-striped" data-id="tableAudit">
-    <thead>
-        <tr data-id="auditHeaderValue">
-        </tr>
-    </thead>
-    <tbody data-id="auditValue">
-    </tbody>
-</table>
-<h4 data-id="noData" style="display:none">No details to show</h4>
+<h4 style="word-break: break-word;">Name: <span data-id="name"></span></h4>
+<div class="panel-group server-stats-container statsContainer " id="accordion">
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="detailsAttribute">
+        <div class="panel-heading" data-toggle="collapse" href="#detailAttributeTableCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a>Properties </a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="detailAttributeTableCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <table class="table stat-table">
+                    <tbody data-id="attributeDetail-card">
+                        <tr class="empty text-center">
+                            <td colspan="3"><span>No records found!</span></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="attributeDetails">
+        <div class="panel-heading" data-toggle="collapse" href="#attributeTableCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a data-id="panel-attr-heading">Technical properties </a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="attributeTableCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <table class="table stat-table">
+                    <tbody data-id="attribute-card">
+                        <tr class="empty text-center">
+                            <td colspan="3"><span>No records found!</span></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="relationShipAttributeDetails">
+        <div class="panel-heading" data-toggle="collapse" href="#relationShipAttributeTableCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a>Relationship properties </a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="relationShipAttributeTableCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <table class="table stat-table">
+                    <tbody data-id="relationship-attr-card">
+                        <tr class="empty text-center">
+                            <td colspan="3"><span>No records found!</span></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="customAttributeDetails">
+        <div class="panel-heading" data-toggle="collapse" href="#customAttributeCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a>User-defined properties </a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="customAttributeCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <table class="table stat-table">
+                    <tbody data-id="custom-attr-card">
+                        <tr class="empty text-center">
+                            <td colspan="3"><span>No records found!</span></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="labelsDetails">
+        <div class="panel-heading" data-toggle="collapse" href="#labelsTableCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a>Labels</a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="labelsTableCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <div class="row">
+                    <div class="col-md-12">
+                        <div class="badge-container" data-id="label-card">
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<h4 data-id="noData" class="text-center hide"><i>No details to show!</i></h4>
\ No newline at end of file
diff --git a/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js b/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js
index a35eacb..43fb114 100644
--- a/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js
+++ b/dashboardv2/public/js/views/audit/CreateAuditTableLayoutView.js
@@ -38,11 +38,23 @@ define(['require',
             /** ui selector cache */
             ui: {
                 auditValue: "[data-id='auditValue']",
-                auditCreate: "[data-id='auditCreate']",
+                name: "[data-id='name']",
                 noData: "[data-id='noData']",
                 tableAudit: "[data-id='tableAudit']",
                 auditHeaderValue: "[data-id='auditHeaderValue']",
-                name: "[data-id='name']"
+                attributeDetails: "[data-id='attributeDetails']",
+                attributeCard: "[data-id='attribute-card']",
+                labelsDetailsTable: "[data-id='labelsDetails']",
+                labelCard: "[data-id='label-card']",
+                customAttributeDetails: "[data-id='customAttributeDetails']",
+                customAttrCard: "[data-id='custom-attr-card']",
+                relationShipAttributeDetails: "[data-id='relationShipAttributeDetails']",
+                relationshipAttrCard: "[data-id='relationship-attr-card']",
+                attributeDetailCard: "[data-id='attributeDetail-card']",
+                detailsAttribute: "[data-id='detailsAttribute']",
+                panelAttrHeading: "[data-id='panel-attr-heading']",
+                nameUpdate: "[data-id='name-update']"
+
             },
             /** ui events hash */
             events: function() {
@@ -61,6 +73,20 @@ define(['require',
             onRender: function() {
                 this.auditTableGenerate();
             },
+            createTableWithValues: function(tableDetails) {
+                var attrTable = CommonViewFunction.propertyTable({
+                    scope: this,
+                    valueObject: tableDetails
+                });
+                return attrTable;
+
+            },
+            updateName: function(name) {
+                this.ui.name.text(name);
+            },
+            noDetailsShow: function() {
+                this.ui.noData.removeClass('hide');
+            },
             auditTableGenerate: function() {
                 var that = this,
                     table = "";
@@ -78,32 +104,62 @@ define(['require',
                         if (name == "-") {
                             name = _.escape(parseDetailsObject.typeName);
                         }
+                        var name = ((name ? name : this.entityName));
+                        that.updateName(name);
+                        if (parseDetailsObject) {
+                            var attributesDetails = parseDetailsObject.attributes,
+                                customAttr = parseDetailsObject.customAttributes,
+                                labelsDetails = parseDetailsObject.labels,
+                                relationshipAttributes = parseDetailsObject.relationshipAttributes;
+                            if (attributesDetails) {
+                                that.ui.attributeDetails.removeClass('hide');
+                                that.action.indexOf("Classification") === -1 ? that.ui.panelAttrHeading.html("Technical properties ") : that.ui.panelAttrHeading.html("Properties ");
+                                var attrTable = that.createTableWithValues(attributesDetails);
+                                that.ui.attributeCard.html(
+                                    attrTable);
+                            }
+                            if (!_.isEmpty(customAttr)) {
+                                that.ui.customAttributeDetails.removeClass('hide');
+                                var customAttrTable = that.createTableWithValues(customAttr);
+                                that.ui.customAttrCard.html(
+                                    customAttrTable);
+                            }
+                            if (!_.isEmpty(labelsDetails)) {
+                                this.ui.labelsDetailsTable.removeClass('hide');
+                                var labelsTable = '';
+                                _.each(labelsDetails, function(value, key, list) {
+                                    labelsTable += "<label class='label badge-default'>" + value + "</label>";
+                                });
+                                that.ui.labelCard.html(
+                                    labelsTable);
+                            }
+                            if (!_.isEmpty(relationshipAttributes)) {
+                                that.ui.relationShipAttributeDetails.removeClass('hide');
+                                var relationshipAttrTable = that.createTableWithValues(relationshipAttributes);
+                                that.ui.relationshipAttrCard.html(
+                                    relationshipAttrTable);
+                            }
+                            if (!attributesDetails && !customAttr && !labelsDetails && !relationshipAttributes) {
+                                that.ui.detailsAttribute.removeClass('hide');
+                                var attrDetailTable = that.createTableWithValues(parseDetailsObject);
+                                that.ui.attributeDetailCard.html(
+                                    attrDetailTable);
+                            }
+                        } else {
+                            that.noDetailsShow();
+                        }
                     } catch (err) {
                         if (_.isArray(parseDetailsObject)) {
                             var name = _.escape(parseDetailsObject[0]);
                         }
+                        that.updateName(name);
+                        that.noDetailsShow();
                     }
-                    var name = ((name ? name : this.entityName));
-                    this.ui.name.text(name);
-                    if (parseDetailsObject) {
-                        this.ui.auditHeaderValue.html('<th>Key</th><th>New Value</th>');
-                        var value = parseDetailsObject.attributes || parseDetailsObject;
-                        table = CommonViewFunction.propertyTable({ scope: this, valueObject: value, attributeDefs: this.attributeDefs });
-                        if (table.length) {
-                            this.ui.noData.hide();
-                            this.ui.tableAudit.show();
-                            this.ui.auditValue.html(table);
-                        } else {
-                            this.ui.noData.show();
-                            this.ui.tableAudit.hide();
-                        }
-                    } else {
-                        this.ui.noData.show();
-                    }
+
                 } else if (detailObj == "Deleted entity") {
-                    this.ui.name.text(this.entityName);
+                    that.updateName(this.entityName);
                 }
-            },
+            }
         });
     return CreateAuditTableLayoutView;
 });
\ No newline at end of file
diff --git a/dashboardv3/public/css/scss/common.scss b/dashboardv3/public/css/scss/common.scss
index 00c67ea..16b5df6 100644
--- a/dashboardv3/public/css/scss/common.scss
+++ b/dashboardv3/public/css/scss/common.scss
@@ -205,13 +205,14 @@ pre {
 #accordion {
     .panel-default>.panel-heading {
         cursor: pointer;
+        width: 100%;
     }
 }
 
 .footer-content {
     position: fixed;
     right: 0px;
-    padding: 10px;
+    padding: 2px;
     bottom: 0;
     background: white;
 }
diff --git a/dashboardv3/public/css/scss/theme.scss b/dashboardv3/public/css/scss/theme.scss
index 344e73f..59e8aef 100644
--- a/dashboardv3/public/css/scss/theme.scss
+++ b/dashboardv3/public/css/scss/theme.scss
@@ -34,6 +34,7 @@ body {
 
     #page-wrapper {
         padding-top: 15px !important;
+        padding-bottom: 10px !important;
     }
 
     // &:after {
diff --git a/dashboardv3/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html b/dashboardv3/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
index 88808d1..1934339 100644
--- a/dashboardv3/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
+++ b/dashboardv3/public/js/templates/audit/CreateAuditTableLayoutView_tmpl.html
@@ -14,13 +14,111 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
 -->
-<h4>Name: <span data-id="name"></span></h4>
-<table class="table table-bordered table-striped" data-id="tableAudit">
-    <thead>
-        <tr data-id="auditHeaderValue">
-        </tr>
-    </thead>
-    <tbody data-id="auditValue">
-    </tbody>
-</table>
-<h4 data-id="noData" style="display:none">No details to show</h4>
+<h4 style="word-break: break-word;">Name: <span data-id="name"></span></h4>
+<div class="panel-group server-stats-container statsContainer " id="accordion">
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="detailsAttribute">
+        <div class="panel-heading" data-toggle="collapse" href="#detailAttributeTableCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a>Properties </a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="detailAttributeTableCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <table class="table stat-table">
+                    <tbody data-id="attributeDetail-card">
+                        <tr class="empty text-center">
+                            <td colspan="3"><span>No records found!</span></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="attributeDetails">
+        <div class="panel-heading" data-toggle="collapse" href="#attributeTableCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a data-id="panel-attr-heading">Technical properties </a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="attributeTableCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <table class="table stat-table">
+                    <tbody data-id="attribute-card">
+                        <tr class="empty text-center">
+                            <td colspan="3"><span>No records found!</span></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="relationShipAttributeDetails">
+        <div class="panel-heading" data-toggle="collapse" href="#relationShipAttributeTableCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a>Relationship properties </a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="relationShipAttributeTableCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <table class="table stat-table">
+                    <tbody data-id="relationship-attr-card">
+                        <tr class="empty text-center">
+                            <td colspan="3"><span>No records found!</span></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="customAttributeDetails">
+        <div class="panel-heading" data-toggle="collapse" href="#customAttributeCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a>User-defined properties </a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="customAttributeCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <table class="table stat-table">
+                    <tbody data-id="custom-attr-card">
+                        <tr class="empty text-center">
+                            <td colspan="3"><span>No records found!</span></td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+        </div>
+    </div>
+    <div class="panel panel-default custom-panel expand_collapse_panel-icon hide" data-id="labelsDetails">
+        <div class="panel-heading" data-toggle="collapse" href="#labelsTableCollapse" aria-expanded="true">
+            <h4 class="panel-title">
+                <a>Labels</a>
+            </h4>
+            <div class="btn-group pull-left">
+                <button type="button" title="Collapse"><i class="ec-icon fa"></i></button>
+            </div>
+        </div>
+        <div id="labelsTableCollapse" class="panel-collapse collapse in">
+            <div class="panel-body">
+                <div class="row">
+                    <div class="col-md-12">
+                        <div class="badge-container" data-id="label-card">
+                        </div>
+                    </div>
+                </div>
+            </div>
+        </div>
+    </div>
+</div>
+<h4 data-id="noData" class="text-center hide"><i>No details to show!</i></h4>
\ No newline at end of file
diff --git a/dashboardv3/public/js/views/audit/CreateAuditTableLayoutView.js b/dashboardv3/public/js/views/audit/CreateAuditTableLayoutView.js
index a35eacb..43fb114 100644
--- a/dashboardv3/public/js/views/audit/CreateAuditTableLayoutView.js
+++ b/dashboardv3/public/js/views/audit/CreateAuditTableLayoutView.js
@@ -38,11 +38,23 @@ define(['require',
             /** ui selector cache */
             ui: {
                 auditValue: "[data-id='auditValue']",
-                auditCreate: "[data-id='auditCreate']",
+                name: "[data-id='name']",
                 noData: "[data-id='noData']",
                 tableAudit: "[data-id='tableAudit']",
                 auditHeaderValue: "[data-id='auditHeaderValue']",
-                name: "[data-id='name']"
+                attributeDetails: "[data-id='attributeDetails']",
+                attributeCard: "[data-id='attribute-card']",
+                labelsDetailsTable: "[data-id='labelsDetails']",
+                labelCard: "[data-id='label-card']",
+                customAttributeDetails: "[data-id='customAttributeDetails']",
+                customAttrCard: "[data-id='custom-attr-card']",
+                relationShipAttributeDetails: "[data-id='relationShipAttributeDetails']",
+                relationshipAttrCard: "[data-id='relationship-attr-card']",
+                attributeDetailCard: "[data-id='attributeDetail-card']",
+                detailsAttribute: "[data-id='detailsAttribute']",
+                panelAttrHeading: "[data-id='panel-attr-heading']",
+                nameUpdate: "[data-id='name-update']"
+
             },
             /** ui events hash */
             events: function() {
@@ -61,6 +73,20 @@ define(['require',
             onRender: function() {
                 this.auditTableGenerate();
             },
+            createTableWithValues: function(tableDetails) {
+                var attrTable = CommonViewFunction.propertyTable({
+                    scope: this,
+                    valueObject: tableDetails
+                });
+                return attrTable;
+
+            },
+            updateName: function(name) {
+                this.ui.name.text(name);
+            },
+            noDetailsShow: function() {
+                this.ui.noData.removeClass('hide');
+            },
             auditTableGenerate: function() {
                 var that = this,
                     table = "";
@@ -78,32 +104,62 @@ define(['require',
                         if (name == "-") {
                             name = _.escape(parseDetailsObject.typeName);
                         }
+                        var name = ((name ? name : this.entityName));
+                        that.updateName(name);
+                        if (parseDetailsObject) {
+                            var attributesDetails = parseDetailsObject.attributes,
+                                customAttr = parseDetailsObject.customAttributes,
+                                labelsDetails = parseDetailsObject.labels,
+                                relationshipAttributes = parseDetailsObject.relationshipAttributes;
+                            if (attributesDetails) {
+                                that.ui.attributeDetails.removeClass('hide');
+                                that.action.indexOf("Classification") === -1 ? that.ui.panelAttrHeading.html("Technical properties ") : that.ui.panelAttrHeading.html("Properties ");
+                                var attrTable = that.createTableWithValues(attributesDetails);
+                                that.ui.attributeCard.html(
+                                    attrTable);
+                            }
+                            if (!_.isEmpty(customAttr)) {
+                                that.ui.customAttributeDetails.removeClass('hide');
+                                var customAttrTable = that.createTableWithValues(customAttr);
+                                that.ui.customAttrCard.html(
+                                    customAttrTable);
+                            }
+                            if (!_.isEmpty(labelsDetails)) {
+                                this.ui.labelsDetailsTable.removeClass('hide');
+                                var labelsTable = '';
+                                _.each(labelsDetails, function(value, key, list) {
+                                    labelsTable += "<label class='label badge-default'>" + value + "</label>";
+                                });
+                                that.ui.labelCard.html(
+                                    labelsTable);
+                            }
+                            if (!_.isEmpty(relationshipAttributes)) {
+                                that.ui.relationShipAttributeDetails.removeClass('hide');
+                                var relationshipAttrTable = that.createTableWithValues(relationshipAttributes);
+                                that.ui.relationshipAttrCard.html(
+                                    relationshipAttrTable);
+                            }
+                            if (!attributesDetails && !customAttr && !labelsDetails && !relationshipAttributes) {
+                                that.ui.detailsAttribute.removeClass('hide');
+                                var attrDetailTable = that.createTableWithValues(parseDetailsObject);
+                                that.ui.attributeDetailCard.html(
+                                    attrDetailTable);
+                            }
+                        } else {
+                            that.noDetailsShow();
+                        }
                     } catch (err) {
                         if (_.isArray(parseDetailsObject)) {
                             var name = _.escape(parseDetailsObject[0]);
                         }
+                        that.updateName(name);
+                        that.noDetailsShow();
                     }
-                    var name = ((name ? name : this.entityName));
-                    this.ui.name.text(name);
-                    if (parseDetailsObject) {
-                        this.ui.auditHeaderValue.html('<th>Key</th><th>New Value</th>');
-                        var value = parseDetailsObject.attributes || parseDetailsObject;
-                        table = CommonViewFunction.propertyTable({ scope: this, valueObject: value, attributeDefs: this.attributeDefs });
-                        if (table.length) {
-                            this.ui.noData.hide();
-                            this.ui.tableAudit.show();
-                            this.ui.auditValue.html(table);
-                        } else {
-                            this.ui.noData.show();
-                            this.ui.tableAudit.hide();
-                        }
-                    } else {
-                        this.ui.noData.show();
-                    }
+
                 } else if (detailObj == "Deleted entity") {
-                    this.ui.name.text(this.entityName);
+                    that.updateName(this.entityName);
                 }
-            },
+            }
         });
     return CreateAuditTableLayoutView;
 });
\ No newline at end of file