Open La0 opened 2 hours ago
The bulk issues creation endpoint does not currently lookup for pre-existing issues with same hashes.
We can see some duplicate issues trigger a 500 on testing
I thought this was covered in the recent changes, but apparently we do not have a test case re-publishing issues with the same hash.
We need to:
Issue.objects.bulk_create
Issue.objects.get_or_create
Another test should also be done with the same issue hash in the same API call
The bulk issues creation endpoint does not currently lookup for pre-existing issues with same hashes.
We can see some duplicate issues trigger a 500 on testing
I thought this was covered in the recent changes, but apparently we do not have a test case re-publishing issues with the same hash.
We need to:
Issue.objects.bulk_create
in IssueBulkSerializer by a loop usingIssue.objects.get_or_create