Skip to content

Don't "persist_amounts" in order recalculation#6451

Merged
jarednorman merged 1 commit into
solidusio:mainfrom
SuperGoodSoft:more-optimization
May 29, 2026
Merged

Don't "persist_amounts" in order recalculation#6451
jarednorman merged 1 commit into
solidusio:mainfrom
SuperGoodSoft:more-optimization

Conversation

@jarednorman
Copy link
Copy Markdown
Member

This association is autosaved, and Rails knows not to retouch things when autosaving associated records. I did a test to confirm that removing this doesn't change whether the field is persisted.

@jarednorman jarednorman requested a review from a team as a code owner April 24, 2026 08:34
@jarednorman jarednorman added changelog:solidus_core Changes to the solidus_core gem backport-v4.7 Backport this pull-request to v4.7 labels 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.
✅ Project coverage is 89.68%. Comparing base (4e00cb1) to head (6106722).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6451      +/-   ##
==========================================
- Coverage   89.68%   89.68%   -0.01%     
==========================================
  Files         992      992              
  Lines       20846    20845       -1     
==========================================
- Hits        18695    18694       -1     
  Misses       2151     2151              

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

@mamhoff
Copy link
Copy Markdown
Contributor

mamhoff commented Apr 30, 2026

This needs a rebase :)

@tvdeyen
Copy link
Copy Markdown
Member

tvdeyen commented May 13, 2026

@jarednorman mind to rebase?

This association is autosaved, and Rails knows not to retouch things
when autosaving associated records. I did a test to confirm that
removing this doesn't change whether the field is persisted.
@jarednorman jarednorman merged commit c7e850d into solidusio:main May 29, 2026
39 checks passed
@solidus-bot
Copy link
Copy Markdown

solidus-bot Bot commented May 29, 2026

💚 All backports created successfully

Status Branch Result
v4.7

Questions ?

Please refer to the Backport tool documentation and see the Github Action logs for details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-v4.7 Backport this pull-request to v4.7 changelog:solidus_core Changes to the solidus_core gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants