Open
Description
Preconditions and environment
- 2.4.6-p1
- With sample data
Steps to reproduce
- Create a Magento 2.4.6-p1 instance
- Install sample data
- Check core_config_data
cataloginventory/options/show_out_of_stock
is set to 0 (default value) - Take a product without related/crosssell/upsell products (no catalog_product_link). !!!! IMPORTANT !!!! because this products will trigger an insert in
catalog_product_price_cl
- Set indexer as scheduled
bin/magento indexer:set-mode schedule
- Set product from Adminhtml as out_of_stock with a stock of 0 and save => the product is not removed from catalog_product_index_price and catalog_product_price_cl is not populated
- Run
n98-magerun2 sys:cron:run indexer_update_all_views
=>catalog_product_index_price
are not removed for this product - Remove lines from
catalog_product_index_price
for this product - Set product with
in_stock
and a stock of 8 then save it => catalog_product_price_cl is not populated so partial reindex will not fillcatalog_product_index_price
table - Run
n98-magerun2 sys:cron:run indexer_update_all_views
=>catalog_product_index_price
is not filled by this product
Expected result
We expect to fill/remove from catalog_product_index_price when a product switch from out_of_stock and in_stock. The main issue is that there is not trigger to insert the concerning product in catalog_product_price_cl
when the cataloginventory_stock_item
change
Actual result
Product data are missing/disappear from catalog_product_index_price
Additional information
The issue comes from this commit :
Triggers are not well created on cataloginventory_stock_item
to fill the table catalog_product_price_cl
when stock change.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.