-
Notifications
You must be signed in to change notification settings - Fork 103
SUPESC-990 Adjust documentation for review. #3358
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
annakotiuk
merged 5 commits into
master
from
bugfix/supesc-990/master-product-review-optimisation
Nov 26, 2025
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a785c4f
SUPESC-990: adjust documentation for review
annakotiuk 8418ef7
SUPESC-990: add adjustments
annakotiuk 33728ad
SUPESC-990: cr fixes
annakotiuk bd55385
SUPESC-990: CR fixes
annakotiuk 898d731
SUPESC-990: remove extra files
annakotiuk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -491,6 +491,48 @@ protected function getOrderItemExpanderPreSavePlugins(): array | |
|
|
||
| After enabling the plugin and configuring the unique column, Spryker saves order items in batches, which reduces database overhead and improves checkout performance. | ||
|
|
||
| ## Product review performance | ||
|
|
||
| Product reviews are displayed on the catalog page, search page, and product detail page. To optimize performance when displaying product ratings, use the `ProductReviewStorageProductViewExpanderPlugin` instead of `ProductReviewSummaryProductViewBulkExpanderPlugin`. | ||
|
|
||
| The new plugin retrieves product ratings from storage in bulk, which is more efficient than fetching reviews from a search source and calculating ratings based on reviews. | ||
|
|
||
| ### Prerequisites | ||
|
|
||
| Update `spryker-shop/product-review-widget` to version `^1.17.0` or higher: | ||
|
|
||
| ```bash | ||
| composer require spryker-shop/product-review-widget:"^1.17.0" --update-with-dependencies | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please, never suggest
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ``` | ||
|
|
||
| ### Set up the plugin | ||
|
|
||
| Replace `ProductReviewSummaryProductViewBulkExpanderPlugin` with `ProductReviewStorageProductViewExpanderPlugin` in your dependency provider: | ||
|
|
||
| **src/Pyz/Yves/ProductGroupWidget/ProductGroupWidgetDependencyProvider.php** | ||
|
|
||
| ```php | ||
| <?php | ||
|
|
||
| namespace Pyz\Yves\ProductGroupWidget; | ||
|
|
||
| use SprykerShop\Yves\ProductGroupWidget\ProductGroupWidgetDependencyProvider as SprykerShopProductGroupWidgetDependencyProvider; | ||
| use SprykerShop\Yves\ProductReviewWidget\Plugin\ProductGroupWidget\ProductReviewStorageProductViewExpanderPlugin; | ||
|
|
||
| class ProductGroupWidgetDependencyProvider extends SprykerShopProductGroupWidgetDependencyProvider | ||
| { | ||
| /** | ||
| * @return array<\SprykerShop\Yves\ProductGroupWidgetExtension\Dependency\Plugin\ProductViewBulkExpanderPluginInterface> | ||
| */ | ||
| protected function getProductViewBulkExpanderPlugins(): array | ||
| { | ||
| return [ | ||
| new ProductReviewStorageProductViewExpanderPlugin(), | ||
| ]; | ||
| } | ||
| } | ||
| ``` | ||
|
|
||
| ## Reduce functionality | ||
|
|
||
| Check if you require all features you currently use and check all applied plugins if you need them. Some plugins can probably be removed. Specifically, check the following ones: | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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, suggest which package versions we need to update to have this