Skip to content

Commit eb71df8

Browse files
committed
Move query metadata retrieval before pack bundling
1 parent ab36153 commit eb71df8

1 file changed

Lines changed: 15 additions & 15 deletions

File tree

extensions/ql-vscode/src/variant-analysis/variant-analysis-manager.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -309,21 +309,6 @@ export class VariantAnalysisManager
309309
message: "Getting credentials",
310310
});
311311

312-
const {
313-
actionBranch,
314-
base64Pack,
315-
repoSelection,
316-
controllerRepo,
317-
queryStartTime,
318-
} = await prepareRemoteQueryRun(
319-
this.cliServer,
320-
this.app.credentials,
321-
qlPackDetails,
322-
progress,
323-
token,
324-
this.dbManager,
325-
);
326-
327312
// For now we get the metadata for the first query in the pack.
328313
// and use that in the submission and query history. In the future
329314
// we'll need to consider how to handle having multiple queries.
@@ -342,6 +327,21 @@ export class VariantAnalysisManager
342327
);
343328
}
344329

330+
const {
331+
actionBranch,
332+
base64Pack,
333+
repoSelection,
334+
controllerRepo,
335+
queryStartTime,
336+
} = await prepareRemoteQueryRun(
337+
this.cliServer,
338+
this.app.credentials,
339+
qlPackDetails,
340+
progress,
341+
token,
342+
this.dbManager,
343+
);
344+
345345
const queryText = await readFile(firstQueryFile, "utf8");
346346

347347
const queries: VariantAnalysisQueries | undefined =

0 commit comments

Comments
 (0)