Added download count for cards in depenedencies tasbs

Signed-off-by: Amelia-Maria Breda <ambreda@cisco.com>
This commit is contained in:
Amelia-Maria Breda 2022-10-14 09:54:37 +01:00 committed by Raul Kele
parent b735787d62
commit eca62511b9
3 changed files with 4 additions and 2 deletions

View File

@ -75,9 +75,9 @@ const endpoints = {
imageListWithCVEFixed: (cveId, repoName) =>
`/v2/_zot/ext/search?query={ImageListWithCVEFixed(id:"${cveId}", image:"${repoName}") {Tag}}`,
dependsOnForImage: (name) =>
`/v2/_zot/ext/search?query={BaseImageList(image: "${name}"){RepoName Tag Description Vendor LastUpdated Platform {Os Arch} IsSigned}}`,
`/v2/_zot/ext/search?query={BaseImageList(image: "${name}"){RepoName Tag Description Vendor DownloadCount LastUpdated Platform {Os Arch} IsSigned}}`,
isDependentOnForImage: (name) =>
`/v2/_zot/ext/search?query={DerivedImageList(image: "${name}"){RepoName Tag Description Vendor LastUpdated Platform {Os Arch} IsSigned}}`,
`/v2/_zot/ext/search?query={DerivedImageList(image: "${name}"){RepoName Tag Description Vendor DownloadCount LastUpdated Platform {Os Arch} IsSigned}}`,
globalSearch: ({ searchQuery = '""', pageNumber = 1, pageSize = 15, filter = {} }) => {
const searchParam = searchQuery !== '' ? `query:"${searchQuery}"` : `query:""`;
const paginationParam = `requestedPage: {limit:${pageSize} offset:${(pageNumber - 1) * pageSize}}`;

View File

@ -101,6 +101,7 @@ function DependsOn(props) {
version={dependence.Tag}
description={dependence.Description}
vendor={dependence.Vendor}
downloads={dependence.DownloadCount}
platforms={[dependence.Platform]}
isSigned={dependence.IsSigned}
key={index}

View File

@ -101,6 +101,7 @@ function IsDependentOn(props) {
version={dependence.Tag}
description={dependence.Description}
vendor={dependence.Vendor}
downloads={dependence.DownloadCount}
isSigned={dependence.IsSigned}
platforms={[dependence.Platform]}
key={index}