-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[API][Order] Fixed wrong where condition when looking for order #11895
Conversation
b436ffb
to
d8083f2
Compare
@lchrusciel @pamil Anything missing with this bugfix? |
@pamil @AdamKasp @Zales0123 Guys... this bug blocks any usage of shop API with guess orders (you can do one order, next will die with fatal error), is there anything we can push this forward? |
@pamil @lchrusciel Just noticed that exactly same problem is when you ask for order items. It will die with Doctrine exception founding more than one item for given "parameters".
|
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 Joseph,
sorry for the long feedback (and a few patch releases). Your PR fixes a really annoying issue, thanks for that. We will try to have it merged and perhaps released by the end of the week.
The only missing part for this PR is some tests despite specs to avoid regression. @AdamKasp would you be able to finish it?
Fixes #12023 as well |
->shouldBeCalled() | ||
->willReturn($queryBuilder) | ||
->willReturn($expr); |
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.
->willReturn($expr); | |
->willReturn($expr) | |
; |
->shouldBeCalled() | ||
->willReturn($queryBuilder) | ||
->willReturn($expr); |
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.
->willReturn($expr); | |
->willReturn($expr) | |
; |
Thanks, Joseph! 🎉 |
thanks @stloyd !! |
…ge (GSadee) This PR was merged into the 1.9-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | after #11895 | License | MIT Commits ------- e80eae2 [API] Fix PHPSpec of order query extension after upmerge
Feel free to update your projects, I've just published a new release https://github.com/Sylius/Sylius/releases/tag/v1.8.5 🎉 |
…ge (GSadee) This PR was merged into the 1.9-dev branch. Discussion ---------- | Q | A | --------------- | ----- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Related tickets | after Sylius/Sylius#11895 | License | MIT Commits ------- e80eae242a1dcc5d5def5b847103e9eab9e8f520 [API] Fix PHPSpec of order query extension after upmerge
Wrong query:
Fixed query:
With first it will find more than one result cause if you allow guess orders, nor user, nor customer is set.