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) =>
|
imageListWithCVEFixed: (cveId, repoName) =>
|
||||||
`/v2/_zot/ext/search?query={ImageListWithCVEFixed(id:"${cveId}", image:"${repoName}") {Tag}}`,
|
`/v2/_zot/ext/search?query={ImageListWithCVEFixed(id:"${cveId}", image:"${repoName}") {Tag}}`,
|
||||||
dependsOnForImage: (name) =>
|
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) =>
|
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 = {} }) => {
|
globalSearch: ({ searchQuery = '""', pageNumber = 1, pageSize = 15, filter = {} }) => {
|
||||||
const searchParam = searchQuery !== '' ? `query:"${searchQuery}"` : `query:""`;
|
const searchParam = searchQuery !== '' ? `query:"${searchQuery}"` : `query:""`;
|
||||||
const paginationParam = `requestedPage: {limit:${pageSize} offset:${(pageNumber - 1) * pageSize}}`;
|
const paginationParam = `requestedPage: {limit:${pageSize} offset:${(pageNumber - 1) * pageSize}}`;
|
||||||
|
@ -101,6 +101,7 @@ function DependsOn(props) {
|
|||||||
version={dependence.Tag}
|
version={dependence.Tag}
|
||||||
description={dependence.Description}
|
description={dependence.Description}
|
||||||
vendor={dependence.Vendor}
|
vendor={dependence.Vendor}
|
||||||
|
downloads={dependence.DownloadCount}
|
||||||
platforms={[dependence.Platform]}
|
platforms={[dependence.Platform]}
|
||||||
isSigned={dependence.IsSigned}
|
isSigned={dependence.IsSigned}
|
||||||
key={index}
|
key={index}
|
||||||
|
@ -101,6 +101,7 @@ function IsDependentOn(props) {
|
|||||||
version={dependence.Tag}
|
version={dependence.Tag}
|
||||||
description={dependence.Description}
|
description={dependence.Description}
|
||||||
vendor={dependence.Vendor}
|
vendor={dependence.Vendor}
|
||||||
|
downloads={dependence.DownloadCount}
|
||||||
isSigned={dependence.IsSigned}
|
isSigned={dependence.IsSigned}
|
||||||
platforms={[dependence.Platform]}
|
platforms={[dependence.Platform]}
|
||||||
key={index}
|
key={index}
|
||||||
|
Loading…
Reference in New Issue
Block a user