Skip to content

Commit

Permalink
feat(repodb): add PageInfo to GlobalSearch and RepoListWithNewestImag…
Browse files Browse the repository at this point in the history
…e results (#1121)

Signed-off-by: Alex Stan <[email protected]>

add page info to dynamo-> feat(repodb): add PageInfo to GlobalSearch and RepoListWithNewestImage results

(cherry picked from commit 4fed42b)
Signed-off-by: Andrei Aaron <[email protected]>

Signed-off-by: Alex Stan <[email protected]>
Signed-off-by: Andrei Aaron <[email protected]>
Co-authored-by: Alex Stan <[email protected]>
  • Loading branch information
andaaron and alexstan12 authored Jan 18, 2023
1 parent d960c2e commit b997176
Show file tree
Hide file tree
Showing 17 changed files with 1,064 additions and 379 deletions.
478 changes: 364 additions & 114 deletions pkg/extensions/search/common/common_test.go

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion pkg/extensions/search/convert/convert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ func TestConvertErrors(t *testing.T) {
err = repoDB.SetRepoTag("repo1", "0.1.0", digest11, ispec.MediaTypeImageManifest)
So(err, ShouldBeNil)

repoMetas, manifestMetaMap, err := repoDB.SearchRepos(context.Background(), "", repodb.Filter{}, repodb.PageInput{})
repoMetas, manifestMetaMap, _, err := repoDB.SearchRepos(context.Background(), "", repodb.Filter{},
repodb.PageInput{})
So(err, ShouldBeNil)

ctx := graphql.WithResponseContext(context.Background(),
Expand Down
Loading

0 comments on commit b997176

Please sign in to comment.