-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Refactory to Magento_Backend module class. #17101
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
Refactory to Magento_Backend module class. #17101
Conversation
|
Hi @tiagosampaio. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
| * @var \Magento\Reports\Model\ResourceModel\Order\Collection | ||
| */ | ||
| protected $_orderCollection; | ||
| private $orderCollection; |
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.
This change is not backward compatible. Please revert it.
More details: https://devdocs.magento.com/guides/v2.2/contributor-guide/backward-compatible-development/
| * @since 100.0.6 | ||
| */ | ||
| protected $_storeManager; | ||
| private $storeManager; |
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.
This change is not backward compatible. Please revert it.
More details: https://devdocs.magento.com/guides/v2.2/contributor-guide/backward-compatible-development
| \Magento\Framework\App\Helper\Context $context, | ||
| \Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection | ||
| \Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection, | ||
| \Magento\Store\Model\StoreManagerInterface $storeManager |
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.
Please make new constructor argument optional and as retrieve it by fallback from object manager.
More details: https://devdocs.magento.com/guides/v2.2/contributor-guide/backward-compatible-development
|
@ihor-sviziev changes were reverted. |
ihor-sviziev
left a comment
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.
In general looks good, but there still backward incompatible changes
| * @var \Magento\Reports\Model\ResourceModel\Order\Collection | ||
| */ | ||
| protected $_orderCollection; | ||
| private $_orderCollection; |
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.
Please revert this change, it's not backward compatible
| * @since 100.0.6 | ||
| */ | ||
| protected $_storeManager; | ||
| private $_storeManager; |
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.
Please revert this change, it's not backward compatible
Revert backward incompatible changes
|
I fixed these small issues myself. Let's wait for Travis results |
|
Hi @ihor-sviziev, thank you for the review. |
|
Thanks @ihor-sviziev. |
|
Hi @tiagosampaio. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Refactory of a class in Magento_Backend module.
Description
Simple refactory to Magento_Backend module class.
Contribution checklist