Commit 2cb36b90 by kevalbhatt Committed by nixonrodrigues

ATLAS-3155 : UI - IE-11 - Name entry not clickable

parent 04bd64be
...@@ -472,7 +472,7 @@ button:focus { ...@@ -472,7 +472,7 @@ button:focus {
border-radius: 12px; border-radius: 12px;
border-color: #cbcbcb; border-color: #cbcbcb;
position: relative; position: relative;
padding: 0px 10px; padding: 18px 10px 0px 10px;
margin-top: 25px; margin-top: 25px;
span.required:after { span.required:after {
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
{{/if}} {{/if}}
</div> </div>
</div> </div>
<div class="container-fluid gray-bg"> <div class="container-fluid">
{{#if isTermView}} {{#if isTermView}}
<div class="tab-content"> <div class="tab-content">
<div id="tab-entities" role="entities" class="tab-pane active animated fadeIn"> <div id="tab-entities" role="entities" class="tab-pane active animated fadeIn">
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<div class="ellipsis" style="display: none;"><span class="searchResult" style=" font-size: 16px;"></span> <div class="ellipsis" style="display: none;"><span class="searchResult" style=" font-size: 16px;"></span>
</div> </div>
<div class="searchTable"> <div class="searchTable">
<div class="row well" style="padding-top: 0px;"> <div class="{{#unless isGlossaryView}}row well{{/unless}}" style="padding-top: 0px;">
<div class="row form-group pagination-box filter-box" style="display: none;"> <div class="row form-group pagination-box filter-box" style="display: none;">
<div class="col-sm-4"> <div class="col-sm-4">
<span class="labelShowRecord pull-left" data-id="pageRecordText"> </span> <span class="labelShowRecord pull-left" data-id="pageRecordText"> </span>
......
...@@ -547,11 +547,34 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum ...@@ -547,11 +547,34 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
urlObj = options.value, urlObj = options.value,
formatDate = options.formatDate, formatDate = options.formatDate,
spliter = 1, spliter = 1,
apiObj = options.apiObj; //if apiObj then create object for API call else for QueryBuilder. apiObj = options.apiObj,
if (urlObj && urlObj.length) { mapUiOperatorToAPI = function(oper) {
attrObj = createObject(urlObj); if (oper == "=") {
return "eq";
function createObject(urlObj) { } else if (oper == "!=") {
return "neq";
} else if (oper == "<") {
return "lt";
} else if (oper == "<=") {
return "lte";
} else if (oper == ">") {
return "gt";
} else if (oper == ">=") {
return "gte";
} else if (oper == "begins_with") {
return "startsWith";
} else if (oper == "ends_with") {
return "endsWith";
} else if (oper == "contains") {
return "contains";
} else if (oper == "not_null") {
return "notNull";
} else if (oper == "is_null") {
return "isNull";
}
return oper;
},
createObject = function(urlObj) {
var finalObj = {}; var finalObj = {};
finalObj['condition'] = /^AND\(/.test(urlObj) ? "AND" : "OR"; finalObj['condition'] = /^AND\(/.test(urlObj) ? "AND" : "OR";
urlObj = finalObj.condition === "AND" ? urlObj.substr(4).slice(0, -1) : urlObj.substr(3).slice(0, -1); urlObj = finalObj.condition === "AND" ? urlObj.substr(4).slice(0, -1) : urlObj.substr(3).slice(0, -1);
...@@ -581,37 +604,13 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum ...@@ -581,37 +604,13 @@ define(['require', 'utils/Utils', 'modules/Modal', 'utils/Messages', 'utils/Enum
}); });
return finalObj; return finalObj;
} }
//if apiObj then create object for API call else for QueryBuilder.
if (urlObj && urlObj.length) {
attrObj = createObject(urlObj);
} else { } else {
return null; return null;
} }
return attrObj; return attrObj;
function mapUiOperatorToAPI(oper) {
if (oper == "=") {
return "eq";
} else if (oper == "!=") {
return "neq";
} else if (oper == "<") {
return "lt";
} else if (oper == "<=") {
return "lte";
} else if (oper == ">") {
return "gt";
} else if (oper == ">=") {
return "gte";
} else if (oper == "begins_with") {
return "startsWith";
} else if (oper == "ends_with") {
return "endsWith";
} else if (oper == "contains") {
return "contains";
} else if (oper == "not_null") {
return "notNull";
} else if (oper == "is_null") {
return "isNull";
}
return oper;
}
}, },
generateAPIObj: function(url) { generateAPIObj: function(url) {
if (url && url.length) { if (url && url.length) {
......
...@@ -137,7 +137,7 @@ define(['require', ...@@ -137,7 +137,7 @@ define(['require',
'<div class="col-md-10"><input class="select2-search__field" placeholder="' + placeholder + '" type="search"' + '<div class="col-md-10"><input class="select2-search__field" placeholder="' + placeholder + '" type="search"' +
' tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off"' + ' tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off"' +
' spellcheck="false" role="textbox" /></div>' + ' spellcheck="false" role="textbox" /></div>' +
'<div class="col-md-2"><button type="button" style="margin-left: -20px" class="btn btn-action btn-sm filter " title="Entity Attribute Filter"><i class="fa fa-filter"></i></button></div>' + '<div class="col-md-2"><button type="button" style="margin-left: -20px" class="btn btn-action btn-sm filter " title="Type Filter"><i class="fa fa-filter"></i></button></div>' +
'</div></span>' '</div></span>'
); );
if (!this.options.options.getFilterBox) { if (!this.options.options.getFilterBox) {
......
...@@ -355,7 +355,6 @@ define(['require', ...@@ -355,7 +355,6 @@ define(['require',
showLoader: that.showLoader.bind(that), showLoader: that.showLoader.bind(that),
hideLoader: that.hideLoader.bind(that), hideLoader: that.hideLoader.bind(that),
tagName: tagName, tagName: tagName,
guid: that.id,
callback: function() { callback: function() {
that.fetchCollection(); that.fetchCollection();
} }
......
...@@ -535,8 +535,11 @@ define(['require', ...@@ -535,8 +535,11 @@ define(['require',
.attr('fill', 'url(#img_' + node.id + ')') .attr('fill', 'url(#img_' + node.id + ')')
.attr('r', '24px') .attr('r', '24px')
.attr('data-stroke', node.id) .attr('data-stroke', node.id)
.attr('stroke-width', "2px")
.attr("class", "nodeImage " + (currentNode ? "currentNode" : (node.isProcess ? "process" : "node"))); .attr("class", "nodeImage " + (currentNode ? "currentNode" : (node.isProcess ? "process" : "node")));
if (currentNode) {
shapeSvg.attr("stroke", "#fb4200")
}
parent.insert("defs") parent.insert("defs")
.append("pattern") .append("pattern")
.attr("x", "0%") .attr("x", "0%")
...@@ -1004,6 +1007,7 @@ define(['require', ...@@ -1004,6 +1007,7 @@ define(['require',
}; };
img.src = url; img.src = url;
}, 0) }, 0)
}, },
toggleLoader: function(element) { toggleLoader: function(element) {
......
...@@ -62,6 +62,7 @@ define(['require', ...@@ -62,6 +62,7 @@ define(['require',
events["keyup " + this.ui.searchInput] = function(e) { events["keyup " + this.ui.searchInput] = function(e) {
var code = e.which; var code = e.which;
this.value.query = e.currentTarget.value; this.value.query = e.currentTarget.value;
this.query[this.type].query = this.value.query;
if (code == 13) { if (code == 13) {
that.findSearchResult(); that.findSearchResult();
} }
...@@ -253,8 +254,9 @@ define(['require', ...@@ -253,8 +254,9 @@ define(['require',
}); });
}, },
checkForButtonVisiblity: function(e, options) { checkForButtonVisiblity: function(e, options) {
var that = this; var that = this,
if (this.type == "basic" && e && e.currentTarget) { isBasicSearch = (this.type == "basic");
if (e && e.currentTarget) {
var $el = $(e.currentTarget), var $el = $(e.currentTarget),
isTagEl = $el.data('id') == "tagLOV", isTagEl = $el.data('id') == "tagLOV",
isTermEl = $el.data('id') == "termLOV", isTermEl = $el.data('id') == "termLOV",
...@@ -263,11 +265,13 @@ define(['require', ...@@ -263,11 +265,13 @@ define(['require',
if (e.type == "change" && select2Data) { if (e.type == "change" && select2Data) {
var value = (_.isEmpty(select2Data) ? select2Data : _.first(select2Data).id), var value = (_.isEmpty(select2Data) ? select2Data : _.first(select2Data).id),
key = "tag", key = "tag",
filterType = 'tagFilters', filterType = isBasicSearch ? 'tagFilters' : null,
value = value && value.length ? value : null; value = value && value.length ? value : null;
if (!isTagEl) { if (!isTagEl) {
key = (isTermEl ? "term" : "type"); key = (isTermEl ? "term" : "type");
filterType = (isTypeEl ? "entityFilters" : null); if (isBasicSearch) {
filterType = (isTypeEl ? "entityFilters" : null);
}
} }
if (this.value) { if (this.value) {
//On Change handle //On Change handle
...@@ -280,7 +284,7 @@ define(['require', ...@@ -280,7 +284,7 @@ define(['require',
this.value.pageOffset = 0; this.value.pageOffset = 0;
} }
_.extend(this.query[this.type], temp); _.extend(this.query[this.type], temp);
} else { } else if (isBasicSearch) {
// Initial loading handle. // Initial loading handle.
if (filterType) { if (filterType) {
var filterObj = this.searchTableFilters[filterType]; var filterObj = this.searchTableFilters[filterType];
...@@ -303,10 +307,10 @@ define(['require', ...@@ -303,10 +307,10 @@ define(['require',
} }
} }
} }
if (filterType) { if (isBasicSearch && filterType) {
this.makeFilterButtonActive(filterType); this.makeFilterButtonActive(filterType);
} }
} else { } else if (isBasicSearch) {
this.ui.tagAttrFilter.prop('disabled', true); this.ui.tagAttrFilter.prop('disabled', true);
this.ui.typeAttrFilter.prop('disabled', true); this.ui.typeAttrFilter.prop('disabled', true);
} }
...@@ -407,6 +411,17 @@ define(['require', ...@@ -407,6 +411,17 @@ define(['require',
filtertype = isTag ? 'tagFilters' : 'entityFilters', filtertype = isTag ? 'tagFilters' : 'entityFilters',
queryBuilderRef = this.attrModal.RQueryBuilder.currentView.ui.builder, queryBuilderRef = this.attrModal.RQueryBuilder.currentView.ui.builder,
col = []; col = [];
function getIdFromRuleObject(rule) {
_.map(rule.rules, function(obj, key) {
if (_.has(obj, 'condition')) {
return getIdFromRuleObject(obj);
} else {
return col.push(obj.id)
}
});
return col;
}
if (queryBuilderRef.data('queryBuilder')) { if (queryBuilderRef.data('queryBuilder')) {
var rule = queryBuilderRef.queryBuilder('getRules'); var rule = queryBuilderRef.queryBuilder('getRules');
} }
...@@ -424,17 +439,6 @@ define(['require', ...@@ -424,17 +439,6 @@ define(['require',
if ($(e.currentTarget).hasClass('search')) { if ($(e.currentTarget).hasClass('search')) {
this.findSearchResult(); this.findSearchResult();
} }
function getIdFromRuleObject(rule) {
_.map(rule.rules, function(obj, key) {
if (_.has(obj, 'condition')) {
return getIdFromRuleObject(obj);
} else {
return col.push(obj.id)
}
});
return col;
}
} }
}, },
manualRender: function(paramObj) { manualRender: function(paramObj) {
......
...@@ -76,6 +76,7 @@ define(['require', ...@@ -76,6 +76,7 @@ define(['require',
entityCreate: Globals.entityCreate, entityCreate: Globals.entityCreate,
searchType: this.searchType, searchType: this.searchType,
fromView: this.fromView, fromView: this.fromView,
isGlossaryView: this.fromView == "glossary",
isSearchTab: Utils.getUrlState.isSearchTab() isSearchTab: Utils.getUrlState.isSearchTab()
}; };
}, },
......
...@@ -61,7 +61,7 @@ define(['require', ...@@ -61,7 +61,7 @@ define(['require',
}; };
events["click " + this.ui.propagatedFromClick] = function(e) { events["click " + this.ui.propagatedFromClick] = function(e) {
Utils.setUrl({ Utils.setUrl({
url: '#!/detailPage/' + e.currentTarget.dataset.guid, url: '#!/detailPage/' + $(e.currentTarget).data("guid"),
mergeBrowserUrl: false, mergeBrowserUrl: false,
trigger: true trigger: true
}); });
...@@ -84,7 +84,6 @@ define(['require', ...@@ -84,7 +84,6 @@ define(['require',
collection: this.tagCollection, collection: this.tagCollection,
includeFilter: false, includeFilter: false,
includePagination: true, includePagination: true,
includePageSize: false,
includeFooterRecords: true, includeFooterRecords: true,
includePageSize: true, includePageSize: true,
includeGotoPage: true, includeGotoPage: true,
......
...@@ -41,6 +41,7 @@ import org.springframework.security.web.authentication.www.BasicAuthenticationFi ...@@ -41,6 +41,7 @@ import org.springframework.security.web.authentication.www.BasicAuthenticationFi
import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter; import org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter;
import org.springframework.security.web.util.matcher.RequestHeaderRequestMatcher; import org.springframework.security.web.util.matcher.RequestHeaderRequestMatcher;
import org.springframework.security.web.util.matcher.RequestMatcher; import org.springframework.security.web.util.matcher.RequestMatcher;
import org.springframework.security.web.header.writers.StaticHeadersWriter;
import javax.inject.Inject; import javax.inject.Inject;
import java.util.LinkedHashMap; import java.util.LinkedHashMap;
...@@ -126,7 +127,10 @@ public class AtlasSecurityConfig extends WebSecurityConfigurerAdapter { ...@@ -126,7 +127,10 @@ public class AtlasSecurityConfig extends WebSecurityConfigurerAdapter {
httpSecurity httpSecurity
.authorizeRequests().anyRequest().authenticated() .authorizeRequests().anyRequest().authenticated()
.and() .and()
.headers().disable() .headers()
.addHeaderWriter(new StaticHeadersWriter("Content-Security-Policy","script-src 'self' 'unsafe-inline' 'unsafe-eval'"))
.addHeaderWriter(new StaticHeadersWriter("Server","Apache Atlas"))
.and()
.servletApi() .servletApi()
.and() .and()
.csrf().disable() .csrf().disable()
......
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