{"action":"opened","number":528,"pull_request":{"url":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls/528","id":95335692,"html_url":"https://github.com/akvo/akvo-flow-mobile/pull/528","diff_url":"https://github.com/akvo/akvo-flow-mobile/pull/528.diff","patch_url":"https://github.com/akvo/akvo-flow-mobile/pull/528.patch","issue_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues/528","number":528,"state":"open","locked":false,"title":"Syncing imported datapoints (connect #526)","user":{"login":"valllllll2000","id":923280,"avatar_url":"https://avatars.githubusercontent.com/u/923280?v=3","gravatar_id":"","url":"https://api.github.com/users/valllllll2000","html_url":"https://github.com/valllllll2000","followers_url":"https://api.github.com/users/valllllll2000/followers","following_url":"https://api.github.com/users/valllllll2000/following{/other_user}","gists_url":"https://api.github.com/users/valllllll2000/gists{/gist_id}","starred_url":"https://api.github.com/users/valllllll2000/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valllllll2000/subscriptions","organizations_url":"https://api.github.com/users/valllllll2000/orgs","repos_url":"https://api.github.com/users/valllllll2000/repos","events_url":"https://api.github.com/users/valllllll2000/events{/privacy}","received_events_url":"https://api.github.com/users/valllllll2000/received_events","type":"User","site_admin":false},"body":"#### Before the PR (what is the issue or what needed to be done)\r\nData points which were imported using the data cleaning tool if synced right after on device turned out to be corrupted. They were shown as saved (see screenshot in the issue)\r\n#### The solution\r\nCleanup data base after syncing locales to remove datapoints with no responses.\r\nChanged the status to start with 1 since 0 is usually the default in the db to avoid confusion.\r\nNotify user that sync failed so he can sync again and hopefully get the correct data.\r\n#### Screenshots (if appropriate)\r\nNA\r\n#### Reviewer Checklist\r\n* [ ] Connect the issue\r\n* [ ] Test plan\r\n* [ ] Copyright header\r\n* [ ] Code formatting\r\n* [ ] Documentation\r\n","created_at":"2016-11-25T17:49:44Z","updated_at":"2016-11-25T17:49:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/akvo/akvo-flow-mobile/milestones/17","html_url":"https://github.com/akvo/akvo-flow-mobile/milestones/2.2.10","labels_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/milestones/17/labels","id":2157593,"number":17,"title":"2.2.10","description":"","creator":{"login":"janagombitova","id":12456965,"avatar_url":"https://avatars.githubusercontent.com/u/12456965?v=3","gravatar_id":"","url":"https://api.github.com/users/janagombitova","html_url":"https://github.com/janagombitova","followers_url":"https://api.github.com/users/janagombitova/followers","following_url":"https://api.github.com/users/janagombitova/following{/other_user}","gists_url":"https://api.github.com/users/janagombitova/gists{/gist_id}","starred_url":"https://api.github.com/users/janagombitova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/janagombitova/subscriptions","organizations_url":"https://api.github.com/users/janagombitova/orgs","repos_url":"https://api.github.com/users/janagombitova/repos","events_url":"https://api.github.com/users/janagombitova/events{/privacy}","received_events_url":"https://api.github.com/users/janagombitova/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-11-25T12:33:08Z","updated_at":"2016-11-25T17:49:45Z","due_on":"2017-01-12T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls/528/commits","review_comments_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls/528/comments","review_comment_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues/528/comments","statuses_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/statuses/161ee1f0bf3f88f2bcd09f33782261814aeadb68","head":{"label":"akvo:issue/526-syncing-imported-datapoints","ref":"issue/526-syncing-imported-datapoints","sha":"161ee1f0bf3f88f2bcd09f33782261814aeadb68","user":{"login":"akvo","id":159843,"avatar_url":"https://avatars.githubusercontent.com/u/159843?v=3","gravatar_id":"","url":"https://api.github.com/users/akvo","html_url":"https://github.com/akvo","followers_url":"https://api.github.com/users/akvo/followers","following_url":"https://api.github.com/users/akvo/following{/other_user}","gists_url":"https://api.github.com/users/akvo/gists{/gist_id}","starred_url":"https://api.github.com/users/akvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akvo/subscriptions","organizations_url":"https://api.github.com/users/akvo/orgs","repos_url":"https://api.github.com/users/akvo/repos","events_url":"https://api.github.com/users/akvo/events{/privacy}","received_events_url":"https://api.github.com/users/akvo/received_events","type":"Organization","site_admin":false},"repo":{"id":5380818,"name":"akvo-flow-mobile","full_name":"akvo/akvo-flow-mobile","owner":{"login":"akvo","id":159843,"avatar_url":"https://avatars.githubusercontent.com/u/159843?v=3","gravatar_id":"","url":"https://api.github.com/users/akvo","html_url":"https://github.com/akvo","followers_url":"https://api.github.com/users/akvo/followers","following_url":"https://api.github.com/users/akvo/following{/other_user}","gists_url":"https://api.github.com/users/akvo/gists{/gist_id}","starred_url":"https://api.github.com/users/akvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akvo/subscriptions","organizations_url":"https://api.github.com/users/akvo/orgs","repos_url":"https://api.github.com/users/akvo/repos","events_url":"https://api.github.com/users/akvo/events{/privacy}","received_events_url":"https://api.github.com/users/akvo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akvo/akvo-flow-mobile","description":"Akvo FLOW app","fork":false,"url":"https://api.github.com/repos/akvo/akvo-flow-mobile","forks_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/forks","keys_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/teams","hooks_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/hooks","issue_events_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/events","assignees_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/tags","blobs_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/languages","stargazers_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/stargazers","contributors_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/contributors","subscribers_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/subscribers","subscription_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/subscription","commits_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/merges","archive_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/downloads","issues_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/labels{/name}","releases_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/deployments","created_at":"2012-08-11T15:36:16Z","updated_at":"2016-10-26T10:38:30Z","pushed_at":"2016-11-25T17:40:10Z","git_url":"git://github.com/akvo/akvo-flow-mobile.git","ssh_url":"git@github.com:akvo/akvo-flow-mobile.git","clone_url":"https://github.com/akvo/akvo-flow-mobile.git","svn_url":"https://github.com/akvo/akvo-flow-mobile","homepage":"","size":134745,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":52,"forks":4,"open_issues":52,"watchers":8,"default_branch":"develop"}},"base":{"label":"akvo:develop","ref":"develop","sha":"1365674d82ce2cec0711d3a07f2f02c512e4e3b1","user":{"login":"akvo","id":159843,"avatar_url":"https://avatars.githubusercontent.com/u/159843?v=3","gravatar_id":"","url":"https://api.github.com/users/akvo","html_url":"https://github.com/akvo","followers_url":"https://api.github.com/users/akvo/followers","following_url":"https://api.github.com/users/akvo/following{/other_user}","gists_url":"https://api.github.com/users/akvo/gists{/gist_id}","starred_url":"https://api.github.com/users/akvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akvo/subscriptions","organizations_url":"https://api.github.com/users/akvo/orgs","repos_url":"https://api.github.com/users/akvo/repos","events_url":"https://api.github.com/users/akvo/events{/privacy}","received_events_url":"https://api.github.com/users/akvo/received_events","type":"Organization","site_admin":false},"repo":{"id":5380818,"name":"akvo-flow-mobile","full_name":"akvo/akvo-flow-mobile","owner":{"login":"akvo","id":159843,"avatar_url":"https://avatars.githubusercontent.com/u/159843?v=3","gravatar_id":"","url":"https://api.github.com/users/akvo","html_url":"https://github.com/akvo","followers_url":"https://api.github.com/users/akvo/followers","following_url":"https://api.github.com/users/akvo/following{/other_user}","gists_url":"https://api.github.com/users/akvo/gists{/gist_id}","starred_url":"https://api.github.com/users/akvo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akvo/subscriptions","organizations_url":"https://api.github.com/users/akvo/orgs","repos_url":"https://api.github.com/users/akvo/repos","events_url":"https://api.github.com/users/akvo/events{/privacy}","received_events_url":"https://api.github.com/users/akvo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akvo/akvo-flow-mobile","description":"Akvo FLOW app","fork":false,"url":"https://api.github.com/repos/akvo/akvo-flow-mobile","forks_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/forks","keys_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/teams","hooks_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/hooks","issue_events_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues/events{/number}","events_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/events","assignees_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/assignees{/user}","branches_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/branches{/branch}","tags_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/tags","blobs_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/statuses/{sha}","languages_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/languages","stargazers_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/stargazers","contributors_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/contributors","subscribers_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/subscribers","subscription_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/subscription","commits_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/contents/{+path}","compare_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/merges","archive_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/downloads","issues_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues{/number}","pulls_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls{/number}","milestones_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/milestones{/number}","notifications_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/labels{/name}","releases_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/releases{/id}","deployments_url":"https://api.github.com/repos/akvo/akvo-flow-mobile/deployments","created_at":"2012-08-11T15:36:16Z","updated_at":"2016-10-26T10:38:30Z","pushed_at":"2016-11-25T17:40:10Z","git_url":"git://github.com/akvo/akvo-flow-mobile.git","ssh_url":"git@github.com:akvo/akvo-flow-mobile.git","clone_url":"https://github.com/akvo/akvo-flow-mobile.git","svn_url":"https://github.com/akvo/akvo-flow-mobile","homepage":"","size":134745,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":52,"forks":4,"open_issues":52,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls/528"},"html":{"href":"https://github.com/akvo/akvo-flow-mobile/pull/528"},"issue":{"href":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues/528"},"comments":{"href":"https://api.github.com/repos/akvo/akvo-flow-mobile/issues/528/comments"},"review_comments":{"href":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls/528/comments"},"review_comment":{"href":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akvo/akvo-flow-mobile/pulls/528/commits"},"statuses":{"href":"https://api.github.com/repos/akvo/akvo-flow-mobile/statuses/161ee1f0bf3f88f2bcd09f33782261814aeadb68"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":756,"deletions":539,"changed_files":28}}
{"actor":{"display_login":"valllllll2000"}}