The current models is that a Package is related to Vulnerability through a generic PackageRelatedVulnerability relationship with a fix attribute
This approach is problematic and not obvious. It makes queries more complex and slower.
We should instead evolve the models towards separate AffectedPackages and FixingPackage or something along these lines to be designed.
See these related issues:
The current models is that a
Packageis related toVulnerabilitythrough a genericPackageRelatedVulnerabilityrelationship with afixattributehttps://github.com/nexB/vulnerablecode/blob/40a39743f385bd5b6dfa3424bc72231fe1ae7456/vulnerabilities/models.py#L491
https://github.com/nexB/vulnerablecode/blob/40a39743f385bd5b6dfa3424bc72231fe1ae7456/vulnerabilities/models.py#L584
https://github.com/nexB/vulnerablecode/blob/40a39743f385bd5b6dfa3424bc72231fe1ae7456/vulnerabilities/models.py#L614
This approach is problematic and not obvious. It makes queries more complex and slower.
We should instead evolve the models towards separate AffectedPackages and FixingPackage or something along these lines to be designed.
See these related issues:
AffectedPackageas model #727