Skip to content

Resolve model Rss extends wrong class #24183

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

Merged

Conversation

edenduong
Copy link
Contributor

@edenduong edenduong commented Aug 19, 2019

Description (*)

Please see: app/code/Magento/Review/Model/Rss.php

image

  • The __construct() is override the parent class, but it doesn't call the parent::__construct().

Fixed Issues (if relevant)

Manual testing scenarios (*)

Unit test covered.

Questions or comments

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 are green)

@m2-assistant
Copy link

m2-assistant bot commented Aug 19, 2019

Hi @edenduong. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento give me test instance - deploy test instance based on PR changes
  • @magento give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Guide documentation.

*/
class Rss extends \Magento\Framework\Model\AbstractModel
class Rss
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately, we can't remove inheritance according to our Backward Compatible Development Guide. Someone can use Rss model in 3d party code and use methods from the \Magento\Framework\Model\AbstractModel
It's better to call the parent constructor here, looks like that call was missed during the refactoring.

Copy link
Contributor Author

@edenduong edenduong Aug 20, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sidolov: I have changed it. Now, I think it following the Backward Compatible Development Guide.
Thank you very much.

@ghost ghost assigned sidolov Aug 19, 2019
@edenduong edenduong force-pushed the 2.3-bugfix/issue_model_ress branch from 382d50c to 88ee6cf Compare August 20, 2019 07:54
@magento-engcom-team
Copy link
Contributor

Hi @sidolov, thank you for the review.
ENGCOM-5671 has been created to process this Pull Request
✳️ @sidolov, could you please add one of the following labels to the Pull Request?

Label Description
Auto-Tests: Covered All changes in Pull Request is covered by auto-tests
Auto-Tests: Not Covered Changes in Pull Request requires coverage by auto-tests
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests

@engcom-Delta
Copy link
Contributor

✔️ QA passed

@sidolov sidolov added the Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests label Sep 14, 2019
@magento-engcom-team magento-engcom-team merged commit 0be11cc into magento:2.3-develop Sep 14, 2019
@m2-assistant
Copy link

m2-assistant bot commented Sep 14, 2019

Hi @edenduong, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@magento-engcom-team magento-engcom-team added this to the Release: 2.3.4 milestone Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Auto-Tests: Not Required Changes in Pull Request does not require coverage by auto-tests Component: Review Progress: accept Release Line: 2.3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants