You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This removes the "hack" that forbids destroying shipping methods from /admin and makes use of Spree's soft delete implementation (deleted_at column in spree_shipping_methods).
This way admins can disable a particular shipping method, so no one uses it anymore, while still showing the shipping method for past orders in reports.
TODO
remove N+1
Check /admin/orders and /accounts
QA order_cycle_management and customers reports: They must work like now and shipping_methods should be deletable.
How is this related to Spree upgrade?
You are right to ask. app/controllers/spree/admin/shipping_methods_controller_decorator.rb below references the column shipping_method_id from the spree_orders table and this won't be longer available in Spree 2.0 aka. step 7.
By shipping this simple change into a release before the step 7 we reduce the chance of introducing bugs and more important, we make that actual step 7 release more lightweight, which people testing will thank.
The text was updated successfully, but these errors were encountered:
Do you mind if I close this issue, which just copies the PR's description, and we stick to #2010 instead? that one is already linked to its parent epic #2011.
luisramos0
changed the title
Soft delete shipping methods and enable destroys
[Spree 2 Upgrade] Soft delete shipping methods and enable destroys
Aug 24, 2018
As per the detail in PR #1659:
This removes the "hack" that forbids destroying shipping methods from /admin and makes use of Spree's soft delete implementation (
deleted_at
column inspree_shipping_methods
).This way admins can disable a particular shipping method, so no one uses it anymore, while still showing the shipping method for past orders in reports.
TODO
/admin/orders
and/accounts
How is this related to Spree upgrade?
You are right to ask.
app/controllers/spree/admin/shipping_methods_controller_decorator.rb
below references the columnshipping_method_id
from thespree_orders
table and this won't be longer available in Spree 2.0 aka. step 7.By shipping this simple change into a release before the step 7 we reduce the chance of introducing bugs and more important, we make that actual step 7 release more lightweight, which people testing will thank.
The text was updated successfully, but these errors were encountered: