Do not remove analysis, camshaft takes care of source root nodes now

This commit is contained in:
Raul Ochoa 2016-03-21 18:02:19 +01:00
parent ff147ca3bf
commit d5c5c7bdbb

View File

@ -104,17 +104,7 @@ AnalysisMapConfigAdapter.prototype.getLayers = function(analysisConfiguration, r
debug('mapconfig input', JSON.stringify(requestMapConfig, null, 4));
var analysisToRemove = {};
if (Array.isArray(requestMapConfig.analyses)) {
requestMapConfig = replaceSourceRootQueries(requestMapConfig, analysisToRemove);
requestMapConfig = appendFiltersToNodes(requestMapConfig, dataviewsFiltersBySourceId);
if (Object.keys(dataviews).length === 0) {
requestMapConfig.analyses = requestMapConfig.analyses.filter(function(analysis, index) {
return !analysisToRemove.hasOwnProperty(index);
});
}
}
requestMapConfig = appendFiltersToNodes(requestMapConfig, dataviewsFiltersBySourceId);
if (!shouldAdaptLayers(requestMapConfig)) {
debug('mapconfig output', JSON.stringify(requestMapConfig, null, 4));