Skip to content

Commit 181b5d6

Browse files
committed
Remove query name from query ID for MRVA queries
1 parent 24652a8 commit 181b5d6

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

extensions/ql-vscode/src/remote-queries/remote-queries-manager.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export class RemoteQueriesManager extends DisposableObject {
127127

128128
if (querySubmission?.query) {
129129
const query = querySubmission.query;
130-
const queryId = this.createQueryId(query.queryName);
130+
const queryId = this.createQueryId();
131131

132132
await this.prepareStorageDirectory(queryId);
133133
await this.storeJsonFile(queryId, 'query.json', query);
@@ -264,11 +264,10 @@ export class RemoteQueriesManager extends DisposableObject {
264264

265265
/**
266266
* Generates a unique id for this query, suitable for determining the storage location for the downloaded query artifacts.
267-
* @param queryName
268-
* @returns
267+
* @returns A unique id for this query.
269268
*/
270-
private createQueryId(queryName: string): string {
271-
return `${queryName}-${nanoid()}`;
269+
private createQueryId(): string {
270+
return nanoid();
272271
}
273272

274273
/**

0 commit comments

Comments
 (0)