Do not remove analysis, camshaft takes care of source root nodes now
This commit is contained in:
parent
ff147ca3bf
commit
d5c5c7bdbb
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user