{"action":"created","comment":{"url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/comments/125942659","pull_request_review_id":48382095,"id":125942659,"diff_hunk":"@@ -112,6 +132,30 @@ class App extends Component {\n       : Promise.resolve(enriched_results);\n   }\n \n+  shuffleQuestions(questions) {\n+    const allQuestions = questions.slice(0);\n+    let shuffledQueries = [];\n+\n+    for (let i = 0; i < questions.length; i++) {\n+      let questionIndex = Math.floor(Math.random() * allQuestions.length);\n+      shuffledQueries.push(allQuestions.splice(questionIndex, 1)[0]);\n+    }\n+\n+    return shuffledQueries;\n+  }\n+\n+  onQuestionClick = (query) => {","path":"client/knowledge_base_search/src/App.js","position":96,"original_position":93,"commit_id":"7e17e40a9d88b2f6f3851d95c59918af06c90d0a","original_commit_id":"70ed81df738662d9315a65d22a47572f3af86e56","user":{"login":"hankthewhale","id":5420223,"avatar_url":"https://avatars0.githubusercontent.com/u/5420223?v=3","gravatar_id":"","url":"https://api.github.com/users/hankthewhale","html_url":"https://github.com/hankthewhale","followers_url":"https://api.github.com/users/hankthewhale/followers","following_url":"https://api.github.com/users/hankthewhale/following{/other_user}","gists_url":"https://api.github.com/users/hankthewhale/gists{/gist_id}","starred_url":"https://api.github.com/users/hankthewhale/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hankthewhale/subscriptions","organizations_url":"https://api.github.com/users/hankthewhale/orgs","repos_url":"https://api.github.com/users/hankthewhale/repos","events_url":"https://api.github.com/users/hankthewhale/events{/privacy}","received_events_url":"https://api.github.com/users/hankthewhale/received_events","type":"User","site_admin":false},"body":"Might be helpful to establish a pattern with props that are functions and their named handlers.\r\n\r\nExample:\r\nProp name: `onQuestionClick`\r\nProp value: `this.handleQuestionClick`","created_at":"2017-07-06T16:00:08Z","updated_at":"2017-07-06T16:00:08Z","html_url":"https://github.com/watson-developer-cloud/discovery-starter-kit/pull/35#discussion_r125942659","pull_request_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/comments/125942659"},"html":{"href":"https://github.com/watson-developer-cloud/discovery-starter-kit/pull/35#discussion_r125942659"},"pull_request":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/35","id":129049628,"html_url":"https://github.com/watson-developer-cloud/discovery-starter-kit/pull/35","diff_url":"https://github.com/watson-developer-cloud/discovery-starter-kit/pull/35.diff","patch_url":"https://github.com/watson-developer-cloud/discovery-starter-kit/pull/35.patch","issue_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues/35","number":35,"state":"open","locked":false,"title":"View all questions","user":{"login":"maniax89","id":6325237,"avatar_url":"https://avatars1.githubusercontent.com/u/6325237?v=3","gravatar_id":"","url":"https://api.github.com/users/maniax89","html_url":"https://github.com/maniax89","followers_url":"https://api.github.com/users/maniax89/followers","following_url":"https://api.github.com/users/maniax89/following{/other_user}","gists_url":"https://api.github.com/users/maniax89/gists{/gist_id}","starred_url":"https://api.github.com/users/maniax89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maniax89/subscriptions","organizations_url":"https://api.github.com/users/maniax89/orgs","repos_url":"https://api.github.com/users/maniax89/repos","events_url":"https://api.github.com/users/maniax89/events{/privacy}","received_events_url":"https://api.github.com/users/maniax89/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-07-05T20:37:16Z","updated_at":"2017-07-06T16:00:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7df4c2f4c4f80e0f9007214d643dbfde0ae20a73","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Zachary-Dernar","id":28117242,"avatar_url":"https://avatars2.githubusercontent.com/u/28117242?v=3","gravatar_id":"","url":"https://api.github.com/users/Zachary-Dernar","html_url":"https://github.com/Zachary-Dernar","followers_url":"https://api.github.com/users/Zachary-Dernar/followers","following_url":"https://api.github.com/users/Zachary-Dernar/following{/other_user}","gists_url":"https://api.github.com/users/Zachary-Dernar/gists{/gist_id}","starred_url":"https://api.github.com/users/Zachary-Dernar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zachary-Dernar/subscriptions","organizations_url":"https://api.github.com/users/Zachary-Dernar/orgs","repos_url":"https://api.github.com/users/Zachary-Dernar/repos","events_url":"https://api.github.com/users/Zachary-Dernar/events{/privacy}","received_events_url":"https://api.github.com/users/Zachary-Dernar/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/35/commits","review_comments_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/35/comments","review_comment_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues/35/comments","statuses_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/statuses/7e17e40a9d88b2f6f3851d95c59918af06c90d0a","head":{"label":"watson-developer-cloud:view_all_questions","ref":"view_all_questions","sha":"7e17e40a9d88b2f6f3851d95c59918af06c90d0a","user":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars1.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":92193138,"name":"discovery-starter-kit","full_name":"watson-developer-cloud/discovery-starter-kit","owner":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars1.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/watson-developer-cloud/discovery-starter-kit","description":":new: IBM Watson Discovery Starter Kit","fork":false,"url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit","forks_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/forks","keys_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/teams","hooks_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/hooks","issue_events_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues/events{/number}","events_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/events","assignees_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/assignees{/user}","branches_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/branches{/branch}","tags_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/tags","blobs_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/languages","stargazers_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/stargazers","contributors_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/contributors","subscribers_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/subscribers","subscription_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/subscription","commits_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/contents/{+path}","compare_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/merges","archive_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/downloads","issues_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues{/number}","pulls_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/labels{/name}","releases_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/releases{/id}","deployments_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/deployments","created_at":"2017-05-23T16:05:11Z","updated_at":"2017-06-28T22:43:34Z","pushed_at":"2017-07-06T15:30:57Z","git_url":"git://github.com/watson-developer-cloud/discovery-starter-kit.git","ssh_url":"git@github.com:watson-developer-cloud/discovery-starter-kit.git","clone_url":"https://github.com/watson-developer-cloud/discovery-starter-kit.git","svn_url":"https://github.com/watson-developer-cloud/discovery-starter-kit","homepage":"","size":355,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"base":{"label":"watson-developer-cloud:master","ref":"master","sha":"b725b7169c90b3cf0c285b919d0e0fcc7f471ff9","user":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars1.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"repo":{"id":92193138,"name":"discovery-starter-kit","full_name":"watson-developer-cloud/discovery-starter-kit","owner":{"login":"watson-developer-cloud","id":10017763,"avatar_url":"https://avatars1.githubusercontent.com/u/10017763?v=3","gravatar_id":"","url":"https://api.github.com/users/watson-developer-cloud","html_url":"https://github.com/watson-developer-cloud","followers_url":"https://api.github.com/users/watson-developer-cloud/followers","following_url":"https://api.github.com/users/watson-developer-cloud/following{/other_user}","gists_url":"https://api.github.com/users/watson-developer-cloud/gists{/gist_id}","starred_url":"https://api.github.com/users/watson-developer-cloud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watson-developer-cloud/subscriptions","organizations_url":"https://api.github.com/users/watson-developer-cloud/orgs","repos_url":"https://api.github.com/users/watson-developer-cloud/repos","events_url":"https://api.github.com/users/watson-developer-cloud/events{/privacy}","received_events_url":"https://api.github.com/users/watson-developer-cloud/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/watson-developer-cloud/discovery-starter-kit","description":":new: IBM Watson Discovery Starter Kit","fork":false,"url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit","forks_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/forks","keys_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/teams","hooks_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/hooks","issue_events_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues/events{/number}","events_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/events","assignees_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/assignees{/user}","branches_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/branches{/branch}","tags_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/tags","blobs_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/refs{/sha}","trees_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/statuses/{sha}","languages_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/languages","stargazers_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/stargazers","contributors_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/contributors","subscribers_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/subscribers","subscription_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/subscription","commits_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/commits{/sha}","git_commits_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/git/commits{/sha}","comments_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/comments{/number}","issue_comment_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues/comments{/number}","contents_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/contents/{+path}","compare_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/merges","archive_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/downloads","issues_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues{/number}","pulls_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls{/number}","milestones_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/milestones{/number}","notifications_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/labels{/name}","releases_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/releases{/id}","deployments_url":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/deployments","created_at":"2017-05-23T16:05:11Z","updated_at":"2017-06-28T22:43:34Z","pushed_at":"2017-07-06T15:30:57Z","git_url":"git://github.com/watson-developer-cloud/discovery-starter-kit.git","ssh_url":"git@github.com:watson-developer-cloud/discovery-starter-kit.git","clone_url":"https://github.com/watson-developer-cloud/discovery-starter-kit.git","svn_url":"https://github.com/watson-developer-cloud/discovery-starter-kit","homepage":"","size":355,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/35"},"html":{"href":"https://github.com/watson-developer-cloud/discovery-starter-kit/pull/35"},"issue":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues/35"},"comments":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/watson-developer-cloud/discovery-starter-kit/statuses/7e17e40a9d88b2f6f3851d95c59918af06c90d0a"}}}}
{"actor":{"display_login":"hankthewhale"}}