Skip to content
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

Duplicates in api response after every data dump #156

Closed
sbs2001 opened this issue Mar 5, 2020 · 2 comments
Closed

Duplicates in api response after every data dump #156

sbs2001 opened this issue Mar 5, 2020 · 2 comments

Comments

@sbs2001
Copy link
Collaborator

sbs2001 commented Mar 5, 2020

After first import

(venv) shivam@shivam:~/coding/opensource/vulnerablecode$ curl http://127.0.0.1:8000/api/packages/?name=python-django
{"count":2 ..............

After second import

(venv) shivam@shivam:~/coding/opensource/vulnerablecode$ curl http://127.0.0.1:8000/api/packages/?name=python-django
{"count":4...............

This is critical. We probably need to enforce more constraints on our models.

@haikoschol
Copy link
Collaborator

Looks like a duplicate of #28, but I haven't dug into either one in detail to understand whether there are differences. In general our import process produces lots of duplicate rows which needs to be fixed. I hope to achieve that in one central place (instead of writing code to fill the DB in every importer) in #152.

@sbs2001
Copy link
Collaborator Author

sbs2001 commented Mar 5, 2020

Duplicate of #28

@sbs2001 sbs2001 closed this as completed Mar 5, 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

No branches or pull requests

2 participants