-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
magento/magento2#39111: Product Collection - addMediaGalleryData call… #39681
base: 2.4-develop
Are you sure you want to change the base?
Conversation
… when the collection maybe or will be loaded (Can use count to avoid an extra DB query) - Fixed call count instead of getSize if collection is loaded.
Hi @Himsoft. Thank you for your contribution!
Allowed build names are:
You can find more information about the builds here For more details, review the Code Contributions documentation. |
@magento run all tests |
… when the collection maybe or will be loaded (Can use count to avoid an extra DB query) - Fixed call count instead of getSize if collection is loaded.
@magento run all tests |
@magento run all tests |
… when the collection maybe or will be loaded (Can use count to avoid an extra DB query) - Fixed call count instead of getSize if collection is loaded.
@magento run all tests |
The failed tests are not related to fixes, they look like false positives, please pay attention to this during the review. |
Description (*)
\Magento\Catalog\Model\ResourceModel\Product\Collection::addMediaGalleryData calls getSize if the collection is loaded.
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Before fix:
getSize is called on a loaded product collection
After fix:
count is called on a loaded product collection
Questions or comments
Contribution checklist (*)