openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
20 stars 2 forks source link

🐛(edx_import) ignore conflicts when creating batch of enrollments #755

Closed lunika closed 3 months ago

lunika commented 3 months ago

Purpose

When importing enrollments, a same insert in the database in a race condition leading to an integrity error. Unfortunately, the whole batch of 1000 enrollments is not inserted at allt. Using the parameter ignore_conflicts fix this issue by ignoring already inserted record but still inserting not existing enrollments.

Proposal