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

feat(gql): add new query for diff of cves for 2 images #2185

Conversation

laurentiuNiculae
Copy link
Contributor

What type of PR is this?

Which issue does this PR fix:

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.

Copy link

codecov bot commented Jan 26, 2024

Codecov Report

Attention: 21 lines in your changes are missing coverage. Please review.

Comparison is base (4e33c17) 92.92% compared to head (3960d51) 92.86%.
Report is 1 commits behind head on main.

❗ Current head 3960d51 differs from pull request most recent head 4f81fd8. Consider uploading reports for the commit 4f81fd8 to get more accurate results

Files Patch % Lines
pkg/extensions/search/resolver.go 89.72% 11 Missing and 8 partials ⚠️
pkg/extensions/search/cve/cve.go 96.92% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2185      +/-   ##
==========================================
- Coverage   92.92%   92.86%   -0.06%     
==========================================
  Files         165      165              
  Lines       21582    21837     +255     
==========================================
+ Hits        20054    20280     +226     
- Misses        952      969      +17     
- Partials      576      588      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@laurentiuNiculae laurentiuNiculae force-pushed the cve-diff-for-images branch 5 times, most recently from 4a85228 to 990f68e Compare January 26, 2024 15:24
pkg/extensions/search/cve/cve.go Outdated Show resolved Hide resolved
pkg/extensions/search/schema.graphql Show resolved Hide resolved
pkg/extensions/search/resolver.go Outdated Show resolved Hide resolved
@rchincha
Copy link
Contributor

rchincha commented Feb 7, 2024

@laurentiuNiculae in terms of priorities, make sure cli works first and then zui

Signed-off-by: Laurentiu Niculae <niculae.laurentiu1@gmail.com>
}
}

func filterCVEList(cveMap []cvemodel.CVE, searchedCVE, excludedCVE string, pageFinder *CvePageFinder) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
func filterCVEList(cveMap []cvemodel.CVE, searchedCVE, excludedCVE string, pageFinder *CvePageFinder) {
func filterCVEList(cveList []cvemodel.CVE, searchedCVE, excludedCVE string, pageFinder *CvePageFinder) {

return true
}

return true
Copy link
Contributor

Choose a reason for hiding this comment

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

It is a bit strange, the logic above returns true if a condition is met, then it returns true in all remaining cases.

@andaaron
Copy link
Contributor

Superseded by #2242

@andaaron andaaron closed this Feb 16, 2024
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.

3 participants