-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Sku uniqueness #22746
Sku uniqueness #22746
Conversation
Hi @dmanners. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@magento run all tests |
@magento run all tests |
1 similar comment
@magento run all tests |
As we discussed with @sidolov in slack - there were some issues, so I’ll move in from on hold to review it again |
@magento run Functional Tests B2B, Functional Tests CE, Functional Tests EE, Integration Tests, WebAPI Tests |
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.
Hi @dmanners,
Sorry that we didn't processed your PR so much time!
I see that on this PR we have too many test failures it means that your changes breaks functionality. Could you do following?
- review test failures and update your PR accordingly
- Revert permissions changes on files you've changed
- Sign Adobe CLA
Thank you so much for your contribution!
@dmanners will you be able to update your PR based on feedback above? |
sure @ihor-sviziev either this week or next week I will get around to this. |
… to expect the newer exception message
…in case product is duplicated. Duplicate needs a SKU to be saved.
…o ensure cloned products get valid SKUs.
…nge. Does not fit the test and the constraint anymore this way. Test needs to be adjusted to result in expected error.
…w behaviour. A product's SKU won't be changed by beforeSave anymore. Only a duplicated product will receive a changed SKU on its creation.
…e two different products with the same URL key to prevent 'SKU already exists' error.
Clean up the header of the class to fit with the static-tests.
Hi @dmanners, |
Hi @dmanners, |
Hi @ihor-sviziev sadly I have not been able to find the time to work on this. |
Hi @dmanners, |
Hi @dmanners, thank you for your contribution! |
This is a migration of the PR magento-engcom/import-export-improvements#119 from the now closed import-export-improvements repo.
Originally by @federivo and @pogster
Description
This PR may replace #102.
In contrast to the original PR I restored the SKU autogeneration in case a product is duplicated. The product copier will copy the original SKU and save the duplicate in a loop until a unique url key is found - if no SKU is autogenerated and no valid SKU is supplied it simply won't save the product.
Since the copier sets "isDuplicate" = true I thought it would be good simple solution to check for that entry before autogenerating a SKU.
Fixed Issues (if relevant)
magento-engcom/import-export-improvements#101
Manual testing scenarios
Contribution checklist