-
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
magento/magento2#28358: URL rewrites are not generated for categorie with 'Include in Menu=No' when creating a store view #30427
base: 2.4-develop
Are you sure you want to change the base?
Conversation
…clude in Menu=No' when creating a store view
Hi @sodhisarab. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
#dmcdindia2020 |
@magento give me test instance |
Hi @sodhisarab. Thank you for your request. I'm working on Magento instance for you. |
Hi @sodhisarab, here is your Magento Instance: https://576118b4d7bcf842e33e1173004bd08b.instances.magento-community.engineering |
@magento run all tests |
Fix Magento Console logs erros
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 @sodhisarab, thanks for contributing! Please have a look at my comments below.
Also, follow our https://devdocs.magento.com/contributor-guide/contributing_dod.html#automated-tests we must cover our changes with automated tests, after addressing the changes it would be nice to add test coverage to it!
Thanks
@@ -715,7 +715,7 @@ public function getCategories($parent, $recursionLevel = 0, $sorted = false, $as | |||
/* @var $tree \Magento\Catalog\Model\ResourceModel\Category\Tree */ | |||
$nodes = $tree->loadNode($parent)->loadChildren($recursionLevel)->getChildren(); | |||
|
|||
$tree->addCollectionData(null, $sorted, $parent, $toLoad, true); | |||
$tree->addCollectionData(null, $sorted, $parent, $toLoad, true, false); |
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.
Instead of change, this getCategories
method wouldn't make more sense to look at the CatalogUrlRewrite plugins and use CategoryRepository there to fetch the required categories?
@@ -179,7 +180,8 @@ public function addCollectionData( | |||
$sorted = false, | |||
$exclude = [], | |||
$toLoad = true, | |||
$onlyActive = false | |||
$onlyActive = false, | |||
$onlyIncludeInMenu = false |
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.
Changing an @api public method is BIC, please have a look at https://devdocs.magento.com/contributor-guide/backward-compatible-development/
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 @gabrieldagama i have added code as BIC . Please review 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.
@sodhisarab please, extract logic to the separate class
@sodhisarab, could you please look at #30427 (comment) #30427 (comment)? |
@sodhisarab, please update your PR accordingly to #30427 (comment) #30427 (comment). Otherwise, we can't proceed with your PR. |
Ok Sir,
I will update my PR accordingly your comments.
Thanks & Regards
…On Thu, Oct 29, 2020 at 2:59 PM Vadim Malesh ***@***.***> wrote:
@sodhisarab <https://github.com/sodhisarab>, please update your PR
accordingly to #30427 (comment)
<#30427 (comment)> #30427
(comment)
<#30427 (comment)>.
Otherwise, we can't proceed with your PR.
Thank you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#30427 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALZHTM5PXUDT34APYDESC3DSNEYWJANCNFSM4SK7TNFQ>
.
|
@magento run all tests |
Hi @sodhisarab, could you please look at #30427 (comment)? |
@sodhisarab I'll continue with your PR. |
@magento run all tests |
@magento run all tests |
@magento run all tests |
@@ -179,7 +180,8 @@ public function addCollectionData( | |||
$sorted = false, | |||
$exclude = [], | |||
$toLoad = true, | |||
$onlyActive = false | |||
$onlyActive = false, | |||
$onlyIncludeInMenu = false |
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.
@sodhisarab please, extract logic to the separate class
@sidolov In the new method |
@magento run all tests |
Description (*)
Category URL rewrites not generated for those category which have "Include in Menu= No". when we create or edit a new store Url Rewrites is not creating
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)