Add info about disabled callback for state machine sylius_product_review

This commit is contained in:
Michal Kaczmarek 2025-11-26 11:25:18 +01:00
parent 37117981eb
commit 121e3afc9d

View file

@ -1,3 +1,23 @@
# UPGRADE FROM `2.1.7` TO `2.1.8`
## State Machine
1. Product Review Average Rating Update
The `after` callback for updating average ratings when a review is accepted has been disabled to prevent duplicate calculations.
This change affects the `sylius_product_review` state machine configuration in the `accept` transition.
The average rating updater callback had priority `-100` and was being executed twice, which has now been fixed by disabling this specific callback.
```diff
callbacks:
after:
sylius_update_rating:
on: ["accept"]
do: ["@sylius.product_review.average_rating_updater", "updateFromReview"]
args: ["object"]
priority: -100
+ disabled: true
```
# UPGRADE FROM `2.1.5` TO `2.1.6`
### API Platform