Skip to content

Conversation

@mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Oct 29, 2025

Summary

The store I work in lets customers cancel their orders, and create a new one in its stead. The feature is described as "Edit your order" to customers. When they do this, the order they then place is perceived to be their first order, and I think we should respect that.

Also changes the spec to work with actual records rather than mocking chains.

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

@mamhoff mamhoff requested a review from a team as a code owner October 29, 2025 13:26
@github-actions github-actions bot added the changelog:solidus_promotions Changes to the solidus_promotions gem label Oct 29, 2025
@codecov
Copy link

codecov bot commented Oct 29, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.34%. Comparing base (f418798) to head (99f7562).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6343   +/-   ##
=======================================
  Coverage   89.34%   89.34%           
=======================================
  Files         961      961           
  Lines       20165    20165           
=======================================
  Hits        18016    18016           
  Misses       2149     2149           

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

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.

Nice find!

@tvdeyen tvdeyen added the backport-v4.6 Backport this pull-request to v4.6 label Oct 29, 2025
@tvdeyen
Copy link
Member

tvdeyen commented Oct 29, 2025

I warrant this back port worthy

@tvdeyen
Copy link
Member

tvdeyen commented Oct 29, 2025

@mamhoff you are too wasteful with your white space

Layout/EmptyLines: Extra blank line detected

Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

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

👍 and thanks for removing some nasty mocks 🙏

The store I work in lets customers cancel their orders, and create a new
one in its stead. The feature is described as "Edit your order" to
customers. When they do this, the order they then place is perceived to
be their first order, and I think we should respect that.

Also changes the spec to work with actual records rather than mocking
chains.
@mamhoff mamhoff force-pushed the first-order-respect-canceled-orders branch from 69eb393 to d259287 Compare October 29, 2025 15:47
@tvdeyen
Copy link
Member

tvdeyen commented Oct 29, 2025

Do you mind to also fix this in legacy_promotions?

This rule also considered canceled first orders as first orders when it
should not.
@github-actions github-actions bot added the changelog:solidus_legacy_promotions Changes to the solidus_legacy_promotions gem label Oct 30, 2025
@mamhoff
Copy link
Contributor Author

mamhoff commented Oct 30, 2025

Do you mind to also fix this in legacy_promotions?

Done

@tvdeyen tvdeyen merged commit 2d1fcff into solidusio:main Oct 31, 2025
39 checks passed
@github-actions
Copy link

💚 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_legacy_promotions Changes to the solidus_legacy_promotions gem changelog:solidus_promotions Changes to the solidus_promotions gem

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants