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
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants