Move query metadata retrieval before pack bundling

This commit is contained in:
Koen Vlaswinkel
2024-02-28 11:15:00 +01:00
parent ab36153511
commit eb71df84a7

View File

@@ -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 =