{"action":"created","comment":{"url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/comments/291465257","pull_request_review_id":246931091,"id":291465257,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5MTQ2NTI1Nw==","diff_hunk":"@@ -0,0 +1,44 @@\n+import React from 'react';\n+import getFormattedValue from '../helpers/getFormattedValue';\n+import SelectedLocationIcon from '../icons/selectedLocationIcon';\n+\n+const suggestion = {\n+    description: 'Cubbon Park, Sampangi Rama Nagara, Bengaluru, Karnataka, India',\n+    id: 'f334fb17a44b740132f72d59a7d90ab9a81300ac',\n+    matched_substrings: [{ length: 3, offset: 0 }],\n+    place_id: 'ChIJL2fQ53MWrjsRuN9D6aalLMY',\n+    reference: 'ChIJL2fQ53MWrjsRuN9D6aalLMY',\n+    structured_formatting: {\n+        main_text: 'Cubbon Park',\n+        main_text_matched_substrings: [{ length: 3, offset: 0 }],\n+        secondary_text: 'Sampangi Rama Nagara, Bengaluru, Karnataka, India',\n+    },\n+    terms: [\n+        { offset: 0, value: 'Cubbon Cubbon Park' },\n+        { offset: 13, value: 'Sampangi Rama Nagara' },\n+        { offset: 35, value: 'Bengaluru' },\n+        { offset: 46, value: 'Karnataka' },\n+        { offset: 57, value: 'India' },\n+    ],\n+    types: ['park', 'point_of_interest', 'establishment'],\n+};\n+\n+describe('formatSuggestionItem', () => {\n+    it('should return the item formated without highligth', () => {\n+        expect(getFormattedValue(suggestion, false, <SelectedLocationIcon />)).toEqual({\n+            id: 'ChIJL2fQ53MWrjsRuN9D6aalLMY',\n+            label: 'Cubbon Park, Sampangi Rama Nagara, Bengaluru, Karnataka, India',\n+            description: 'Sampangi Rama Nagara, Bengaluru, Karnataka, India',\n+            icon: <SelectedLocationIcon />,\n+        });\n+    });\n+\n+    // it('should return the item formated with hightligh', () => {\n+    //     expect(getFormattedValue(suggestion, true, <SelectedLocationIcon />)).toEqual({\n+    //         id: 'ChIJL2fQ53MWrjsRuN9D6aalLMY',\n+    //         label: <span><b>Cub</b>bon Park</span>,\n+    //         description: 'Sampangi Rama Nagara, Bengaluru, Karnataka, India',\n+    //         icon: <SelectedLocationIcon />,\n+    //     });\n+    // });","path":"src/components/GoogleAddressLookup/__test__/format.spec.js","position":43,"original_position":43,"commit_id":"175cfeca0ae625e4fde40b12e52e1030c508d201","original_commit_id":"175cfeca0ae625e4fde40b12e52e1030c508d201","user":{"login":"LeandroTorresSicilia","id":24737097,"node_id":"MDQ6VXNlcjI0NzM3MDk3","avatar_url":"https://avatars0.githubusercontent.com/u/24737097?v=4","gravatar_id":"","url":"https://api.github.com/users/LeandroTorresSicilia","html_url":"https://github.com/LeandroTorresSicilia","followers_url":"https://api.github.com/users/LeandroTorresSicilia/followers","following_url":"https://api.github.com/users/LeandroTorresSicilia/following{/other_user}","gists_url":"https://api.github.com/users/LeandroTorresSicilia/gists{/gist_id}","starred_url":"https://api.github.com/users/LeandroTorresSicilia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeandroTorresSicilia/subscriptions","organizations_url":"https://api.github.com/users/LeandroTorresSicilia/orgs","repos_url":"https://api.github.com/users/LeandroTorresSicilia/repos","events_url":"https://api.github.com/users/LeandroTorresSicilia/events{/privacy}","received_events_url":"https://api.github.com/users/LeandroTorresSicilia/received_events","type":"User","site_admin":false},"body":"try to fix it, if not remove it and in another PR we add the tests","created_at":"2019-06-07T06:24:24Z","updated_at":"2019-06-07T06:24:24Z","html_url":"https://github.com/90milesbridge/react-rainbow/pull/787#discussion_r291465257","pull_request_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/787","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/comments/291465257"},"html":{"href":"https://github.com/90milesbridge/react-rainbow/pull/787#discussion_r291465257"},"pull_request":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/787"}}},"pull_request":{"url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/787","id":285405649,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg1NDA1NjQ5","html_url":"https://github.com/90milesbridge/react-rainbow/pull/787","diff_url":"https://github.com/90milesbridge/react-rainbow/pull/787.diff","patch_url":"https://github.com/90milesbridge/react-rainbow/pull/787.patch","issue_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/787","number":787,"state":"open","locked":false,"title":"feat: implement GAddressLookup component","user":{"login":"wildergd","id":3240995,"node_id":"MDQ6VXNlcjMyNDA5OTU=","avatar_url":"https://avatars0.githubusercontent.com/u/3240995?v=4","gravatar_id":"","url":"https://api.github.com/users/wildergd","html_url":"https://github.com/wildergd","followers_url":"https://api.github.com/users/wildergd/followers","following_url":"https://api.github.com/users/wildergd/following{/other_user}","gists_url":"https://api.github.com/users/wildergd/gists{/gist_id}","starred_url":"https://api.github.com/users/wildergd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildergd/subscriptions","organizations_url":"https://api.github.com/users/wildergd/orgs","repos_url":"https://api.github.com/users/wildergd/repos","events_url":"https://api.github.com/users/wildergd/events{/privacy}","received_events_url":"https://api.github.com/users/wildergd/received_events","type":"User","site_admin":false},"body":"feat: #697\r\n\r\nChanges proposed in this PR:\r\n- add GAddressLookup component\r\n\r\n[ ] I have followed (at least) the [PR section of the contributing guide](https://github.com/90milesbridge/react-rainbow/blob/master/CONTRIBUTING.md#submitting-a-pull-request).\r\n\r\n@90milesbridge/tigger\r\n","created_at":"2019-06-05T14:38:06Z","updated_at":"2019-06-07T06:24:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"785d756295abff3414954eb4708f2d731dcce600","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/787/commits","review_comments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/787/comments","review_comment_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/787/comments","statuses_url":"https://api.github.com/repos/90milesbridge/react-rainbow/statuses/175cfeca0ae625e4fde40b12e52e1030c508d201","head":{"label":"90milesbridge:implement-gaddresslookup","ref":"implement-gaddresslookup","sha":"175cfeca0ae625e4fde40b12e52e1030c508d201","user":{"login":"90milesbridge","id":18670678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjcwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/18670678?v=4","gravatar_id":"","url":"https://api.github.com/users/90milesbridge","html_url":"https://github.com/90milesbridge","followers_url":"https://api.github.com/users/90milesbridge/followers","following_url":"https://api.github.com/users/90milesbridge/following{/other_user}","gists_url":"https://api.github.com/users/90milesbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/90milesbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/90milesbridge/subscriptions","organizations_url":"https://api.github.com/users/90milesbridge/orgs","repos_url":"https://api.github.com/users/90milesbridge/repos","events_url":"https://api.github.com/users/90milesbridge/events{/privacy}","received_events_url":"https://api.github.com/users/90milesbridge/received_events","type":"Organization","site_admin":false},"repo":{"id":146396702,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzOTY3MDI=","name":"react-rainbow","full_name":"90milesbridge/react-rainbow","private":false,"owner":{"login":"90milesbridge","id":18670678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjcwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/18670678?v=4","gravatar_id":"","url":"https://api.github.com/users/90milesbridge","html_url":"https://github.com/90milesbridge","followers_url":"https://api.github.com/users/90milesbridge/followers","following_url":"https://api.github.com/users/90milesbridge/following{/other_user}","gists_url":"https://api.github.com/users/90milesbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/90milesbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/90milesbridge/subscriptions","organizations_url":"https://api.github.com/users/90milesbridge/orgs","repos_url":"https://api.github.com/users/90milesbridge/repos","events_url":"https://api.github.com/users/90milesbridge/events{/privacy}","received_events_url":"https://api.github.com/users/90milesbridge/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/90milesbridge/react-rainbow","description":"React Rainbow components","fork":false,"url":"https://api.github.com/repos/90milesbridge/react-rainbow","forks_url":"https://api.github.com/repos/90milesbridge/react-rainbow/forks","keys_url":"https://api.github.com/repos/90milesbridge/react-rainbow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/90milesbridge/react-rainbow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/90milesbridge/react-rainbow/teams","hooks_url":"https://api.github.com/repos/90milesbridge/react-rainbow/hooks","issue_events_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/events{/number}","events_url":"https://api.github.com/repos/90milesbridge/react-rainbow/events","assignees_url":"https://api.github.com/repos/90milesbridge/react-rainbow/assignees{/user}","branches_url":"https://api.github.com/repos/90milesbridge/react-rainbow/branches{/branch}","tags_url":"https://api.github.com/repos/90milesbridge/react-rainbow/tags","blobs_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/refs{/sha}","trees_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/90milesbridge/react-rainbow/statuses/{sha}","languages_url":"https://api.github.com/repos/90milesbridge/react-rainbow/languages","stargazers_url":"https://api.github.com/repos/90milesbridge/react-rainbow/stargazers","contributors_url":"https://api.github.com/repos/90milesbridge/react-rainbow/contributors","subscribers_url":"https://api.github.com/repos/90milesbridge/react-rainbow/subscribers","subscription_url":"https://api.github.com/repos/90milesbridge/react-rainbow/subscription","commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/commits{/sha}","git_commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/commits{/sha}","comments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/comments{/number}","issue_comment_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/comments{/number}","contents_url":"https://api.github.com/repos/90milesbridge/react-rainbow/contents/{+path}","compare_url":"https://api.github.com/repos/90milesbridge/react-rainbow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/90milesbridge/react-rainbow/merges","archive_url":"https://api.github.com/repos/90milesbridge/react-rainbow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/90milesbridge/react-rainbow/downloads","issues_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues{/number}","pulls_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls{/number}","milestones_url":"https://api.github.com/repos/90milesbridge/react-rainbow/milestones{/number}","notifications_url":"https://api.github.com/repos/90milesbridge/react-rainbow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/90milesbridge/react-rainbow/labels{/name}","releases_url":"https://api.github.com/repos/90milesbridge/react-rainbow/releases{/id}","deployments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/deployments","created_at":"2018-08-28T05:34:53Z","updated_at":"2019-06-03T02:02:01Z","pushed_at":"2019-06-07T01:09:34Z","git_url":"git://github.com/90milesbridge/react-rainbow.git","ssh_url":"git@github.com:90milesbridge/react-rainbow.git","clone_url":"https://github.com/90milesbridge/react-rainbow.git","svn_url":"https://github.com/90milesbridge/react-rainbow","homepage":"https://react-rainbow.firebaseapp.com/","size":20207,"stargazers_count":38,"watchers_count":38,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":36,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":36,"watchers":38,"default_branch":"master"}},"base":{"label":"90milesbridge:master","ref":"master","sha":"1471156f45e86b9a40f2f5991da40643fb50c339","user":{"login":"90milesbridge","id":18670678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjcwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/18670678?v=4","gravatar_id":"","url":"https://api.github.com/users/90milesbridge","html_url":"https://github.com/90milesbridge","followers_url":"https://api.github.com/users/90milesbridge/followers","following_url":"https://api.github.com/users/90milesbridge/following{/other_user}","gists_url":"https://api.github.com/users/90milesbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/90milesbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/90milesbridge/subscriptions","organizations_url":"https://api.github.com/users/90milesbridge/orgs","repos_url":"https://api.github.com/users/90milesbridge/repos","events_url":"https://api.github.com/users/90milesbridge/events{/privacy}","received_events_url":"https://api.github.com/users/90milesbridge/received_events","type":"Organization","site_admin":false},"repo":{"id":146396702,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzOTY3MDI=","name":"react-rainbow","full_name":"90milesbridge/react-rainbow","private":false,"owner":{"login":"90milesbridge","id":18670678,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4NjcwNjc4","avatar_url":"https://avatars3.githubusercontent.com/u/18670678?v=4","gravatar_id":"","url":"https://api.github.com/users/90milesbridge","html_url":"https://github.com/90milesbridge","followers_url":"https://api.github.com/users/90milesbridge/followers","following_url":"https://api.github.com/users/90milesbridge/following{/other_user}","gists_url":"https://api.github.com/users/90milesbridge/gists{/gist_id}","starred_url":"https://api.github.com/users/90milesbridge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/90milesbridge/subscriptions","organizations_url":"https://api.github.com/users/90milesbridge/orgs","repos_url":"https://api.github.com/users/90milesbridge/repos","events_url":"https://api.github.com/users/90milesbridge/events{/privacy}","received_events_url":"https://api.github.com/users/90milesbridge/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/90milesbridge/react-rainbow","description":"React Rainbow components","fork":false,"url":"https://api.github.com/repos/90milesbridge/react-rainbow","forks_url":"https://api.github.com/repos/90milesbridge/react-rainbow/forks","keys_url":"https://api.github.com/repos/90milesbridge/react-rainbow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/90milesbridge/react-rainbow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/90milesbridge/react-rainbow/teams","hooks_url":"https://api.github.com/repos/90milesbridge/react-rainbow/hooks","issue_events_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/events{/number}","events_url":"https://api.github.com/repos/90milesbridge/react-rainbow/events","assignees_url":"https://api.github.com/repos/90milesbridge/react-rainbow/assignees{/user}","branches_url":"https://api.github.com/repos/90milesbridge/react-rainbow/branches{/branch}","tags_url":"https://api.github.com/repos/90milesbridge/react-rainbow/tags","blobs_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/refs{/sha}","trees_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/90milesbridge/react-rainbow/statuses/{sha}","languages_url":"https://api.github.com/repos/90milesbridge/react-rainbow/languages","stargazers_url":"https://api.github.com/repos/90milesbridge/react-rainbow/stargazers","contributors_url":"https://api.github.com/repos/90milesbridge/react-rainbow/contributors","subscribers_url":"https://api.github.com/repos/90milesbridge/react-rainbow/subscribers","subscription_url":"https://api.github.com/repos/90milesbridge/react-rainbow/subscription","commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/commits{/sha}","git_commits_url":"https://api.github.com/repos/90milesbridge/react-rainbow/git/commits{/sha}","comments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/comments{/number}","issue_comment_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/comments{/number}","contents_url":"https://api.github.com/repos/90milesbridge/react-rainbow/contents/{+path}","compare_url":"https://api.github.com/repos/90milesbridge/react-rainbow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/90milesbridge/react-rainbow/merges","archive_url":"https://api.github.com/repos/90milesbridge/react-rainbow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/90milesbridge/react-rainbow/downloads","issues_url":"https://api.github.com/repos/90milesbridge/react-rainbow/issues{/number}","pulls_url":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls{/number}","milestones_url":"https://api.github.com/repos/90milesbridge/react-rainbow/milestones{/number}","notifications_url":"https://api.github.com/repos/90milesbridge/react-rainbow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/90milesbridge/react-rainbow/labels{/name}","releases_url":"https://api.github.com/repos/90milesbridge/react-rainbow/releases{/id}","deployments_url":"https://api.github.com/repos/90milesbridge/react-rainbow/deployments","created_at":"2018-08-28T05:34:53Z","updated_at":"2019-06-03T02:02:01Z","pushed_at":"2019-06-07T01:09:34Z","git_url":"git://github.com/90milesbridge/react-rainbow.git","ssh_url":"git@github.com:90milesbridge/react-rainbow.git","clone_url":"https://github.com/90milesbridge/react-rainbow.git","svn_url":"https://github.com/90milesbridge/react-rainbow","homepage":"https://react-rainbow.firebaseapp.com/","size":20207,"stargazers_count":38,"watchers_count":38,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":36,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":5,"open_issues":36,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/787"},"html":{"href":"https://github.com/90milesbridge/react-rainbow/pull/787"},"issue":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/787"},"comments":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/issues/787/comments"},"review_comments":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/787/comments"},"review_comment":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/pulls/787/commits"},"statuses":{"href":"https://api.github.com/repos/90milesbridge/react-rainbow/statuses/175cfeca0ae625e4fde40b12e52e1030c508d201"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"LeandroTorresSicilia"}}