-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Autosave changed shipping rates #6374
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Autosave changed shipping rates #6374
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6374 +/- ##
=======================================
Coverage 89.45% 89.45%
=======================================
Files 974 974
Lines 20322 20322
=======================================
Hits 18179 18179
Misses 2143 2143 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
168a66e to
59a592d
Compare
|
I've added a direct spec for shipments testing "marked_for_destruction", because on direct associations that is one of the few ways in which it actually changes behavior. I've also added |
|
Good to merge for me! |
For in-memory promotion recalculation, it's important that shipping rates and their associated discounts are persisted when the underlying order is `save`d. This only works with the `inverse_of: shipping_rates` is set on `ShippingRate#shipment` along with the `autosave: true` on `Shipment#shipping_rates`.
Shipping Rate taxes are something we want to be able to modify in the order updater without having to update the order graph one by one.
59a592d to
12a5ebe
Compare
Summary
For in-memory promotion recalculation, it's important that shipping rates and their associated discounts are persisted when the underlying order is
saved. This only works with theinverse_of: shipping_ratesis set onShippingRate#shipmentalong with theautosave: trueonShipment#shipping_rates.Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: