{"action":"created","comment":{"url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/comments/236364520","pull_request_review_id":178424505,"id":236364520,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjM2NDUyMA==","diff_hunk":"@@ -0,0 +1,130 @@\n+package org.smartregister.repository;\n+\n+import android.content.ContentValues;\n+\n+import com.google.gson.Gson;\n+import com.google.gson.GsonBuilder;\n+\n+import net.sqlcipher.MatrixCursor;\n+import net.sqlcipher.database.SQLiteDatabase;\n+\n+import org.joda.time.DateTime;\n+import org.joda.time.format.DateTimeFormat;\n+import org.joda.time.format.DateTimeFormatter;\n+import org.junit.Before;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.runner.RunWith;\n+import org.mockito.ArgumentCaptor;\n+import org.mockito.Captor;\n+import org.mockito.Mock;\n+import org.mockito.junit.MockitoJUnit;\n+import org.mockito.junit.MockitoRule;\n+import org.robolectric.RobolectricTestRunner;\n+import org.smartregister.domain.Note;\n+import org.smartregister.domain.Task;","path":"opensrp-app/src/test/java/org/smartregister/repository/TaskNotesRepositoryTest.java","position":25,"original_position":25,"commit_id":"f663fef6de173d71a1284ef8230aa62800cdcd4e","original_commit_id":"f663fef6de173d71a1284ef8230aa62800cdcd4e","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Avoid unused imports such as 'org.smartregister.domain.Task'](https://app.codacy.com/app/OpenSRP/opensrp-client-core/pullRequest?prid=2624118)","created_at":"2018-11-26T18:02:19Z","updated_at":"2018-11-26T18:02:19Z","html_url":"https://github.com/OpenSRP/opensrp-client-core/pull/127#discussion_r236364520","pull_request_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/127","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/comments/236364520"},"html":{"href":"https://github.com/OpenSRP/opensrp-client-core/pull/127#discussion_r236364520"},"pull_request":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/127"}}},"pull_request":{"url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/127","id":233530652,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzNTMwNjUy","html_url":"https://github.com/OpenSRP/opensrp-client-core/pull/127","diff_url":"https://github.com/OpenSRP/opensrp-client-core/pull/127.diff","patch_url":"https://github.com/OpenSRP/opensrp-client-core/pull/127.patch","issue_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/127","number":127,"state":"open","locked":false,"title":"Campaign task location and structures domain &  repositories","user":{"login":"githengi","id":25123762,"node_id":"MDQ6VXNlcjI1MTIzNzYy","avatar_url":"https://avatars1.githubusercontent.com/u/25123762?v=4","gravatar_id":"","url":"https://api.github.com/users/githengi","html_url":"https://github.com/githengi","followers_url":"https://api.github.com/users/githengi/followers","following_url":"https://api.github.com/users/githengi/following{/other_user}","gists_url":"https://api.github.com/users/githengi/gists{/gist_id}","starred_url":"https://api.github.com/users/githengi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/githengi/subscriptions","organizations_url":"https://api.github.com/users/githengi/orgs","repos_url":"https://api.github.com/users/githengi/repos","events_url":"https://api.github.com/users/githengi/events{/privacy}","received_events_url":"https://api.github.com/users/githengi/received_events","type":"User","site_admin":false},"body":"Create Domain object and repositories for\r\n\r\n- Campaign \r\n- Task \r\n- Location \r\n- Structures\r\n\r\nPR for Issue  [https://github.com/OpenSRP/opensrp-client-core/issues/125](https://github.com/OpenSRP/opensrp-client-core/issues/125)","created_at":"2018-11-26T11:51:44Z","updated_at":"2018-11-26T18:02:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"553b606670277b0f2fad1194f48b803be308abf6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"manutarus","id":4047974,"node_id":"MDQ6VXNlcjQwNDc5NzQ=","avatar_url":"https://avatars3.githubusercontent.com/u/4047974?v=4","gravatar_id":"","url":"https://api.github.com/users/manutarus","html_url":"https://github.com/manutarus","followers_url":"https://api.github.com/users/manutarus/followers","following_url":"https://api.github.com/users/manutarus/following{/other_user}","gists_url":"https://api.github.com/users/manutarus/gists{/gist_id}","starred_url":"https://api.github.com/users/manutarus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manutarus/subscriptions","organizations_url":"https://api.github.com/users/manutarus/orgs","repos_url":"https://api.github.com/users/manutarus/repos","events_url":"https://api.github.com/users/manutarus/events{/privacy}","received_events_url":"https://api.github.com/users/manutarus/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/127/commits","review_comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/127/comments","review_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/127/comments","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/statuses/f663fef6de173d71a1284ef8230aa62800cdcd4e","head":{"label":"OpenSRP:campaign-task-location-domain-repositories","ref":"campaign-task-location-domain-repositories","sha":"f663fef6de173d71a1284ef8230aa62800cdcd4e","user":{"login":"OpenSRP","id":7898027,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4OTgwMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"repo":{"id":97621321,"node_id":"MDEwOlJlcG9zaXRvcnk5NzYyMTMyMQ==","name":"opensrp-client-core","full_name":"OpenSRP/opensrp-client-core","private":false,"owner":{"login":"OpenSRP","id":7898027,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4OTgwMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OpenSRP/opensrp-client-core","description":"Core OpenSRP Android client library","fork":false,"url":"https://api.github.com/repos/OpenSRP/opensrp-client-core","forks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/forks","keys_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/teams","hooks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/hooks","issue_events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/events","assignees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/tags","blobs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/languages","stargazers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/stargazers","contributors_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/contributors","subscribers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/subscribers","subscription_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/subscription","commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/merges","archive_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/downloads","issues_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/labels{/name}","releases_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/releases{/id}","deployments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/deployments","created_at":"2017-07-18T16:34:57Z","updated_at":"2018-11-22T09:50:12Z","pushed_at":"2018-11-26T11:53:16Z","git_url":"git://github.com/OpenSRP/opensrp-client-core.git","ssh_url":"git@github.com:OpenSRP/opensrp-client-core.git","clone_url":"https://github.com/OpenSRP/opensrp-client-core.git","svn_url":"https://github.com/OpenSRP/opensrp-client-core","homepage":"http://smartregister.org/","size":13738,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":7,"open_issues":30,"watchers":8,"default_branch":"master"}},"base":{"label":"OpenSRP:master","ref":"master","sha":"2519286f315acb359152e8a9432382c84fe5f416","user":{"login":"OpenSRP","id":7898027,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4OTgwMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"repo":{"id":97621321,"node_id":"MDEwOlJlcG9zaXRvcnk5NzYyMTMyMQ==","name":"opensrp-client-core","full_name":"OpenSRP/opensrp-client-core","private":false,"owner":{"login":"OpenSRP","id":7898027,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc4OTgwMjc=","avatar_url":"https://avatars1.githubusercontent.com/u/7898027?v=4","gravatar_id":"","url":"https://api.github.com/users/OpenSRP","html_url":"https://github.com/OpenSRP","followers_url":"https://api.github.com/users/OpenSRP/followers","following_url":"https://api.github.com/users/OpenSRP/following{/other_user}","gists_url":"https://api.github.com/users/OpenSRP/gists{/gist_id}","starred_url":"https://api.github.com/users/OpenSRP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OpenSRP/subscriptions","organizations_url":"https://api.github.com/users/OpenSRP/orgs","repos_url":"https://api.github.com/users/OpenSRP/repos","events_url":"https://api.github.com/users/OpenSRP/events{/privacy}","received_events_url":"https://api.github.com/users/OpenSRP/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/OpenSRP/opensrp-client-core","description":"Core OpenSRP Android client library","fork":false,"url":"https://api.github.com/repos/OpenSRP/opensrp-client-core","forks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/forks","keys_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/teams","hooks_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/hooks","issue_events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/events{/number}","events_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/events","assignees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/assignees{/user}","branches_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/branches{/branch}","tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/tags","blobs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/statuses/{sha}","languages_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/languages","stargazers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/stargazers","contributors_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/contributors","subscribers_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/subscribers","subscription_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/subscription","commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/contents/{+path}","compare_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/merges","archive_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/downloads","issues_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues{/number}","pulls_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls{/number}","milestones_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/milestones{/number}","notifications_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/labels{/name}","releases_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/releases{/id}","deployments_url":"https://api.github.com/repos/OpenSRP/opensrp-client-core/deployments","created_at":"2017-07-18T16:34:57Z","updated_at":"2018-11-22T09:50:12Z","pushed_at":"2018-11-26T11:53:16Z","git_url":"git://github.com/OpenSRP/opensrp-client-core.git","ssh_url":"git@github.com:OpenSRP/opensrp-client-core.git","clone_url":"https://github.com/OpenSRP/opensrp-client-core.git","svn_url":"https://github.com/OpenSRP/opensrp-client-core","homepage":"http://smartregister.org/","size":13738,"stargazers_count":8,"watchers_count":8,"language":"Java","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":30,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":7,"open_issues":30,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/127"},"html":{"href":"https://github.com/OpenSRP/opensrp-client-core/pull/127"},"issue":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/127"},"comments":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/issues/127/comments"},"review_comments":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/127/comments"},"review_comment":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/pulls/127/commits"},"statuses":{"href":"https://api.github.com/repos/OpenSRP/opensrp-client-core/statuses/f663fef6de173d71a1284ef8230aa62800cdcd4e"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}