{"action":"closed","issue":{"url":"https://api.github.com/repos/AthensWorks/OBWapp-Admin-UI/issues/3","labels_url":"https://api.github.com/repos/AthensWorks/OBWapp-Admin-UI/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/AthensWorks/OBWapp-Admin-UI/issues/3/comments","events_url":"https://api.github.com/repos/AthensWorks/OBWapp-Admin-UI/issues/3/events","html_url":"https://github.com/AthensWorks/OBWapp-Admin-UI/issues/3","id":92673655,"number":3,"title":"reportstate table needs report_count reset to 0 when beer/establishment status is updated by admin","user":{"login":"pagan8","id":10249475,"avatar_url":"https://avatars.githubusercontent.com/u/10249475?v=3","gravatar_id":"","url":"https://api.github.com/users/pagan8","html_url":"https://github.com/pagan8","followers_url":"https://api.github.com/users/pagan8/followers","following_url":"https://api.github.com/users/pagan8/following{/other_user}","gists_url":"https://api.github.com/users/pagan8/gists{/gist_id}","starred_url":"https://api.github.com/users/pagan8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pagan8/subscriptions","organizations_url":"https://api.github.com/users/pagan8/orgs","repos_url":"https://api.github.com/users/pagan8/repos","events_url":"https://api.github.com/users/pagan8/events{/privacy}","received_events_url":"https://api.github.com/users/pagan8/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-02T16:04:44Z","updated_at":"2015-07-03T02:23:29Z","closed_at":"2015-07-03T02:23:29Z","body":"Ben had me add a counter to reportstate table to not reject multiple requests from the user that were duplicates, instead we count them. However these need to be reset if a beer / establishment status is changed, otherwise that user's device_guid won't be able to report the beer out again :)\r\n\r\nso you need to add support for changing beer + establishment status from empty_report to anything else where you were clearing the reported out count to also set report_state = 0 for all entries in reportstate table where beer_id and establishment_id match that pair..\r\n\r\nmake sense? :)"}}