Add V2_importer to collect advisories from EUVD#2046
Add V2_importer to collect advisories from EUVD#2046Samk1710 wants to merge 5 commits intoaboutcode-org:mainfrom
Conversation
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
267ed3b to
19d4d45
Compare
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
|
Hey @ziadhany , I’ve pushed the requested updates. Summary of changes:
Let me know if you’d like any additional modifications. Thanks again for the feedback and guidance! |
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
|
I have updated the License Expression and added sample test data from the EUVD API as suggested in today's call. |
|
Hey @pombredanne @ziadhany "total": 452844 This would mean the importer would take 5-6 hours and fetch data(only once) in collect_advisories. |
|
@Samk1710 Yes, we can use the total field. Since we know the total number of advisories, we can iterate over the endpoint using either the date or the advisory count, if that’s available. the time isn’t a big issue to get all the available data in under a couple of hours. |
yes the date field is available in the API response and if time(5-6 hours) ain't a issue, this would be the simplest approach to avoid double fetching and caching will not be required. Shall I move forward with this approach? |
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
7e4b12c to
506d03f
Compare
|
@Samk1710 here is the repo for the EUVD mirror https://github.com/aboutcode-org/aboutcode-mirror-euvd. For data collection script take a look at the pipeline here https://github.com/aboutcode-org/aboutcode-mirror-nuget-catalog/blob/main/sync_catalog.py. We want to do something similar for EUVD the script will be used in a workflow that will be almost identical to what we have here https://github.com/aboutcode-org/aboutcode-mirror-nuget-catalog/blob/main/.github/workflows/sync.yml |
thanks a lot @keshav-space. will look into it |
|
Hey, I have added a pipeline to mirror the EUVD advisories aboutcode-org/aboutcode-mirror-euvd#1 Would look forward to a review so that I can continue this importer. Thanks a lot! |
|
The product field is a little messy. We might need to drop some(less than 1 %). For eg: |
Data Source
https://euvdservices.enisa.europa.eu/api/searchDependent on :
Logs: