{"action":"created","comment":{"url":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/comments/26266918","id":26266918,"diff_hunk":"@@ -57,14 +57,16 @@\n \n       searchHelpCenter: function(query) {\n         var locale = this.currentUser().locale(),\n-            limit =  this.queryLimit();\n+            limit =  this.queryLimit(),\n+            url = this.isMultibrand? '/api/v2/search.json' : '/api/v2/help_center/articles/search.json',","path":"app.js","position":6,"original_position":6,"commit_id":"f127bf1af7fe2093a4c05314d1c4ceeae4fedbc9","original_commit_id":"f127bf1af7fe2093a4c05314d1c4ceeae4fedbc9","user":{"login":"princemaple","id":1329716,"avatar_url":"https://avatars.githubusercontent.com/u/1329716?v=3","gravatar_id":"","url":"https://api.github.com/users/princemaple","html_url":"https://github.com/princemaple","followers_url":"https://api.github.com/users/princemaple/followers","following_url":"https://api.github.com/users/princemaple/following{/other_user}","gists_url":"https://api.github.com/users/princemaple/gists{/gist_id}","starred_url":"https://api.github.com/users/princemaple/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/princemaple/subscriptions","organizations_url":"https://api.github.com/users/princemaple/orgs","repos_url":"https://api.github.com/users/princemaple/repos","events_url":"https://api.github.com/users/princemaple/events{/privacy}","received_events_url":"https://api.github.com/users/princemaple/received_events","type":"User","site_admin":false},"body":"I wouldn't leave out the space round `?` to fake a nice method call.. (if that was your intention)","created_at":"2015-03-11T23:37:04Z","updated_at":"2015-03-11T23:37:04Z","html_url":"https://github.com/zendesk/answer_suggestion_app/pull/45#discussion_r26266918","pull_request_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/comments/26266918"},"html":{"href":"https://github.com/zendesk/answer_suggestion_app/pull/45#discussion_r26266918"},"pull_request":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/45","id":30961217,"html_url":"https://github.com/zendesk/answer_suggestion_app/pull/45","diff_url":"https://github.com/zendesk/answer_suggestion_app/pull/45.diff","patch_url":"https://github.com/zendesk/answer_suggestion_app/pull/45.patch","issue_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues/45","number":45,"state":"open","locked":false,"title":"[ZD#1008173] Change HC search to use HC API endpoint for non-multibrand","user":{"login":"clong-","id":9287144,"avatar_url":"https://avatars.githubusercontent.com/u/9287144?v=3","gravatar_id":"","url":"https://api.github.com/users/clong-","html_url":"https://github.com/clong-","followers_url":"https://api.github.com/users/clong-/followers","following_url":"https://api.github.com/users/clong-/following{/other_user}","gists_url":"https://api.github.com/users/clong-/gists{/gist_id}","starred_url":"https://api.github.com/users/clong-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clong-/subscriptions","organizations_url":"https://api.github.com/users/clong-/orgs","repos_url":"https://api.github.com/users/clong-/repos","events_url":"https://api.github.com/users/clong-/events{/privacy}","received_events_url":"https://api.github.com/users/clong-/received_events","type":"User","site_admin":false},"body":"Currently, the HC search always uses the Core API search endpoint, which will not return results from a restricted HC. The HC API endpoint will return such results, however it looks like that endpoint was previously removed for multi brand compatibility (PR #41).\r\n\r\nThis change should allow single-brand accounts to search restricted HCs without breaking multi brand support.\r\n\r\nper @maximeprades, CC: @svizzari, @danielbreves, @princemaple, @angiesaurus ","created_at":"2015-03-11T16:41:25Z","updated_at":"2015-03-11T23:37:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4836aabd1f74d4e22f6021f7ea9dbcea7d2f9f59","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/45/commits","review_comments_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/45/comments","review_comment_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues/45/comments","statuses_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/statuses/f127bf1af7fe2093a4c05314d1c4ceeae4fedbc9","head":{"label":"zendesk:clong/hc-search","ref":"clong/hc-search","sha":"f127bf1af7fe2093a4c05314d1c4ceeae4fedbc9","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":10808894,"name":"answer_suggestion_app","full_name":"zendesk/answer_suggestion_app","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/answer_suggestion_app","description":"Answer Suggestion App","fork":false,"url":"https://api.github.com/repos/zendesk/answer_suggestion_app","forks_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/forks","keys_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/teams","hooks_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/hooks","issue_events_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/events","assignees_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/tags","blobs_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/languages","stargazers_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/stargazers","contributors_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/contributors","subscribers_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/subscribers","subscription_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/subscription","commits_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/merges","archive_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/downloads","issues_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/releases{/id}","created_at":"2013-06-20T00:20:37Z","updated_at":"2015-03-04T04:14:57Z","pushed_at":"2015-03-11T16:32:11Z","git_url":"git://github.com/zendesk/answer_suggestion_app.git","ssh_url":"git@github.com:zendesk/answer_suggestion_app.git","clone_url":"https://github.com/zendesk/answer_suggestion_app.git","svn_url":"https://github.com/zendesk/answer_suggestion_app","homepage":null,"size":1558,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"base":{"label":"zendesk:master","ref":"master","sha":"1e67ccedef070b617192ce452ccf4aeb133c2eed","user":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"repo":{"id":10808894,"name":"answer_suggestion_app","full_name":"zendesk/answer_suggestion_app","owner":{"login":"zendesk","id":11525,"avatar_url":"https://avatars.githubusercontent.com/u/11525?v=3","gravatar_id":"","url":"https://api.github.com/users/zendesk","html_url":"https://github.com/zendesk","followers_url":"https://api.github.com/users/zendesk/followers","following_url":"https://api.github.com/users/zendesk/following{/other_user}","gists_url":"https://api.github.com/users/zendesk/gists{/gist_id}","starred_url":"https://api.github.com/users/zendesk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendesk/subscriptions","organizations_url":"https://api.github.com/users/zendesk/orgs","repos_url":"https://api.github.com/users/zendesk/repos","events_url":"https://api.github.com/users/zendesk/events{/privacy}","received_events_url":"https://api.github.com/users/zendesk/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendesk/answer_suggestion_app","description":"Answer Suggestion App","fork":false,"url":"https://api.github.com/repos/zendesk/answer_suggestion_app","forks_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/forks","keys_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/teams","hooks_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/hooks","issue_events_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues/events{/number}","events_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/events","assignees_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/assignees{/user}","branches_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/branches{/branch}","tags_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/tags","blobs_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/statuses/{sha}","languages_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/languages","stargazers_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/stargazers","contributors_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/contributors","subscribers_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/subscribers","subscription_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/subscription","commits_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/contents/{+path}","compare_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/merges","archive_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/downloads","issues_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues{/number}","pulls_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls{/number}","milestones_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/milestones{/number}","notifications_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/labels{/name}","releases_url":"https://api.github.com/repos/zendesk/answer_suggestion_app/releases{/id}","created_at":"2013-06-20T00:20:37Z","updated_at":"2015-03-04T04:14:57Z","pushed_at":"2015-03-11T16:32:11Z","git_url":"git://github.com/zendesk/answer_suggestion_app.git","ssh_url":"git@github.com:zendesk/answer_suggestion_app.git","clone_url":"https://github.com/zendesk/answer_suggestion_app.git","svn_url":"https://github.com/zendesk/answer_suggestion_app","homepage":null,"size":1558,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/45"},"html":{"href":"https://github.com/zendesk/answer_suggestion_app/pull/45"},"issue":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues/45"},"comments":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/zendesk/answer_suggestion_app/statuses/f127bf1af7fe2093a4c05314d1c4ceeae4fedbc9"}}}}