{"action":"created","comment":{"url":"https://api.github.com/repos/edx/course-discovery/pulls/comments/92608311","pull_request_review_id":13126879,"id":92608311,"diff_hunk":"@@ -974,26 +974,26 @@ class Meta:\n         }\n \n \n-class TypeaheadCourseRunSearchSerializer(serializers.Serializer):\n-    org = serializers.CharField()\n+class TypeaheadBaseSearchSerializer(serializers.Serializer):\n+    orgs = serializers.SerializerMethodField()\n     title = serializers.CharField()\n-    key = serializers.CharField()\n     marketing_url = serializers.CharField()","path":"course_discovery/apps/api/serializers.py","position":null,"original_position":10,"commit_id":"492546d9908d90abac371bdf03f77881bed47ebc","original_commit_id":"6b9bc072cd0d23a7660a44b6502ab19c6befbdea","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":"I think I was a bit confused about this, http://www.django-rest-framework.org/api-guide/serializers/#specifying-fields-explicitly, seems like if you specify the fields explicitly they don't need to be in the Meta class. Anyway I have all the fields defined both ways now","created_at":"2016-12-15T13:29:41Z","updated_at":"2016-12-15T13:29:41Z","html_url":"https://github.com/edx/course-discovery/pull/490#discussion_r92608311","pull_request_url":"https://api.github.com/repos/edx/course-discovery/pulls/490","_links":{"self":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/comments/92608311"},"html":{"href":"https://github.com/edx/course-discovery/pull/490#discussion_r92608311"},"pull_request":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/490"}}},"pull_request":{"url":"https://api.github.com/repos/edx/course-discovery/pulls/490","id":98052827,"html_url":"https://github.com/edx/course-discovery/pull/490","diff_url":"https://github.com/edx/course-discovery/pull/490.diff","patch_url":"https://github.com/edx/course-discovery/pull/490.patch","issue_url":"https://api.github.com/repos/edx/course-discovery/issues/490","number":490,"state":"open","locked":false,"title":"Boost orgs autocomplete in typeahead","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 yet another issue where a smithsonian course was coming up above a MIT course.\r\nWe tested this by reindexing locally and it fixed the issue.\r\nThere are no other typeahead issues that we are aware of","created_at":"2016-12-14T22:50:41Z","updated_at":"2016-12-15T13:29:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1c6075f7269efb326c883f2b4675faa07a825aec","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/edx/course-discovery/pulls/490/commits","review_comments_url":"https://api.github.com/repos/edx/course-discovery/pulls/490/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/490/comments","statuses_url":"https://api.github.com/repos/edx/course-discovery/statuses/492546d9908d90abac371bdf03f77881bed47ebc","head":{"label":"edx:boost_orgs_typeahead","ref":"boost_orgs_typeahead","sha":"492546d9908d90abac371bdf03f77881bed47ebc","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-15T13:28:02Z","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":2798,"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":"760721ad7527ffd18000f7a7286a0f021c9ede77","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-15T13:28:02Z","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":2798,"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/490"},"html":{"href":"https://github.com/edx/course-discovery/pull/490"},"issue":{"href":"https://api.github.com/repos/edx/course-discovery/issues/490"},"comments":{"href":"https://api.github.com/repos/edx/course-discovery/issues/490/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/course-discovery/pulls/490/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/490/commits"},"statuses":{"href":"https://api.github.com/repos/edx/course-discovery/statuses/492546d9908d90abac371bdf03f77881bed47ebc"}}}}
{"actor":{"display_login":"MatthewPiatetsky"}}