Skip to content
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

Remove the usage of the DataObject for response management #10808

Conversation

dmanners
Copy link
Contributor

@dmanners dmanners commented Sep 7, 2017

Description

In the class code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php the DataObject is used but it really does not need to be used. This controller seems to be a very simple controller which always returns the same response. For this case setting the appropriate array to the $resultJson seems to be a good replacement.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

…/code/Magento/Catalog/Controller/Adminhtml/Category/Validate.php
@ishakhsuvarov ishakhsuvarov self-assigned this Sep 7, 2017
@ishakhsuvarov ishakhsuvarov added this to the September 2017 milestone Sep 7, 2017
@magento-team magento-team merged commit 25b0343 into magento:develop Sep 8, 2017
magento-team pushed a commit that referenced this pull request Sep 8, 2017
[EngCom] Public Pull Requests
 - MAGETWO-72390: Remove the usage of the DataObject for response management #10808
 - MAGETWO-71545: Added 'application/json' Content-Type to Ajax responses in the Magento_UI module. #10521
 - MAGETWO-72388: Fix spelling mistake in AddressTest.php #10806
 - MAGETWO-72283: Code generate: support variadic parameter #10771
@dmanners dmanners deleted the remove-data-object-from-json-controllers branch December 19, 2017 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants