Skip to content
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

Re-design Package to Vulnerability model relationships #1068

Open
pombredanne opened this issue Jan 6, 2023 · 2 comments
Open

Re-design Package to Vulnerability model relationships #1068

pombredanne opened this issue Jan 6, 2023 · 2 comments

Comments

@pombredanne
Copy link
Collaborator

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:

@Hritik14
Copy link
Collaborator

Hritik14 commented Jan 7, 2023

@pombredanne

It makes queries more complex

We could possibly avoid that by some abstraction as proposed in #595

and slower

Slower than ... ?

@Hritik14
Copy link
Collaborator

As per discussion during call:

A fix is more complex than just a package. It can be much more than that. Fixes can come in terms of fix commits, individual patches etc
@pombredanne

@TG1999 TG1999 self-assigned this Jan 17, 2023
@TG1999 TG1999 removed this from the v33.0.0 milestone Aug 15, 2023
@pombredanne pombredanne changed the title Improve Package to Vulnerability models Re-design Package to Vulnerability model relationships Jan 11, 2024
@TG1999 TG1999 modified the milestones: v34.0.0, v35.0.0 Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants