Add Events to the codebase
spaghetticode opened this issue · 2 comments
spaghetticode commented
Add Events to the codebase
spaghetticode commented
Spree::OrderUpdater#run_hooks
has been deprecated in favor of the event order_recalculated
spawn by Spree::OrderUpdater#update
. As run_hooks
is based on order's hooks, Spree::Order.register_update_hook
has been deprecated as well.
The problem with those deprecation is that, as the order updater is run so much often in the codebase, there's a huge number of spec failures due to them. One way to circumvent the problem is to not have these warnings show up when running tests.
spaghetticode commented
This PR solidusio#3553 adds the order_recalculated
event