Skip to content

Conversation

@benjaminwil
Copy link
Contributor

Summary

This pull request adds three new order-related events to the event system:

  • :order_canceled
  • :order_short_shipped
  • :carton_shipped

We were motivated to make this change so that we can, in the future, send transaction emails for these events via subscribers. We already do this for order confirmation emails and reimbursement emails. Aligning all mailers to work the same way seems like an improvement.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

benjaminwil and others added 3 commits February 28, 2025 11:01
This event fires when the order `#cancel!` event is fired as part of the
stock order state machine events.

Co-Authored-By: Adam Mueller <adam@super.gd>
This event fires when `OrderCancellations#short_ship` is fired when an
an inventory unit is canceled from an order.

Co-Authored-By: Adam Mueller <adam@super.gd>
This adds a `:carton_shipped` event that is published whenever
`OrderShipping#ship` succeeds to mark a carton as shipped.

Co-Authored-By: Adam Mueller <adam@super.gd>
@benjaminwil benjaminwil requested a review from a team as a code owner February 28, 2025 19:05
@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label Feb 28, 2025
@codecov
Copy link

codecov bot commented Feb 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.81%. Comparing base (cc2f7cb) to head (003cb78).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6170   +/-   ##
=======================================
  Coverage   88.81%   88.81%           
=======================================
  Files         835      835           
  Lines       18153    18156    +3     
=======================================
+ Hits        16122    16125    +3     
  Misses       2031     2031           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long overdue, thanks!

@kennyadsl kennyadsl merged commit d00c324 into solidusio:main Mar 1, 2025
23 checks passed
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.

3 participants