-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
Fix product import on existing, empty unit_type and variant_unit #8876
Fix product import on existing, empty unit_type and variant_unit #8876
Conversation
Co-authored-by: Maikel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
Would you like to write a spec, too? You could improve spec/models/product_import/entry_validator_spec.rb.
Thank you @mkllnk In short, its arguments are throwing an error:
Tried to do something like:
|
It's not a great spec. It uses a lot of mocked data. But I created an example to show how you can reach the code you fixed:
There are still errors on the entry. This is not a complete test case but maybe a start for you? |
39a46cd
to
22de758
Compare
The given example was a great help, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👌 🙏
Hey @SarvarKh , I could reproduce the error on the freezing progress bar, it seems the same as the one reported here: After your PR this is fixed: The user sees why the file is not uploaded, and the error is not seen on the Updating other fields like stock, but having |
What? Why?
Closes #8773
Importing product file with empty
unit_type
andvariant_unit_name
columns on already existing products was failing without any error notice to the user.What should we test?
/admin/product_import
page.unit_type
andvariant_unit_name
columns empty and productname
column to already existing product name.Release notes
Changelog Category: User facing changes