{"action":"opened","number":155,"pull_request":{"url":"https://api.github.com/repos/andyjac/hinton/pulls/155","id":41090910,"html_url":"https://github.com/andyjac/hinton/pull/155","diff_url":"https://github.com/andyjac/hinton/pull/155.diff","patch_url":"https://github.com/andyjac/hinton/pull/155.patch","issue_url":"https://api.github.com/repos/andyjac/hinton/issues/155","number":155,"state":"open","locked":false,"title":"Use correct lat/long ref, reset $s and restNames array on save","user":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"body":"@bullitbd found a few more small bugs, which this PR aims to fix:\r\n\r\n1. lat/long was not getting saved. Ref pointed to a `details.geometry.location.A` and `details.geometry.location.F` prop on the details object, but lat/long was actually being saved on `details.geometry.location.G` and `details.geometry.location.K`.\r\n\r\n2. The price $ display needed to be reset on save.\r\n\r\n3. The restaurantNames array needed to also be reset on save in order to avoid duplicate names being pushed into the existing array when the data is re-fetched from the server.","created_at":"2015-07-29T06:27:48Z","updated_at":"2015-07-29T06:27:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"97e018f99d9c5a27d7395de5d8d7db66bd64976c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andyjac/hinton/pulls/155/commits","review_comments_url":"https://api.github.com/repos/andyjac/hinton/pulls/155/comments","review_comment_url":"https://api.github.com/repos/andyjac/hinton/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andyjac/hinton/issues/155/comments","statuses_url":"https://api.github.com/repos/andyjac/hinton/statuses/94e27cc3fcbf380a293cd88256ba059f6df175e8","head":{"label":"andyjac:fix_bugs","ref":"fix_bugs","sha":"94e27cc3fcbf380a293cd88256ba059f6df175e8","user":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"repo":{"id":35788825,"name":"hinton","full_name":"andyjac/hinton","owner":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andyjac/hinton","description":"Companion iPhone app for ginahinton.com","fork":false,"url":"https://api.github.com/repos/andyjac/hinton","forks_url":"https://api.github.com/repos/andyjac/hinton/forks","keys_url":"https://api.github.com/repos/andyjac/hinton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andyjac/hinton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andyjac/hinton/teams","hooks_url":"https://api.github.com/repos/andyjac/hinton/hooks","issue_events_url":"https://api.github.com/repos/andyjac/hinton/issues/events{/number}","events_url":"https://api.github.com/repos/andyjac/hinton/events","assignees_url":"https://api.github.com/repos/andyjac/hinton/assignees{/user}","branches_url":"https://api.github.com/repos/andyjac/hinton/branches{/branch}","tags_url":"https://api.github.com/repos/andyjac/hinton/tags","blobs_url":"https://api.github.com/repos/andyjac/hinton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andyjac/hinton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andyjac/hinton/git/refs{/sha}","trees_url":"https://api.github.com/repos/andyjac/hinton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andyjac/hinton/statuses/{sha}","languages_url":"https://api.github.com/repos/andyjac/hinton/languages","stargazers_url":"https://api.github.com/repos/andyjac/hinton/stargazers","contributors_url":"https://api.github.com/repos/andyjac/hinton/contributors","subscribers_url":"https://api.github.com/repos/andyjac/hinton/subscribers","subscription_url":"https://api.github.com/repos/andyjac/hinton/subscription","commits_url":"https://api.github.com/repos/andyjac/hinton/commits{/sha}","git_commits_url":"https://api.github.com/repos/andyjac/hinton/git/commits{/sha}","comments_url":"https://api.github.com/repos/andyjac/hinton/comments{/number}","issue_comment_url":"https://api.github.com/repos/andyjac/hinton/issues/comments{/number}","contents_url":"https://api.github.com/repos/andyjac/hinton/contents/{+path}","compare_url":"https://api.github.com/repos/andyjac/hinton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andyjac/hinton/merges","archive_url":"https://api.github.com/repos/andyjac/hinton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andyjac/hinton/downloads","issues_url":"https://api.github.com/repos/andyjac/hinton/issues{/number}","pulls_url":"https://api.github.com/repos/andyjac/hinton/pulls{/number}","milestones_url":"https://api.github.com/repos/andyjac/hinton/milestones{/number}","notifications_url":"https://api.github.com/repos/andyjac/hinton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andyjac/hinton/labels{/name}","releases_url":"https://api.github.com/repos/andyjac/hinton/releases{/id}","created_at":"2015-05-18T00:32:11Z","updated_at":"2015-05-19T15:18:37Z","pushed_at":"2015-07-29T06:27:48Z","git_url":"git://github.com/andyjac/hinton.git","ssh_url":"git@github.com:andyjac/hinton.git","clone_url":"https://github.com/andyjac/hinton.git","svn_url":"https://github.com/andyjac/hinton","homepage":"","size":1200,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"base":{"label":"andyjac:master","ref":"master","sha":"488670e93f98566c64492e927990dc7b2ec492b3","user":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"repo":{"id":35788825,"name":"hinton","full_name":"andyjac/hinton","owner":{"login":"andyjac","id":5609090,"avatar_url":"https://avatars.githubusercontent.com/u/5609090?v=3","gravatar_id":"","url":"https://api.github.com/users/andyjac","html_url":"https://github.com/andyjac","followers_url":"https://api.github.com/users/andyjac/followers","following_url":"https://api.github.com/users/andyjac/following{/other_user}","gists_url":"https://api.github.com/users/andyjac/gists{/gist_id}","starred_url":"https://api.github.com/users/andyjac/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andyjac/subscriptions","organizations_url":"https://api.github.com/users/andyjac/orgs","repos_url":"https://api.github.com/users/andyjac/repos","events_url":"https://api.github.com/users/andyjac/events{/privacy}","received_events_url":"https://api.github.com/users/andyjac/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andyjac/hinton","description":"Companion iPhone app for ginahinton.com","fork":false,"url":"https://api.github.com/repos/andyjac/hinton","forks_url":"https://api.github.com/repos/andyjac/hinton/forks","keys_url":"https://api.github.com/repos/andyjac/hinton/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andyjac/hinton/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andyjac/hinton/teams","hooks_url":"https://api.github.com/repos/andyjac/hinton/hooks","issue_events_url":"https://api.github.com/repos/andyjac/hinton/issues/events{/number}","events_url":"https://api.github.com/repos/andyjac/hinton/events","assignees_url":"https://api.github.com/repos/andyjac/hinton/assignees{/user}","branches_url":"https://api.github.com/repos/andyjac/hinton/branches{/branch}","tags_url":"https://api.github.com/repos/andyjac/hinton/tags","blobs_url":"https://api.github.com/repos/andyjac/hinton/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andyjac/hinton/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andyjac/hinton/git/refs{/sha}","trees_url":"https://api.github.com/repos/andyjac/hinton/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andyjac/hinton/statuses/{sha}","languages_url":"https://api.github.com/repos/andyjac/hinton/languages","stargazers_url":"https://api.github.com/repos/andyjac/hinton/stargazers","contributors_url":"https://api.github.com/repos/andyjac/hinton/contributors","subscribers_url":"https://api.github.com/repos/andyjac/hinton/subscribers","subscription_url":"https://api.github.com/repos/andyjac/hinton/subscription","commits_url":"https://api.github.com/repos/andyjac/hinton/commits{/sha}","git_commits_url":"https://api.github.com/repos/andyjac/hinton/git/commits{/sha}","comments_url":"https://api.github.com/repos/andyjac/hinton/comments{/number}","issue_comment_url":"https://api.github.com/repos/andyjac/hinton/issues/comments{/number}","contents_url":"https://api.github.com/repos/andyjac/hinton/contents/{+path}","compare_url":"https://api.github.com/repos/andyjac/hinton/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andyjac/hinton/merges","archive_url":"https://api.github.com/repos/andyjac/hinton/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andyjac/hinton/downloads","issues_url":"https://api.github.com/repos/andyjac/hinton/issues{/number}","pulls_url":"https://api.github.com/repos/andyjac/hinton/pulls{/number}","milestones_url":"https://api.github.com/repos/andyjac/hinton/milestones{/number}","notifications_url":"https://api.github.com/repos/andyjac/hinton/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andyjac/hinton/labels{/name}","releases_url":"https://api.github.com/repos/andyjac/hinton/releases{/id}","created_at":"2015-05-18T00:32:11Z","updated_at":"2015-05-19T15:18:37Z","pushed_at":"2015-07-29T06:27:48Z","git_url":"git://github.com/andyjac/hinton.git","ssh_url":"git@github.com:andyjac/hinton.git","clone_url":"https://github.com/andyjac/hinton.git","svn_url":"https://github.com/andyjac/hinton","homepage":"","size":1200,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":11,"forks":0,"open_issues":11,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/andyjac/hinton/pulls/155"},"html":{"href":"https://github.com/andyjac/hinton/pull/155"},"issue":{"href":"https://api.github.com/repos/andyjac/hinton/issues/155"},"comments":{"href":"https://api.github.com/repos/andyjac/hinton/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/andyjac/hinton/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/andyjac/hinton/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andyjac/hinton/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/andyjac/hinton/statuses/94e27cc3fcbf380a293cd88256ba059f6df175e8"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":4,"changed_files":1}}