{"action":"created","comment":{"url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/comments/199708898","pull_request_review_id":133878448,"id":199708898,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5OTcwODg5OA==","diff_hunk":"@@ -0,0 +1,183 @@\n+package org.xwiki.android.sync.contactdb\n+\n+import android.accounts.Account\n+import android.content.ContentProviderOperation\n+import android.content.ContentResolver\n+import android.content.ContentUris\n+import android.provider.ContactsContract\n+import org.xwiki.android.sync.Constants\n+import org.xwiki.android.sync.bean.XWikiUserFull\n+import android.content.ContentValues\n+\n+\n+/**\n+ * When we first add a sync adapter to the system, the contacts from that\n+ * sync adapter will be hidden unless they're merged/grouped with an existing\n+ * contact.  But typically we want to actually show those contacts, so we\n+ * need to mess with the Settings table to get them to show up.\n+ *\n+ * @param resolver Will need to insert new data into system db\n+ * @param account the Account who's visibility we're changing\n+ * @param visible true if we want the contacts visible, false for hidden\n+ *\n+ * @since 0.4","path":"app/src/main/java/org/xwiki/android/sync/contactdb/ContactOperations.kt","position":23,"original_position":23,"commit_id":"769f5a37ef5a11177406df173105a4e3f33658b1","original_commit_id":"769f5a37ef5a11177406df173105a4e3f33658b1","user":{"login":"InsanusMokrassar","id":6850345,"node_id":"MDQ6VXNlcjY4NTAzNDU=","avatar_url":"https://avatars0.githubusercontent.com/u/6850345?v=4","gravatar_id":"","url":"https://api.github.com/users/InsanusMokrassar","html_url":"https://github.com/InsanusMokrassar","followers_url":"https://api.github.com/users/InsanusMokrassar/followers","following_url":"https://api.github.com/users/InsanusMokrassar/following{/other_user}","gists_url":"https://api.github.com/users/InsanusMokrassar/gists{/gist_id}","starred_url":"https://api.github.com/users/InsanusMokrassar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InsanusMokrassar/subscriptions","organizations_url":"https://api.github.com/users/InsanusMokrassar/orgs","repos_url":"https://api.github.com/users/InsanusMokrassar/repos","events_url":"https://api.github.com/users/InsanusMokrassar/events{/privacy}","received_events_url":"https://api.github.com/users/InsanusMokrassar/received_events","type":"User","site_admin":false},"body":"This method was copypasted from old class and adapted to kotlin","created_at":"2018-07-03T07:34:22Z","updated_at":"2018-07-03T07:34:22Z","html_url":"https://github.com/xwiki-contrib/android-authenticator/pull/24#discussion_r199708898","pull_request_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/24","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/comments/199708898"},"html":{"href":"https://github.com/xwiki-contrib/android-authenticator/pull/24#discussion_r199708898"},"pull_request":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/24"}},"in_reply_to_id":199701136},"pull_request":{"url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/24","id":198832690,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk4ODMyNjkw","html_url":"https://github.com/xwiki-contrib/android-authenticator/pull/24","diff_url":"https://github.com/xwiki-contrib/android-authenticator/pull/24.diff","patch_url":"https://github.com/xwiki-contrib/android-authenticator/pull/24.patch","issue_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues/24","number":24,"state":"open","locked":false,"title":"ANDAUTH-46 Synchronize more informations from the profile","user":{"login":"InsanusMokrassar","id":6850345,"node_id":"MDQ6VXNlcjY4NTAzNDU=","avatar_url":"https://avatars0.githubusercontent.com/u/6850345?v=4","gravatar_id":"","url":"https://api.github.com/users/InsanusMokrassar","html_url":"https://github.com/InsanusMokrassar","followers_url":"https://api.github.com/users/InsanusMokrassar/followers","following_url":"https://api.github.com/users/InsanusMokrassar/following{/other_user}","gists_url":"https://api.github.com/users/InsanusMokrassar/gists{/gist_id}","starred_url":"https://api.github.com/users/InsanusMokrassar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InsanusMokrassar/subscriptions","organizations_url":"https://api.github.com/users/InsanusMokrassar/orgs","repos_url":"https://api.github.com/users/InsanusMokrassar/repos","events_url":"https://api.github.com/users/InsanusMokrassar/events{/privacy}","received_events_url":"https://api.github.com/users/InsanusMokrassar/received_events","type":"User","site_admin":false},"body":"This PR contains next changes (in two words):\r\n\r\n* Deleted EditContactActivity and all related files (await that them will be replaced by editing contacts in native `Contacts` application)\r\n* Deleted redundant classes and methods which help not in work-with-contacts logic\r\n* Added work with additional fields from XWiki and improved separation of data. Now if you wan to add new type of data - just add it in map of available transformation from xwiki to android contacts field","created_at":"2018-07-03T02:17:37Z","updated_at":"2018-07-03T07:34:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"007a7b50ed41c2f5f0d99bd73e89e145a7c1b9c4","assignee":{"login":"InsanusMokrassar","id":6850345,"node_id":"MDQ6VXNlcjY4NTAzNDU=","avatar_url":"https://avatars0.githubusercontent.com/u/6850345?v=4","gravatar_id":"","url":"https://api.github.com/users/InsanusMokrassar","html_url":"https://github.com/InsanusMokrassar","followers_url":"https://api.github.com/users/InsanusMokrassar/followers","following_url":"https://api.github.com/users/InsanusMokrassar/following{/other_user}","gists_url":"https://api.github.com/users/InsanusMokrassar/gists{/gist_id}","starred_url":"https://api.github.com/users/InsanusMokrassar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InsanusMokrassar/subscriptions","organizations_url":"https://api.github.com/users/InsanusMokrassar/orgs","repos_url":"https://api.github.com/users/InsanusMokrassar/repos","events_url":"https://api.github.com/users/InsanusMokrassar/events{/privacy}","received_events_url":"https://api.github.com/users/InsanusMokrassar/received_events","type":"User","site_admin":false},"assignees":[{"login":"InsanusMokrassar","id":6850345,"node_id":"MDQ6VXNlcjY4NTAzNDU=","avatar_url":"https://avatars0.githubusercontent.com/u/6850345?v=4","gravatar_id":"","url":"https://api.github.com/users/InsanusMokrassar","html_url":"https://github.com/InsanusMokrassar","followers_url":"https://api.github.com/users/InsanusMokrassar/followers","following_url":"https://api.github.com/users/InsanusMokrassar/following{/other_user}","gists_url":"https://api.github.com/users/InsanusMokrassar/gists{/gist_id}","starred_url":"https://api.github.com/users/InsanusMokrassar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/InsanusMokrassar/subscriptions","organizations_url":"https://api.github.com/users/InsanusMokrassar/orgs","repos_url":"https://api.github.com/users/InsanusMokrassar/repos","events_url":"https://api.github.com/users/InsanusMokrassar/events{/privacy}","received_events_url":"https://api.github.com/users/InsanusMokrassar/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/24/commits","review_comments_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/24/comments","review_comment_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues/24/comments","statuses_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/statuses/769f5a37ef5a11177406df173105a4e3f33658b1","head":{"label":"xwiki-contrib:impr/ANDAUTH-46_synchronize-more-info-in-contacts","ref":"impr/ANDAUTH-46_synchronize-more-info-in-contacts","sha":"769f5a37ef5a11177406df173105a4e3f33658b1","user":{"login":"xwiki-contrib","id":712013,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcxMjAxMw==","avatar_url":"https://avatars1.githubusercontent.com/u/712013?v=4","gravatar_id":"","url":"https://api.github.com/users/xwiki-contrib","html_url":"https://github.com/xwiki-contrib","followers_url":"https://api.github.com/users/xwiki-contrib/followers","following_url":"https://api.github.com/users/xwiki-contrib/following{/other_user}","gists_url":"https://api.github.com/users/xwiki-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/xwiki-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwiki-contrib/subscriptions","organizations_url":"https://api.github.com/users/xwiki-contrib/orgs","repos_url":"https://api.github.com/users/xwiki-contrib/repos","events_url":"https://api.github.com/users/xwiki-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/xwiki-contrib/received_events","type":"Organization","site_admin":false},"repo":{"id":34377687,"node_id":"MDEwOlJlcG9zaXRvcnkzNDM3NzY4Nw==","name":"android-authenticator","full_name":"xwiki-contrib/android-authenticator","owner":{"login":"xwiki-contrib","id":712013,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcxMjAxMw==","avatar_url":"https://avatars1.githubusercontent.com/u/712013?v=4","gravatar_id":"","url":"https://api.github.com/users/xwiki-contrib","html_url":"https://github.com/xwiki-contrib","followers_url":"https://api.github.com/users/xwiki-contrib/followers","following_url":"https://api.github.com/users/xwiki-contrib/following{/other_user}","gists_url":"https://api.github.com/users/xwiki-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/xwiki-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwiki-contrib/subscriptions","organizations_url":"https://api.github.com/users/xwiki-contrib/orgs","repos_url":"https://api.github.com/users/xwiki-contrib/repos","events_url":"https://api.github.com/users/xwiki-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/xwiki-contrib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwiki-contrib/android-authenticator","description":"An Android authenticator to be used by other android application and with integrated synchronization of contacts","fork":false,"url":"https://api.github.com/repos/xwiki-contrib/android-authenticator","forks_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/forks","keys_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/teams","hooks_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/hooks","issue_events_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues/events{/number}","events_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/events","assignees_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/assignees{/user}","branches_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/branches{/branch}","tags_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/tags","blobs_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/statuses/{sha}","languages_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/languages","stargazers_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/stargazers","contributors_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/contributors","subscribers_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/subscribers","subscription_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/subscription","commits_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/contents/{+path}","compare_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/merges","archive_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/downloads","issues_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues{/number}","pulls_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls{/number}","milestones_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/milestones{/number}","notifications_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/labels{/name}","releases_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/releases{/id}","deployments_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/deployments","created_at":"2015-04-22T08:12:29Z","updated_at":"2018-07-02T15:35:47Z","pushed_at":"2018-07-03T03:34:44Z","git_url":"git://github.com/xwiki-contrib/android-authenticator.git","ssh_url":"git@github.com:xwiki-contrib/android-authenticator.git","clone_url":"https://github.com/xwiki-contrib/android-authenticator.git","svn_url":"https://github.com/xwiki-contrib/android-authenticator","homepage":"http://extensions.xwiki.org/xwiki/bin/view/Extension/Android+authenticator","size":5374,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":12,"open_issues":1,"watchers":7,"default_branch":"master"}},"base":{"label":"xwiki-contrib:master","ref":"master","sha":"fb6110b15a12da88f9e9c542618bd231743e6f3a","user":{"login":"xwiki-contrib","id":712013,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcxMjAxMw==","avatar_url":"https://avatars1.githubusercontent.com/u/712013?v=4","gravatar_id":"","url":"https://api.github.com/users/xwiki-contrib","html_url":"https://github.com/xwiki-contrib","followers_url":"https://api.github.com/users/xwiki-contrib/followers","following_url":"https://api.github.com/users/xwiki-contrib/following{/other_user}","gists_url":"https://api.github.com/users/xwiki-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/xwiki-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwiki-contrib/subscriptions","organizations_url":"https://api.github.com/users/xwiki-contrib/orgs","repos_url":"https://api.github.com/users/xwiki-contrib/repos","events_url":"https://api.github.com/users/xwiki-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/xwiki-contrib/received_events","type":"Organization","site_admin":false},"repo":{"id":34377687,"node_id":"MDEwOlJlcG9zaXRvcnkzNDM3NzY4Nw==","name":"android-authenticator","full_name":"xwiki-contrib/android-authenticator","owner":{"login":"xwiki-contrib","id":712013,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcxMjAxMw==","avatar_url":"https://avatars1.githubusercontent.com/u/712013?v=4","gravatar_id":"","url":"https://api.github.com/users/xwiki-contrib","html_url":"https://github.com/xwiki-contrib","followers_url":"https://api.github.com/users/xwiki-contrib/followers","following_url":"https://api.github.com/users/xwiki-contrib/following{/other_user}","gists_url":"https://api.github.com/users/xwiki-contrib/gists{/gist_id}","starred_url":"https://api.github.com/users/xwiki-contrib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xwiki-contrib/subscriptions","organizations_url":"https://api.github.com/users/xwiki-contrib/orgs","repos_url":"https://api.github.com/users/xwiki-contrib/repos","events_url":"https://api.github.com/users/xwiki-contrib/events{/privacy}","received_events_url":"https://api.github.com/users/xwiki-contrib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/xwiki-contrib/android-authenticator","description":"An Android authenticator to be used by other android application and with integrated synchronization of contacts","fork":false,"url":"https://api.github.com/repos/xwiki-contrib/android-authenticator","forks_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/forks","keys_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/teams","hooks_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/hooks","issue_events_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues/events{/number}","events_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/events","assignees_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/assignees{/user}","branches_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/branches{/branch}","tags_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/tags","blobs_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/refs{/sha}","trees_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/statuses/{sha}","languages_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/languages","stargazers_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/stargazers","contributors_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/contributors","subscribers_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/subscribers","subscription_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/subscription","commits_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/commits{/sha}","git_commits_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/git/commits{/sha}","comments_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/comments{/number}","issue_comment_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues/comments{/number}","contents_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/contents/{+path}","compare_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/merges","archive_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/downloads","issues_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues{/number}","pulls_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls{/number}","milestones_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/milestones{/number}","notifications_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/labels{/name}","releases_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/releases{/id}","deployments_url":"https://api.github.com/repos/xwiki-contrib/android-authenticator/deployments","created_at":"2015-04-22T08:12:29Z","updated_at":"2018-07-02T15:35:47Z","pushed_at":"2018-07-03T03:34:44Z","git_url":"git://github.com/xwiki-contrib/android-authenticator.git","ssh_url":"git@github.com:xwiki-contrib/android-authenticator.git","clone_url":"https://github.com/xwiki-contrib/android-authenticator.git","svn_url":"https://github.com/xwiki-contrib/android-authenticator","homepage":"http://extensions.xwiki.org/xwiki/bin/view/Extension/Android+authenticator","size":5374,"stargazers_count":7,"watchers_count":7,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":12,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"lgpl-2.1","name":"GNU Lesser General Public License v2.1","spdx_id":"LGPL-2.1","url":"https://api.github.com/licenses/lgpl-2.1","node_id":"MDc6TGljZW5zZTEx"},"forks":12,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/24"},"html":{"href":"https://github.com/xwiki-contrib/android-authenticator/pull/24"},"issue":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues/24"},"comments":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/xwiki-contrib/android-authenticator/statuses/769f5a37ef5a11177406df173105a4e3f33658b1"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"InsanusMokrassar"}}