{"action":"created","comment":{"url":"https://api.github.com/repos/Amsterdam/atlas/pulls/comments/176402285","pull_request_review_id":106095684,"id":176402285,"diff_hunk":"@@ -0,0 +1,49 @@\n+import apiUrl from '../../shared/services/api';\n+import { getByUrl } from '../../shared/services/api/api';\n+\n+const ENDPOINT = 'typeahead';\n+\n+function formatData(categories, query) {\n+  let suggestionIndex = 0;\n+  let numberOfResults = 0;\n+  if (categories.length > 0) {\n+    categories.forEach((category) => {\n+      category.content.map((suggestion) => {\n+        suggestionIndex += 1;\n+        suggestion.index = suggestionIndex; // eslint-disable-line no-param-reassign","path":"src/header/search/autosuggest-service.js","position":13,"original_position":13,"commit_id":"7740556057e7a218262bf49c03d360e2d6656476","original_commit_id":"9260fa7cc6bc88131e359c5573eddfd31b577312","user":{"login":"vjawala","id":3901950,"avatar_url":"https://avatars2.githubusercontent.com/u/3901950?v=4","gravatar_id":"","url":"https://api.github.com/users/vjawala","html_url":"https://github.com/vjawala","followers_url":"https://api.github.com/users/vjawala/followers","following_url":"https://api.github.com/users/vjawala/following{/other_user}","gists_url":"https://api.github.com/users/vjawala/gists{/gist_id}","starred_url":"https://api.github.com/users/vjawala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjawala/subscriptions","organizations_url":"https://api.github.com/users/vjawala/orgs","repos_url":"https://api.github.com/users/vjawala/repos","events_url":"https://api.github.com/users/vjawala/events{/privacy}","received_events_url":"https://api.github.com/users/vjawala/received_events","type":"User","site_admin":false},"body":"good one, was copy-paste van de autocomplete-factory","created_at":"2018-03-22T12:29:52Z","updated_at":"2018-03-22T12:29:52Z","html_url":"https://github.com/Amsterdam/atlas/pull/1089#discussion_r176402285","pull_request_url":"https://api.github.com/repos/Amsterdam/atlas/pulls/1089","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Amsterdam/atlas/pulls/comments/176402285"},"html":{"href":"https://github.com/Amsterdam/atlas/pull/1089#discussion_r176402285"},"pull_request":{"href":"https://api.github.com/repos/Amsterdam/atlas/pulls/1089"}},"in_reply_to_id":176379918},"pull_request":{"url":"https://api.github.com/repos/Amsterdam/atlas/pulls/1089","id":176713118,"html_url":"https://github.com/Amsterdam/atlas/pull/1089","diff_url":"https://github.com/Amsterdam/atlas/pull/1089.diff","patch_url":"https://github.com/Amsterdam/atlas/pull/1089.patch","issue_url":"https://api.github.com/repos/Amsterdam/atlas/issues/1089","number":1089,"state":"open","locked":false,"title":"Feature/search react","user":{"login":"vjawala","id":3901950,"avatar_url":"https://avatars2.githubusercontent.com/u/3901950?v=4","gravatar_id":"","url":"https://api.github.com/users/vjawala","html_url":"https://github.com/vjawala","followers_url":"https://api.github.com/users/vjawala/followers","following_url":"https://api.github.com/users/vjawala/following{/other_user}","gists_url":"https://api.github.com/users/vjawala/gists{/gist_id}","starred_url":"https://api.github.com/users/vjawala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjawala/subscriptions","organizations_url":"https://api.github.com/users/vjawala/orgs","repos_url":"https://api.github.com/users/vjawala/repos","events_url":"https://api.github.com/users/vjawala/events{/privacy}","received_events_url":"https://api.github.com/users/vjawala/received_events","type":"User","site_admin":false},"body":"-- do NOT merge -- \r\nPR pure for reviewing purposes","created_at":"2018-03-22T09:07:24Z","updated_at":"2018-03-22T12:29:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9c98d49d4883e37127a7ae2c11d6d1ac30034b59","assignee":null,"assignees":[],"requested_reviewers":[{"login":"aronmartin","id":7047536,"avatar_url":"https://avatars0.githubusercontent.com/u/7047536?v=4","gravatar_id":"","url":"https://api.github.com/users/aronmartin","html_url":"https://github.com/aronmartin","followers_url":"https://api.github.com/users/aronmartin/followers","following_url":"https://api.github.com/users/aronmartin/following{/other_user}","gists_url":"https://api.github.com/users/aronmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/aronmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronmartin/subscriptions","organizations_url":"https://api.github.com/users/aronmartin/orgs","repos_url":"https://api.github.com/users/aronmartin/repos","events_url":"https://api.github.com/users/aronmartin/events{/privacy}","received_events_url":"https://api.github.com/users/aronmartin/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":865683807,"url":"https://api.github.com/repos/Amsterdam/atlas/labels/wip","name":"wip","color":"ef5b58","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Amsterdam/atlas/pulls/1089/commits","review_comments_url":"https://api.github.com/repos/Amsterdam/atlas/pulls/1089/comments","review_comment_url":"https://api.github.com/repos/Amsterdam/atlas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Amsterdam/atlas/issues/1089/comments","statuses_url":"https://api.github.com/repos/Amsterdam/atlas/statuses/7740556057e7a218262bf49c03d360e2d6656476","head":{"label":"Amsterdam:feature/search-react","ref":"feature/search-react","sha":"7740556057e7a218262bf49c03d360e2d6656476","user":{"login":"Amsterdam","id":14022058,"avatar_url":"https://avatars0.githubusercontent.com/u/14022058?v=4","gravatar_id":"","url":"https://api.github.com/users/Amsterdam","html_url":"https://github.com/Amsterdam","followers_url":"https://api.github.com/users/Amsterdam/followers","following_url":"https://api.github.com/users/Amsterdam/following{/other_user}","gists_url":"https://api.github.com/users/Amsterdam/gists{/gist_id}","starred_url":"https://api.github.com/users/Amsterdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amsterdam/subscriptions","organizations_url":"https://api.github.com/users/Amsterdam/orgs","repos_url":"https://api.github.com/users/Amsterdam/repos","events_url":"https://api.github.com/users/Amsterdam/events{/privacy}","received_events_url":"https://api.github.com/users/Amsterdam/received_events","type":"Organization","site_admin":false},"repo":{"id":60016458,"name":"atlas","full_name":"Amsterdam/atlas","owner":{"login":"Amsterdam","id":14022058,"avatar_url":"https://avatars0.githubusercontent.com/u/14022058?v=4","gravatar_id":"","url":"https://api.github.com/users/Amsterdam","html_url":"https://github.com/Amsterdam","followers_url":"https://api.github.com/users/Amsterdam/followers","following_url":"https://api.github.com/users/Amsterdam/following{/other_user}","gists_url":"https://api.github.com/users/Amsterdam/gists{/gist_id}","starred_url":"https://api.github.com/users/Amsterdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amsterdam/subscriptions","organizations_url":"https://api.github.com/users/Amsterdam/orgs","repos_url":"https://api.github.com/users/Amsterdam/repos","events_url":"https://api.github.com/users/Amsterdam/events{/privacy}","received_events_url":"https://api.github.com/users/Amsterdam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Amsterdam/atlas","description":null,"fork":false,"url":"https://api.github.com/repos/Amsterdam/atlas","forks_url":"https://api.github.com/repos/Amsterdam/atlas/forks","keys_url":"https://api.github.com/repos/Amsterdam/atlas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Amsterdam/atlas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Amsterdam/atlas/teams","hooks_url":"https://api.github.com/repos/Amsterdam/atlas/hooks","issue_events_url":"https://api.github.com/repos/Amsterdam/atlas/issues/events{/number}","events_url":"https://api.github.com/repos/Amsterdam/atlas/events","assignees_url":"https://api.github.com/repos/Amsterdam/atlas/assignees{/user}","branches_url":"https://api.github.com/repos/Amsterdam/atlas/branches{/branch}","tags_url":"https://api.github.com/repos/Amsterdam/atlas/tags","blobs_url":"https://api.github.com/repos/Amsterdam/atlas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Amsterdam/atlas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Amsterdam/atlas/git/refs{/sha}","trees_url":"https://api.github.com/repos/Amsterdam/atlas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Amsterdam/atlas/statuses/{sha}","languages_url":"https://api.github.com/repos/Amsterdam/atlas/languages","stargazers_url":"https://api.github.com/repos/Amsterdam/atlas/stargazers","contributors_url":"https://api.github.com/repos/Amsterdam/atlas/contributors","subscribers_url":"https://api.github.com/repos/Amsterdam/atlas/subscribers","subscription_url":"https://api.github.com/repos/Amsterdam/atlas/subscription","commits_url":"https://api.github.com/repos/Amsterdam/atlas/commits{/sha}","git_commits_url":"https://api.github.com/repos/Amsterdam/atlas/git/commits{/sha}","comments_url":"https://api.github.com/repos/Amsterdam/atlas/comments{/number}","issue_comment_url":"https://api.github.com/repos/Amsterdam/atlas/issues/comments{/number}","contents_url":"https://api.github.com/repos/Amsterdam/atlas/contents/{+path}","compare_url":"https://api.github.com/repos/Amsterdam/atlas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Amsterdam/atlas/merges","archive_url":"https://api.github.com/repos/Amsterdam/atlas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Amsterdam/atlas/downloads","issues_url":"https://api.github.com/repos/Amsterdam/atlas/issues{/number}","pulls_url":"https://api.github.com/repos/Amsterdam/atlas/pulls{/number}","milestones_url":"https://api.github.com/repos/Amsterdam/atlas/milestones{/number}","notifications_url":"https://api.github.com/repos/Amsterdam/atlas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Amsterdam/atlas/labels{/name}","releases_url":"https://api.github.com/repos/Amsterdam/atlas/releases{/id}","deployments_url":"https://api.github.com/repos/Amsterdam/atlas/deployments","created_at":"2016-05-30T14:31:42Z","updated_at":"2018-03-22T10:06:12Z","pushed_at":"2018-03-22T12:18:47Z","git_url":"git://github.com/Amsterdam/atlas.git","ssh_url":"git@github.com:Amsterdam/atlas.git","clone_url":"https://github.com/Amsterdam/atlas.git","svn_url":"https://github.com/Amsterdam/atlas","homepage":"","size":29294,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":4,"open_issues":2,"watchers":6,"default_branch":"develop"}},"base":{"label":"Amsterdam:develop","ref":"develop","sha":"2387f77618c89cc91cc923c190fbd706c301ada1","user":{"login":"Amsterdam","id":14022058,"avatar_url":"https://avatars0.githubusercontent.com/u/14022058?v=4","gravatar_id":"","url":"https://api.github.com/users/Amsterdam","html_url":"https://github.com/Amsterdam","followers_url":"https://api.github.com/users/Amsterdam/followers","following_url":"https://api.github.com/users/Amsterdam/following{/other_user}","gists_url":"https://api.github.com/users/Amsterdam/gists{/gist_id}","starred_url":"https://api.github.com/users/Amsterdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amsterdam/subscriptions","organizations_url":"https://api.github.com/users/Amsterdam/orgs","repos_url":"https://api.github.com/users/Amsterdam/repos","events_url":"https://api.github.com/users/Amsterdam/events{/privacy}","received_events_url":"https://api.github.com/users/Amsterdam/received_events","type":"Organization","site_admin":false},"repo":{"id":60016458,"name":"atlas","full_name":"Amsterdam/atlas","owner":{"login":"Amsterdam","id":14022058,"avatar_url":"https://avatars0.githubusercontent.com/u/14022058?v=4","gravatar_id":"","url":"https://api.github.com/users/Amsterdam","html_url":"https://github.com/Amsterdam","followers_url":"https://api.github.com/users/Amsterdam/followers","following_url":"https://api.github.com/users/Amsterdam/following{/other_user}","gists_url":"https://api.github.com/users/Amsterdam/gists{/gist_id}","starred_url":"https://api.github.com/users/Amsterdam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Amsterdam/subscriptions","organizations_url":"https://api.github.com/users/Amsterdam/orgs","repos_url":"https://api.github.com/users/Amsterdam/repos","events_url":"https://api.github.com/users/Amsterdam/events{/privacy}","received_events_url":"https://api.github.com/users/Amsterdam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Amsterdam/atlas","description":null,"fork":false,"url":"https://api.github.com/repos/Amsterdam/atlas","forks_url":"https://api.github.com/repos/Amsterdam/atlas/forks","keys_url":"https://api.github.com/repos/Amsterdam/atlas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Amsterdam/atlas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Amsterdam/atlas/teams","hooks_url":"https://api.github.com/repos/Amsterdam/atlas/hooks","issue_events_url":"https://api.github.com/repos/Amsterdam/atlas/issues/events{/number}","events_url":"https://api.github.com/repos/Amsterdam/atlas/events","assignees_url":"https://api.github.com/repos/Amsterdam/atlas/assignees{/user}","branches_url":"https://api.github.com/repos/Amsterdam/atlas/branches{/branch}","tags_url":"https://api.github.com/repos/Amsterdam/atlas/tags","blobs_url":"https://api.github.com/repos/Amsterdam/atlas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Amsterdam/atlas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Amsterdam/atlas/git/refs{/sha}","trees_url":"https://api.github.com/repos/Amsterdam/atlas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Amsterdam/atlas/statuses/{sha}","languages_url":"https://api.github.com/repos/Amsterdam/atlas/languages","stargazers_url":"https://api.github.com/repos/Amsterdam/atlas/stargazers","contributors_url":"https://api.github.com/repos/Amsterdam/atlas/contributors","subscribers_url":"https://api.github.com/repos/Amsterdam/atlas/subscribers","subscription_url":"https://api.github.com/repos/Amsterdam/atlas/subscription","commits_url":"https://api.github.com/repos/Amsterdam/atlas/commits{/sha}","git_commits_url":"https://api.github.com/repos/Amsterdam/atlas/git/commits{/sha}","comments_url":"https://api.github.com/repos/Amsterdam/atlas/comments{/number}","issue_comment_url":"https://api.github.com/repos/Amsterdam/atlas/issues/comments{/number}","contents_url":"https://api.github.com/repos/Amsterdam/atlas/contents/{+path}","compare_url":"https://api.github.com/repos/Amsterdam/atlas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Amsterdam/atlas/merges","archive_url":"https://api.github.com/repos/Amsterdam/atlas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Amsterdam/atlas/downloads","issues_url":"https://api.github.com/repos/Amsterdam/atlas/issues{/number}","pulls_url":"https://api.github.com/repos/Amsterdam/atlas/pulls{/number}","milestones_url":"https://api.github.com/repos/Amsterdam/atlas/milestones{/number}","notifications_url":"https://api.github.com/repos/Amsterdam/atlas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Amsterdam/atlas/labels{/name}","releases_url":"https://api.github.com/repos/Amsterdam/atlas/releases{/id}","deployments_url":"https://api.github.com/repos/Amsterdam/atlas/deployments","created_at":"2016-05-30T14:31:42Z","updated_at":"2018-03-22T10:06:12Z","pushed_at":"2018-03-22T12:18:47Z","git_url":"git://github.com/Amsterdam/atlas.git","ssh_url":"git@github.com:Amsterdam/atlas.git","clone_url":"https://github.com/Amsterdam/atlas.git","svn_url":"https://github.com/Amsterdam/atlas","homepage":"","size":29294,"stargazers_count":6,"watchers_count":6,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":2,"license":{"key":"mpl-2.0","name":"Mozilla Public License 2.0","spdx_id":"MPL-2.0","url":"https://api.github.com/licenses/mpl-2.0"},"forks":4,"open_issues":2,"watchers":6,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Amsterdam/atlas/pulls/1089"},"html":{"href":"https://github.com/Amsterdam/atlas/pull/1089"},"issue":{"href":"https://api.github.com/repos/Amsterdam/atlas/issues/1089"},"comments":{"href":"https://api.github.com/repos/Amsterdam/atlas/issues/1089/comments"},"review_comments":{"href":"https://api.github.com/repos/Amsterdam/atlas/pulls/1089/comments"},"review_comment":{"href":"https://api.github.com/repos/Amsterdam/atlas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Amsterdam/atlas/pulls/1089/commits"},"statuses":{"href":"https://api.github.com/repos/Amsterdam/atlas/statuses/7740556057e7a218262bf49c03d360e2d6656476"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"vjawala"}}