{"action":"created","issue":{"url":"https://api.github.com/repos/magento-engcom/msi/issues/1165","repository_url":"https://api.github.com/repos/magento-engcom/msi","labels_url":"https://api.github.com/repos/magento-engcom/msi/issues/1165/labels{/name}","comments_url":"https://api.github.com/repos/magento-engcom/msi/issues/1165/comments","events_url":"https://api.github.com/repos/magento-engcom/msi/issues/1165/events","html_url":"https://github.com/magento-engcom/msi/issues/1165","id":323617497,"node_id":"MDU6SXNzdWUzMjM2MTc0OTc=","number":1165,"title":"Fix \"Only X left\" functionality","user":{"login":"nmalevanec","id":11520943,"node_id":"MDQ6VXNlcjExNTIwOTQz","avatar_url":"https://avatars0.githubusercontent.com/u/11520943?v=4","gravatar_id":"","url":"https://api.github.com/users/nmalevanec","html_url":"https://github.com/nmalevanec","followers_url":"https://api.github.com/users/nmalevanec/followers","following_url":"https://api.github.com/users/nmalevanec/following{/other_user}","gists_url":"https://api.github.com/users/nmalevanec/gists{/gist_id}","starred_url":"https://api.github.com/users/nmalevanec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nmalevanec/subscriptions","organizations_url":"https://api.github.com/users/nmalevanec/orgs","repos_url":"https://api.github.com/users/nmalevanec/repos","events_url":"https://api.github.com/users/nmalevanec/events{/privacy}","received_events_url":"https://api.github.com/users/nmalevanec/received_events","type":"User","site_admin":false},"labels":[{"id":959406804,"node_id":"MDU6TGFiZWw5NTk0MDY4MDQ=","url":"https://api.github.com/repos/magento-engcom/msi/labels/Perugia","name":"Perugia","color":"d4c5f9","default":false},{"id":932397152,"node_id":"MDU6TGFiZWw5MzIzOTcxNTI=","url":"https://api.github.com/repos/magento-engcom/msi/labels/Top%2010%20Bugs","name":"Top 10 Bugs","color":"d93f0b","default":false},{"id":856873586,"node_id":"MDU6TGFiZWw4NTY4NzM1ODY=","url":"https://api.github.com/repos/magento-engcom/msi/labels/current%20sprint","name":"current sprint","color":"af3163","default":false}],"state":"open","locked":false,"assignee":{"login":"aleron75","id":1199894,"node_id":"MDQ6VXNlcjExOTk4OTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1199894?v=4","gravatar_id":"","url":"https://api.github.com/users/aleron75","html_url":"https://github.com/aleron75","followers_url":"https://api.github.com/users/aleron75/followers","following_url":"https://api.github.com/users/aleron75/following{/other_user}","gists_url":"https://api.github.com/users/aleron75/gists{/gist_id}","starred_url":"https://api.github.com/users/aleron75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleron75/subscriptions","organizations_url":"https://api.github.com/users/aleron75/orgs","repos_url":"https://api.github.com/users/aleron75/repos","events_url":"https://api.github.com/users/aleron75/events{/privacy}","received_events_url":"https://api.github.com/users/aleron75/received_events","type":"User","site_admin":false},"assignees":[{"login":"aleron75","id":1199894,"node_id":"MDQ6VXNlcjExOTk4OTQ=","avatar_url":"https://avatars2.githubusercontent.com/u/1199894?v=4","gravatar_id":"","url":"https://api.github.com/users/aleron75","html_url":"https://github.com/aleron75","followers_url":"https://api.github.com/users/aleron75/followers","following_url":"https://api.github.com/users/aleron75/following{/other_user}","gists_url":"https://api.github.com/users/aleron75/gists{/gist_id}","starred_url":"https://api.github.com/users/aleron75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aleron75/subscriptions","organizations_url":"https://api.github.com/users/aleron75/orgs","repos_url":"https://api.github.com/users/aleron75/repos","events_url":"https://api.github.com/users/aleron75/events{/privacy}","received_events_url":"https://api.github.com/users/aleron75/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/magento-engcom/msi/milestones/1","html_url":"https://github.com/magento-engcom/msi/milestone/1","labels_url":"https://api.github.com/repos/magento-engcom/msi/milestones/1/labels","id":2527850,"node_id":"MDk6TWlsZXN0b25lMjUyNzg1MA==","number":1,"title":"MSI Part I","description":"","creator":{"login":"okorshenko","id":7325075,"node_id":"MDQ6VXNlcjczMjUwNzU=","avatar_url":"https://avatars1.githubusercontent.com/u/7325075?v=4","gravatar_id":"","url":"https://api.github.com/users/okorshenko","html_url":"https://github.com/okorshenko","followers_url":"https://api.github.com/users/okorshenko/followers","following_url":"https://api.github.com/users/okorshenko/following{/other_user}","gists_url":"https://api.github.com/users/okorshenko/gists{/gist_id}","starred_url":"https://api.github.com/users/okorshenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/okorshenko/subscriptions","organizations_url":"https://api.github.com/users/okorshenko/orgs","repos_url":"https://api.github.com/users/okorshenko/repos","events_url":"https://api.github.com/users/okorshenko/events{/privacy}","received_events_url":"https://api.github.com/users/okorshenko/received_events","type":"User","site_admin":false},"open_issues":47,"closed_issues":327,"state":"open","created_at":"2017-05-17T20:30:12Z","updated_at":"2018-06-11T07:58:47Z","due_on":"2018-06-18T07:00:00Z","closed_at":null},"comments":1,"created_at":"2018-05-16T13:19:58Z","updated_at":"2018-06-11T13:39:34Z","closed_at":null,"author_association":"COLLABORATOR","body":"### Preconditions\r\n1. Magento with MSI 'Single Stock' mode\r\n\r\n### Steps to reproduce\r\n1. Run Magento\\Catalog\\Test\\TestCase\\Product\\CreateSimpleProductEntityTest::CreateSimpleProductEntityTestVariation10\r\n### Expected result\r\n1. Test should pass successfully.\r\n\r\n### Actual result\r\n1. Test fails.\r\n```\r\nProduct inventory threshold message display is not correct.\r\nFailed asserting that true matches expected false.\r\n\r\n/var/www/html/dev/tests/functional/tests/app/Magento/Catalog/Test/Constraint/AssertProductInventoryThreshold.php:50\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/ObjectManager/Factory.php:57\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/ObjectManager.php:81\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/Constraint/AbstractConstraint.php:155\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/Constraint/Composite.php:109\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Injectable.php:231\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Functional.php:300\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Functional.php:217\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Injectable.php:210\r\n/var/www/html/dev/tests/functional/vendor/magento/mtf/Magento/Mtf/TestCase/Injectable.php:166\r\n```\r\n\r\n### Test steps\r\n1. Navigate to admin area.\r\n2. Create simple product with qty = 10\r\n3. Navigate to Stores > Configuration > Catalog > Inventory > Stock Options\r\n4. Set Only X left Threshold to 5.\r\n5. Navigate to storefront.\r\n6. Register and login with customer.\r\n7. Add 5 pieces of product to cart and proceed to checkout.\r\n8. Place order.\r\n9. Navigate to product view page.\r\n11. Test expects \"Only 5 left\" message appears on product view page.\r\n\r\n### Additional Info\r\nStandard magento behaviour -  \"Only 5 left\" message appears immediately after place order, but. On MSI \"Only 5 left\" message appears only after shipment created.\r\nAdditional steps with shipment placement should be added into test before assertions.\r\n"},"comment":{"url":"https://api.github.com/repos/magento-engcom/msi/issues/comments/396246415","html_url":"https://github.com/magento-engcom/msi/issues/1165#issuecomment-396246415","issue_url":"https://api.github.com/repos/magento-engcom/msi/issues/1165","id":396246415,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjI0NjQxNQ==","user":{"login":"smoskaluk","id":27818516,"node_id":"MDQ6VXNlcjI3ODE4NTE2","avatar_url":"https://avatars0.githubusercontent.com/u/27818516?v=4","gravatar_id":"","url":"https://api.github.com/users/smoskaluk","html_url":"https://github.com/smoskaluk","followers_url":"https://api.github.com/users/smoskaluk/followers","following_url":"https://api.github.com/users/smoskaluk/following{/other_user}","gists_url":"https://api.github.com/users/smoskaluk/gists{/gist_id}","starred_url":"https://api.github.com/users/smoskaluk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smoskaluk/subscriptions","organizations_url":"https://api.github.com/users/smoskaluk/orgs","repos_url":"https://api.github.com/users/smoskaluk/repos","events_url":"https://api.github.com/users/smoskaluk/events{/privacy}","received_events_url":"https://api.github.com/users/smoskaluk/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T13:39:34Z","updated_at":"2018-06-11T13:39:34Z","author_association":"COLLABORATOR","body":"@aleron75 @maghamed I could not verify this PR because message 'Only x left' appear on product page only after flushing the cache. Please re-check"}}
{"actor":{"display_login":"smoskaluk"}}