-
Notifications
You must be signed in to change notification settings - Fork 210
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
Resolves #380: Added severity in the view at http://127.0.0.1:8000/vulnerabilities/<… #390
Resolves #380: Added severity in the view at http://127.0.0.1:8000/vulnerabilities/<… #390
Conversation
…vulnerability_id> by calling the scores() function for the particular reference and getting its value and scoring_system Signed-off-by: Pushpit <[email protected]>
I guess if we could have a generalized version of severity (for ex, the one like purl), it would be much better. What do you think @sbs2001 ? |
@Hritik14 nope unifying them is the last thing we want to do. Severity changes according to the vendor. A score provided by redhat, would be given more importance when the found vulnerability is affecting a builtin redhat package but archlinux would rate it low if it is a external package. See the bottom section at https://access.redhat.com/security/updates/classification/ |
By generalisation, I didn’t actually mean generalised to one number/score. I meant that we can use a general format that could be applicable everywhere. |
@Pushpit07 I think continuing to use tables leaves us with lot of unused whitespace and the scores look too crammed up. I think we should switch using a list instead, with nested severities ? Something like
A practical example:-
|
@sbs2001 I feel that tables represent data in a much more organised and readable format. Implementing the items as a list would actually make the experience cumbersome.
What say? |
@Pushpit07 that's a interesting approach. The example you provided doesn't help though, why am I seeing
Other than duplication of metadata, I don't see any other problem with this approach, maybe I'm missing something here ? |
Table headers would be there to differentiate though
|
Yeah, duplication is the main reason due to which I'm suggesting to avoid it |
@sbs2001 Any updates on this? What to do? |
@Pushpit07 sorry for the late reply. IMHO tables is the way to go, but we need some way to denote the informational hierarchy. In simple terms we want to denote that The current approach brings them to the same level as that of the reference's main attributes which is kinda misleading. Sorry for taking this long,I think this is not a good first issue, but you've been doing a good job. We need further design to fix the hierarchy thing and this will be done. I'm open to ideas here :) |
@Pushpit07 the severity value should be the child/sibling of the each individual of each scoring system. See the example at #390 (comment). |
@Pushpit07 yep that's what I mean't. I realized that we would want to nest them further.
That'd be easy to be implement right ? |
Yup. Piece of cake |
@AmitGupta7580 that would work in case most of the references have a nested severity. But in reality that is not the case. Most of references don't provide a score. So we would end up with lots of wasted whitespace, and the references would get cramped unnecessarily |
@AmitGupta7580 why are there multiple |
@sbs2001 No these 2 images are same, I just expanded the 2nd reference. It is the tree view of #390 (comment) this information. |
@sbs2001 Apologies for the delay. Been ill for the last 4 days and running behind schedule. Will give updates in a few hours |
@Pushpit07 Can you please brief me what are you trying to implement. |
Signed-off-by: Pushpit <[email protected]>
@sbs2001 Updated design |
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.
@Pushpit07 I like your design.
Just don't use bootstrap, we already use bulma, using 2 css frameworks is a bad idea especially for a small feature.
vulnerabilities/templates/base.html
Outdated
@@ -6,6 +6,7 @@ | |||
<link rel="stylesheet" href="{% static 'css/bulma.css' %}"/> | |||
<link rel="stylesheet" href="{% static 'css/custom.css' %}"/> | |||
<link rel="stylesheet" href="{% static 'css/font-awesome.css' %}"/> | |||
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-eOJMYsd53ii+scO/bJGFsiCZc+5NDVN2yr8+0RDqr0Ql0h+rP48ckxlpbzKgwra6" crossorigin="anonymous"> |
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.
We don't want to use bootstrap. We already use bulma. See https://bulma.io/documentation/elements/table/
@@ -6,4 +6,8 @@ | |||
|
|||
.Site-content { | |||
flex: 1; | |||
} | |||
|
|||
table { |
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.
I'm guessing this won't be needed if we use bulma ?
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.
This was necessary. I removed the is-bordered
class from the table so that cells are not divided by a line. That was causing difficulty in understanding the structure of severity
Signed-off-by: Pushpit <[email protected]>
It looks good though. And isn't causing any confusion now |
Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
@sbs2001 ping |
@Pushpit07 This looks weird when there's no reference id. I think, we should make this simpler. Let's keep the references as they are, not touch them. Instead we'll create another section called scores. This section would have a table(same like the references one) with 3 columns the reference would have value equal to the parent url of the score. Because really, going lists is making things complicated wrt css and presentation. I especially don't want to maintain the custom css. Again sorry for wasting your time, design is tough. |
Yes, it's hard to understand this way
Can you explain this by an example? |
@Pushpit07 ping |
oh, probably missed your comment. Will change it to how it is in the jsfiddle. Give me a day's time |
Pulling changes
Signed-off-by: Pushpit <[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 @Pushpit07 , see my suggestions inline, and this will be good to merge then.
Signed-off-by: Pushpit <[email protected]>
@Pushpit07 This branch is stale, could you rebase this with latest |
…vulnerability_id> by calling the scores() function for the particular reference and getting its value and scoring_system Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
Signed-off-by: Pushpit <[email protected]>
…/Pushpit07/vulnerablecode into severities_in_vulnerability_view Pulling upstream
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 merging, this
Added severity in the view at http://127.0.0.1:8000/vulnerabilities/<vulnerability_id> by calling the scores() function for the particular reference and getting its value and scoring_system
Signed-off-by: Pushpit [email protected]