-
Notifications
You must be signed in to change notification settings - Fork 9.4k
8255: Export Products action doesn't consider hide_for_product_page value. #11926
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
Conversation
# Conflicts: # dev/tests/integration/testsuite/Magento/CatalogImportExport/Model/Import/ProductTest.php
@nmalevanec could you have a look at the merge conflicts for me please. |
# Conflicts: # app/code/Magento/CatalogImportExport/Model/Import/Product.php
@dmanners Done. |
$data[$itemId][$storeId][self::COL_ATTR_SET] = $this->_attrSetIdToName[$attrSetId]; | ||
$data[$itemId][$storeId][self::COL_TYPE] = $item->getTypeId(); | ||
} | ||
$attrSetId = $item->getAttributeSetId(); |
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.
Does this also change the behavior for non-image multi-select data also? Do we have a test covering this?
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.
It covers by Magento/CatalogImportExport/Model/Export/ProductTest::testExport() for instance. Exported product has multiselect data.
* @param array $mediaGalleryData | ||
* @return array | ||
*/ | ||
private function restoreDisableImage(array $mediaGalleryData) |
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.
I know we already have a massive file here but would it make sense/be possible to extract the image processing to a separate class?
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.
Done.
private function filterImageInsertData(array $multiInsertData, array $imageNames) | ||
{ | ||
//Remove image duplicates for stores. | ||
$multiInsertData = array_map("unserialize", array_unique(array_map("serialize", $multiInsertData))); |
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.
Is this format json? I would be a bit worried that we are calling unserialize/serialize on data that we do not trust/have control over.
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.
Removed.
There are two test failures currently. Could you look into them please.
|
@dmanners integration test fixed. |
@nmalevanec just to keep you updated there is a test that compares the installation database with sample data compared to 2.2-develop and sample data. This is showing differences after your change. I am looking into this and will get back to you about it. |
@dmanners Semantic Version Checker fixed. |
…_product_page value. #11926
@okobchenko Fix for #12356 doesn't exist in Magento 2.2.3 |
Hi @devgas 2.2.3 was a security patch release and as such was limited in what the contents of this release were. This should be included in the 2.2.4 release though. |
Description
Fix Export and Import Products action doesn't consider hide_for_product_page value.
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist