Hey I'm upgrading my app from v2.10. There are som...
# support
k
Hey I'm upgrading my app from v2.10. There are some warnings on v.2.11, and one of them is:
Spree::Order state machine defined in Spree::Order::Checkout is deprecated. Future versions of Solidus will use Spree::Core::StateMachines::Order
In the view of the fact that I will upgrade my app further to v3.2, what is the best way to fix that? Should I switch to the Solidus event subscription? Any advice... 🙏
Adding into the
config/initializers/spree.rb
config:
Copy code
config.use_legacy_order_state_machine = false
removed the warning.
k
That’s it. If your app is working as usual you are good to go, and it means that you probably didn’t change anything on the order state machine
k
Thanks for your reply. 🙇 Now I'm working to fix the deprecation warnings and patch my code to pass tests. I hope it will go fine by the end. 😁