[HCS Analysis] FilterObjects module and objects filtering - batch mode fix
@@ -680,9 +680,11 @@ function findInitialModule (initialModules = [], executionModules, index) {
* @returns {AnalysisModule[]}
*/
export function getPipelineModules (modules) {
- return modules.reduce(
+ return appendRequiredModules(
+ modules.reduce(
(analysisModules, module) => ([...analysisModules, ...extractModules(module)]),
[]
+ )
);
}
@@ -721,7 +723,7 @@ export default async function runAnalysisPipeline (
modules: allModules,
metadata
} = appendExtraOutputModules(modules, inputs[0], objectsOutput);
- const analysis = appendRequiredModules(getPipelineModules(allModules));
+ const analysis = getPipelineModules(allModules);
if (analysis.length === 0) {
return {results: [], cache};
}
