CruGlobal/mpdx — pull request #125 by draffensperger (2014-08-19 21:12:17+00:00)
Title: Mpdx 183 import

This is a first pass at a Google contacts import. Right now it imports name, addresses, emails, and phone numbers. Because this is a new feature, I enclosed it in rollout flag of `:google_contacts_import` in `app/views/application/_network_connections.html.erb`

I forked the google_contacts_api gem and modified it at https://github.com/CruGlobal/google_contacts_api/ to add some methods to tidy up some of the Google Contacts API results.

One change @jbirdjavi suggested by email is to make a separate table `google_contacts` to store the Google associations rather than using `person_google_accounts`. That would negate the need to make the `email` field in `person_google_accounts` optional. I plan to make that change soon.

Some missing features would be to capture additional fields from the Google import like middle name, title, suffix, gender, organization. It should also have a different behavior depending on whether the user specifies to override existing data or just add new data, and it may be possible to do some spouse matching.

I figured I would send this as a pull request before I go much further along. @twinge and others - please let me know any things you would want changed at this stage.