-
Notifications
You must be signed in to change notification settings - Fork 377
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
Maximum severity rating for each Group object in JSON output #805
Maximum severity rating for each Group object in JSON output #805
Conversation
Signed-off-by: Omri Bornstein <[email protected]>
Signed-off-by: Omri Bornstein <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me - would be nice to have this change expressed in a test somehow if possible
@@ -4,6 +4,7 @@ import ( | |||
"sort" | |||
"strings" | |||
|
|||
out "github.com/google/osv-scanner/internal/output" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
happy for this to be done in a follow up pr sometime, but ideally it would be better to rename the variable
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I'll rename the output
variables to results
.
…ents name conflict with internal output package Signed-off-by: Omri Bornstein <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! Can you also replace the other places MaxSeverity is being called to use what's now being stored in groups?
I believe it's called in githubannotations.go and table.go
… struct property Signed-off-by: Omri Bornstein <[email protected]>
@another-rex @G-Rath thank you both for the thoughtful feedback. |
I'll get to writing the |
Signed-off-by: Omri Bornstein <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #805 +/- ##
===========================================
- Coverage 79.98% 58.96% -21.02%
===========================================
Files 91 116 +25
Lines 6214 8442 +2228
===========================================
+ Hits 4970 4978 +8
- Misses 1040 3261 +2221
+ Partials 204 203 -1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
MaxSeverity
function if this is required for this issue.