-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#9768: Admin dashboard Most Viewed Products Tab only gives default attribute set's products #11725
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
Conversation
@miguelbalparda please process this PR together with #11597. Implementation is identical, but this PR has a test 💪 |
@RomaKis any chance you can take a look at the failing tests? If you need any help just let us know. Thanks! |
@miguelbalparda, yes of course. I fixed it. Hope Jenkins won't fail again. |
* Test for Magento\Reports\Model\ResourceModel\Product\Collection. | ||
* | ||
* @SuppressWarnings(PHPMD.ExcessiveMethodLength) | ||
* @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
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.
While coupling is unavoidable you cannot suppress ExcessiveMethodLength
in new code, please refactor test accordingly.
Use imports actively (Alt+Enter in PhpStorm) to fit method calls in one line, getMockForAbstractClass
for interface could be replaced with createMock
.
After that please squash changes into single commit and force push into the same branch.
…ribute set's products
@orlangur, fixed "SuppressWarnings(PHPMD.ExcessiveMethodLength)" and squashed commits.
|
@RomaKis ok, I remember I was using |
This is good to go and going to be merged soon, can you please backport these changes to 2.1 and 2.0 please? |
…ives default attribute set's products #11725
@miguelbalparda, yes, I'll do it. |
Admin dashboard Most Viewed Products Tab only gives default attribute set's products
Fixed Issues (if relevant)
Manual testing scenarios
Contribution checklist