Delegate create_proposed_shipments to Spree::OrderShipping#6509
Draft
sofiabesenski4 wants to merge 1 commit into
Draft
Delegate create_proposed_shipments to Spree::OrderShipping#6509sofiabesenski4 wants to merge 1 commit into
sofiabesenski4 wants to merge 1 commit into
Conversation
4254f84 to
6b07b2c
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6509 +/- ##
=======================================
Coverage 89.68% 89.69%
=======================================
Files 991 993 +2
Lines 20832 20865 +33
=======================================
+ Hits 18683 18714 +31
- Misses 2149 2151 +2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Spree::OrderShipping is a configurable class, which increases the extensibility for this system behaviour. The Spree::Order model also shouldn't need to be responsible for the creation of its own shipments. Separating this concern will allow us to refactor the underlying stock coordination implementation without introducing additional churn on the already heavy Spree::Order class. Co-authored-by: Adam Mueller<adam@super.gd>
6b07b2c to
1fdef1d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
(From the first commit message)
Spree::OrderShipping is a configurable class, which increases the extensibility for this system behaviour. The Spree::Order model also shouldn't need to be responsible for the creation of its own shipments.
Separating this concern will allow us to refactor the underlying stock coordination implementation without introducing additional churn on the already heavy Spree::Order class.
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: