lib/facete/facet_value_service/FacetValueService.js
Function prepareTableService
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
prepareTableService: function(path, excludeSelfConstraints) {
var concept = FacetUtils.createConceptResources(this.facetConfig, path, excludeSelfConstraints);
//console.log('FacetValueConcept: ' + concept + ' config: ', this.facetConfig);
Function result
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var result = ServiceUtils.fetchCountRows(this.sparqlService, concept.getElement(), this.rowLimit).then(function(countInfo) {
var canUseCounts = countInfo.hasMoreItems === false;
// Check if we can fetch all data at once
// If not, we can switch to paginated mode