Rename nwos to full_names

To match what we now return in the API.
This commit is contained in:
Elena Tanasoiu
2022-09-28 15:15:59 +01:00
parent b95f6a5afb
commit b2427a6534
3 changed files with 4 additions and 4 deletions

View File

@@ -62,7 +62,7 @@ export interface VariantAnalysisSkippedRepositoryGroup {
export interface VariantAnalysisNotFoundRepositoryGroup {
repository_count: number,
repository_nwos: string[]
repository_full_names: string[]
}
export interface VariantAnalysisRepoTask {
repository: Repository,

View File

@@ -102,7 +102,7 @@ function processRepoGroup(repoGroup: ApiVariantAnalysisSkippedRepositoryGroup):
}
function processNotFoundRepoGroup(repoGroup: ApiVariantAnalysisNotFoundRepositoryGroup): VariantAnalysisSkippedRepositoryGroup {
const repo_nwos = repoGroup.repository_nwos.map(nwo => {
const repo_full_names = repoGroup.repository_full_names.map(nwo => {
return {
fullName: nwo
};
@@ -110,7 +110,7 @@ function processNotFoundRepoGroup(repoGroup: ApiVariantAnalysisNotFoundRepositor
return {
repositoryCount: repoGroup.repository_count,
repositories: repo_nwos
repositories: repo_full_names
};
}

View File

@@ -40,6 +40,6 @@ export function createMockNotFoundSkippedRepoGroup(): VariantAnalysisNotFoundRep
return {
repository_count: 2,
repository_nwos: [repoName1, repoName2]
repository_full_names: [repoName1, repoName2]
};
}