0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-23 22:27:35 -05:00
zot/pkg/extensions/search
Andrei Aaron e8e7c343ad
feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102)
* feat(repodb): add pagination for ImageListForDigest and implement FilterTags

ImageListForDigest can now return paginated results, directly from DB.
It uses FilterTags, a new method to filter tags (obviously) based on
the criteria provided in the filter function.
Pagination of tags is now slightly different, it shows all results if
no limit and offset are provided.

Signed-off-by: Alex Stan <alexandrustan96@yahoo.ro>

bug(tests): cli tests for digests expecting wrong size

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
(cherry picked from commit 369216df931a4053c18278a8d89f86d2e1e6a436)

fix(repodb): do not include repo metadata in search results if no matching tags are identified

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>

* fix(repodb): Fix an issue in FilterTags where repometa was not proceesed correctly

The filter function was called only once per manifest digest.
The function is supposed to also take into consideration repometa,
but only the first repometa-manifestmeta pair was processed.

Also increase code coverage.

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>

Signed-off-by: Andrei Aaron <aaaron@luxoft.com>
Co-authored-by: Alex Stan <alexandrustan96@yahoo.ro>
2023-01-18 00:31:54 +02:00
..
common feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
convert feat(repodb): Implement RepoDB for image specific information using boltdb/dynamodb (#979) 2023-01-09 12:37:44 -08:00
cve feat(cve): cache trivy results for an image:tag (#1101) 2023-01-17 13:14:17 -08:00
digest refactor(cache): rewrote/refactored cachedb functionality to use interface (#667) 2022-11-02 15:53:08 -07:00
gql_generated feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00
gqlgen.yml Update to graphql 1.17.13 2022-07-18 12:55:40 -07:00
resolver.go feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00
resolver_test.go feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00
schema.graphql feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00
schema.resolvers.go feat(repodb): add pagination for ImageListForDigest and implement FilterTags (#1102) 2023-01-18 00:31:54 +02:00
search.md fix sample request url in search extension README 2022-06-07 11:24:19 -07:00