{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/18999","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/18999/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/18999/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/18999/events","html_url":"https://github.com/magento/magento2/issues/18999","id":376474666,"node_id":"MDU6SXNzdWUzNzY0NzQ2NjY=","number":18999,"title":"2.2.6 CE Updating product quantity via REST API does not clean product cache","user":{"login":"AndrewPenry","id":730188,"node_id":"MDQ6VXNlcjczMDE4OA==","avatar_url":"https://avatars3.githubusercontent.com/u/730188?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewPenry","html_url":"https://github.com/AndrewPenry","followers_url":"https://api.github.com/users/AndrewPenry/followers","following_url":"https://api.github.com/users/AndrewPenry/following{/other_user}","gists_url":"https://api.github.com/users/AndrewPenry/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewPenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewPenry/subscriptions","organizations_url":"https://api.github.com/users/AndrewPenry/orgs","repos_url":"https://api.github.com/users/AndrewPenry/repos","events_url":"https://api.github.com/users/AndrewPenry/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewPenry/received_events","type":"User","site_admin":false},"labels":[{"id":688811200,"node_id":"MDU6TGFiZWw2ODg4MTEyMDA=","url":"https://api.github.com/repos/magento/magento2/labels/Issue:%20Format%20is%20valid","name":"Issue: Format is valid","color":"0e8a16","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-11-01T16:45:47Z","updated_at":"2018-11-02T15:20:47Z","closed_at":null,"author_association":"NONE","body":"### Preconditions\r\n1. Magneto 2.2.6 with Sample Data in production mode\r\n2. PHP 7.0\r\n\r\n### Steps to reproduce\r\n1. View the product page for Chaz Kangeroo Hoodie (/chaz-kangeroo-hoodie.html)\r\n2. Update the stock for Chaz Kangeroo Hoodie-XS-Orange via the REST API, setting it to 0:\r\n\r\n   PUT http://example.com/rest/V1/products/MH01-XS-Orange/stockItems/54\r\n\r\n~~~JSON\r\n{\r\n  \"stockItem\":\r\n  {\r\n    \"item_id\": 54,\r\n    \"product_id\": 54,\r\n    \"stock_id\": 1,\r\n    \"qty\": 0,\r\n    \"is_in_stock\": false,\r\n    \"is_qty_decimal\": false,\r\n    \"show_default_notification_message\": false,\r\n    \"use_config_min_qty\": true,\r\n    \"min_qty\": 0,\r\n    \"use_config_min_sale_qty\": 1,\r\n    \"min_sale_qty\": 1,\r\n    \"use_config_max_sale_qty\": true,\r\n    \"max_sale_qty\": 10000,\r\n    \"use_config_backorders\": true,\r\n    \"backorders\": 0,\r\n    \"use_config_notify_stock_qty\": true,\r\n    \"notify_stock_qty\": 1,\r\n    \"use_config_qty_increments\": true,\r\n    \"qty_increments\": 0,\r\n    \"use_config_enable_qty_inc\": true,\r\n    \"enable_qty_increments\": false,\r\n    \"use_config_manage_stock\": true,\r\n    \"manage_stock\": true,\r\n    \"low_stock_date\": null,\r\n    \"is_decimal_divided\": false,\r\n    \"stock_status_changed_auto\": 1\r\n  }\r\n}\r\n~~~\r\n\r\n3. Refresh the product page for Chaz Kangeroo Hoodie (/chaz-kangeroo-hoodie.html)\r\n\r\n### Expected result\r\n1. The swatch for the out-of-stock simple product (Chaz Kangeroo Hoodie-XS-Orange) should immediately be non-selectable.\r\n\r\n### Actual result\r\n1. The swatch remains selectable until the cache is manually flushed.\r\n\r\nIt 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.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/435414967","html_url":"https://github.com/magento/magento2/issues/18999#issuecomment-435414967","issue_url":"https://api.github.com/repos/magento/magento2/issues/18999","id":435414967,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTQxNDk2Nw==","user":{"login":"AndrewPenry","id":730188,"node_id":"MDQ6VXNlcjczMDE4OA==","avatar_url":"https://avatars3.githubusercontent.com/u/730188?v=4","gravatar_id":"","url":"https://api.github.com/users/AndrewPenry","html_url":"https://github.com/AndrewPenry","followers_url":"https://api.github.com/users/AndrewPenry/followers","following_url":"https://api.github.com/users/AndrewPenry/following{/other_user}","gists_url":"https://api.github.com/users/AndrewPenry/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewPenry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewPenry/subscriptions","organizations_url":"https://api.github.com/users/AndrewPenry/orgs","repos_url":"https://api.github.com/users/AndrewPenry/repos","events_url":"https://api.github.com/users/AndrewPenry/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewPenry/received_events","type":"User","site_admin":false},"created_at":"2018-11-02T15:20:47Z","updated_at":"2018-11-02T15:20:47Z","author_association":"NONE","body":"@magento-engcom-team give me 2.2.6 instance"}}
{"actor":{"display_login":"AndrewPenry"}}