-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Promotions: First Order condition must not fail on canceled orders #6343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promotions: First Order condition must not fail on canceled orders #6343
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. 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. 🚀 New features to boost your workflow:
|
tvdeyen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice find!
|
I warrant this back port worthy |
|
@mamhoff you are too wasteful with your white space
|
spaghetticode
left a comment
There was a problem hiding this 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.
69eb393 to
d259287
Compare
|
Do you mind to also fix this in legacy_promotions? |
This rule also considered canceled first orders as first orders when it should not.
Done |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
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: