Skip to content

Conversation

@tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Nov 21, 2025

Summary

Some stores might have their own logi of tracking state changes. Let's give them a way to disable the built in state change tracking by overwriting the track_state_change? per model instance. It defaults to the current behavior of tracking a state change if there is saved_change_to_state? from ActiveRecord::Dirty.

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.

@tvdeyen tvdeyen requested a review from a team as a code owner November 21, 2025 09:40
@tvdeyen tvdeyen added the backport-v4.6 Backport this pull-request to v4.6 label Nov 21, 2025
@github-actions github-actions bot added the changelog:solidus_core Changes to the solidus_core gem label Nov 21, 2025
@codecov
Copy link

codecov bot commented Nov 21, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.46%. Comparing base (f54d7ff) to head (08ed515).
⚠️ Report is 15 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6380   +/-   ##
=======================================
  Coverage   89.45%   89.46%           
=======================================
  Files         974      975    +1     
  Lines       20322    20335   +13     
=======================================
+ Hits        18179    18192   +13     
  Misses       2143     2143           

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

Some stores might have their own logi of tracking state
changes. Let's give them a way to disable the built in
state change tracking by overwriting the `track_state_change?`
per model instance. It defaults to the current behavior of
tracking a state change if there is `saved_change_to_state?`
from `ActiveRecord::Dirty`.
@tvdeyen tvdeyen force-pushed the state-change-tracking-toggle branch from 6663151 to 08ed515 Compare November 21, 2025 14:22
@tvdeyen tvdeyen merged commit ea4bb50 into solidusio:main Nov 26, 2025
39 checks passed
@tvdeyen tvdeyen deleted the state-change-tracking-toggle branch November 26, 2025 06:30
@solidus-bot
Copy link

solidus-bot bot commented Nov 26, 2025

💚 All backports created successfully

Status Branch Result
v4.6

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.6 Backport this pull-request to v4.6 changelog:solidus_core Changes to the solidus_core gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants