Skip to content

Refactor import runner(no change to ImpactedPackage, ResolvedPackage) - #225

Closed
sbs2001 wants to merge 3 commits into
aboutcode-org:developfrom
sbs2001:refactor_import_runner
Closed

Refactor import runner(no change to ImpactedPackage, ResolvedPackage)#225
sbs2001 wants to merge 3 commits into
aboutcode-org:developfrom
sbs2001:refactor_import_runner

Conversation

@sbs2001

@sbs2001 sbs2001 commented Jul 10, 2020

Copy link
Copy Markdown
Collaborator

It throws all the conflicting entries into a JSONField , so we can later ping the sources to resolve these, which is IMHO the correct way to deal with the contradictions rather than overwriting the latest entry . It also increases the performance by utilising the fact that if an entity(vulnerability or package) is created, then it's references don't exist in DB.

sbs2001 added 3 commits July 10, 2020 11:20
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@sbs2001
sbs2001 force-pushed the refactor_import_runner branch from 92908dc to d95a618 Compare July 10, 2020 06:02
@sbs2001
sbs2001 requested a review from pombredanne July 10, 2020 06:20

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I started reviewing the other PR first, but we should keep only one for your sanity. Is there any benefit you can articulate in favor or merging ImpactedPackage and ResolvedPackage in a single type?


else:

# Check for conflicts

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure I get the code block below. Can you elaborate?

@sbs2001

sbs2001 commented Jul 22, 2020

Copy link
Copy Markdown
Collaborator Author

Closed in Favour #219

@sbs2001 sbs2001 closed this Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants