{"action":"created","comment":{"url":"https://api.github.com/repos/learningequality/kolibri/pulls/comments/69999933","id":69999933,"diff_hunk":"@@ -36,7 +36,35 @@ const fetchNodes = ({ dispatch }, id) => {\n   });\n };\n \n+\n+const searchNodes = ({ dispatch }, params, page) => {\n+  // Get the collection from ContentNodeResource.\n+  const contentCollection = Kolibri.resources.ContentNodeResource.getCollection();\n+  const wantedFields = ['pk', 'title', 'kind', 'instance_id', 'content_id', 'description', 'files'];","path":"kolibri/plugins/learn/assets/src/actions.js","position":8,"original_position":8,"commit_id":"193e914f0c22f809cb3e2288cf86d6a104521051","original_commit_id":"193e914f0c22f809cb3e2288cf86d6a104521051","user":{"login":"rtibbles","id":1680573,"avatar_url":"https://avatars.githubusercontent.com/u/1680573?v=3","gravatar_id":"","url":"https://api.github.com/users/rtibbles","html_url":"https://github.com/rtibbles","followers_url":"https://api.github.com/users/rtibbles/followers","following_url":"https://api.github.com/users/rtibbles/following{/other_user}","gists_url":"https://api.github.com/users/rtibbles/gists{/gist_id}","starred_url":"https://api.github.com/users/rtibbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtibbles/subscriptions","organizations_url":"https://api.github.com/users/rtibbles/orgs","repos_url":"https://api.github.com/users/rtibbles/repos","events_url":"https://api.github.com/users/rtibbles/events{/privacy}","received_events_url":"https://api.github.com/users/rtibbles/received_events","type":"User","site_admin":false},"body":"The latency is due to the querying of the files field, though - removing the description somewhat reduces the payload size, but the latency stays roughly the same.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1680573/16672041/39ebd6ca-4458-11e6-8294-7e4dee300f5a.png)\r\n","created_at":"2016-07-07T22:34:03Z","updated_at":"2016-07-07T22:34:03Z","html_url":"https://github.com/learningequality/kolibri/pull/212#discussion_r69999933","pull_request_url":"https://api.github.com/repos/learningequality/kolibri/pulls/212","_links":{"self":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/comments/69999933"},"html":{"href":"https://github.com/learningequality/kolibri/pull/212#discussion_r69999933"},"pull_request":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/212"}}},"pull_request":{"url":"https://api.github.com/repos/learningequality/kolibri/pulls/212","id":76670257,"html_url":"https://github.com/learningequality/kolibri/pull/212","diff_url":"https://github.com/learningequality/kolibri/pull/212.diff","patch_url":"https://github.com/learningequality/kolibri/pull/212.patch","issue_url":"https://api.github.com/repos/learningequality/kolibri/issues/212","number":212,"state":"open","locked":false,"title":"Search and pagination","user":{"login":"66eli77","id":5577205,"avatar_url":"https://avatars.githubusercontent.com/u/5577205?v=3","gravatar_id":"","url":"https://api.github.com/users/66eli77","html_url":"https://github.com/66eli77","followers_url":"https://api.github.com/users/66eli77/followers","following_url":"https://api.github.com/users/66eli77/following{/other_user}","gists_url":"https://api.github.com/users/66eli77/gists{/gist_id}","starred_url":"https://api.github.com/users/66eli77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/66eli77/subscriptions","organizations_url":"https://api.github.com/users/66eli77/orgs","repos_url":"https://api.github.com/users/66eli77/repos","events_url":"https://api.github.com/users/66eli77/events{/privacy}","received_events_url":"https://api.github.com/users/66eli77/received_events","type":"User","site_admin":false},"body":"## Summary\r\n\r\n*Short description*\r\n\r\n## TODO\r\n\r\n- [ ] Have tests been written for the new code?\r\n- [ ] Has documentation been written/updated?\r\n- [ ] New dependencies (if any) added to requirements file\r\n- [ ] Add an entry to CHANGELOG.rst\r\n- [ ] Add yourself it AUTHORS.rst if you don't appear there\r\n\r\n## Reviewer guidance\r\n\r\n*If you PR has a significant size, give the reviewer some helpful remarks*\r\n\r\n## Issues addressed\r\n\r\nList the issues solved or partly solved by the PR\r\n\r\n## Documentation\r\n\r\nIf the PR has documentation, link the file here (either .rst in your repo or if built on Read The Docs)\r\n\r\n## Screenshots (if appropriate)\r\n\r\nThey're nice. :)\r\n","created_at":"2016-07-07T21:42:06Z","updated_at":"2016-07-07T22:34:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/learningequality/kolibri/pulls/212/commits","review_comments_url":"https://api.github.com/repos/learningequality/kolibri/pulls/212/comments","review_comment_url":"https://api.github.com/repos/learningequality/kolibri/pulls/comments{/number}","comments_url":"https://api.github.com/repos/learningequality/kolibri/issues/212/comments","statuses_url":"https://api.github.com/repos/learningequality/kolibri/statuses/193e914f0c22f809cb3e2288cf86d6a104521051","head":{"label":"66eli77:search","ref":"search","sha":"193e914f0c22f809cb3e2288cf86d6a104521051","user":{"login":"66eli77","id":5577205,"avatar_url":"https://avatars.githubusercontent.com/u/5577205?v=3","gravatar_id":"","url":"https://api.github.com/users/66eli77","html_url":"https://github.com/66eli77","followers_url":"https://api.github.com/users/66eli77/followers","following_url":"https://api.github.com/users/66eli77/following{/other_user}","gists_url":"https://api.github.com/users/66eli77/gists{/gist_id}","starred_url":"https://api.github.com/users/66eli77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/66eli77/subscriptions","organizations_url":"https://api.github.com/users/66eli77/orgs","repos_url":"https://api.github.com/users/66eli77/repos","events_url":"https://api.github.com/users/66eli77/events{/privacy}","received_events_url":"https://api.github.com/users/66eli77/received_events","type":"User","site_admin":false},"repo":{"id":50968300,"name":"kolibri","full_name":"66eli77/kolibri","owner":{"login":"66eli77","id":5577205,"avatar_url":"https://avatars.githubusercontent.com/u/5577205?v=3","gravatar_id":"","url":"https://api.github.com/users/66eli77","html_url":"https://github.com/66eli77","followers_url":"https://api.github.com/users/66eli77/followers","following_url":"https://api.github.com/users/66eli77/following{/other_user}","gists_url":"https://api.github.com/users/66eli77/gists{/gist_id}","starred_url":"https://api.github.com/users/66eli77/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/66eli77/subscriptions","organizations_url":"https://api.github.com/users/66eli77/orgs","repos_url":"https://api.github.com/users/66eli77/repos","events_url":"https://api.github.com/users/66eli77/events{/privacy}","received_events_url":"https://api.github.com/users/66eli77/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/66eli77/kolibri","description":"This is where Kolibri shall be born, watch and participate!","fork":true,"url":"https://api.github.com/repos/66eli77/kolibri","forks_url":"https://api.github.com/repos/66eli77/kolibri/forks","keys_url":"https://api.github.com/repos/66eli77/kolibri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/66eli77/kolibri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/66eli77/kolibri/teams","hooks_url":"https://api.github.com/repos/66eli77/kolibri/hooks","issue_events_url":"https://api.github.com/repos/66eli77/kolibri/issues/events{/number}","events_url":"https://api.github.com/repos/66eli77/kolibri/events","assignees_url":"https://api.github.com/repos/66eli77/kolibri/assignees{/user}","branches_url":"https://api.github.com/repos/66eli77/kolibri/branches{/branch}","tags_url":"https://api.github.com/repos/66eli77/kolibri/tags","blobs_url":"https://api.github.com/repos/66eli77/kolibri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/66eli77/kolibri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/66eli77/kolibri/git/refs{/sha}","trees_url":"https://api.github.com/repos/66eli77/kolibri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/66eli77/kolibri/statuses/{sha}","languages_url":"https://api.github.com/repos/66eli77/kolibri/languages","stargazers_url":"https://api.github.com/repos/66eli77/kolibri/stargazers","contributors_url":"https://api.github.com/repos/66eli77/kolibri/contributors","subscribers_url":"https://api.github.com/repos/66eli77/kolibri/subscribers","subscription_url":"https://api.github.com/repos/66eli77/kolibri/subscription","commits_url":"https://api.github.com/repos/66eli77/kolibri/commits{/sha}","git_commits_url":"https://api.github.com/repos/66eli77/kolibri/git/commits{/sha}","comments_url":"https://api.github.com/repos/66eli77/kolibri/comments{/number}","issue_comment_url":"https://api.github.com/repos/66eli77/kolibri/issues/comments{/number}","contents_url":"https://api.github.com/repos/66eli77/kolibri/contents/{+path}","compare_url":"https://api.github.com/repos/66eli77/kolibri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/66eli77/kolibri/merges","archive_url":"https://api.github.com/repos/66eli77/kolibri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/66eli77/kolibri/downloads","issues_url":"https://api.github.com/repos/66eli77/kolibri/issues{/number}","pulls_url":"https://api.github.com/repos/66eli77/kolibri/pulls{/number}","milestones_url":"https://api.github.com/repos/66eli77/kolibri/milestones{/number}","notifications_url":"https://api.github.com/repos/66eli77/kolibri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/66eli77/kolibri/labels{/name}","releases_url":"https://api.github.com/repos/66eli77/kolibri/releases{/id}","deployments_url":"https://api.github.com/repos/66eli77/kolibri/deployments","created_at":"2016-02-03T02:34:15Z","updated_at":"2016-02-03T02:34:16Z","pushed_at":"2016-07-07T21:41:19Z","git_url":"git://github.com/66eli77/kolibri.git","ssh_url":"git@github.com:66eli77/kolibri.git","clone_url":"https://github.com/66eli77/kolibri.git","svn_url":"https://github.com/66eli77/kolibri","homepage":"http://learningequality.org/kolibri/","size":6051,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"learningequality:master","ref":"master","sha":"81ed1b4afc4119f5f0f12e07ccbef858a18fda4d","user":{"login":"learningequality","id":3926525,"avatar_url":"https://avatars.githubusercontent.com/u/3926525?v=3","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"repo":{"id":49976939,"name":"kolibri","full_name":"learningequality/kolibri","owner":{"login":"learningequality","id":3926525,"avatar_url":"https://avatars.githubusercontent.com/u/3926525?v=3","gravatar_id":"","url":"https://api.github.com/users/learningequality","html_url":"https://github.com/learningequality","followers_url":"https://api.github.com/users/learningequality/followers","following_url":"https://api.github.com/users/learningequality/following{/other_user}","gists_url":"https://api.github.com/users/learningequality/gists{/gist_id}","starred_url":"https://api.github.com/users/learningequality/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/learningequality/subscriptions","organizations_url":"https://api.github.com/users/learningequality/orgs","repos_url":"https://api.github.com/users/learningequality/repos","events_url":"https://api.github.com/users/learningequality/events{/privacy}","received_events_url":"https://api.github.com/users/learningequality/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/learningequality/kolibri","description":"This is where Kolibri shall be born, watch and participate!","fork":false,"url":"https://api.github.com/repos/learningequality/kolibri","forks_url":"https://api.github.com/repos/learningequality/kolibri/forks","keys_url":"https://api.github.com/repos/learningequality/kolibri/keys{/key_id}","collaborators_url":"https://api.github.com/repos/learningequality/kolibri/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/learningequality/kolibri/teams","hooks_url":"https://api.github.com/repos/learningequality/kolibri/hooks","issue_events_url":"https://api.github.com/repos/learningequality/kolibri/issues/events{/number}","events_url":"https://api.github.com/repos/learningequality/kolibri/events","assignees_url":"https://api.github.com/repos/learningequality/kolibri/assignees{/user}","branches_url":"https://api.github.com/repos/learningequality/kolibri/branches{/branch}","tags_url":"https://api.github.com/repos/learningequality/kolibri/tags","blobs_url":"https://api.github.com/repos/learningequality/kolibri/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/learningequality/kolibri/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/learningequality/kolibri/git/refs{/sha}","trees_url":"https://api.github.com/repos/learningequality/kolibri/git/trees{/sha}","statuses_url":"https://api.github.com/repos/learningequality/kolibri/statuses/{sha}","languages_url":"https://api.github.com/repos/learningequality/kolibri/languages","stargazers_url":"https://api.github.com/repos/learningequality/kolibri/stargazers","contributors_url":"https://api.github.com/repos/learningequality/kolibri/contributors","subscribers_url":"https://api.github.com/repos/learningequality/kolibri/subscribers","subscription_url":"https://api.github.com/repos/learningequality/kolibri/subscription","commits_url":"https://api.github.com/repos/learningequality/kolibri/commits{/sha}","git_commits_url":"https://api.github.com/repos/learningequality/kolibri/git/commits{/sha}","comments_url":"https://api.github.com/repos/learningequality/kolibri/comments{/number}","issue_comment_url":"https://api.github.com/repos/learningequality/kolibri/issues/comments{/number}","contents_url":"https://api.github.com/repos/learningequality/kolibri/contents/{+path}","compare_url":"https://api.github.com/repos/learningequality/kolibri/compare/{base}...{head}","merges_url":"https://api.github.com/repos/learningequality/kolibri/merges","archive_url":"https://api.github.com/repos/learningequality/kolibri/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/learningequality/kolibri/downloads","issues_url":"https://api.github.com/repos/learningequality/kolibri/issues{/number}","pulls_url":"https://api.github.com/repos/learningequality/kolibri/pulls{/number}","milestones_url":"https://api.github.com/repos/learningequality/kolibri/milestones{/number}","notifications_url":"https://api.github.com/repos/learningequality/kolibri/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/learningequality/kolibri/labels{/name}","releases_url":"https://api.github.com/repos/learningequality/kolibri/releases{/id}","deployments_url":"https://api.github.com/repos/learningequality/kolibri/deployments","created_at":"2016-01-19T19:22:07Z","updated_at":"2016-07-01T17:51:26Z","pushed_at":"2016-07-07T22:15:21Z","git_url":"git://github.com/learningequality/kolibri.git","ssh_url":"git@github.com:learningequality/kolibri.git","clone_url":"https://github.com/learningequality/kolibri.git","svn_url":"https://github.com/learningequality/kolibri","homepage":"http://learningequality.org/kolibri/","size":6426,"stargazers_count":23,"watchers_count":23,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":28,"mirror_url":null,"open_issues_count":32,"forks":28,"open_issues":32,"watchers":23,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/212"},"html":{"href":"https://github.com/learningequality/kolibri/pull/212"},"issue":{"href":"https://api.github.com/repos/learningequality/kolibri/issues/212"},"comments":{"href":"https://api.github.com/repos/learningequality/kolibri/issues/212/comments"},"review_comments":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/212/comments"},"review_comment":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/learningequality/kolibri/pulls/212/commits"},"statuses":{"href":"https://api.github.com/repos/learningequality/kolibri/statuses/193e914f0c22f809cb3e2288cf86d6a104521051"}}}}
{"actor":{"display_login":"rtibbles"}}