Add progress bar while importing data from importers - #419
Conversation
|
@Abhra303 Try your code on NVD importer. As I mentioned #318 (comment) . You are only showing progress bar for saving data to database. In case of archlinux the downloading time is less (5280 vulnerabilites) thats why it does not make any difference. |
|
@AmitGupta7580 you're right. I didn't think about it. Trying if that can be managed. |
|
@Abhra303 any issues ? |
|
Actually no severe issue. |
Signed-off-by: Abhra303 <chakrabortyabhradeep79@gmail.com>
|
User experience for import progress is improved. |
|
@sbs2001 can you please review the changes? |
|
@Abhra303 Instead of just writing |
|
@AmitGupta7580 I was thinking of adding progress bar for collecting the data also. To do this , we have to add tqdm function in every importer file manually. Not only this, if in future other contributors make new importer files then they also have to take care of tqdm. |
|
@Abhra303 it seems to me there would be some overhead for importer implementation to get the progress bar working. IMHO this ticket would be best resolved after we remove the batch processing things and have a uniform way for importer implementation. |
|
Thank you for the clarification. |

This fixes the issue #318 . Here I used tqdm package to visualize the process of importing with a progress bar . Here is the screenshot below -