-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Reorder] #30686 - Allow developers to filter order items for reorder #30687
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
Hi @PierreLeMaguer. 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 |
@magento run all tests |
@PierreLeMaguer - It would be useful, as this may not be your only PR in this code area, to add a small description of the change made and how you envisage developers utilising the change - I'm assuming you'd expect them to create a plugin on your new method and manipulate the return? Good for searching at a later date |
hello @BarnyShergold , thanks for the review. I add a small description to the PR area. |
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.
The Reorder.php is causing a fail on two B2B static tests. Not sure why but this is for existing code. Will need to be addressed.
Once functional tests have completed check for errors.
* | ||
* @SuppressWarnings(PHPMD.UnusedFormalParameter) | ||
*/ | ||
public function canReorderItem($item, $product) |
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.
Missing return type on prototype
public function canReorderItem($item, $product) | |
public function canReorderItem($item, $product): bool |
Hello @BarnyShergold , I pushed a new commit to fix static tests. I checked the functional tests : no error here https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/30687/33fbb0a2d1da4801a0d5971f86715e31/Functional/allure-report-ee/index.html#behaviors but one error here https://public-results-storage-prod.magento-testing-service.engineering/reports/magento/magento2/pull/30687/c3bb69a2652167d4e479a67f5eaee4cf/Functional/allure-report-ce/index.html on the test Magento\FunctionalTestingFramework.functional\MediaGalleryUiSuite ... Not sure that it's linked to my PR. |
It seems the same my PR (#30660). |
@magento run all tests |
@magento run Functional Tests CE |
@magento run Functional Tests B2B |
@magento run Integration Tests |
@magento run Functional Tests B2B |
1 similar comment
@magento run Functional Tests B2B |
can you please guy tag this PR with "Partner : Smile" ? I used to be able to do so previously but it seems it's not the case anymore. Regards |
@magento run Functional Tests B2B |
Hello @BarnyShergold , is it ok now ? |
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.
All tests have passed! I've added Smile
Hi @BarnyShergold, thank you for the review.
|
@BarnyShergold any news about this PR ? Does it lack anything ? |
@PierreLeMaguer I did some checking and currently the feedback is - "This PR is prioritised as P4, we are not able to process P4 PRs currently" |
@magento run all tests |
Hello @PierreLeMaguer, Thanks for your contributions! Moving this PR to on hold since it’s a feature request and we need PO approval for it. Once we get approval, we will proceed accordingly. Thanks. |
Hello @PierreLeMaguer, Thanks for your contributions! We've received feedback from the PO, and the requested functionality—overriding the reorder feature in customizations—wasn't intended to work that way. As a result, we can't proceed further with this PR. Thank you again for your understanding and for your contribution! |
Description (*)
The new reorder feature is hard to customize for developers.
The idea here is to allow developers to filter order items to reorder thanks to a plugin on the new method app/code/Magento/Sales/Helper/Reorder.php::canReorderItem .
Related Pull Requests
Fixed Issues (if relevant)
Questions or comments
Contribution checklist (*)