{"action":"opened","number":11,"pull_request":{"url":"https://api.github.com/repos/tuchfarber/digitalbook/pulls/11","id":174130172,"html_url":"https://github.com/tuchfarber/digitalbook/pull/11","diff_url":"https://github.com/tuchfarber/digitalbook/pull/11.diff","patch_url":"https://github.com/tuchfarber/digitalbook/pull/11.patch","issue_url":"https://api.github.com/repos/tuchfarber/digitalbook/issues/11","number":11,"state":"open","locked":false,"title":"Aggregated Search","user":{"login":"bill-filler","id":27503539,"avatar_url":"https://avatars3.githubusercontent.com/u/27503539?v=4","gravatar_id":"","url":"https://api.github.com/users/bill-filler","html_url":"https://github.com/bill-filler","followers_url":"https://api.github.com/users/bill-filler/followers","following_url":"https://api.github.com/users/bill-filler/following{/other_user}","gists_url":"https://api.github.com/users/bill-filler/gists{/gist_id}","starred_url":"https://api.github.com/users/bill-filler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bill-filler/subscriptions","organizations_url":"https://api.github.com/users/bill-filler/orgs","repos_url":"https://api.github.com/users/bill-filler/repos","events_url":"https://api.github.com/users/bill-filler/events{/privacy}","received_events_url":"https://api.github.com/users/bill-filler/received_events","type":"User","site_admin":false},"body":"This PR aggregates search across pages, documents and videos.\r\nMajor changes are the following: sorry if this is too big. I can split\r\n\r\n1. New model: BookDocument\r\n2. Modified model: Video - no longer store transcript, but instead transcript_url. Transcript will be fetched as part of search indexing via the def transcript() method on Video\r\n3. Modified search backend to support proper indexing of document contents via ingest-attachment, and optimize settings for large text fields needed by video and documents\r\n4. Modified search/views.py to query across multiple indices and aggregate the results for display\r\n5. Added a utils.py: to be able to find page that references a particular video/document as there is no specific foreign-key relationship defined in models (NOTE: we should consider adding such a relationship, as this method likely will not scale well)\r\n6. Created a very rough JwtLmsApiClient that now houses the code that used to live in the mgmt command such that it can be used from multiple places.","created_at":"2018-03-09T23:05:33Z","updated_at":"2018-03-09T23:05:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/tuchfarber/digitalbook/pulls/11/commits","review_comments_url":"https://api.github.com/repos/tuchfarber/digitalbook/pulls/11/comments","review_comment_url":"https://api.github.com/repos/tuchfarber/digitalbook/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tuchfarber/digitalbook/issues/11/comments","statuses_url":"https://api.github.com/repos/tuchfarber/digitalbook/statuses/aca6dd70f609bc5a25f79d85d57e5880f85e33b5","head":{"label":"tuchfarber:bfiller/custom-document-model","ref":"bfiller/custom-document-model","sha":"aca6dd70f609bc5a25f79d85d57e5880f85e33b5","user":{"login":"tuchfarber","id":6179874,"avatar_url":"https://avatars3.githubusercontent.com/u/6179874?v=4","gravatar_id":"","url":"https://api.github.com/users/tuchfarber","html_url":"https://github.com/tuchfarber","followers_url":"https://api.github.com/users/tuchfarber/followers","following_url":"https://api.github.com/users/tuchfarber/following{/other_user}","gists_url":"https://api.github.com/users/tuchfarber/gists{/gist_id}","starred_url":"https://api.github.com/users/tuchfarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuchfarber/subscriptions","organizations_url":"https://api.github.com/users/tuchfarber/orgs","repos_url":"https://api.github.com/users/tuchfarber/repos","events_url":"https://api.github.com/users/tuchfarber/events{/privacy}","received_events_url":"https://api.github.com/users/tuchfarber/received_events","type":"User","site_admin":false},"repo":{"id":120358407,"name":"digitalbook","full_name":"tuchfarber/digitalbook","owner":{"login":"tuchfarber","id":6179874,"avatar_url":"https://avatars3.githubusercontent.com/u/6179874?v=4","gravatar_id":"","url":"https://api.github.com/users/tuchfarber","html_url":"https://github.com/tuchfarber","followers_url":"https://api.github.com/users/tuchfarber/followers","following_url":"https://api.github.com/users/tuchfarber/following{/other_user}","gists_url":"https://api.github.com/users/tuchfarber/gists{/gist_id}","starred_url":"https://api.github.com/users/tuchfarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuchfarber/subscriptions","organizations_url":"https://api.github.com/users/tuchfarber/orgs","repos_url":"https://api.github.com/users/tuchfarber/repos","events_url":"https://api.github.com/users/tuchfarber/events{/privacy}","received_events_url":"https://api.github.com/users/tuchfarber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tuchfarber/digitalbook","description":"Collab on Digital Book","fork":false,"url":"https://api.github.com/repos/tuchfarber/digitalbook","forks_url":"https://api.github.com/repos/tuchfarber/digitalbook/forks","keys_url":"https://api.github.com/repos/tuchfarber/digitalbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tuchfarber/digitalbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tuchfarber/digitalbook/teams","hooks_url":"https://api.github.com/repos/tuchfarber/digitalbook/hooks","issue_events_url":"https://api.github.com/repos/tuchfarber/digitalbook/issues/events{/number}","events_url":"https://api.github.com/repos/tuchfarber/digitalbook/events","assignees_url":"https://api.github.com/repos/tuchfarber/digitalbook/assignees{/user}","branches_url":"https://api.github.com/repos/tuchfarber/digitalbook/branches{/branch}","tags_url":"https://api.github.com/repos/tuchfarber/digitalbook/tags","blobs_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tuchfarber/digitalbook/statuses/{sha}","languages_url":"https://api.github.com/repos/tuchfarber/digitalbook/languages","stargazers_url":"https://api.github.com/repos/tuchfarber/digitalbook/stargazers","contributors_url":"https://api.github.com/repos/tuchfarber/digitalbook/contributors","subscribers_url":"https://api.github.com/repos/tuchfarber/digitalbook/subscribers","subscription_url":"https://api.github.com/repos/tuchfarber/digitalbook/subscription","commits_url":"https://api.github.com/repos/tuchfarber/digitalbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/tuchfarber/digitalbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/tuchfarber/digitalbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/tuchfarber/digitalbook/contents/{+path}","compare_url":"https://api.github.com/repos/tuchfarber/digitalbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tuchfarber/digitalbook/merges","archive_url":"https://api.github.com/repos/tuchfarber/digitalbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tuchfarber/digitalbook/downloads","issues_url":"https://api.github.com/repos/tuchfarber/digitalbook/issues{/number}","pulls_url":"https://api.github.com/repos/tuchfarber/digitalbook/pulls{/number}","milestones_url":"https://api.github.com/repos/tuchfarber/digitalbook/milestones{/number}","notifications_url":"https://api.github.com/repos/tuchfarber/digitalbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tuchfarber/digitalbook/labels{/name}","releases_url":"https://api.github.com/repos/tuchfarber/digitalbook/releases{/id}","deployments_url":"https://api.github.com/repos/tuchfarber/digitalbook/deployments","created_at":"2018-02-05T20:35:17Z","updated_at":"2018-02-09T18:48:01Z","pushed_at":"2018-03-09T22:52:45Z","git_url":"git://github.com/tuchfarber/digitalbook.git","ssh_url":"git@github.com:tuchfarber/digitalbook.git","clone_url":"https://github.com/tuchfarber/digitalbook.git","svn_url":"https://github.com/tuchfarber/digitalbook","homepage":null,"size":14114,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"tuchfarber:master","ref":"master","sha":"fcb8821692873e5bb20957c91a815ee4f8a325a9","user":{"login":"tuchfarber","id":6179874,"avatar_url":"https://avatars3.githubusercontent.com/u/6179874?v=4","gravatar_id":"","url":"https://api.github.com/users/tuchfarber","html_url":"https://github.com/tuchfarber","followers_url":"https://api.github.com/users/tuchfarber/followers","following_url":"https://api.github.com/users/tuchfarber/following{/other_user}","gists_url":"https://api.github.com/users/tuchfarber/gists{/gist_id}","starred_url":"https://api.github.com/users/tuchfarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuchfarber/subscriptions","organizations_url":"https://api.github.com/users/tuchfarber/orgs","repos_url":"https://api.github.com/users/tuchfarber/repos","events_url":"https://api.github.com/users/tuchfarber/events{/privacy}","received_events_url":"https://api.github.com/users/tuchfarber/received_events","type":"User","site_admin":false},"repo":{"id":120358407,"name":"digitalbook","full_name":"tuchfarber/digitalbook","owner":{"login":"tuchfarber","id":6179874,"avatar_url":"https://avatars3.githubusercontent.com/u/6179874?v=4","gravatar_id":"","url":"https://api.github.com/users/tuchfarber","html_url":"https://github.com/tuchfarber","followers_url":"https://api.github.com/users/tuchfarber/followers","following_url":"https://api.github.com/users/tuchfarber/following{/other_user}","gists_url":"https://api.github.com/users/tuchfarber/gists{/gist_id}","starred_url":"https://api.github.com/users/tuchfarber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuchfarber/subscriptions","organizations_url":"https://api.github.com/users/tuchfarber/orgs","repos_url":"https://api.github.com/users/tuchfarber/repos","events_url":"https://api.github.com/users/tuchfarber/events{/privacy}","received_events_url":"https://api.github.com/users/tuchfarber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tuchfarber/digitalbook","description":"Collab on Digital Book","fork":false,"url":"https://api.github.com/repos/tuchfarber/digitalbook","forks_url":"https://api.github.com/repos/tuchfarber/digitalbook/forks","keys_url":"https://api.github.com/repos/tuchfarber/digitalbook/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tuchfarber/digitalbook/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tuchfarber/digitalbook/teams","hooks_url":"https://api.github.com/repos/tuchfarber/digitalbook/hooks","issue_events_url":"https://api.github.com/repos/tuchfarber/digitalbook/issues/events{/number}","events_url":"https://api.github.com/repos/tuchfarber/digitalbook/events","assignees_url":"https://api.github.com/repos/tuchfarber/digitalbook/assignees{/user}","branches_url":"https://api.github.com/repos/tuchfarber/digitalbook/branches{/branch}","tags_url":"https://api.github.com/repos/tuchfarber/digitalbook/tags","blobs_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/refs{/sha}","trees_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tuchfarber/digitalbook/statuses/{sha}","languages_url":"https://api.github.com/repos/tuchfarber/digitalbook/languages","stargazers_url":"https://api.github.com/repos/tuchfarber/digitalbook/stargazers","contributors_url":"https://api.github.com/repos/tuchfarber/digitalbook/contributors","subscribers_url":"https://api.github.com/repos/tuchfarber/digitalbook/subscribers","subscription_url":"https://api.github.com/repos/tuchfarber/digitalbook/subscription","commits_url":"https://api.github.com/repos/tuchfarber/digitalbook/commits{/sha}","git_commits_url":"https://api.github.com/repos/tuchfarber/digitalbook/git/commits{/sha}","comments_url":"https://api.github.com/repos/tuchfarber/digitalbook/comments{/number}","issue_comment_url":"https://api.github.com/repos/tuchfarber/digitalbook/issues/comments{/number}","contents_url":"https://api.github.com/repos/tuchfarber/digitalbook/contents/{+path}","compare_url":"https://api.github.com/repos/tuchfarber/digitalbook/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tuchfarber/digitalbook/merges","archive_url":"https://api.github.com/repos/tuchfarber/digitalbook/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tuchfarber/digitalbook/downloads","issues_url":"https://api.github.com/repos/tuchfarber/digitalbook/issues{/number}","pulls_url":"https://api.github.com/repos/tuchfarber/digitalbook/pulls{/number}","milestones_url":"https://api.github.com/repos/tuchfarber/digitalbook/milestones{/number}","notifications_url":"https://api.github.com/repos/tuchfarber/digitalbook/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tuchfarber/digitalbook/labels{/name}","releases_url":"https://api.github.com/repos/tuchfarber/digitalbook/releases{/id}","deployments_url":"https://api.github.com/repos/tuchfarber/digitalbook/deployments","created_at":"2018-02-05T20:35:17Z","updated_at":"2018-02-09T18:48:01Z","pushed_at":"2018-03-09T22:52:45Z","git_url":"git://github.com/tuchfarber/digitalbook.git","ssh_url":"git@github.com:tuchfarber/digitalbook.git","clone_url":"https://github.com/tuchfarber/digitalbook.git","svn_url":"https://github.com/tuchfarber/digitalbook","homepage":null,"size":14114,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tuchfarber/digitalbook/pulls/11"},"html":{"href":"https://github.com/tuchfarber/digitalbook/pull/11"},"issue":{"href":"https://api.github.com/repos/tuchfarber/digitalbook/issues/11"},"comments":{"href":"https://api.github.com/repos/tuchfarber/digitalbook/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/tuchfarber/digitalbook/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/tuchfarber/digitalbook/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tuchfarber/digitalbook/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/tuchfarber/digitalbook/statuses/aca6dd70f609bc5a25f79d85d57e5880f85e33b5"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":8,"additions":554,"deletions":84,"changed_files":13}}
{"actor":{"display_login":"bill-filler"}}