Skip to content

Conversation

@sbs2001
Copy link
Collaborator

@sbs2001 sbs2001 commented Oct 30, 2020

Fixes #244

Signed-off-by: Shivam Sandbhor shivam.sandbhor@gmail.com

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@sbs2001 sbs2001 requested a review from pombredanne October 30, 2020 10:51
Copy link
Member

@pombredanne pombredanne left a comment

Choose a reason for hiding this comment

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

This looks fine but we cannot have this enabled by default license-wise for now. How could we have a way to enable this on demand?

# 'etags': {}
# },
# },
{
Copy link
Member

Choose a reason for hiding this comment

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

We need to have a way to selectively enable some non-free resources like this one. As long as this is under a cc-by-nc license we cannot integrate these data by default IMHO
@jayfk ping?

@sbs2001
Copy link
Collaborator Author

sbs2001 commented Nov 19, 2020

@pombredanne from the discussion we had, you suggested we handle this by using a config file which contains a list of licenses.
If an importer's license is not present in this list either run/don't run the importer.

I think this logic belongs in the importer_yielder.py file, no need to create another config file.

@sbs2001 sbs2001 requested a review from pombredanne November 22, 2020 09:40
'url': 'https://raw.githubusercontent.com/pyupio/safety-db/master/data/insecure_full.json', # nopep8
'etags': {}
},
},
Copy link
Member

Choose a reason for hiding this comment

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

Let's add instead a flag to disable this rather than commenting it out and leave this disabled.

@sbs2001
Copy link
Collaborator Author

sbs2001 commented Feb 24, 2021

Commits included in #259. Hence closing

@sbs2001 sbs2001 closed this Feb 24, 2021
@sbs2001 sbs2001 mentioned this pull request Mar 15, 2021
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.

Cannot import safetydb

2 participants