TIP-747: upgrade the PIM from sf 2.8 to 3#6374
Conversation
e2fca60 to
7713424
Compare
| "symfony/monolog-bundle": "2.12.1", | ||
| "symfony/swiftmailer-bundle": "2.4.2", | ||
| "symfony/symfony": "~2.8", | ||
| "symfony/symfony": "3.3.0", |
f7d21f9 to
6612a97
Compare
| "symfony/swiftmailer-bundle": "2.4.2", | ||
| "symfony/symfony": "~2.8", | ||
| "symfony/security-acl": "3.0.0", | ||
| "symfony/symfony": "~3.2.0", |
There was a problem hiding this comment.
nope, don't do that on require packages, we already done that by the past, and it's a nightmare when there are new minors versions, it can cause regression and are very hard to detect.
So fix it to 3.2.2 please :)
3518c81 to
9e211b1
Compare
8f8aea6 to
65cb3e6
Compare
1ac5fba to
1d15b53
Compare
c6a94da to
174904c
Compare
174904c to
e1f2460
Compare
| /** | ||
| * @return string | ||
| */ | ||
| public function getRootDir() |
| /** | ||
| * @return string | ||
| */ | ||
| public function getCacheDir() |
| /** | ||
| * @return string | ||
| */ | ||
| public function getLogDir() |
| use Symfony\Component\Console\Input\ArgvInput; | ||
| use Symfony\Component\Debug\Debug; | ||
|
|
||
| // if you don't want to setup permissions the proper way, just uncomment the following P HP line |
| // if you don't want to setup permissions the proper way, just uncomment the following PHP line | ||
| use Symfony\Bundle\FrameworkBundle\Console\Application; | ||
| use Symfony\Component\Console\Input\ArgvInput; | ||
| use Symfony\Component\Debug\Debug; |
There was a problem hiding this comment.
weird to you use autoloading file after those use statements. Actually I didn't know that it could work. In the example on internet, it's often after.
| public static function getAllLabels() | ||
| { | ||
| return self::$statusLabels; | ||
| return array_flip(self::$statusLabels); |
There was a problem hiding this comment.
Why ? In the PR, a lot of keys/value are inverted and I don't understand why.
There was a problem hiding this comment.
Symfony changed the way the options are built, labels are keys now :(
There was a problem hiding this comment.
I do not understand why they did that but anyway...
There was a problem hiding this comment.
me too.. does not seem logical, and more important, you can loose data if label is the same :(
| $choices = []; | ||
| foreach ($channels as $channel) { | ||
| $choices[$channel['code']] = null !== $channel['label'] ? $channel['label'] : '[' . $channel['code'] . ']'; | ||
| $choices[null !== $channel['label'] ? $channel['label'] : '[' . $channel['code'] . ']'] = $channel['code']; |
|
|
||
| /** | ||
| * @param Request $request | ||
| * @return Request |
| _renderCriteria: function(el) { | ||
| const inKey = __('pim.grid.choice_filter.label_in_list'); | ||
| const emptyKey = __('pim.grid.choice_filter.label_empty'); | ||
| const notEmptyKey = __('pim.grid.choice_filter.label_not_empty'); |
There was a problem hiding this comment.
just for my personal JS culture, why ?
There was a problem hiding this comment.
Answered to @momoss in DM.
It was because I thought I should inverts also in JS and in JS we can't build dynamically a JSON key. But it does not seems useful now.
| require_once __DIR__.'/../app/AppKernel.php'; | ||
| //require_once __DIR__.'/../app/AppCache.php'; | ||
|
|
||
| require __DIR__.'/../vendor/autoload.php'; |
There was a problem hiding this comment.
the web app in prod is the only file in Symfony 3.3 that should load bootstrap.php.cache.
There was a problem hiding this comment.
this file has been copied directly from a sf 3.3 fresh installation. They load bootstratp.php.cache file only if the version of PHP is < 7. see https://github.com/symfony/symfony-demo/blob/master/web/app.php#L22
There was a problem hiding this comment.
Yes, but this is a demo not focus on performance.
https://symfony.com/doc/current/performance.html#use-bootstrap-files
If we don't provide it in pim-community-dev, no problem, but we should at least put it in the standard edition.
There was a problem hiding this comment.
Ok sry I'm wrong:
symfony/symfony-docs#7357
symfony/symfony-standard#1030
I've seen the opposite on some blogs.
70f3e83 to
2fdba4e
Compare
Upgrade the PIM to Symfony 3.3.6 and related dependencies too.
Main changes:
!=,>,>=Result of bench for medium catalog:
master - symfony 2.8
import 50000 new products: 51:05,68 total
export 50000 products: 11:25,21 total
master - symfony 3.3
import 50000 new products: 52:47,27 total
export 50000 products: 11:44,14 total
Description (for Contributor and Core Developer)
Definition Of Done (for Core Developer only)
Todo: Pending / Work in progressOK: Done / Validated-: Not needed