-
-
Notifications
You must be signed in to change notification settings - Fork 729
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
Scope variant to take overrides into account in packer #7461
Scope variant to take overrides into account in packer #7461
Conversation
Codecov Report
@@ Coverage Diff @@
## master #7461 +/- ##
==========================================
+ Coverage 93.16% 93.19% +0.02%
==========================================
Files 633 633
Lines 18101 18088 -13
==========================================
- Hits 16864 16857 -7
+ Misses 1237 1231 -6
Continue to review full report at Codecov.
|
LGTM. It'll need tests though 😉 |
Yeah I'm doing battle with one right now 🙄😆 |
can we help you @andrewpbrett ? |
fbccafe
to
5e21480
Compare
Awesome 💯 I'm wondering if we should add a quick feature test as well, covering this flow:
What do you think? |
I like it, good catch @Matt-Yorkley. Added a feature spec. |
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!
I had a look at the feature spec and it seems like it passes in master (without the bugfix). I tried writing another test for this and that also passed. So... I tried writing an even longer test that went through the whole flow described in the issue, and finally managed to replicate the bug in a test. Also confirmed it's fixed by the I'm not sure if it's worth adding it, but it looks like this: a8daa72 |
That looks a lot better, thanks @Matt-Yorkley 👍 |
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.
awesome! this could be merged right away IMO. That feature spec gives me enough confidence. 🔴 => 🟢 => we fixed the issue. What do you say?
SGTM 👍 |
decreed then! |
What? Why?
Closes #7337
See comments on the issue for an extended discussion, but it appears that backoffice orders weren't accounting for inventory variant overrides ... ever?
What should we test?
Set a product (Tomatoes) to have 0 on hand and "on demand?" unchecked in the product list
Add Tomatoes to Inventory and set On Hand to 10 and On Demand to No
Add Tomatoes to a back office order
Enter customer details
Before this PR:
Get stuck at "Address" state
After this PR:
Moves to "Payment" state
Release notes
Changelog Category: User facing changes
Dependencies
Documentation updates