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 @@ ...@@ -224,11 +224,10 @@
.backgrid-paginator ul > .disabled > span, .backgrid-paginator ul > .disabled > span,
.backgrid-paginator ul > .disabled > a { .backgrid-paginator ul > .disabled > a {
&:hover { &:hover {
cursor: not-allowed; cursor: not-allowed;
background-color: #7ed3be !important; background-color: #7ed3be !important;
} }
} }
.popover { .popover {
...@@ -256,7 +255,13 @@ ...@@ -256,7 +255,13 @@
word-break: break-all; word-break: break-all;
} }
.advancedInfo{ .checkbox-inline,
.radio-inline {
padding-left: 0px;
font-weight: bold;
}
.advancedInfo {
margin-left: 5px; margin-left: 5px;
cursor: pointer; cursor: pointer;
} }
\ No newline at end of file
...@@ -25,9 +25,10 @@ ...@@ -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> <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>
<div class="searchTable"> <div class="searchTable">
<div style="display: none;margin-left: 20px" data-id="checkDeletedEntity"> <div data-id="containerCheckBox" style="display: none;">
<label class="checkbox"> <input type="checkbox" id="inputLabel" class="checkbox-inline" name="queryType" value="text" name="check" value="1" data-id="checkDeletedEntity" />
<input type="checkbox" class="input" name="queryType" value="text" name="check" value="1" />Include historical entities</label> <label class="checkbox-inline" for="inputLabel">
<b>Include historical entities</b></label>
</div> </div>
<span style="display: none;" class="labelShowRecord pull-left" data-id="pageRecordText"></span> <span style="display: none;" class="labelShowRecord pull-left" data-id="pageRecordText"></span>
<div data-id="paginationDiv" style="display:none"> <div data-id="paginationDiv" style="display:none">
......
...@@ -60,7 +60,8 @@ define(['require', ...@@ -60,7 +60,8 @@ define(['require',
addAssignTag: "[data-id='addAssignTag']", addAssignTag: "[data-id='addAssignTag']",
editEntityButton: "[data-id='editEntityButton']", editEntityButton: "[data-id='editEntityButton']",
createEntity: "[data-id='createEntity']", createEntity: "[data-id='createEntity']",
checkDeletedEntity: "[data-id='checkDeletedEntity']" checkDeletedEntity: "[data-id='checkDeletedEntity']",
containerCheckBox: "[data-id='containerCheckBox']"
}, },
templateHelpers: function() { templateHelpers: function() {
return { return {
...@@ -189,15 +190,17 @@ define(['require', ...@@ -189,15 +190,17 @@ define(['require',
this.listenTo(this.searchCollection, "error", function(model, response) { this.listenTo(this.searchCollection, "error", function(model, response) {
this.$('.fontLoader').hide(); this.$('.fontLoader').hide();
this.$('.tableOverlay').hide(); this.$('.tableOverlay').hide();
var responseJSON = response ? response.responseJSON : response; var responseJSON = response && response.responseJSON ? response.responseJSON : null;
if (response && responseJSON && (responseJSON.errorMessage || responseJSON.message || responseJSON.error)) { if (responseJSON && (responseJSON.errorMessage || responseJSON.message || responseJSON.error)) {
Utils.notifyError({ Utils.notifyError({
content: responseJSON.errorMessage || responseJSON.message || responseJSON.error content: responseJSON.errorMessage || responseJSON.message || responseJSON.error
}); });
} else { } else {
Utils.notifyError({ if (response.statusText !== "abort") {
content: "Invalid Expression : " + model.queryParams.query Utils.notifyError({
}); content: "Invalid Expression : " + model.queryParams.query
});
}
} }
}, this); }, this);
this.listenTo(this.searchVent, "search:refresh", function(model, response) { this.listenTo(this.searchVent, "search:refresh", function(model, response) {
...@@ -317,10 +320,10 @@ define(['require', ...@@ -317,10 +320,10 @@ define(['require',
that.REntityTableLayoutView.show(new TableLayout(_.extend({}, that.commonTableOptions, { that.REntityTableLayoutView.show(new TableLayout(_.extend({}, that.commonTableOptions, {
columns: columns columns: columns
}))); })));
if (that.searchCollection.models.length && that.value.searchType !== "dsl") { if (that.value.searchType !== "dsl") {
that.ui.checkDeletedEntity.show(); that.ui.containerCheckBox.show();
} else { } else {
that.ui.checkDeletedEntity.hide(); that.ui.containerCheckBox.hide();
} }
that.ui.paginationDiv.show(); that.ui.paginationDiv.show();
that.$(".ellipsis .inputAssignTag").hide(); 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