Skip to content

Commit

Permalink
bug #10278 Travis with mySQL 5.7 + product sorting fix (Zales0123, la…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
lchrusciel authored Mar 29, 2019
2 parents f796211 + 968722e commit 25dbd2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ env:
- SYLIUS_CACHE_DIR=$HOME/.sylius-cache
- SYLIUS_BUILD_DIR=etc/build

addons:
apt:
sources:
- mysql-5.7-trusty
packages:
- mysql-server
- mysql-client

matrix:
include:
-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ public function createShopListQueryBuilder(
;

$queryBuilder
->addSelect('variant')
->addSelect('channelPricing')
->innerJoin('o.variants', 'variant')
->innerJoin('variant.channelPricings', 'channelPricing')
->andWhere('channelPricing.channelCode = :channelCode')
Expand Down

0 comments on commit 25dbd2f

Please sign in to comment.