-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow order object to be passed in. We have shipping_method.id which
is required.
- Loading branch information
Showing
1 changed file
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
e537fa3
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.
@rterbush Hey Randy, I think we need to change line 33 when you do
compute(Spree::Order)
there is noorder.stock_location.id
you might need to doorder.shipment.stock_location.id
, ping me if you need more details, I can submit a PR as welle537fa3
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.
@mrpollo not sure if you saw this PR I submitted recently: #96
I'm beginning to lose hope here. Seems just about anything in any condition is getting passed into these compute methods. I call again on @cmar @BDQ @LBRapid @radar
Is it really normal behavior to have all of these different object types, some with stock_location, some without, some with shipment, some without? Just doesn't feel right to me and leads me to think there is a bigger problem upstream.
e537fa3
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.
Hey @rterbush i created this issue so we can discuss there, maybe we can ping them the guys at IRC so we can get their input -> #97
e537fa3
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.
No, it's absolutely mental to be passing in any kind of random object depending on who the developer is and what kind of day they're having. Just sheer insanity.
Can we please find where these objects are being passed from and normalize to using
Spree::Stock::Package
objects instead? That is the path to sanity.