This guide contains instructions to upgrade from version v7.2.0 to v7.2.1.
Before you start, don't forget to take a look at general instructions about upgrading. There you can find links to upgrade notes for other versions too.
- call
Form::isSubmitted()
beforeForm::isValid()
(#1041)- search for
$form->isValid() && $form->isSubmitted()
and fix the order of calls (inshopsys/project-base
the wrong order could have been found insrc/Shopsys/ShopBundle/Controller/Front/PersonalDataController.php
):- if ($form->isValid() && $form->isSubmitted()) { + if ($form->isSubmitted() && $form->isValid()) {
- search for
- fix the typo in Twig template
@ShopsysShop/Front/Content/Category/panel.html.twig
(#1043)categoriyWithLazyLoadedVisibleChildren
⟶categoryWithLazyLoadedVisibleChildren
- create an empty file
app/Resources/.gitkeep
to prepare a folder for your overwritten templates (#1073) - fix
FilterQueryTest
to use ElasticSearch index prefix properly viaElasticsearchStructureManager
(#1082)- private const ELASTICSEARCH_INDEX = 'product1'; + private const ELASTICSEARCH_INDEX = 'product';
- $filter = $filterQueryFactory->create(self::ELASTICSEARCH_INDEX); + /** @var \Shopsys\FrameworkBundle\Component\Elasticsearch\ElasticsearchStructureManager $elasticSearchStructureManager */ + $elasticSearchStructureManager = $this->getContainer()->get(ElasticsearchStructureManager::class); + + $elasticSearchIndexName = $elasticSearchStructureManager->getIndexName(1, self::ELASTICSEARCH_INDEX); + + $filter = $filterQueryFactory->create($elasticSearchIndexName);
- replace url part in
infrastructure/google-cloud/nginx-ingress.tf
to use released version of this nginx-ingress configuration (#1077)- command = "kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml" + command = "kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/nginx-0.24.1/deploy/mandatory.yaml"
- add configuration into
kubernetes/deployments/webserver-php-fpm.yml
to run initialization process of php-fpm container as user www-data(33) (#1078)- name: copy-source-codes-to-volume image: ~ + securityContext: + runAsUser: 33 command: ["sh", "-c", "cp -r /var/www/html/. /tmp/source-codes"]
- name: initialize-database image: ~ + securityContext: + runAsUser: 33 command: ["sh", "-c", "cd /var/www/html && ./phing db-create dirs-create db-demo product-search-recreate-structure product-search-export-products grunt error-pages-generate warmup"]