{"action":"created","issue":{"url":"https://api.github.com/repos/CruGlobal/mpdx/issues/324","labels_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/324/labels{/name}","comments_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/324/comments","events_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/324/events","html_url":"https://github.com/CruGlobal/mpdx/pull/324","id":63617423,"number":324,"title":"autocomplete address in contact form","user":{"login":"soberstadt","id":1080613,"avatar_url":"https://avatars.githubusercontent.com/u/1080613?v=3","gravatar_id":"","url":"https://api.github.com/users/soberstadt","html_url":"https://github.com/soberstadt","followers_url":"https://api.github.com/users/soberstadt/followers","following_url":"https://api.github.com/users/soberstadt/following{/other_user}","gists_url":"https://api.github.com/users/soberstadt/gists{/gist_id}","starred_url":"https://api.github.com/users/soberstadt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soberstadt/subscriptions","organizations_url":"https://api.github.com/users/soberstadt/orgs","repos_url":"https://api.github.com/users/soberstadt/repos","events_url":"https://api.github.com/users/soberstadt/events{/privacy}","received_events_url":"https://api.github.com/users/soberstadt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-03-23T03:58:27Z","updated_at":"2015-03-23T16:54:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CruGlobal/mpdx/pulls/324","html_url":"https://github.com/CruGlobal/mpdx/pull/324","diff_url":"https://github.com/CruGlobal/mpdx/pull/324.diff","patch_url":"https://github.com/CruGlobal/mpdx/pull/324.patch"},"body":"Currently we are storing the address field in the database as a long string and allowing users to add line breaks to have as many address lines as they want.\r\n\r\nIn order to use Google's Autocomplete feature, we need to have the input be type `text`. Which means breaking the street value into to fields. There were two ways to do this, migrate the database and all the addresses in there, as well as change the logic of incoming data, or parse it while it is on its way in and out. I went with the later.\r\n\r\nLet me know if there are any issues that you see with how I'm going about this.\r\n\r\nPS, this is getting merged into design-v2. So it won't be in master until the redesign is launched."},"comment":{"url":"https://api.github.com/repos/CruGlobal/mpdx/issues/comments/85093921","html_url":"https://github.com/CruGlobal/mpdx/pull/324#issuecomment-85093921","issue_url":"https://api.github.com/repos/CruGlobal/mpdx/issues/324","id":85093921,"user":{"login":"soberstadt","id":1080613,"avatar_url":"https://avatars.githubusercontent.com/u/1080613?v=3","gravatar_id":"","url":"https://api.github.com/users/soberstadt","html_url":"https://github.com/soberstadt","followers_url":"https://api.github.com/users/soberstadt/followers","following_url":"https://api.github.com/users/soberstadt/following{/other_user}","gists_url":"https://api.github.com/users/soberstadt/gists{/gist_id}","starred_url":"https://api.github.com/users/soberstadt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soberstadt/subscriptions","organizations_url":"https://api.github.com/users/soberstadt/orgs","repos_url":"https://api.github.com/users/soberstadt/repos","events_url":"https://api.github.com/users/soberstadt/events{/privacy}","received_events_url":"https://api.github.com/users/soberstadt/received_events","type":"User","site_admin":false},"created_at":"2015-03-23T16:54:38Z","updated_at":"2015-03-23T16:54:38Z","body":"Dave had the idea to make street2 a multiline input, then users can put in as many lines as they want. That seems like a pretty good solution. What do you think of that @twinge ?"}}