Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ export async function getRemoteQueryIndex(
const resultIndexArtifactId = getArtifactIDfromName('result-index', workflowUri, artifactList);
const resultIndexItems = await getResultIndexItems(credentials, owner, repoName, resultIndexArtifactId);

const allResultsArtifactId = getArtifactIDfromName('all-results', workflowUri, artifactList);

const items = resultIndexItems.map(item => {
const artifactId = getArtifactIDfromName(item.id, workflowUri, artifactList);

Expand All @@ -50,9 +48,8 @@ export async function getRemoteQueryIndex(
});

return {
allResultsArtifactId,
artifactsUrlPath,
items,
items
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ export class RemoteQueriesInterfaceManager {
totalResultCount: totalResultCount,
executionTimestamp: this.formatDate(query.executionStartTime),
executionDuration: executionDuration,
downloadLink: queryResult.allResultsDownloadLink,
analysisSummaries: analysisSummaries
};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,7 @@ export class RemoteQueriesManager {

return {
executionEndTime,
analysisSummaries,
allResultsDownloadLink: {
id: resultIndex.allResultsArtifactId.toString(),
urlPath: `${resultIndex.artifactsUrlPath}/${resultIndex.allResultsArtifactId}`
}
analysisSummaries
};
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export interface RemoteQueryResultIndex {
artifactsUrlPath: string;
allResultsArtifactId: number;
items: RemoteQueryResultIndexItem[];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { DownloadLink } from './download-link';
export interface RemoteQueryResult {
executionEndTime: Date;
analysisSummaries: AnalysisSummary[];
allResultsDownloadLink: DownloadLink;
}

export interface AnalysisSummary {
Expand Down
4 changes: 0 additions & 4 deletions extensions/ql-vscode/src/remote-queries/sample-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ export const sampleRemoteQuery: RemoteQuery = {

export const sampleRemoteQueryResult: RemoteQueryResult = {
executionEndTime: new Date('2022-01-06T17:04:37.026Z'),
allResultsDownloadLink: {
id: '137697018',
urlPath: '/repos/big-corp/controller-repo/actions/artifacts/137697018'
},
analysisSummaries: [
{
nwo: 'big-corp/repo1',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export interface RemoteQueryResult {
totalResultCount: number;
executionTimestamp: string;
executionDuration: string;
downloadLink: DownloadLink;
analysisSummaries: AnalysisSummary[]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ const emptyQueryResult: RemoteQueryResult = {
totalResultCount: 0,
executionTimestamp: '',
executionDuration: '',
downloadLink: {
id: '',
urlPath: '',
},
analysisSummaries: []
};

Expand Down