Added download count for cards in depenedencies tasbs
Signed-off-by: Amelia-Maria Breda <ambreda@cisco.com>
This commit is contained in:
parent
b735787d62
commit
eca62511b9
@ -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}}`;
|
||||
|
@ -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}
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user