Skip to content

[v4.7] Only fire order recalculated events after save#6449

Merged
jarednorman merged 1 commit intov4.7from
backport/v4.7/pr-6447
Apr 24, 2026
Merged

[v4.7] Only fire order recalculated events after save#6449
jarednorman merged 1 commit intov4.7from
backport/v4.7/pr-6447

Conversation

@solidus-bot
Copy link
Copy Markdown

@solidus-bot solidus-bot Bot commented Apr 24, 2026

Backport

This will backport the following commits from main to v4.7:

Questions ?

Please refer to the Backport tool documentation

The events should be published only once the transaction has completed,
so any jobs fired from subscribers see the new version of the order.
Also, the event bus has a job-backed backend (that I'm not sure anyone
uses) so this should also fix race conditions with that.

Besides fixing race conditions with subscribers, this also ensure we
don't fire the event when the order is *not* being persisted.

(cherry picked from commit 9a2cda1)
@solidus-bot solidus-bot Bot requested a review from a team as a code owner April 24, 2026 05:07
@solidus-bot solidus-bot Bot added the changelog:solidus_core Changes to the solidus_core gem label Apr 24, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (v4.7@5cdc437). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff           @@
##             v4.7    #6449   +/-   ##
=======================================
  Coverage        ?   89.66%           
=======================================
  Files           ?      990           
  Lines           ?    20792           
  Branches        ?        0           
=======================================
  Hits            ?    18644           
  Misses          ?     2148           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 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.

@jarednorman jarednorman enabled auto-merge April 24, 2026 05:23
@jarednorman jarednorman merged commit b3c3c58 into v4.7 Apr 24, 2026
39 checks passed
@jarednorman jarednorman deleted the backport/v4.7/pr-6447 branch April 24, 2026 05:23
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