-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Fix Issues 29213 #29214
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
Fix Issues 29213 #29214
Conversation
Hi @sarron93. 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 |
Hi @sarron93. Thank you for your collaboration, makes sense to me. According to the definition of done all changes should be covered by autotests. Could I kindly ask you to create a simple unit test that will test the case with passing values like "123a"? Thank you! |
Hello @rogyar, class |
Hi @sarron93. That's a good question. I would say, you may if you wish to 😎 Thank you. |
Hello @rogyar, i'm created unit test for getCondition method |
@magento run all tests |
app/code/Magento/Backend/Test/Unit/Block/Widget/Grid/Column/Filter/PriceTest.php
Outdated
Show resolved
Hide resolved
Good job! Please, check my minor recommendations. Also, please, check the failing static tests. |
@magento run Integration Tests |
@magento run Static Tests |
@magento run Integration Tests |
Hello @rogyar, integration and static tests complete after my changes |
@magento run all tests |
Hi @rogyar, thank you for the review. |
Hi @sarron93, thank you for your contribution! |
Description (*)
If use Magento\Backend\Block\Widget\Grid\Column\Filter\Price::getCondition method and Magento\Backend\Block\Widget\Grid\Column\Filter\Price::getValue() return array with indexes 'from' or 'to' string data, then PHP throw notice exception and Magento break apply filter, redirect to some page
Fixed Issues (if relevant)
Manual testing scenarios (*)
$this->addColumn( 'total_price', [ 'header' => __('Total Price'), 'index' => 'total_price', 'type' => 'price', 'currency_code' => (string)$this->_scopeConfig ->getValue(Currency::XML_PATH_CURRENCY_BASE), ] );
Contribution checklist (*)