Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Product] Fixed products sorting by price#10274

Closed
laSyntez wants to merge 1 commit into
Sylius:1.4from
laSyntez:issue_10266
Closed

[Product] Fixed products sorting by price#10274
laSyntez wants to merge 1 commit into
Sylius:1.4from
laSyntez:issue_10266

Conversation

@laSyntez
Copy link
Copy Markdown
Contributor

Updated the createShopListQueryBuilder method of ProductRepository to get rid of the SQL error that causes a 500 one when trying to sort products by price in the shop.

Q A
Branch? 1.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #10266
License MIT

@laSyntez laSyntez requested a review from a team as a code owner March 28, 2019 15:19
@Zales0123 Zales0123 added the Potential Bug Potential bugs or bugfixes, that needs to be reproduced. label Mar 28, 2019
Updated the createShopListQueryBuilder method of ProductRepository to get rid of the SQL error that causes a 500 one when trying to sort products by price in the shop.
@Zales0123 Zales0123 changed the base branch from master to 1.4 March 29, 2019 07:29
@Zales0123
Copy link
Copy Markdown
Contributor

The base of this pull-request was changed, you need fetch and reset your local branch
if you want to add new commits to this pull request. Reset before you pull, else commits
may become messed-up.

Unless you added new commits (to this branch) locally that you did not push yet,
execute git fetch origin && git reset "issue_10266" to update your local branch.

Feel free to ask for assistance when you get stuck 👍

@Zales0123
Copy link
Copy Markdown
Contributor

Thank you for the fix, @laSyntez! I was wondering why our Behat scenarios did not fail (we have them for sorting in features/product/viewing_products/viewing_sorted_products.feature) and I realize that it's a problem specific for mySQL 5.7, which is not used right now on our Travis 😕 I believe it will be introduced with #10277, so I hope I'll be able to merge your commit asap (hopefully today 😄) 🖖 🐎

@vvasiloi
Copy link
Copy Markdown
Contributor

@Zales0123 it will break in other MYSQL versions too, if sql_mode contains ONLY_FULL_GROUP_BY .

lchrusciel added a commit that referenced this pull request Mar 29, 2019
…Syntez)

This PR was merged into the 1.4 branch.

Discussion
----------

| Q               | A
| --------------- | -----
| Branch?         | 1.4
| Bug fix?        | yes
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | fixes #10266, replaces #10274
| License         | MIT

The bug from issue #10266 has not been detected on Travis CI, due to the lower mySQL version (without `ONLY_FULL_GROUP_BY` option set). So this PR bumps the mySQL version on the Travis to **5.7** and contains the fix for the products sorting from #10274 (thank @laSyntez for this one!).

As a proof that it didn't work without the fix, you can take a look at [this build](https://travis-ci.org/Zales0123/Sylius/builds/512912936) or check out our failing demo 🚀 🤣 

We have also a PR with changing the ubuntu version on Travis to xenial (#10277), but it does not work for some reasons so bumping a mySQL version can be the first step 🖖 


Commits
-------

230a508 mySQL 5.7 on Travis
968722e [Product] Fixed products sorting by price
@Zales0123
Copy link
Copy Markdown
Contributor

Closing, due to #10278, thank you, @laSyntez, one more time!

@Zales0123 Zales0123 closed this Mar 29, 2019
@laSyntez
Copy link
Copy Markdown
Contributor Author

Glad to have been able to give a hand @Zales0123 👍.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Potential Bug Potential bugs or bugfixes, that needs to be reproduced.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants