{"action":"created","comment":{"url":"https://api.github.com/repos/edx/course-discovery/pulls/comments/92701840","pull_request_review_id":13222769,"id":92701840,"diff_hunk":"@@ -138,13 +138,18 @@ def get_results(self, query):\n             SQ(authoring_organizations_autocomplete=clean_query)\n         )\n         course_runs = course_runs.filter(published=True).exclude(hidden=True)\n-        course_runs = course_runs[:self.RESULT_COUNT]\n \n         programs = sqs.models(Program).filter(\n             SQ(title_autocomplete=clean_query) |\n             SQ(authoring_organizations_autocomplete=clean_query)\n         )\n         programs = programs.filter(status=ProgramStatus.Active)\n+\n+        if partner:","path":"course_discovery/apps/api/v1/views/search.py","position":21,"original_position":21,"commit_id":"cb338b4031cd647a553c83b965d5db5f52b0b94c","original_commit_id":"c7db60edd4334b40de78953d56b99fa6b606d99c","user":{"login":"MatthewPiatetsky","id":5958221,"avatar_url":"https://avatars.githubusercontent.com/u/5958221?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewPiatetsky","html_url":"https://github.com/MatthewPiatetsky","followers_url":"https://api.github.com/users/MatthewPiatetsky/followers","following_url":"https://api.github.com/users/MatthewPiatetsky/following{/other_user}","gists_url":"https://api.github.com/users/MatthewPiatetsky/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewPiatetsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewPiatetsky/subscriptions","organizations_url":"https://api.github.com/users/MatthewPiatetsky/orgs","repos_url":"https://api.github.com/users/MatthewPiatetsky/repos","events_url":"https://api.github.com/users/MatthewPiatetsky/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewPiatetsky/received_events","type":"User","site_admin":false},"body":"good question, imo partner should be optional, if this will be open source maybe people will want to see multiple partners.","created_at":"2016-12-15T21:18:38Z","updated_at":"2016-12-15T21:18:38Z","html_url":"https://github.com/edx/course-discovery/pull/494#discussion_r92701840","pull_request_url":"https://api.github.com/repos/edx/course-discovery/pulls/494","_links":{"self":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/comments/92701840"},"html":{"href":"https://github.com/edx/course-discovery/pull/494#discussion_r92701840"},"pull_request":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/494"}}},"pull_request":{"url":"https://api.github.com/repos/edx/course-discovery/pulls/494","id":98226025,"html_url":"https://github.com/edx/course-discovery/pull/494","diff_url":"https://github.com/edx/course-discovery/pull/494.diff","patch_url":"https://github.com/edx/course-discovery/pull/494.patch","issue_url":"https://api.github.com/repos/edx/course-discovery/issues/494","number":494,"state":"open","locked":false,"title":"Filter typeahead results by partner","user":{"login":"MatthewPiatetsky","id":5958221,"avatar_url":"https://avatars.githubusercontent.com/u/5958221?v=3","gravatar_id":"","url":"https://api.github.com/users/MatthewPiatetsky","html_url":"https://github.com/MatthewPiatetsky","followers_url":"https://api.github.com/users/MatthewPiatetsky/followers","following_url":"https://api.github.com/users/MatthewPiatetsky/following{/other_user}","gists_url":"https://api.github.com/users/MatthewPiatetsky/gists{/gist_id}","starred_url":"https://api.github.com/users/MatthewPiatetsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatthewPiatetsky/subscriptions","organizations_url":"https://api.github.com/users/MatthewPiatetsky/orgs","repos_url":"https://api.github.com/users/MatthewPiatetsky/repos","events_url":"https://api.github.com/users/MatthewPiatetsky/events{/privacy}","received_events_url":"https://api.github.com/users/MatthewPiatetsky/received_events","type":"User","site_admin":false},"body":"@edx/ecommerce \r\n\r\nJasper found one last thing 😿  , he says he can't find any other issues.\r\nI realized I didn't notice this locally because I only had the edx partner configured, so I didn't have white label courses showing up.\r\n\r\nMarketing site is already passing the partner param, so changing that shouldn't be necessary.\r\nI think it works for search because the querystring was getting filtered directly with ES.","created_at":"2016-12-15T20:34:51Z","updated_at":"2016-12-15T21:18:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8866c2523d432056f33b88396108bae2132f52a4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/edx/course-discovery/pulls/494/commits","review_comments_url":"https://api.github.com/repos/edx/course-discovery/pulls/494/comments","review_comment_url":"https://api.github.com/repos/edx/course-discovery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/course-discovery/issues/494/comments","statuses_url":"https://api.github.com/repos/edx/course-discovery/statuses/cb338b4031cd647a553c83b965d5db5f52b0b94c","head":{"label":"edx:partner_filter","ref":"partner_filter","sha":"cb338b4031cd647a553c83b965d5db5f52b0b94c","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":45866355,"name":"course-discovery","full_name":"edx/course-discovery","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/course-discovery","description":"edX Course Catalog Service","fork":false,"url":"https://api.github.com/repos/edx/course-discovery","forks_url":"https://api.github.com/repos/edx/course-discovery/forks","keys_url":"https://api.github.com/repos/edx/course-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/course-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/course-discovery/teams","hooks_url":"https://api.github.com/repos/edx/course-discovery/hooks","issue_events_url":"https://api.github.com/repos/edx/course-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/edx/course-discovery/events","assignees_url":"https://api.github.com/repos/edx/course-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/edx/course-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/edx/course-discovery/tags","blobs_url":"https://api.github.com/repos/edx/course-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/course-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/course-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/course-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/course-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/course-discovery/languages","stargazers_url":"https://api.github.com/repos/edx/course-discovery/stargazers","contributors_url":"https://api.github.com/repos/edx/course-discovery/contributors","subscribers_url":"https://api.github.com/repos/edx/course-discovery/subscribers","subscription_url":"https://api.github.com/repos/edx/course-discovery/subscription","commits_url":"https://api.github.com/repos/edx/course-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/course-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/course-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/course-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/course-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/edx/course-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/course-discovery/merges","archive_url":"https://api.github.com/repos/edx/course-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/course-discovery/downloads","issues_url":"https://api.github.com/repos/edx/course-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/edx/course-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/course-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/course-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/course-discovery/labels{/name}","releases_url":"https://api.github.com/repos/edx/course-discovery/releases{/id}","deployments_url":"https://api.github.com/repos/edx/course-discovery/deployments","created_at":"2015-11-09T20:57:54Z","updated_at":"2016-11-30T22:45:36Z","pushed_at":"2016-12-15T21:17:39Z","git_url":"git://github.com/edx/course-discovery.git","ssh_url":"git@github.com:edx/course-discovery.git","clone_url":"https://github.com/edx/course-discovery.git","svn_url":"https://github.com/edx/course-discovery","homepage":"","size":2801,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":12,"forks":7,"open_issues":12,"watchers":8,"default_branch":"master"}},"base":{"label":"edx:master","ref":"master","sha":"58b5c4c2e0ef0f427b61fa5e632975bcab96f79f","user":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":45866355,"name":"course-discovery","full_name":"edx/course-discovery","owner":{"login":"edx","id":3179841,"avatar_url":"https://avatars.githubusercontent.com/u/3179841?v=3","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/course-discovery","description":"edX Course Catalog Service","fork":false,"url":"https://api.github.com/repos/edx/course-discovery","forks_url":"https://api.github.com/repos/edx/course-discovery/forks","keys_url":"https://api.github.com/repos/edx/course-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/course-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/course-discovery/teams","hooks_url":"https://api.github.com/repos/edx/course-discovery/hooks","issue_events_url":"https://api.github.com/repos/edx/course-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/edx/course-discovery/events","assignees_url":"https://api.github.com/repos/edx/course-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/edx/course-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/edx/course-discovery/tags","blobs_url":"https://api.github.com/repos/edx/course-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/course-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/course-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/course-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/course-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/course-discovery/languages","stargazers_url":"https://api.github.com/repos/edx/course-discovery/stargazers","contributors_url":"https://api.github.com/repos/edx/course-discovery/contributors","subscribers_url":"https://api.github.com/repos/edx/course-discovery/subscribers","subscription_url":"https://api.github.com/repos/edx/course-discovery/subscription","commits_url":"https://api.github.com/repos/edx/course-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/course-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/course-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/course-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/course-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/edx/course-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/course-discovery/merges","archive_url":"https://api.github.com/repos/edx/course-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/course-discovery/downloads","issues_url":"https://api.github.com/repos/edx/course-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/edx/course-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/course-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/course-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/course-discovery/labels{/name}","releases_url":"https://api.github.com/repos/edx/course-discovery/releases{/id}","deployments_url":"https://api.github.com/repos/edx/course-discovery/deployments","created_at":"2015-11-09T20:57:54Z","updated_at":"2016-11-30T22:45:36Z","pushed_at":"2016-12-15T21:17:39Z","git_url":"git://github.com/edx/course-discovery.git","ssh_url":"git@github.com:edx/course-discovery.git","clone_url":"https://github.com/edx/course-discovery.git","svn_url":"https://github.com/edx/course-discovery","homepage":"","size":2801,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":12,"forks":7,"open_issues":12,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/494"},"html":{"href":"https://github.com/edx/course-discovery/pull/494"},"issue":{"href":"https://api.github.com/repos/edx/course-discovery/issues/494"},"comments":{"href":"https://api.github.com/repos/edx/course-discovery/issues/494/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/494/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/494/commits"},"statuses":{"href":"https://api.github.com/repos/edx/course-discovery/statuses/cb338b4031cd647a553c83b965d5db5f52b0b94c"}}}}
{"actor":{"display_login":"MatthewPiatetsky"}}