Skip to content

Commit

Permalink
test(meta): add push-pull-read tests for metadb (#2022)
Browse files Browse the repository at this point in the history
Signed-off-by: Laurentiu Niculae <[email protected]>
  • Loading branch information
laurentiuNiculae authored Nov 8, 2023
1 parent 7f52f58 commit c9cc5b9
Show file tree
Hide file tree
Showing 5 changed files with 395 additions and 4 deletions.
7 changes: 4 additions & 3 deletions pkg/extensions/search/convert/metadb.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,16 +321,17 @@ func RepoMeta2RepoSummary(ctx context.Context, repoMeta mTypes.RepoMeta,
) *gql_generated.RepoSummary {
var (
repoName = repoMeta.Name
repoLastUpdatedTimestamp = deref(repoMeta.LastUpdatedImage, mTypes.LastUpdatedImage{}).LastUpdated
lastUpdatedImage = deref(repoMeta.LastUpdatedImage, mTypes.LastUpdatedImage{})
lastUpdatedImageMeta = imageMetaMap[lastUpdatedImage.Digest]
lastUpdatedTag = lastUpdatedImage.Tag
repoLastUpdatedTimestamp = lastUpdatedImage.LastUpdated
repoPlatforms = repoMeta.Platforms
repoVendors = repoMeta.Vendors
repoDownloadCount = repoMeta.DownloadCount
repoStarCount = repoMeta.StarCount
repoIsUserStarred = repoMeta.IsStarred // value specific to the current user
repoIsUserBookMarked = repoMeta.IsBookmarked // value specific to the current user
repoSize = repoMeta.Size
lastUpdatedImageMeta = imageMetaMap[repoMeta.LastUpdatedImage.Digest]
lastUpdatedTag = repoMeta.LastUpdatedImage.Tag
)

if repoLastUpdatedTimestamp == nil {
Expand Down
Loading

0 comments on commit c9cc5b9

Please sign in to comment.