-
Notifications
You must be signed in to change notification settings - Fork 9.4k
2.2.6 CE Updating product quantity via REST API does not clean product cache #18999
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
Comments
Hi @AndrewPenry. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @AndrewPenry do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento-engcom-team give me 2.2.6 instance |
Hi @AndrewPenry. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
Hi @AndrewPenry, here is your Magento instance. |
It's easier to start with the sample data, but I don't think the Assisant will let me. So here are instructions starting from vanilla without sample data: Steps to reproduce from vanilla
{
"stockItem":
{
"item_id": 1,
"product_id": 1,
"stock_id": 1,
"qty": 0,
"is_in_stock": false,
"is_qty_decimal": false,
"show_default_notification_message": false,
"use_config_min_qty": true,
"min_qty": 0,
"use_config_min_sale_qty": 1,
"min_sale_qty": 1,
"use_config_max_sale_qty": true,
"max_sale_qty": 10000,
"use_config_backorders": true,
"backorders": 0,
"use_config_notify_stock_qty": true,
"notify_stock_qty": 1,
"use_config_qty_increments": true,
"qty_increments": 0,
"use_config_enable_qty_inc": true,
"enable_qty_increments": false,
"use_config_manage_stock": true,
"manage_stock": true,
"low_stock_date": null,
"is_decimal_divided": false,
"stock_status_changed_auto": 1
}
}
Expected result
Actual result
|
@magento-engcom-team give me 2.2.6 instance |
Hi @AndrewPenry. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
Hi @AndrewPenry, here is your Magento instance. |
@magento-engcom-team give me 2.2.6 instance |
Hi @AndrewPenry. Thank you for your request. I'm working on Magento 2.2.6 instance for you |
Hi @AndrewPenry, here is your Magento instance. |
@magento-engcom-team give me 2.2.5 instance |
Hi @AndrewPenry. Thank you for your request. I'm working on Magento 2.2.5 instance for you |
Hi @AndrewPenry, here is your Magento instance. |
Hi @engcom-backlog-nazar. Thank you for working on this issue.
|
Hi @AndrewPenry thank you for you report, i'm closing this as duplicate to this -> #19043, the same logic affected, |
Preconditions
Steps to reproduce
View the product page for Chaz Kangeroo Hoodie (/chaz-kangeroo-hoodie.html)
Update the stock for Chaz Kangeroo Hoodie-XS-Orange via the REST API, setting it to 0:
PUT http://example.com/rest/V1/products/MH01-XS-Orange/stockItems/54
Expected result
Actual result
It does not appear that changing the inventory from 0 to !=0 via the WebAPI clears the cache like it does when you save the product from the admin. A similar issue also occurs when the quantity of the last child of a configurable product is set to 0 via REST API. Both the child and parent change to out-of-stock, but the configurable product remains on catalog listing pages until the cache is manually flushed.
The text was updated successfully, but these errors were encountered: