{"action":"created","issue":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/1491","repository_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork","labels_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/1491/labels{/name}","comments_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/1491/comments","events_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/1491/events","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/issues/1491","id":214980416,"number":1491,"title":"Products can be ordered beyond available stock level","user":{"login":"OliverUK","id":17590921,"avatar_url":"https://avatars3.githubusercontent.com/u/17590921?v=4","gravatar_id":"","url":"https://api.github.com/users/OliverUK","html_url":"https://github.com/OliverUK","followers_url":"https://api.github.com/users/OliverUK/followers","following_url":"https://api.github.com/users/OliverUK/following{/other_user}","gists_url":"https://api.github.com/users/OliverUK/gists{/gist_id}","starred_url":"https://api.github.com/users/OliverUK/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OliverUK/subscriptions","organizations_url":"https://api.github.com/users/OliverUK/orgs","repos_url":"https://api.github.com/users/OliverUK/repos","events_url":"https://api.github.com/users/OliverUK/events{/privacy}","received_events_url":"https://api.github.com/users/OliverUK/received_events","type":"User","site_admin":false},"labels":[{"id":16681564,"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/milestones/7","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/milestone/7","labels_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/milestones/7/labels","id":909777,"number":7,"title":"UK Current","description":"","creator":{"login":"pmackay","id":115115,"avatar_url":"https://avatars3.githubusercontent.com/u/115115?v=4","gravatar_id":"","url":"https://api.github.com/users/pmackay","html_url":"https://github.com/pmackay","followers_url":"https://api.github.com/users/pmackay/followers","following_url":"https://api.github.com/users/pmackay/following{/other_user}","gists_url":"https://api.github.com/users/pmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/pmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pmackay/subscriptions","organizations_url":"https://api.github.com/users/pmackay/orgs","repos_url":"https://api.github.com/users/pmackay/repos","events_url":"https://api.github.com/users/pmackay/events{/privacy}","received_events_url":"https://api.github.com/users/pmackay/received_events","type":"User","site_admin":false},"open_issues":34,"closed_issues":117,"state":"open","created_at":"2014-12-19T08:33:01Z","updated_at":"2017-07-26T13:28:27Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2017-03-17T11:45:45Z","updated_at":"2017-08-10T09:30:31Z","closed_at":null,"body":"When two customers shop at the same time OFN lets both orders check out even if there isn't enough stock of any item to fill both orders. This then results in negative stock levels.\r\n\r\n![screen shot 2017-03-17 at 11 28 37](https://cloud.githubusercontent.com/assets/17590921/24041787/e4cc2cdc-0b06-11e7-83cb-ff11b454a2c7.png)\r\n\r\nI tried this on UK production by putting the same product into my basked in two different browsers (one logged in the other guest checkout) and then proceeding through checkout."},"comment":{"url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/comments/321501063","html_url":"https://github.com/openfoodfoundation/openfoodnetwork/issues/1491#issuecomment-321501063","issue_url":"https://api.github.com/repos/openfoodfoundation/openfoodnetwork/issues/1491","id":321501063,"user":{"login":"lin-d-hop","id":8669848,"avatar_url":"https://avatars0.githubusercontent.com/u/8669848?v=4","gravatar_id":"","url":"https://api.github.com/users/lin-d-hop","html_url":"https://github.com/lin-d-hop","followers_url":"https://api.github.com/users/lin-d-hop/followers","following_url":"https://api.github.com/users/lin-d-hop/following{/other_user}","gists_url":"https://api.github.com/users/lin-d-hop/gists{/gist_id}","starred_url":"https://api.github.com/users/lin-d-hop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lin-d-hop/subscriptions","organizations_url":"https://api.github.com/users/lin-d-hop/orgs","repos_url":"https://api.github.com/users/lin-d-hop/repos","events_url":"https://api.github.com/users/lin-d-hop/events{/privacy}","received_events_url":"https://api.github.com/users/lin-d-hop/received_events","type":"User","site_admin":false},"created_at":"2017-08-10T09:30:31Z","updated_at":"2017-08-10T09:30:31Z","body":"Here is the bug spelled out:\r\nIf I had an item in my cart, then I logged out, then the item was removed from the OC (either just that item or the supplier), then I log in and go to the shopfront- my cart hangs and I'm unable to proceed through checkout. If I instead login and click straight on the edit my cart dropdown link, I can proceed through checkout and purchase something that's no longer in the OC."}}
{"actor":{"display_login":"lin-d-hop"}}