Commit b2bee2cc by Kalyani

ATLAS-1776: Include historical entities in UI : A query is made and cancelled…

ATLAS-1776: Include historical entities in UI : A query is made and cancelled every time the check box is checked/unchecked showing 'Invalid expression:null' notification / ATLAS-1777: UI : Include historical entities check box is not shown when searching a type with all DELETED entities hence no entities are retrieved by search
parent 2fd87e2a
......@@ -224,11 +224,10 @@
.backgrid-paginator ul > .disabled > span,
.backgrid-paginator ul > .disabled > a {
&:hover {
&:hover {
cursor: not-allowed;
background-color: #7ed3be !important;
}
}
.popover {
......@@ -256,7 +255,13 @@
word-break: break-all;
}
.advancedInfo{
.checkbox-inline,
.radio-inline {
padding-left: 0px;
font-weight: bold;
}
.advancedInfo {
margin-left: 5px;
cursor: pointer;
}
\ No newline at end of file
}
......@@ -25,9 +25,10 @@
<a href="javascript:void(0)" class="inputAssignTag multiSelectTag assignTag btnAssign" style="display:none" data-id="addAssignTag"><i class="fa fa-plus"></i> Assign Tag</a>
</div>
<div class="searchTable">
<div style="display: none;margin-left: 20px" data-id="checkDeletedEntity">
<label class="checkbox">
<input type="checkbox" class="input" name="queryType" value="text" name="check" value="1" />Include historical entities</label>
<div data-id="containerCheckBox" style="display: none;">
<input type="checkbox" id="inputLabel" class="checkbox-inline" name="queryType" value="text" name="check" value="1" data-id="checkDeletedEntity" />
<label class="checkbox-inline" for="inputLabel">
<b>Include historical entities</b></label>
</div>
<span style="display: none;" class="labelShowRecord pull-left" data-id="pageRecordText"></span>
<div data-id="paginationDiv" style="display:none">
......
......@@ -60,7 +60,8 @@ define(['require',
addAssignTag: "[data-id='addAssignTag']",
editEntityButton: "[data-id='editEntityButton']",
createEntity: "[data-id='createEntity']",
checkDeletedEntity: "[data-id='checkDeletedEntity']"
checkDeletedEntity: "[data-id='checkDeletedEntity']",
containerCheckBox: "[data-id='containerCheckBox']"
},
templateHelpers: function() {
return {
......@@ -189,15 +190,17 @@ define(['require',
this.listenTo(this.searchCollection, "error", function(model, response) {
this.$('.fontLoader').hide();
this.$('.tableOverlay').hide();
var responseJSON = response ? response.responseJSON : response;
if (response && responseJSON && (responseJSON.errorMessage || responseJSON.message || responseJSON.error)) {
var responseJSON = response && response.responseJSON ? response.responseJSON : null;
if (responseJSON && (responseJSON.errorMessage || responseJSON.message || responseJSON.error)) {
Utils.notifyError({
content: responseJSON.errorMessage || responseJSON.message || responseJSON.error
});
} else {
Utils.notifyError({
content: "Invalid Expression : " + model.queryParams.query
});
if (response.statusText !== "abort") {
Utils.notifyError({
content: "Invalid Expression : " + model.queryParams.query
});
}
}
}, this);
this.listenTo(this.searchVent, "search:refresh", function(model, response) {
......@@ -317,10 +320,10 @@ define(['require',
that.REntityTableLayoutView.show(new TableLayout(_.extend({}, that.commonTableOptions, {
columns: columns
})));
if (that.searchCollection.models.length && that.value.searchType !== "dsl") {
that.ui.checkDeletedEntity.show();
if (that.value.searchType !== "dsl") {
that.ui.containerCheckBox.show();
} else {
that.ui.checkDeletedEntity.hide();
that.ui.containerCheckBox.hide();
}
that.ui.paginationDiv.show();
that.$(".ellipsis .inputAssignTag").hide();
......
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