Remove use of all-results artifact (#1120)
This commit is contained in:
Родитель
d9f33d34e3
Коммит
0ef6b45b19
|
@ -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);
|
||||
|
||||
|
@ -50,9 +48,8 @@ export async function getRemoteQueryIndex(
|
|||
});
|
||||
|
||||
return {
|
||||
allResultsArtifactId,
|
||||
artifactsUrlPath,
|
||||
items,
|
||||
items
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -80,7 +80,6 @@ export class RemoteQueriesInterfaceManager {
|
|||
totalResultCount: totalResultCount,
|
||||
executionTimestamp: this.formatDate(query.executionStartTime),
|
||||
executionDuration: executionDuration,
|
||||
downloadLink: queryResult.allResultsDownloadLink,
|
||||
analysisSummaries: analysisSummaries
|
||||
};
|
||||
}
|
||||
|
|
|
@ -123,11 +123,7 @@ export class RemoteQueriesManager {
|
|||
|
||||
return {
|
||||
executionEndTime,
|
||||
analysisSummaries,
|
||||
allResultsDownloadLink: {
|
||||
id: resultIndex.allResultsArtifactId.toString(),
|
||||
urlPath: `${resultIndex.artifactsUrlPath}/${resultIndex.allResultsArtifactId}`
|
||||
}
|
||||
analysisSummaries
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
export interface RemoteQueryResultIndex {
|
||||
artifactsUrlPath: string;
|
||||
allResultsArtifactId: number;
|
||||
items: RemoteQueryResultIndexItem[];
|
||||
}
|
||||
|
||||
|
|
|
@ -3,7 +3,6 @@ import { DownloadLink } from './download-link';
|
|||
export interface RemoteQueryResult {
|
||||
executionEndTime: Date;
|
||||
analysisSummaries: AnalysisSummary[];
|
||||
allResultsDownloadLink: DownloadLink;
|
||||
}
|
||||
|
||||
export interface AnalysisSummary {
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -10,7 +10,6 @@ export interface RemoteQueryResult {
|
|||
totalResultCount: number;
|
||||
executionTimestamp: string;
|
||||
executionDuration: string;
|
||||
downloadLink: DownloadLink;
|
||||
analysisSummaries: AnalysisSummary[]
|
||||
}
|
||||
|
||||
|
|
|
@ -30,10 +30,6 @@ const emptyQueryResult: RemoteQueryResult = {
|
|||
totalResultCount: 0,
|
||||
executionTimestamp: '',
|
||||
executionDuration: '',
|
||||
downloadLink: {
|
||||
id: '',
|
||||
urlPath: '',
|
||||
},
|
||||
analysisSummaries: []
|
||||
};
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче