{"action":"created","issue":{"url":"https://api.github.com/repos/clintonhealthaccess/chailmis-android/issues/255","labels_url":"https://api.github.com/repos/clintonhealthaccess/chailmis-android/issues/255/labels{/name}","comments_url":"https://api.github.com/repos/clintonhealthaccess/chailmis-android/issues/255/comments","events_url":"https://api.github.com/repos/clintonhealthaccess/chailmis-android/issues/255/events","html_url":"https://github.com/clintonhealthaccess/chailmis-android/issues/255","id":110079542,"number":255,"title":"Client initiates data sync using the sync button","user":{"login":"ihassin","id":19006,"avatar_url":"https://avatars.githubusercontent.com/u/19006?v=3","gravatar_id":"","url":"https://api.github.com/users/ihassin","html_url":"https://github.com/ihassin","followers_url":"https://api.github.com/users/ihassin/followers","following_url":"https://api.github.com/users/ihassin/following{/other_user}","gists_url":"https://api.github.com/users/ihassin/gists{/gist_id}","starred_url":"https://api.github.com/users/ihassin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihassin/subscriptions","organizations_url":"https://api.github.com/users/ihassin/orgs","repos_url":"https://api.github.com/users/ihassin/repos","events_url":"https://api.github.com/users/ihassin/events{/privacy}","received_events_url":"https://api.github.com/users/ihassin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/clintonhealthaccess/chailmis-android/labels/Analysis","name":"Analysis","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"garymabin","id":2331474,"avatar_url":"https://avatars.githubusercontent.com/u/2331474?v=3","gravatar_id":"","url":"https://api.github.com/users/garymabin","html_url":"https://github.com/garymabin","followers_url":"https://api.github.com/users/garymabin/followers","following_url":"https://api.github.com/users/garymabin/following{/other_user}","gists_url":"https://api.github.com/users/garymabin/gists{/gist_id}","starred_url":"https://api.github.com/users/garymabin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garymabin/subscriptions","organizations_url":"https://api.github.com/users/garymabin/orgs","repos_url":"https://api.github.com/users/garymabin/repos","events_url":"https://api.github.com/users/garymabin/events{/privacy}","received_events_url":"https://api.github.com/users/garymabin/received_events","type":"User","site_admin":false},"milestone":null,"comments":15,"created_at":"2015-10-06T19:12:50Z","updated_at":"2015-10-29T14:41:04Z","closed_at":null,"body":"Scenario: Chaining with absolute numbers manually\r\n  Given the server has \"5\" items of type \"A\"\r\n  When I update SOH with \"Received\" \"A\" \"10\"\r\n  And I update SOH with \"Dispensed\" \"A\" \"5\"\r\n  And the manual sync succeeds\r\n  Then the client updates SOH for \"A\" with value \"10\"\r\n  And the server shows that there are \"10\" items of type \"A\" for my clinic\r\n\r\nClient should examine return codes 200/201, 401, 500 to determine if the operation succeeded  or not.\r\nUpon failure, the transaction should be cleared. The user will supply a new translation with  a new absolute number when communications have been re-established.\r\n\r\nFor example: SOH is 10, but the client cannot reach the server.\r\nTablet forgets this transaction after failing to contact the server for three times for example.\r\n\r\nSince then, another 20 items were added to inventory, and the operator must try to sync with 30 this time."},"comment":{"url":"https://api.github.com/repos/clintonhealthaccess/chailmis-android/issues/comments/152200830","html_url":"https://github.com/clintonhealthaccess/chailmis-android/issues/255#issuecomment-152200830","issue_url":"https://api.github.com/repos/clintonhealthaccess/chailmis-android/issues/255","id":152200830,"user":{"login":"ihassin","id":19006,"avatar_url":"https://avatars.githubusercontent.com/u/19006?v=3","gravatar_id":"","url":"https://api.github.com/users/ihassin","html_url":"https://github.com/ihassin","followers_url":"https://api.github.com/users/ihassin/followers","following_url":"https://api.github.com/users/ihassin/following{/other_user}","gists_url":"https://api.github.com/users/ihassin/gists{/gist_id}","starred_url":"https://api.github.com/users/ihassin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihassin/subscriptions","organizations_url":"https://api.github.com/users/ihassin/orgs","repos_url":"https://api.github.com/users/ihassin/repos","events_url":"https://api.github.com/users/ihassin/events{/privacy}","received_events_url":"https://api.github.com/users/ihassin/received_events","type":"User","site_admin":false},"created_at":"2015-10-29T14:41:04Z","updated_at":"2015-10-29T14:41:04Z","body":"Correct number appeared after sync at 4am. Closing this ticket."}}