Rename nwos to full_names
To match what we now return in the API.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -40,6 +40,6 @@ export function createMockNotFoundSkippedRepoGroup(): VariantAnalysisNotFoundRep
|
||||
|
||||
return {
|
||||
repository_count: 2,
|
||||
repository_nwos: [repoName1, repoName2]
|
||||
repository_full_names: [repoName1, repoName2]
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user