{"action":"opened","number":14,"pull_request":{"url":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls/14","id":46966011,"html_url":"https://github.com/inlight-media/node-crud-generator/pull/14","diff_url":"https://github.com/inlight-media/node-crud-generator/pull/14.diff","patch_url":"https://github.com/inlight-media/node-crud-generator/pull/14.patch","issue_url":"https://api.github.com/repos/inlight-media/node-crud-generator/issues/14","number":14,"state":"open","locked":false,"title":"Fixes > Pagination query count","user":{"login":"sinakarimi","id":1762358,"avatar_url":"https://avatars.githubusercontent.com/u/1762358?v=3","gravatar_id":"","url":"https://api.github.com/users/sinakarimi","html_url":"https://github.com/sinakarimi","followers_url":"https://api.github.com/users/sinakarimi/followers","following_url":"https://api.github.com/users/sinakarimi/following{/other_user}","gists_url":"https://api.github.com/users/sinakarimi/gists{/gist_id}","starred_url":"https://api.github.com/users/sinakarimi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinakarimi/subscriptions","organizations_url":"https://api.github.com/users/sinakarimi/orgs","repos_url":"https://api.github.com/users/sinakarimi/repos","events_url":"https://api.github.com/users/sinakarimi/events{/privacy}","received_events_url":"https://api.github.com/users/sinakarimi/received_events","type":"User","site_admin":false},"body":"When running the pagination query the ```count``` and ```query``` was being run in parallel. Because they are both using the same query object this can cause issues in large queries and result in an inaccurate count.\r\n\r\nBy executing the commands in series we can ensure that the ```count``` completes first before the ```query``` execution starts.","created_at":"2015-10-06T22:23:41Z","updated_at":"2015-10-06T22:23:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls/14/commits","review_comments_url":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls/14/comments","review_comment_url":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/inlight-media/node-crud-generator/issues/14/comments","statuses_url":"https://api.github.com/repos/inlight-media/node-crud-generator/statuses/8f8b89fb188e4f332fe28e8aa333263c08517f78","head":{"label":"inlight-media:fix/serial-query-execution","ref":"fix/serial-query-execution","sha":"8f8b89fb188e4f332fe28e8aa333263c08517f78","user":{"login":"inlight-media","id":2231211,"avatar_url":"https://avatars.githubusercontent.com/u/2231211?v=3","gravatar_id":"","url":"https://api.github.com/users/inlight-media","html_url":"https://github.com/inlight-media","followers_url":"https://api.github.com/users/inlight-media/followers","following_url":"https://api.github.com/users/inlight-media/following{/other_user}","gists_url":"https://api.github.com/users/inlight-media/gists{/gist_id}","starred_url":"https://api.github.com/users/inlight-media/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inlight-media/subscriptions","organizations_url":"https://api.github.com/users/inlight-media/orgs","repos_url":"https://api.github.com/users/inlight-media/repos","events_url":"https://api.github.com/users/inlight-media/events{/privacy}","received_events_url":"https://api.github.com/users/inlight-media/received_events","type":"Organization","site_admin":false},"repo":{"id":26887356,"name":"node-crud-generator","full_name":"inlight-media/node-crud-generator","owner":{"login":"inlight-media","id":2231211,"avatar_url":"https://avatars.githubusercontent.com/u/2231211?v=3","gravatar_id":"","url":"https://api.github.com/users/inlight-media","html_url":"https://github.com/inlight-media","followers_url":"https://api.github.com/users/inlight-media/followers","following_url":"https://api.github.com/users/inlight-media/following{/other_user}","gists_url":"https://api.github.com/users/inlight-media/gists{/gist_id}","starred_url":"https://api.github.com/users/inlight-media/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inlight-media/subscriptions","organizations_url":"https://api.github.com/users/inlight-media/orgs","repos_url":"https://api.github.com/users/inlight-media/repos","events_url":"https://api.github.com/users/inlight-media/events{/privacy}","received_events_url":"https://api.github.com/users/inlight-media/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inlight-media/node-crud-generator","description":"","fork":false,"url":"https://api.github.com/repos/inlight-media/node-crud-generator","forks_url":"https://api.github.com/repos/inlight-media/node-crud-generator/forks","keys_url":"https://api.github.com/repos/inlight-media/node-crud-generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inlight-media/node-crud-generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inlight-media/node-crud-generator/teams","hooks_url":"https://api.github.com/repos/inlight-media/node-crud-generator/hooks","issue_events_url":"https://api.github.com/repos/inlight-media/node-crud-generator/issues/events{/number}","events_url":"https://api.github.com/repos/inlight-media/node-crud-generator/events","assignees_url":"https://api.github.com/repos/inlight-media/node-crud-generator/assignees{/user}","branches_url":"https://api.github.com/repos/inlight-media/node-crud-generator/branches{/branch}","tags_url":"https://api.github.com/repos/inlight-media/node-crud-generator/tags","blobs_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inlight-media/node-crud-generator/statuses/{sha}","languages_url":"https://api.github.com/repos/inlight-media/node-crud-generator/languages","stargazers_url":"https://api.github.com/repos/inlight-media/node-crud-generator/stargazers","contributors_url":"https://api.github.com/repos/inlight-media/node-crud-generator/contributors","subscribers_url":"https://api.github.com/repos/inlight-media/node-crud-generator/subscribers","subscription_url":"https://api.github.com/repos/inlight-media/node-crud-generator/subscription","commits_url":"https://api.github.com/repos/inlight-media/node-crud-generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/inlight-media/node-crud-generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/inlight-media/node-crud-generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/inlight-media/node-crud-generator/contents/{+path}","compare_url":"https://api.github.com/repos/inlight-media/node-crud-generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inlight-media/node-crud-generator/merges","archive_url":"https://api.github.com/repos/inlight-media/node-crud-generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inlight-media/node-crud-generator/downloads","issues_url":"https://api.github.com/repos/inlight-media/node-crud-generator/issues{/number}","pulls_url":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls{/number}","milestones_url":"https://api.github.com/repos/inlight-media/node-crud-generator/milestones{/number}","notifications_url":"https://api.github.com/repos/inlight-media/node-crud-generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inlight-media/node-crud-generator/labels{/name}","releases_url":"https://api.github.com/repos/inlight-media/node-crud-generator/releases{/id}","created_at":"2014-11-19T23:55:14Z","updated_at":"2015-09-15T01:40:35Z","pushed_at":"2015-10-06T22:23:41Z","git_url":"git://github.com/inlight-media/node-crud-generator.git","ssh_url":"git@github.com:inlight-media/node-crud-generator.git","clone_url":"https://github.com/inlight-media/node-crud-generator.git","svn_url":"https://github.com/inlight-media/node-crud-generator","homepage":null,"size":334,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"base":{"label":"inlight-media:master","ref":"master","sha":"0af727c99e4c2a292c327fdc7c02e0599a585764","user":{"login":"inlight-media","id":2231211,"avatar_url":"https://avatars.githubusercontent.com/u/2231211?v=3","gravatar_id":"","url":"https://api.github.com/users/inlight-media","html_url":"https://github.com/inlight-media","followers_url":"https://api.github.com/users/inlight-media/followers","following_url":"https://api.github.com/users/inlight-media/following{/other_user}","gists_url":"https://api.github.com/users/inlight-media/gists{/gist_id}","starred_url":"https://api.github.com/users/inlight-media/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inlight-media/subscriptions","organizations_url":"https://api.github.com/users/inlight-media/orgs","repos_url":"https://api.github.com/users/inlight-media/repos","events_url":"https://api.github.com/users/inlight-media/events{/privacy}","received_events_url":"https://api.github.com/users/inlight-media/received_events","type":"Organization","site_admin":false},"repo":{"id":26887356,"name":"node-crud-generator","full_name":"inlight-media/node-crud-generator","owner":{"login":"inlight-media","id":2231211,"avatar_url":"https://avatars.githubusercontent.com/u/2231211?v=3","gravatar_id":"","url":"https://api.github.com/users/inlight-media","html_url":"https://github.com/inlight-media","followers_url":"https://api.github.com/users/inlight-media/followers","following_url":"https://api.github.com/users/inlight-media/following{/other_user}","gists_url":"https://api.github.com/users/inlight-media/gists{/gist_id}","starred_url":"https://api.github.com/users/inlight-media/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inlight-media/subscriptions","organizations_url":"https://api.github.com/users/inlight-media/orgs","repos_url":"https://api.github.com/users/inlight-media/repos","events_url":"https://api.github.com/users/inlight-media/events{/privacy}","received_events_url":"https://api.github.com/users/inlight-media/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/inlight-media/node-crud-generator","description":"","fork":false,"url":"https://api.github.com/repos/inlight-media/node-crud-generator","forks_url":"https://api.github.com/repos/inlight-media/node-crud-generator/forks","keys_url":"https://api.github.com/repos/inlight-media/node-crud-generator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inlight-media/node-crud-generator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inlight-media/node-crud-generator/teams","hooks_url":"https://api.github.com/repos/inlight-media/node-crud-generator/hooks","issue_events_url":"https://api.github.com/repos/inlight-media/node-crud-generator/issues/events{/number}","events_url":"https://api.github.com/repos/inlight-media/node-crud-generator/events","assignees_url":"https://api.github.com/repos/inlight-media/node-crud-generator/assignees{/user}","branches_url":"https://api.github.com/repos/inlight-media/node-crud-generator/branches{/branch}","tags_url":"https://api.github.com/repos/inlight-media/node-crud-generator/tags","blobs_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/refs{/sha}","trees_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inlight-media/node-crud-generator/statuses/{sha}","languages_url":"https://api.github.com/repos/inlight-media/node-crud-generator/languages","stargazers_url":"https://api.github.com/repos/inlight-media/node-crud-generator/stargazers","contributors_url":"https://api.github.com/repos/inlight-media/node-crud-generator/contributors","subscribers_url":"https://api.github.com/repos/inlight-media/node-crud-generator/subscribers","subscription_url":"https://api.github.com/repos/inlight-media/node-crud-generator/subscription","commits_url":"https://api.github.com/repos/inlight-media/node-crud-generator/commits{/sha}","git_commits_url":"https://api.github.com/repos/inlight-media/node-crud-generator/git/commits{/sha}","comments_url":"https://api.github.com/repos/inlight-media/node-crud-generator/comments{/number}","issue_comment_url":"https://api.github.com/repos/inlight-media/node-crud-generator/issues/comments{/number}","contents_url":"https://api.github.com/repos/inlight-media/node-crud-generator/contents/{+path}","compare_url":"https://api.github.com/repos/inlight-media/node-crud-generator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inlight-media/node-crud-generator/merges","archive_url":"https://api.github.com/repos/inlight-media/node-crud-generator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inlight-media/node-crud-generator/downloads","issues_url":"https://api.github.com/repos/inlight-media/node-crud-generator/issues{/number}","pulls_url":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls{/number}","milestones_url":"https://api.github.com/repos/inlight-media/node-crud-generator/milestones{/number}","notifications_url":"https://api.github.com/repos/inlight-media/node-crud-generator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inlight-media/node-crud-generator/labels{/name}","releases_url":"https://api.github.com/repos/inlight-media/node-crud-generator/releases{/id}","created_at":"2014-11-19T23:55:14Z","updated_at":"2015-09-15T01:40:35Z","pushed_at":"2015-10-06T22:23:41Z","git_url":"git://github.com/inlight-media/node-crud-generator.git","ssh_url":"git@github.com:inlight-media/node-crud-generator.git","clone_url":"https://github.com/inlight-media/node-crud-generator.git","svn_url":"https://github.com/inlight-media/node-crud-generator","homepage":null,"size":334,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls/14"},"html":{"href":"https://github.com/inlight-media/node-crud-generator/pull/14"},"issue":{"href":"https://api.github.com/repos/inlight-media/node-crud-generator/issues/14"},"comments":{"href":"https://api.github.com/repos/inlight-media/node-crud-generator/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/inlight-media/node-crud-generator/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/inlight-media/node-crud-generator/statuses/8f8b89fb188e4f332fe28e8aa333263c08517f78"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":2,"changed_files":2}}