Skip to content

Conversation

@novikor
Copy link
Contributor

@novikor novikor commented Nov 15, 2020

See #3202

Description (*)

A common version for #3140 IsProductSalable/AreProdustsSalable composite products support and #3201: Load product salability data on-demand

Fixed Issues (if relevant)

  1. Fixes IsProductSalable/AreProdustsSalable composite products support. #3140 IsProductSalable/AreProdustsSalable composite products support
  2. Fixes Load product salability data on-demand #3201: Load product salability data on-demand

Manual testing scenarios (*)

Not now

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 are green)

@novikor
Copy link
Contributor Author

novikor commented Nov 15, 2020

@magento run all tests

@novikor
Copy link
Contributor Author

novikor commented Nov 18, 2020

@magento run Integration Tests

@novikor
Copy link
Contributor Author

novikor commented Nov 18, 2020

@magento run Functional Tests CE

novikor and others added 22 commits January 4, 2021 12:31
Apply code review changes.
Move bundle status check to plugin.
Move configurable plugin to around.
Both facts comes from fact for bundle and configurable produts, salability status is depends only on salability status of their children (and does not depend on the condition chain).
Fixed case when composite product has out of stock status.
Fix static tests.
…lability calculation from observer to plugin method to be executed on demand.
Restored Bundles support plugin for IsProductSalableChain
OleksandrKravchuk and others added 2 commits January 4, 2021 12:31
…to#3140

Load product salability data on-demand magento#3201.
Fixed IsProductSalable for products with calculated SKUs
@novikor novikor force-pushed the product-salability-improvements-fork branch from ee38c3e to 9ed24ae Compare January 4, 2021 10:32
@novikor
Copy link
Contributor Author

novikor commented Jan 4, 2021

@magento run Integration Tests

@novikor
Copy link
Contributor Author

novikor commented Jan 4, 2021

@magento run Functional Tests CE

…to#3140

Load product salability data on-demand magento#3201.
Removed abandoned test after covered class removal
@novikor
Copy link
Contributor Author

novikor commented Jan 5, 2021

@magento run Integration Tests

@novikor
Copy link
Contributor Author

novikor commented Jan 5, 2021

@magento run Functional Tests CE

…to#3140

Load product salability data on-demand magento#3201.
Verify product statuses during salability calculation for composite products using default functionality.
@novikor
Copy link
Contributor Author

novikor commented Jan 19, 2021

@magento run all tests

@novikor
Copy link
Contributor Author

novikor commented Jan 20, 2021

The development part seems to be finished.

However, there are some test cases that should be covered:

  • Bundle product with disabled items frontend availability (MFTF and/or Integration):
  • Custom stock with custom source, with sales channel assigned;
  • A bundle product with a single simple bundle item assigned to the custom source, In stock;
  • The simple product has Enable Product set to No
  • Expected result: bundle product is out of stock and not available on the frontend.
  • Invalid Actual result example:
    image
  • Configurable product with disabled children frontend availability (Integration, already covered by MFTF: AdminConfigurableProductWithDisabledChildrenOnAdditionalStockTest):
  • Custom stock with custom source, with sales channel assigned;
  • A configurable product with a single simple child item assigned to the custom source, In stock;
  • The simple product has Enable Product set to No
  • Expected result: configurable product is out of stock and not available on the frontend (\Magento\Catalog\Model\Product::isSalable must return false).
  • Cover AreProductsSalableInterface Configurable Product compatibility (Integration)
  • Cover AreProductsSalableInterface Bundle Product compatibility (Integration)

@swnsma .

@novikor
Copy link
Contributor Author

novikor commented Jan 21, 2021

@magento run all tests

@sidolov
Copy link
Contributor

sidolov commented Feb 1, 2021

@magento run all tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Review in Progress

Development

Successfully merging this pull request may close these issues.

Load product salability data on-demand IsProductSalable/AreProdustsSalable composite products support.

4 participants