From 91d7d9131710b555eab3366964f0d9a36596f5ad Mon Sep 17 00:00:00 2001 From: MT Lewis Date: Tue, 19 May 2026 13:50:00 +0100 Subject: [PATCH] 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 --- .../src/lib/github.ts | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/plugins/catalog-backend-module-github/src/lib/github.ts b/plugins/catalog-backend-module-github/src/lib/github.ts index d7a0543d00..b37e8fe8fe 100644 --- a/plugins/catalog-backend-module-github/src/lib/github.ts +++ b/plugins/catalog-backend-module-github/src/lib/github.ts @@ -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); } }