Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

386: Adapt \Magento\CatalogInventory\Helper\Stock::addStockStatusToProducts #418

Merged
merged 19 commits into from
Jan 25, 2018

Conversation

p-bystritsky
Copy link
Contributor

Description

Added around plugin to \Magento\CatalogInventory\Helper\Stock::addStockStatusToProducts and integration test.

Fixed Issues (if relevant)

  1. Adapt \Magento\CatalogInventory\Helper\Stock::addStockStatusToProducts #386: Adapt \Magento\CatalogInventory\Helper\Stock::addStockStatusToProducts

Manual testing scenarios

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • 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)

@p-bystritsky p-bystritsky removed the WIP label Jan 16, 2018
@p-bystritsky p-bystritsky removed the WIP label Jan 18, 2018
AbstractCollection $productCollection
) {
// We need to prevent the collection modification by plugins next in the chain.
$temporaryCollection = clone $productCollection;
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can not do it
Because it means that functionality in next plugins will be broken (will be applied on clone, but not on real collection)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@naydav naydav merged commit 8eba350 into develop Jan 25, 2018
@maghamed maghamed deleted the 386 branch December 11, 2018 18:18
magento-devops-reposync-svc pushed a commit that referenced this pull request Nov 16, 2023
ACPT-1643: Fix Inventory salable performance issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants