GitHub PullRequestEvent at 2014-10-23 14:59:59
Repository: mpdx
Actor: draffensperger
Payload: {"action":"closed","number":157,"pull_request":{"url":"https://api.github.com/repos/CruGlobal/mpdx/pulls/157","id":22044808,"html_url":"https://github.com/CruGlobal/mpdx/pull/157","diff_url":"https://github.com/CruGlobal/mpdx/pull/157.diff","patch_url":"https://github.com/CruGlobal/mpdx/pull/157.patch","issue_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/157","number":157,"state":"closed","locked":false,"title":"MPDX-183 Google Contacts Sync","user":{"login":"draffensperger","id":2855507,"avatar_url":"https://avatars.githubusercontent.com/u/2855507?v=2","gravatar_id":"","url":"https://api.github.com/users/draffensperger","html_url":"https://github.com/draffensperger","followers_url":"https://api.github.com/users/draffensperger/followers","following_url":"https://api.github.com/users/draffensperger/following{/other_user}","gists_url":"https://api.github.com/users/draffensperger/gists{/gist_id}","starred_url":"https://api.github.com/users/draffensperger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draffensperger/subscriptions","organizations_url":"https://api.github.com/users/draffensperger/orgs","repos_url":"https://api.github.com/users/draffensperger/repos","events_url":"https://api.github.com/users/draffensperger/events{/privacy}","received_events_url":"https://api.github.com/users/draffensperger/received_events","type":"User","site_admin":false},"body":"Implements a two-way sync to/from MPDX and Google Contacts. For simple fields it has MPDX win in a conflict, and for array type files (emails, addresses, etc.) it propagates changes as a series of creates and deletes and propagates both deletes and updates to/from MPDX and Google. So a conflicting update would result in a delete of the old value and both systems having the two new values.\r\n\r\nThere is some logic to only sync updated Google Contacts and MPDX records after the first sync. The goal of that is to make the sync fast enough for it to be run regularly for all users.\r\n\r\nI did a lot of updates to the `google_contacts_api` gem to get this to work. I plan to suggest them as a pull request back to the gem author at some point (he merged an earlier pull for the google import feature).\r\n\r\nThere are still a couple things to iron out, but this is getting close.","created_at":"2014-10-01T00:15:52Z","updated_at":"2014-10-23T14:59:58Z","closed_at":"2014-10-23T14:59:58Z","merged_at":"2014-10-23T14:59:58Z","merge_commit_sha":"a021cc3f8901ddfeabb55b630c99bc0673735c09","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CruGlobal/mpdx/pulls/157/commits","review_comments_url":"https://api.github.com/repos/CruGlobal/mpdx/pulls/157/comments","review_comment_url":"https://api.github.com/repos/CruGlobal/mpdx/pulls/comments/{number}","comments_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/157/comments","statuses_url":"https://api.github.com/repos/CruGlobal/mpdx/statuses/5a48c2b3e06946b5c26d45de0ba0148759abbb21","head":{"label":"CruGlobal:MPDX-183-sync","ref":"MPDX-183-sync","sha":"5a48c2b3e06946b5c26d45de0ba0148759abbb21","user":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars.githubusercontent.com/u/1785912?v=2","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"repo":{"id":4625882,"name":"mpdx","full_name":"CruGlobal/mpdx","owner":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars.githubusercontent.com/u/1785912?v=2","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruGlobal/mpdx","description":"Web based tool to help missionaries stay in touch with ministry partners","fork":false,"url":"https://api.github.com/repos/CruGlobal/mpdx","forks_url":"https://api.github.com/repos/CruGlobal/mpdx/forks","keys_url":"https://api.github.com/repos/CruGlobal/mpdx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruGlobal/mpdx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruGlobal/mpdx/teams","hooks_url":"https://api.github.com/repos/CruGlobal/mpdx/hooks","issue_events_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/events{/number}","events_url":"https://api.github.com/repos/CruGlobal/mpdx/events","assignees_url":"https://api.github.com/repos/CruGlobal/mpdx/assignees{/user}","branches_url":"https://api.github.com/repos/CruGlobal/mpdx/branches{/branch}","tags_url":"https://api.github.com/repos/CruGlobal/mpdx/tags","blobs_url":"https://api.github.com/repos/CruGlobal/mpdx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruGlobal/mpdx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruGlobal/mpdx/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruGlobal/mpdx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruGlobal/mpdx/statuses/{sha}","languages_url":"https://api.github.com/repos/CruGlobal/mpdx/languages","stargazers_url":"https://api.github.com/repos/CruGlobal/mpdx/stargazers","contributors_url":"https://api.github.com/repos/CruGlobal/mpdx/contributors","subscribers_url":"https://api.github.com/repos/CruGlobal/mpdx/subscribers","subscription_url":"https://api.github.com/repos/CruGlobal/mpdx/subscription","commits_url":"https://api.github.com/repos/CruGlobal/mpdx/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruGlobal/mpdx/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruGlobal/mpdx/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/comments/{number}","contents_url":"https://api.github.com/repos/CruGlobal/mpdx/contents/{+path}","compare_url":"https://api.github.com/repos/CruGlobal/mpdx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruGlobal/mpdx/merges","archive_url":"https://api.github.com/repos/CruGlobal/mpdx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruGlobal/mpdx/downloads","issues_url":"https://api.github.com/repos/CruGlobal/mpdx/issues{/number}","pulls_url":"https://api.github.com/repos/CruGlobal/mpdx/pulls{/number}","milestones_url":"https://api.github.com/repos/CruGlobal/mpdx/milestones{/number}","notifications_url":"https://api.github.com/repos/CruGlobal/mpdx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruGlobal/mpdx/labels{/name}","releases_url":"https://api.github.com/repos/CruGlobal/mpdx/releases{/id}","created_at":"2012-06-11T14:26:20Z","updated_at":"2014-10-23T14:16:04Z","pushed_at":"2014-10-23T14:59:59Z","git_url":"git://github.com/CruGlobal/mpdx.git","ssh_url":"git@github.com:CruGlobal/mpdx.git","clone_url":"https://github.com/CruGlobal/mpdx.git","svn_url":"https://github.com/CruGlobal/mpdx","homepage":"https://mpdx.org","size":352001,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":8,"default_branch":"master"}},"base":{"label":"CruGlobal:master","ref":"master","sha":"1a549553ab5e76fa8e73eda084e826fd8d3fb7b7","user":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars.githubusercontent.com/u/1785912?v=2","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"repo":{"id":4625882,"name":"mpdx","full_name":"CruGlobal/mpdx","owner":{"login":"CruGlobal","id":1785912,"avatar_url":"https://avatars.githubusercontent.com/u/1785912?v=2","gravatar_id":"","url":"https://api.github.com/users/CruGlobal","html_url":"https://github.com/CruGlobal","followers_url":"https://api.github.com/users/CruGlobal/followers","following_url":"https://api.github.com/users/CruGlobal/following{/other_user}","gists_url":"https://api.github.com/users/CruGlobal/gists{/gist_id}","starred_url":"https://api.github.com/users/CruGlobal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruGlobal/subscriptions","organizations_url":"https://api.github.com/users/CruGlobal/orgs","repos_url":"https://api.github.com/users/CruGlobal/repos","events_url":"https://api.github.com/users/CruGlobal/events{/privacy}","received_events_url":"https://api.github.com/users/CruGlobal/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruGlobal/mpdx","description":"Web based tool to help missionaries stay in touch with ministry partners","fork":false,"url":"https://api.github.com/repos/CruGlobal/mpdx","forks_url":"https://api.github.com/repos/CruGlobal/mpdx/forks","keys_url":"https://api.github.com/repos/CruGlobal/mpdx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruGlobal/mpdx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruGlobal/mpdx/teams","hooks_url":"https://api.github.com/repos/CruGlobal/mpdx/hooks","issue_events_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/events{/number}","events_url":"https://api.github.com/repos/CruGlobal/mpdx/events","assignees_url":"https://api.github.com/repos/CruGlobal/mpdx/assignees{/user}","branches_url":"https://api.github.com/repos/CruGlobal/mpdx/branches{/branch}","tags_url":"https://api.github.com/repos/CruGlobal/mpdx/tags","blobs_url":"https://api.github.com/repos/CruGlobal/mpdx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruGlobal/mpdx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruGlobal/mpdx/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruGlobal/mpdx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruGlobal/mpdx/statuses/{sha}","languages_url":"https://api.github.com/repos/CruGlobal/mpdx/languages","stargazers_url":"https://api.github.com/repos/CruGlobal/mpdx/stargazers","contributors_url":"https://api.github.com/repos/CruGlobal/mpdx/contributors","subscribers_url":"https://api.github.com/repos/CruGlobal/mpdx/subscribers","subscription_url":"https://api.github.com/repos/CruGlobal/mpdx/subscription","commits_url":"https://api.github.com/repos/CruGlobal/mpdx/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruGlobal/mpdx/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruGlobal/mpdx/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/comments/{number}","contents_url":"https://api.github.com/repos/CruGlobal/mpdx/contents/{+path}","compare_url":"https://api.github.com/repos/CruGlobal/mpdx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruGlobal/mpdx/merges","archive_url":"https://api.github.com/repos/CruGlobal/mpdx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruGlobal/mpdx/downloads","issues_url":"https://api.github.com/repos/CruGlobal/mpdx/issues{/number}","pulls_url":"https://api.github.com/repos/CruGlobal/mpdx/pulls{/number}","milestones_url":"https://api.github.com/repos/CruGlobal/mpdx/milestones{/number}","notifications_url":"https://api.github.com/repos/CruGlobal/mpdx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruGlobal/mpdx/labels{/name}","releases_url":"https://api.github.com/repos/CruGlobal/mpdx/releases{/id}","created_at":"2012-06-11T14:26:20Z","updated_at":"2014-10-23T14:16:04Z","pushed_at":"2014-10-23T14:59:59Z","git_url":"git://github.com/CruGlobal/mpdx.git","ssh_url":"git@github.com:CruGlobal/mpdx.git","clone_url":"https://github.com/CruGlobal/mpdx.git","svn_url":"https://github.com/CruGlobal/mpdx","homepage":"https://mpdx.org","size":352001,"stargazers_count":8,"watchers_count":8,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":11,"forks":3,"open_issues":11,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CruGlobal/mpdx/pulls/157"},"html":{"href":"https://github.com/CruGlobal/mpdx/pull/157"},"issue":{"href":"https://api.github.com/repos/CruGlobal/mpdx/issues/157"},"comments":{"href":"https://api.github.com/repos/CruGlobal/mpdx/issues/157/comments"},"review_comments":{"href":"https://api.github.com/repos/CruGlobal/mpdx/pulls/157/comments"},"review_comment":{"href":"https://api.github.com/repos/CruGlobal/mpdx/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/CruGlobal/mpdx/pulls/157/commits"},"statuses":{"href":"https://api.github.com/repos/CruGlobal/mpdx/statuses/5a48c2b3e06946b5c26d45de0ba0148759abbb21"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"draffensperger","id":2855507,"avatar_url":"https://avatars.githubusercontent.com/u/2855507?v=2","gravatar_id":"","url":"https://api.github.com/users/draffensperger","html_url":"https://github.com/draffensperger","followers_url":"https://api.github.com/users/draffensperger/followers","following_url":"https://api.github.com/users/draffensperger/following{/other_user}","gists_url":"https://api.github.com/users/draffensperger/gists{/gist_id}","starred_url":"https://api.github.com/users/draffensperger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/draffensperger/subscriptions","organizations_url":"https://api.github.com/users/draffensperger/orgs","repos_url":"https://api.github.com/users/draffensperger/repos","events_url":"https://api.github.com/users/draffensperger/events{/privacy}","received_events_url":"https://api.github.com/users/draffensperger/received_events","type":"User","site_admin":false},"comments":6,"review_comments":3,"commits":66,"additions":2284,"deletions":29,"changed_files":24}}