Skip to content

[Forwardport] Fix false cache_lifetime usage in xml layouts#16627

Closed
mageprince wants to merge 1 commit intomagento:2.3-developfrom
mageprince:2.3-develop-PR-port-16086
Closed

[Forwardport] Fix false cache_lifetime usage in xml layouts#16627
mageprince wants to merge 1 commit intomagento:2.3-developfrom
mageprince:2.3-develop-PR-port-16086

Conversation

@mageprince
Copy link
Copy Markdown
Contributor

Original Pull Request

#16086

Fix cache_lifetime usage with false value

Description

Fix
<argument name="cache_lifetime" xsi:type="boolean">false</argument>
Usage eg in
Magento/Swatches/view/frontend/layout/checkout_cart_configure_type_configurable.xml

Fixed Issues (if relevant)

  1. magento/magento2#<issue_number>: Issue title
  2. ...

Manual testing scenarios

Reproduced in 2.2 and 2.1 version

  1. Add configurable product to cart
  2. Move to cart
  3. Edit Configurable product

Expected result
Configurable product options should be preselected

Actual result:
Configurable product options are not preselected

It happens because there is a check in
View/Element/AbstractBlock.php
protected function _loadCache() { if ($this->getCacheLifetime() === null || !$this->_cacheState->isEnabled(self::CACHE_GROUP)) { return false; }

Contribution checklist

  • [x ] Pull request has a meaningful description of its purpose
  • [x ] All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Copy Markdown
Contributor

Hi @mageprince. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me {$VERSION} instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@magento-engcom-team
Copy link
Copy Markdown
Contributor

Hi @orlangur, thank you for the review.
ENGCOM-2217 has been created to process this Pull Request

@sidolov
Copy link
Copy Markdown
Contributor

sidolov commented Jul 16, 2018

Hi @mageprince , please, take a look at failed tests

@sidolov
Copy link
Copy Markdown
Contributor

sidolov commented Jul 30, 2018

@mageprince , I am closing this PR now due to inactivity.
Please reopen and update if you wish to continue.
Thank you for the collaboration!

@sidolov sidolov closed this Jul 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants