feat(catalog-backend-module-github): restore previous sequential processing of connection nodes
Keeping this change as minimal as possible for this first phase, will restore the parallel processing in a later iteration. Signed-off-by: MT Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
@@ -836,18 +836,17 @@ export async function queryWithPaging<
|
||||
throw new Error(`Found no match for ${JSON.stringify(variables)}`);
|
||||
}
|
||||
|
||||
const transformed = await Promise.all(
|
||||
conn.nodes.map(async node => {
|
||||
if (filter && !(await filter(node))) {
|
||||
return undefined;
|
||||
}
|
||||
return transformer(node, { client, query, org });
|
||||
}),
|
||||
);
|
||||
|
||||
for (const node of transformed) {
|
||||
if (node) {
|
||||
result.push(node);
|
||||
for (const node of conn.nodes) {
|
||||
if (filter && !(await filter(node))) {
|
||||
continue;
|
||||
}
|
||||
const transformedNode = await transformer(node, {
|
||||
client,
|
||||
query,
|
||||
org,
|
||||
});
|
||||
if (transformedNode) {
|
||||
result.push(transformedNode);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user