{"action":"created","issue":{"url":"https://api.github.com/repos/reactioncommerce/reaction-core/issues/147","labels_url":"https://api.github.com/repos/reactioncommerce/reaction-core/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/reactioncommerce/reaction-core/issues/147/comments","events_url":"https://api.github.com/repos/reactioncommerce/reaction-core/issues/147/events","html_url":"https://github.com/reactioncommerce/reaction-core/pull/147","id":95027439,"number":147,"title":"Added tests and more robust solution to inventory quantity aggregation and syncing","user":{"login":"spencern","id":1203639,"avatar_url":"https://avatars.githubusercontent.com/u/1203639?v=3","gravatar_id":"","url":"https://api.github.com/users/spencern","html_url":"https://github.com/spencern","followers_url":"https://api.github.com/users/spencern/followers","following_url":"https://api.github.com/users/spencern/following{/other_user}","gists_url":"https://api.github.com/users/spencern/gists{/gist_id}","starred_url":"https://api.github.com/users/spencern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencern/subscriptions","organizations_url":"https://api.github.com/users/spencern/orgs","repos_url":"https://api.github.com/users/spencern/repos","events_url":"https://api.github.com/users/spencern/events{/privacy}","received_events_url":"https://api.github.com/users/spencern/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/reactioncommerce/reaction-core/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-14T20:01:25Z","updated_at":"2015-07-16T22:44:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/reactioncommerce/reaction-core/pulls/147","html_url":"https://github.com/reactioncommerce/reaction-core/pull/147","diff_url":"https://github.com/reactioncommerce/reaction-core/pull/147.diff","patch_url":"https://github.com/reactioncommerce/reaction-core/pull/147.patch"},"body":"Added a tests for the `'inventory'` type of variant. Discovered a number of bugs in the way I was calculating inventory up the ancestor chain. Fixed those bugs. Tests pass. Yay TDD."},"comment":{"url":"https://api.github.com/repos/reactioncommerce/reaction-core/issues/comments/122124172","html_url":"https://github.com/reactioncommerce/reaction-core/pull/147#issuecomment-122124172","issue_url":"https://api.github.com/repos/reactioncommerce/reaction-core/issues/147","id":122124172,"user":{"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},"created_at":"2015-07-16T22:44:57Z","updated_at":"2015-07-16T22:44:57Z","body":"Spencer, I added line comments here as well as on the previous PR #141 - mostly minor. \r\n\r\nHowever, I think the loop code needs to looked at a bit more.  If you add an new option variant, set number to 1000 -> start tracking.  This begins an infinite loop, where it continues to adds 1000 then it's 2000, then 3000, then 4000.etc..."}}