Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(repodb): GQL request for ExpandedRepoInfo errors when artifacts w… #1265

Merged

Conversation

laurentiuNiculae
Copy link
Contributor

…ith tags are present

If we push an artifact and give it a tag, repodb would crash because of the null pointer dereferencing

Now when iterating over the tags of a repo and stumbling upon a unsupported media type, it's being ignored

What type of PR is this?

Which issue does this PR fix:
#1263

What does this PR do / Why do we need it:

If an issue # is not available please add repro steps and logs showing the issue:

Testing done on this change:

Automation added to e2e:

Will this break upgrades or downgrades?

Does this PR introduce any user-facing change?:


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

…ith tags are present

If we push an artifact and give it a tag, repodb would crash because of the null pointer dereferencing

Now when iterating over the tags of a repo and stumbling upon a unsupported media type, it's being ignored

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
@laurentiuNiculae laurentiuNiculae force-pushed the bug-fix-artifact-to-image-summary branch from 7c64f09 to df643ad Compare March 14, 2023 17:04
@codecov
Copy link

codecov bot commented Mar 14, 2023

Codecov Report

Merging #1265 (df643ad) into main (5d1f91a) will increase coverage by 0.03%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main    #1265      +/-   ##
==========================================
+ Coverage   90.15%   90.18%   +0.03%     
==========================================
  Files          95       95              
  Lines       21211    21226      +15     
==========================================
+ Hits        19122    19142      +20     
+ Misses       1571     1567       -4     
+ Partials      518      517       -1     
Impacted Files Coverage Δ
pkg/extensions/search/convert/repodb.go 93.32% <100.00%> (+0.74%) ⬆️
pkg/meta/repodb/boltdb-wrapper/boltdb_wrapper.go 89.73% <100.00%> (+0.04%) ⬆️
pkg/meta/repodb/dynamodb-wrapper/dynamo_wrapper.go 92.86% <100.00%> (+0.03%) ⬆️
pkg/test/common.go 84.39% <100.00%> (+0.03%) ⬆️

... and 1 file with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@laurentiuNiculae laurentiuNiculae marked this pull request as ready for review March 15, 2023 07:58
Copy link
Contributor

@rchincha rchincha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@rchincha rchincha merged commit 150ee88 into project-zot:main Mar 15, 2023
@laurentiuNiculae laurentiuNiculae deleted the bug-fix-artifact-to-image-summary branch May 2, 2023 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants