-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
Select max vulnerability urgency and pub_date in CVEView.
f892f4f
to
a4a6f8d
Compare
Add comments to Device.cve_count. Add unique constraint to Vulnerability. Add default case for migration convert_urgencies(). PEP8 fixes.
all fixed |
@@ -5,6 +5,7 @@ | |||
from itertools import chain | |||
import time | |||
|
|||
import dateutil.parser |
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.
Pls put it to appropriate group of imports
@@ -806,6 +826,9 @@ class Meta: | |||
|
|||
|
|||
class Vulnerability(models.Model): | |||
class Meta: | |||
unique_together = ['os_release_codename', 'name', 'package'] |
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.
Probably that's not ok because you need to have unique names for each os and having 'package' here will break this constraint logic.
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, for each OS there may be multiple vulnerabilities with the same name but different packages. It's when one CVE affects multiple packages.
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.
Ok then
Closes #543
New URLs:
/cve
,/devices/<pk>/cve
May need additional optimisation.