-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Refactor \Order\Shipment\Save Controller to use ResultInterface #20057
Refactor \Order\Shipment\Save Controller to use ResultInterface #20057
Conversation
Hi @JeroenVanLeusden. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@magento-engcom-team give me test instance |
Hi @ihor-sviziev. Thank you for your request. I'm working on Magento instance for you |
Hi @ihor-sviziev, here is your new Magento instance. |
app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php
Outdated
Show resolved
Hide resolved
Hi @paliarush, magento2/app/code/Magento/Backend/App/AbstractAction.php Lines 323 to 337 in b475068
magento2/app/code/Magento/Backend/App/AbstractAction.php Lines 308 to 321 in b475068
as deprecated with description that we need to use result object instead. What do you think? Can we add deprecation for them? |
320aa32
to
cc12d87
Compare
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.
Looks like here still few issues:
- added not needed dependency: Refactor \Order\Shipment\Save Controller to use ResultInterface #20057 (diff)
- here is regression, previously there were if-else, but now it will execute both parts.
Refactor \Order\Shipment\Save Controller to use ResultInterface #20057 (diff) - In one place there still NOT return result object, but setting response body via
$this->getResponse()->representJson($responseAjax->toJson()).
. Would be better to fix all places to return ResultInterface
Refactor \Order\Shipment\Save Controller to use ResultInterface #20057 (diff) - There are some unit tests failures. Please fix them.
There also integration tests failures, but I think they should NOT be related to this change, so it's actually ok.
app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php
Outdated
Show resolved
Hide resolved
a4c1d9f
to
3004df4
Compare
8d67d08
to
00953bc
Compare
@ihor-sviziev Should be all solved 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.
Now everything is fine, will fix one really minor issue little bit later and approve your pr
app/code/Magento/Shipping/Controller/Adminhtml/Order/Shipment/Save.php
Outdated
Show resolved
Hide resolved
…ultInterface Fix return type
Hi @sivaschenko, thank you for the review. |
Hi @JeroenVanLeusden, thank you for your contribution! |
Hi @JeroenVanLeusden. Thank you for your contribution. |
Description (*)
Refactor \Order\Shipment\Save Controller to use ResultInterface
Fixed Issues (if relevant)
Manual testing scenarios (*)
Contribution checklist (*)