I imagine this is a extreme edge case but I’ve managed to hit it a few times when I was testing the lib on a client project.
import a products csv with one row for the Master product and 1+ rows for its Variants
delete the Master Product in the console
rerun the import. The Master product row will be created, but the Variant rows will fail with Validation failed: Product must exist, Product can't be blank
Maybe we could tweak this line a bit so that it checks if the Product exists and, if not, assign context[:product] to it?
This issue has been automatically marked as stale because it has not had recent activity. It might be closed if no further activity occurs. Thank you for your contributions.
I imagine this is a extreme edge case but I’ve managed to hit it a few times when I was testing the lib on a client project.
Maybe we could tweak this line a bit so that it checks if the Product exists and, if not, assign
context[:product]
to it?