From eb71df84a7756718d197f8c703a4adb382d93b48 Mon Sep 17 00:00:00 2001 From: Koen Vlaswinkel Date: Wed, 28 Feb 2024 11:15:00 +0100 Subject: [PATCH] Move query metadata retrieval before pack bundling --- .../variant-analysis-manager.ts | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts b/extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts index 2e97b92e4..66abb7956 100644 --- a/extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts +++ b/extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts @@ -309,21 +309,6 @@ export class VariantAnalysisManager message: "Getting credentials", }); - const { - actionBranch, - base64Pack, - repoSelection, - controllerRepo, - queryStartTime, - } = await prepareRemoteQueryRun( - this.cliServer, - this.app.credentials, - qlPackDetails, - progress, - token, - this.dbManager, - ); - // For now we get the metadata for the first query in the pack. // and use that in the submission and query history. In the future // we'll need to consider how to handle having multiple queries. @@ -342,6 +327,21 @@ export class VariantAnalysisManager ); } + const { + actionBranch, + base64Pack, + repoSelection, + controllerRepo, + queryStartTime, + } = await prepareRemoteQueryRun( + this.cliServer, + this.app.credentials, + qlPackDetails, + progress, + token, + this.dbManager, + ); + const queryText = await readFile(firstQueryFile, "utf8"); const queries: VariantAnalysisQueries | undefined =