Skip to content

Delegate create_proposed_shipments to Spree::OrderShipping#6509

Draft
sofiabesenski4 wants to merge 1 commit into
solidusio:mainfrom
SuperGoodSoft:introduce-extensible-stock-coordinator
Draft

Delegate create_proposed_shipments to Spree::OrderShipping#6509
sofiabesenski4 wants to merge 1 commit into
solidusio:mainfrom
SuperGoodSoft:introduce-extensible-stock-coordinator

Conversation

@sofiabesenski4

@sofiabesenski4 sofiabesenski4 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

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:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

@github-actions github-actions Bot added the changelog:solidus_core Changes to the solidus_core gem label Jun 30, 2026
@sofiabesenski4 sofiabesenski4 force-pushed the introduce-extensible-stock-coordinator branch from 4254f84 to 6b07b2c Compare June 30, 2026 20:53
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.69%. Comparing base (a0746e6) to head (1fdef1d).
⚠️ Report is 20 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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>
@sofiabesenski4 sofiabesenski4 force-pushed the introduce-extensible-stock-coordinator branch from 6b07b2c to 1fdef1d Compare June 30, 2026 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:solidus_core Changes to the solidus_core gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant