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
[BUGFIX] Flat Category reindexList of AllChildren if the url_key of t… #10557
Conversation
…he current category has changed
Hi @lewisvoncken |
@lewisvoncken I assume |
@ishakhsuvarov PR to develop branch was created as magento-partners/magento2ce#7 |
waiting for develop branch PR. Once it is merged, we will proceed with this PR |
@vkublytskyi updated this pull request according to the feedback on the develop branch pr |
[EngCom] Public Pull Requests - 2.1 - MAGETWO-72252: Backport of MAGETWO-52577 for Magento 2.1: [GitHub] Set Product as Ne… #10751 - MAGETWO-72251: Backport of MAGETWO-65607 for Magento 2.1: [GitHub][PR] Check return … #10750 - MAGETWO-71643: [BUGFIX] Flat Category reindexList of AllChildren if the url_key of t… #10557
This feature makes it possible to easily switch between store codes in Swagger without changing the swagger-ui template but through adding a store param to the url. With this feature it is possible to test API calls in Swagger for different storeviews. See following pull request for additional information: https://github.com/magento-partners/magento2ce/pull/10 https://github.com/magento-partners/magento2ce/pull/9 magento/magento2#10557
When Flat Category is enabled and you change the url_key of a category which has children the url_paths of the children won't be updated.
This can be reproduced by following these steps:
1. Enable Flat Catalog Category
Stores > Settings > Configuration > Catalog > Catalog > Storefront > Use Flat Catalog Category
2. Reindex through the console
bin/magento indexer:reindex
3. Open the flat table which is generated after the first reindex of Flat Catalog Category
4. Search for an example category which has children
In the example data Women category with ID 20 .
5. List the url_paths of the sub children
SELECT url_path, path FROM catalog_category_flat_store_1 WHERE path LIKE '%20%'
6. Open the example category in the Magento Admin Panel
7. Change the Url Key of the category and Save the category
8. Check the database again and you will see the following result
But the children should also be updated, after the fix the result will be like this: