-
Notifications
You must be signed in to change notification settings - Fork 203
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
Add models for CodeFix #1704
base: main
Are you sure you want to change the base?
Add models for CodeFix #1704
Conversation
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
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.
Thanks! Here are a few comments for your consideration.
IMHO I am not sure we want a PURL for a commit, we should consider using vcs URLs rather than a plain commit id...
I am open to something else that we can design, but if we do that we need a way to get back to the commit.
We are going to have cases that are NOT on GitHub and therefore are just plain git coordinates.
if commit_id and package_urls: | ||
for purl in package_urls: | ||
normalized_purl = normalize_purl(purl) | ||
package = self.get_or_create_package(normalized_purl) |
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.
Do we really want to create new packages here? I would have thought we are only adding new CodeFix?
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
References: