Do not remove analysis, camshaft takes care of source root nodes now
This commit is contained in:
parent
ff147ca3bf
commit
d5c5c7bdbb
@ -104,18 +104,8 @@ 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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
if (!shouldAdaptLayers(requestMapConfig)) {
|
||||
debug('mapconfig output', JSON.stringify(requestMapConfig, null, 4));
|
||||
return callback(null, requestMapConfig);
|
||||
|
Loading…
Reference in New Issue
Block a user