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:
MT Lewis
2026-05-19 13:50:00 +01:00
parent 340977de5e
commit 91d7d91317
@@ -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);
}
}