{"action":"created","issue":{"url":"https://api.github.com/repos/reactioncommerce/reaction/issues/961","repository_url":"https://api.github.com/repos/reactioncommerce/reaction","labels_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/961/labels{/name}","comments_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/961/comments","events_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/961/events","html_url":"https://github.com/reactioncommerce/reaction/issues/961","id":146792520,"number":961,"title":"Inventory is not available until admin visits the PDP","user":{"login":"zenweasel","id":72819,"avatar_url":"https://avatars.githubusercontent.com/u/72819?v=3","gravatar_id":"","url":"https://api.github.com/users/zenweasel","html_url":"https://github.com/zenweasel","followers_url":"https://api.github.com/users/zenweasel/followers","following_url":"https://api.github.com/users/zenweasel/following{/other_user}","gists_url":"https://api.github.com/users/zenweasel/gists{/gist_id}","starred_url":"https://api.github.com/users/zenweasel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenweasel/subscriptions","organizations_url":"https://api.github.com/users/zenweasel/orgs","repos_url":"https://api.github.com/users/zenweasel/repos","events_url":"https://api.github.com/users/zenweasel/events{/privacy}","received_events_url":"https://api.github.com/users/zenweasel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactioncommerce/reaction/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/reactioncommerce/reaction/labels/in%20progress","name":"in progress","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"zenweasel","id":72819,"avatar_url":"https://avatars.githubusercontent.com/u/72819?v=3","gravatar_id":"","url":"https://api.github.com/users/zenweasel","html_url":"https://github.com/zenweasel","followers_url":"https://api.github.com/users/zenweasel/followers","following_url":"https://api.github.com/users/zenweasel/following{/other_user}","gists_url":"https://api.github.com/users/zenweasel/gists{/gist_id}","starred_url":"https://api.github.com/users/zenweasel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenweasel/subscriptions","organizations_url":"https://api.github.com/users/zenweasel/orgs","repos_url":"https://api.github.com/users/zenweasel/repos","events_url":"https://api.github.com/users/zenweasel/events{/privacy}","received_events_url":"https://api.github.com/users/zenweasel/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/reactioncommerce/reaction/milestones/31","html_url":"https://github.com/reactioncommerce/reaction/milestones/v0.13.0","labels_url":"https://api.github.com/repos/reactioncommerce/reaction/milestones/31/labels","id":1521161,"number":31,"title":"v0.13.0","description":"","creator":{"login":"aaronjudd","id":439959,"avatar_url":"https://avatars.githubusercontent.com/u/439959?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronjudd","html_url":"https://github.com/aaronjudd","followers_url":"https://api.github.com/users/aaronjudd/followers","following_url":"https://api.github.com/users/aaronjudd/following{/other_user}","gists_url":"https://api.github.com/users/aaronjudd/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronjudd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronjudd/subscriptions","organizations_url":"https://api.github.com/users/aaronjudd/orgs","repos_url":"https://api.github.com/users/aaronjudd/repos","events_url":"https://api.github.com/users/aaronjudd/events{/privacy}","received_events_url":"https://api.github.com/users/aaronjudd/received_events","type":"User","site_admin":false},"open_issues":27,"closed_issues":14,"state":"open","created_at":"2016-01-20T03:25:23Z","updated_at":"2016-04-12T00:45:51Z","due_on":"2016-04-20T07:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-08T02:06:41Z","updated_at":"2016-04-12T03:30:46Z","closed_at":null,"body":"### Expected behavior\r\nImported inventory should be available before the first user checks out\r\n\r\n### Actual Behavior\r\nImported inventory is not inserted into the Inventory collection until an admin visits the PDP page (other actions might trigger this too, that's just what I stumbled upon). If you don't do this, then all orders are placed into backorder because there is no available inventory.\r\n\r\n### Steps to Reproduce the Behavior\r\n* do `./reaction reset && reaction`\r\n* place an order\r\n* Observe the following messages:\r\n```\r\n02:05:06.354Z  INFO Reaction: totalRequiredQty 1\r\n02:05:06.354Z  INFO Reaction: availableInventoryQty 0\r\n02:05:06.354Z  INFO Reaction: no inventory found, create 1 backorder\r\n02:05:06.358Z  INFO Reaction: created 1 backorder records for product BCTMZ6HTxFSppJESk, variant CJoRBm9vRrorc9mxZ\r\n```\r\n \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/reactioncommerce/reaction/issues/comments/208687357","html_url":"https://github.com/reactioncommerce/reaction/issues/961#issuecomment-208687357","issue_url":"https://api.github.com/repos/reactioncommerce/reaction/issues/961","id":208687357,"user":{"login":"zenweasel","id":72819,"avatar_url":"https://avatars.githubusercontent.com/u/72819?v=3","gravatar_id":"","url":"https://api.github.com/users/zenweasel","html_url":"https://github.com/zenweasel","followers_url":"https://api.github.com/users/zenweasel/followers","following_url":"https://api.github.com/users/zenweasel/following{/other_user}","gists_url":"https://api.github.com/users/zenweasel/gists{/gist_id}","starred_url":"https://api.github.com/users/zenweasel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenweasel/subscriptions","organizations_url":"https://api.github.com/users/zenweasel/orgs","repos_url":"https://api.github.com/users/zenweasel/repos","events_url":"https://api.github.com/users/zenweasel/events{/privacy}","received_events_url":"https://api.github.com/users/zenweasel/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T03:30:46Z","updated_at":"2016-04-12T03:30:46Z","body":"Still happening in 1.3.1"}}