Skip to content

Conversation

@forkata
Copy link
Contributor

@forkata forkata commented Dec 2, 2025

Summary

This change will be used in the new in memory order updater as part of #5872.

We only want to persist to the database once we perform the action, not when we
are computing the amount.

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.

This method will be used in the in memory order updater. We only want to
persist to the database once we perform the action, not when we are
computing the amount.
@github-actions github-actions bot added the changelog:solidus_legacy_promotions Changes to the solidus_legacy_promotions gem label Dec 2, 2025
@forkata forkata changed the title Don't persist line item actions in compute_amount [legacy_promotions] Don't persist line item actions in compute_amount Dec 2, 2025
@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.46%. Comparing base (57e8ef9) to head (dc32b3b).
⚠️ Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6393   +/-   ##
=======================================
  Coverage   89.46%   89.46%           
=======================================
  Files         977      977           
  Lines       20386    20389    +3     
=======================================
+ Hits        18238    18241    +3     
  Misses       2148     2148           

☔ 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.

@forkata forkata marked this pull request as ready for review December 2, 2025 23:52
@forkata forkata requested a review from a team as a code owner December 2, 2025 23:52
@tvdeyen tvdeyen added this to the 4.7 milestone Dec 3, 2025
@mamhoff mamhoff merged commit 765d4fd into solidusio:main Dec 3, 2025
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog:solidus_legacy_promotions Changes to the solidus_legacy_promotions gem

Projects

Development

Successfully merging this pull request may close these issues.

4 participants