{"action":"created","issue":{"url":"https://api.github.com/repos/spree/spree_wombat/issues/68","labels_url":"https://api.github.com/repos/spree/spree_wombat/issues/68/labels{/name}","comments_url":"https://api.github.com/repos/spree/spree_wombat/issues/68/comments","events_url":"https://api.github.com/repos/spree/spree_wombat/issues/68/events","html_url":"https://github.com/spree/spree_wombat/pull/68","id":55522650,"number":68,"title":"Dont duplicate deleted variants on product webhooks","user":{"login":"huoxito","id":245662,"avatar_url":"https://avatars.githubusercontent.com/u/245662?v=3","gravatar_id":"","url":"https://api.github.com/users/huoxito","html_url":"https://github.com/huoxito","followers_url":"https://api.github.com/users/huoxito/followers","following_url":"https://api.github.com/users/huoxito/following{/other_user}","gists_url":"https://api.github.com/users/huoxito/gists{/gist_id}","starred_url":"https://api.github.com/users/huoxito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huoxito/subscriptions","organizations_url":"https://api.github.com/users/huoxito/orgs","repos_url":"https://api.github.com/users/huoxito/repos","events_url":"https://api.github.com/users/huoxito/events{/privacy}","received_events_url":"https://api.github.com/users/huoxito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-26T19:02:56Z","updated_at":"2015-01-26T19:04:34Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/spree/spree_wombat/pulls/68","html_url":"https://github.com/spree/spree_wombat/pull/68","diff_url":"https://github.com/spree/spree_wombat/pull/68.diff","patch_url":"https://github.com/spree/spree_wombat/pull/68.patch"},"body":"Just noticed that every time you update a product with a deleted variant spree_wombat handler will create a new one and [zero the stock of the previous master variant](https://github.com/spree/spree/blob/e87112027ff3729bfa76749b744cd28faabf3c44/core/app/models/spree/variant.rb#L193-198).\r\n\r\nThis should prevent those from happening, I'm submitting this to review just in case I'm not missing anything here."},"comment":{"url":"https://api.github.com/repos/spree/spree_wombat/issues/comments/71517200","html_url":"https://github.com/spree/spree_wombat/pull/68#issuecomment-71517200","issue_url":"https://api.github.com/repos/spree/spree_wombat/issues/68","id":71517200,"user":{"login":"JDutil","id":25104,"avatar_url":"https://avatars.githubusercontent.com/u/25104?v=3","gravatar_id":"","url":"https://api.github.com/users/JDutil","html_url":"https://github.com/JDutil","followers_url":"https://api.github.com/users/JDutil/followers","following_url":"https://api.github.com/users/JDutil/following{/other_user}","gists_url":"https://api.github.com/users/JDutil/gists{/gist_id}","starred_url":"https://api.github.com/users/JDutil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JDutil/subscriptions","organizations_url":"https://api.github.com/users/JDutil/orgs","repos_url":"https://api.github.com/users/JDutil/repos","events_url":"https://api.github.com/users/JDutil/events{/privacy}","received_events_url":"https://api.github.com/users/JDutil/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T19:04:34Z","updated_at":"2015-01-26T19:04:34Z","body":"Looks good to me."}}