-
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
Rating Summary in Graphql return wrong rating_summary in multistores website #39703
Comments
Hi @zexperto. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @zexperto, Thanks for your reporting and collaboration. We have tried to reproduce the issue in latest 2.4-develop instance and the issue is not reproducible.kindly refer the screenshots. ![]() We are getting the rating_summary.Could you please let us know if we are missing anything and also elaborate the steps to reproduce if possible please provide screenshots as well. Thanks. |
@engcom-Bravo sorry I thought I added the graphql query, here is the query that I use
|
Hi @zexperto, Thanks for your update. We have tried We have tried to reproduce the issue in latest 2.4-develop instance and the issue is not reproducible.kindly refer the screenshots. ![]() we are getting all reviews and the correct rate_summary.Could you please let us know if we are missing anything. Thanks. |
@engcom-Bravo I am not sure if you already have this setup but my setup is like this |
@magento I am working on this |
Hi @zexperto! 👋 |
@magento add to contributors team |
@magento-engcom-team give me 2.4.5 instance |
Hi @zexperto, Thanks for your update. We have tried to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.Kindly refer the screenshots. when we are passing store code for English we are getting english store reviews only. ![]() ![]() when we are passing store code for French we are getting french store reviews only. ![]() ![]() Could you please let us know if we are missing anything. Thanks. |
@engcom-Bravo Thank you for your effort I am going to close this ticket as it might be because an old data with wrong details in our side |
Preconditions and environment
Steps to reproduce
Expected result
you should either get all reviews and the correct rate_summary or you get the filtered reviews by the store and the correct rate_summary
Actual result
you get wrong rate_summary because there is a filter in this class per store id
Class: Magento\ReviewGraphQl\Model\Resolver\Product\RatingSummary
Line 85: $summary = $this->summaryFactory->create()->setStoreId($store->getId())->load($product->getId());
but the filter is not applied in the reviews
Additional information
query Products { products(filter: { sku: { eq: "{sku}" } }) { items{ rating_summary review_count reviews { items { text } } } } }
No response
Release note
GrqphQl query
Triage and priority
The text was updated successfully, but these errors were encountered: