Needs review
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Cart
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2015 at 12:39 UTC
Updated:
26 Jul 2016 at 06:35 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
skek commentedComment #3
br0kenJust a re-roll.
Comment #5
mglamanI know many people refer to carts as baskets, now. However everywhere else we say cart.
Comment #6
br0ken@mglaman, are you agreed with other things? By the way, why tests are failed?
Comment #7
br0kenComment #8
mglamanI agree we should try and catch here, since there is a chance for an exception.
No idea why the tests are failing, though.
Comment #10
br0ken@mglaman, the exceptions aren't caused by this patch. Could it be committed?
Comment #11
mglamanNo, because if commit the patch then the branch tests will not pass.
It is currently passing: https://www.drupal.org/pift-ci-job/273471.
Comment #13
br0kenBut the last success was on May 4, 2016. Can we re-run tests on current state of branch?
Comment #14
mglamanGood catch; re-queued to see. Other patches have been passing though, AFAIK. I'm tied up right now, but I'll investigate today.
Comment #15
br0kenSo, tests are failed with the same result and, I guess, this patch can be merged.
Comment #16
mglamanBR0kEN first priority is to fix HEAD. And get the patch reviewed more. On a one off review I agree with it.
Comment #17
br0kenStrange, I've run whole set of tests locally and they are worked as should.
Comment #18
br0kenI have improved the
CommerceCustomerUITesttest (see related issue) to get rid from PHP warning/notices and meet Drupal coding standards.Comment #19
rszrama commentedGenerally agreed on adding try / catch blocks around usages of the entity metadata wrapper. What's going on here, though? Are you just getting a bunk order object that doesn't have a list wrapper in place for the line items field? Or something else?
For the message, let's make it a little more plain: "The product could not be added to your cart. Please try again or contact us for support."
Comment #20
br0ken@rszrama, things can happen during saving the order or invoking the rules, for instance.
Comment #22
rszrama commentedYes, but things like what? An order save or Rule evaluation shouldn't typically result in a fatal error. : P
In other words, what's the precise error message / what module or rule configuration is causing the fatal? It'd be worth fixing the actual root issue.
Comment #23
br0kenTypically not, but I had an issue with other module (
user_addressbook), when order couldn't be saved an, instead of error message, site gone down. Also, potential issues could be raised when an event will be added for custom rules.Comment #24
br0kenComment #25
mglamanHEAD 1.x fixed :D retesting
Comment #26
br0kenHaha, tests passed :)
Comment #27
br0ken@rszrama, @mglaman what we will do with this issue?