As we are doing with Product translations, we should also soft-delete shipping method 's translations.
At the moment, we are just keeping them around and they will be restored automatically if the shipping is undiscarded. This works but it's not ideal since they should be marked as discarded as well.
We can improve this extension by just adding the deleted_at column to the spree_shipping_methods_transations table, and adding discard methods to that table as it's currently done with Spree::Product (in its decorator).
Ref: 0293d9f
As we are doing with Product translations, we should also soft-delete shipping method 's translations.
At the moment, we are just keeping them around and they will be restored automatically if the shipping is undiscarded. This works but it's not ideal since they should be marked as discarded as well.
We can improve this extension by just adding the
deleted_atcolumn to thespree_shipping_methods_transationstable, and adding discard methods to that table as it's currently done withSpree::Product(in its decorator).Ref: 0293d9f