Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

CVE page #617

Merged
merged 18 commits into from
Jan 17, 2020
Merged

CVE page #617

merged 18 commits into from
Jan 17, 2020

Conversation

a-martynovich
Copy link
Contributor

@a-martynovich a-martynovich commented Jan 13, 2020

Closes #543

New URLs: /cve, /devices/<pk>/cve
cve1
cve2

May need additional optimisation.

@a-martynovich
Copy link
Contributor Author

Popovers are now implemented. They are toggled on click.

Снимок экрана 2020-01-14 в 12 27 38

Снимок экрана 2020-01-14 в 12 27 44

backend/device_registry/models.py Show resolved Hide resolved
backend/device_registry/models.py Show resolved Hide resolved
backend/device_registry/models.py Show resolved Hide resolved
backend/device_registry/models.py Show resolved Hide resolved
backend/device_registry/views.py Outdated Show resolved Hide resolved
backend/device_registry/views.py Outdated Show resolved Hide resolved
Add comments to Device.cve_count.
Add unique constraint to Vulnerability.
Add default case for migration convert_urgencies().
PEP8 fixes.
@a-martynovich
Copy link
Contributor Author

all fixed

@a-martynovich a-martynovich requested a review from rptrchv January 16, 2020 07:07
@@ -5,6 +5,7 @@
from itertools import chain
import time

import dateutil.parser
Copy link
Contributor

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']
Copy link
Contributor

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.

Copy link
Contributor Author

@a-martynovich a-martynovich Jan 16, 2020

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok then

@vpetersson vpetersson merged commit 430d928 into WoTTsecurity:master Jan 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Break out CVE to its own page
3 participants