{"action":"created","comment":{"url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/comments/87213815","pull_request_review_id":7833788,"id":87213815,"diff_hunk":"@@ -97,20 +108,31 @@ function ReadController (kuzzle) {\n       });\n   };\n \n-  this.now = function readNow (requestObject) {\n-    return kuzzle.pluginsManager.trigger('data:beforeNow', requestObject)\n-      .then(newRequestObject => kuzzle.pluginsManager.trigger('data:afterNow', new ResponseObject(newRequestObject, {now: Date.now()})));\n+  this.collectionExists = requestObject => {","path":"lib/api/controllers/readController.js","position":25,"original_position":25,"commit_id":"a335cefa16e4bb397f46a30a0675db39997401cf","original_commit_id":"a335cefa16e4bb397f46a30a0675db39997401cf","user":{"login":"j33f","id":455513,"avatar_url":"https://avatars.githubusercontent.com/u/455513?v=3","gravatar_id":"","url":"https://api.github.com/users/j33f","html_url":"https://github.com/j33f","followers_url":"https://api.github.com/users/j33f/followers","following_url":"https://api.github.com/users/j33f/following{/other_user}","gists_url":"https://api.github.com/users/j33f/gists{/gist_id}","starred_url":"https://api.github.com/users/j33f/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j33f/subscriptions","organizations_url":"https://api.github.com/users/j33f/orgs","repos_url":"https://api.github.com/users/j33f/repos","events_url":"https://api.github.com/users/j33f/events{/privacy}","received_events_url":"https://api.github.com/users/j33f/received_events","type":"User","site_admin":false},"body":"should use the function keyword with a proper name in order to have it in debug","created_at":"2016-11-09T15:30:05Z","updated_at":"2016-11-09T15:30:13Z","html_url":"https://github.com/kuzzleio/kuzzle/pull/523#discussion_r87213815","pull_request_url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/523","_links":{"self":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/comments/87213815"},"html":{"href":"https://github.com/kuzzleio/kuzzle/pull/523#discussion_r87213815"},"pull_request":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/523"}}},"pull_request":{"url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/523","id":92626447,"html_url":"https://github.com/kuzzleio/kuzzle/pull/523","diff_url":"https://github.com/kuzzleio/kuzzle/pull/523.diff","patch_url":"https://github.com/kuzzleio/kuzzle/pull/523.patch","issue_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/523","number":523,"state":"open","locked":false,"title":"fixes #452 - index & collection exist routes","user":{"login":"benoitvidis","id":6680551,"avatar_url":"https://avatars.githubusercontent.com/u/6680551?v=3","gravatar_id":"","url":"https://api.github.com/users/benoitvidis","html_url":"https://github.com/benoitvidis","followers_url":"https://api.github.com/users/benoitvidis/followers","following_url":"https://api.github.com/users/benoitvidis/following{/other_user}","gists_url":"https://api.github.com/users/benoitvidis/gists{/gist_id}","starred_url":"https://api.github.com/users/benoitvidis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benoitvidis/subscriptions","organizations_url":"https://api.github.com/users/benoitvidis/orgs","repos_url":"https://api.github.com/users/benoitvidis/repos","events_url":"https://api.github.com/users/benoitvidis/events{/privacy}","received_events_url":"https://api.github.com/users/benoitvidis/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-11-07T17:22:43Z","updated_at":"2016-11-09T15:31:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"82c2a04965ca8e01fad034c097a3d9047ae637a1","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/kuzzleio/kuzzle/milestones/2","html_url":"https://github.com/kuzzleio/kuzzle/milestones/Kuzzle-1.0.0-RC8","labels_url":"https://api.github.com/repos/kuzzleio/kuzzle/milestones/2/labels","id":2081971,"number":2,"title":"Kuzzle-1.0.0-RC8","description":"","creator":{"login":"xbill82","id":5023426,"avatar_url":"https://avatars.githubusercontent.com/u/5023426?v=3","gravatar_id":"","url":"https://api.github.com/users/xbill82","html_url":"https://github.com/xbill82","followers_url":"https://api.github.com/users/xbill82/followers","following_url":"https://api.github.com/users/xbill82/following{/other_user}","gists_url":"https://api.github.com/users/xbill82/gists{/gist_id}","starred_url":"https://api.github.com/users/xbill82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xbill82/subscriptions","organizations_url":"https://api.github.com/users/xbill82/orgs","repos_url":"https://api.github.com/users/xbill82/repos","events_url":"https://api.github.com/users/xbill82/events{/privacy}","received_events_url":"https://api.github.com/users/xbill82/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":14,"state":"open","created_at":"2016-10-20T09:37:16Z","updated_at":"2016-11-08T12:03:28Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/523/commits","review_comments_url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/523/comments","review_comment_url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/523/comments","statuses_url":"https://api.github.com/repos/kuzzleio/kuzzle/statuses/a335cefa16e4bb397f46a30a0675db39997401cf","head":{"label":"kuzzleio:452-indices-exists","ref":"452-indices-exists","sha":"a335cefa16e4bb397f46a30a0675db39997401cf","user":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars.githubusercontent.com/u/12933347?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"repo":{"id":41084349,"name":"kuzzle","full_name":"kuzzleio/kuzzle","owner":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars.githubusercontent.com/u/12933347?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kuzzleio/kuzzle","description":"Open-source Back-end, self-hostable & ready to use - Real-time, storage, advanced search - Web, Apps, Mobile, IoT -","fork":false,"url":"https://api.github.com/repos/kuzzleio/kuzzle","forks_url":"https://api.github.com/repos/kuzzleio/kuzzle/forks","keys_url":"https://api.github.com/repos/kuzzleio/kuzzle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuzzleio/kuzzle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuzzleio/kuzzle/teams","hooks_url":"https://api.github.com/repos/kuzzleio/kuzzle/hooks","issue_events_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/events{/number}","events_url":"https://api.github.com/repos/kuzzleio/kuzzle/events","assignees_url":"https://api.github.com/repos/kuzzleio/kuzzle/assignees{/user}","branches_url":"https://api.github.com/repos/kuzzleio/kuzzle/branches{/branch}","tags_url":"https://api.github.com/repos/kuzzleio/kuzzle/tags","blobs_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuzzleio/kuzzle/statuses/{sha}","languages_url":"https://api.github.com/repos/kuzzleio/kuzzle/languages","stargazers_url":"https://api.github.com/repos/kuzzleio/kuzzle/stargazers","contributors_url":"https://api.github.com/repos/kuzzleio/kuzzle/contributors","subscribers_url":"https://api.github.com/repos/kuzzleio/kuzzle/subscribers","subscription_url":"https://api.github.com/repos/kuzzleio/kuzzle/subscription","commits_url":"https://api.github.com/repos/kuzzleio/kuzzle/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuzzleio/kuzzle/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuzzleio/kuzzle/contents/{+path}","compare_url":"https://api.github.com/repos/kuzzleio/kuzzle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuzzleio/kuzzle/merges","archive_url":"https://api.github.com/repos/kuzzleio/kuzzle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuzzleio/kuzzle/downloads","issues_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues{/number}","pulls_url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls{/number}","milestones_url":"https://api.github.com/repos/kuzzleio/kuzzle/milestones{/number}","notifications_url":"https://api.github.com/repos/kuzzleio/kuzzle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuzzleio/kuzzle/labels{/name}","releases_url":"https://api.github.com/repos/kuzzleio/kuzzle/releases{/id}","deployments_url":"https://api.github.com/repos/kuzzleio/kuzzle/deployments","created_at":"2015-08-20T08:26:57Z","updated_at":"2016-10-30T17:42:38Z","pushed_at":"2016-11-09T13:37:40Z","git_url":"git://github.com/kuzzleio/kuzzle.git","ssh_url":"git@github.com:kuzzleio/kuzzle.git","clone_url":"https://github.com/kuzzleio/kuzzle.git","svn_url":"https://github.com/kuzzleio/kuzzle","homepage":"http://kuzzle.io","size":9098,"stargazers_count":338,"watchers_count":338,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":59,"forks":21,"open_issues":59,"watchers":338,"default_branch":"master"}},"base":{"label":"kuzzleio:develop","ref":"develop","sha":"026cd10d1ca5440370e2d393f6a6c3636e115926","user":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars.githubusercontent.com/u/12933347?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"repo":{"id":41084349,"name":"kuzzle","full_name":"kuzzleio/kuzzle","owner":{"login":"kuzzleio","id":12933347,"avatar_url":"https://avatars.githubusercontent.com/u/12933347?v=3","gravatar_id":"","url":"https://api.github.com/users/kuzzleio","html_url":"https://github.com/kuzzleio","followers_url":"https://api.github.com/users/kuzzleio/followers","following_url":"https://api.github.com/users/kuzzleio/following{/other_user}","gists_url":"https://api.github.com/users/kuzzleio/gists{/gist_id}","starred_url":"https://api.github.com/users/kuzzleio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuzzleio/subscriptions","organizations_url":"https://api.github.com/users/kuzzleio/orgs","repos_url":"https://api.github.com/users/kuzzleio/repos","events_url":"https://api.github.com/users/kuzzleio/events{/privacy}","received_events_url":"https://api.github.com/users/kuzzleio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kuzzleio/kuzzle","description":"Open-source Back-end, self-hostable & ready to use - Real-time, storage, advanced search - Web, Apps, Mobile, IoT -","fork":false,"url":"https://api.github.com/repos/kuzzleio/kuzzle","forks_url":"https://api.github.com/repos/kuzzleio/kuzzle/forks","keys_url":"https://api.github.com/repos/kuzzleio/kuzzle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kuzzleio/kuzzle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kuzzleio/kuzzle/teams","hooks_url":"https://api.github.com/repos/kuzzleio/kuzzle/hooks","issue_events_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/events{/number}","events_url":"https://api.github.com/repos/kuzzleio/kuzzle/events","assignees_url":"https://api.github.com/repos/kuzzleio/kuzzle/assignees{/user}","branches_url":"https://api.github.com/repos/kuzzleio/kuzzle/branches{/branch}","tags_url":"https://api.github.com/repos/kuzzleio/kuzzle/tags","blobs_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/refs{/sha}","trees_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kuzzleio/kuzzle/statuses/{sha}","languages_url":"https://api.github.com/repos/kuzzleio/kuzzle/languages","stargazers_url":"https://api.github.com/repos/kuzzleio/kuzzle/stargazers","contributors_url":"https://api.github.com/repos/kuzzleio/kuzzle/contributors","subscribers_url":"https://api.github.com/repos/kuzzleio/kuzzle/subscribers","subscription_url":"https://api.github.com/repos/kuzzleio/kuzzle/subscription","commits_url":"https://api.github.com/repos/kuzzleio/kuzzle/commits{/sha}","git_commits_url":"https://api.github.com/repos/kuzzleio/kuzzle/git/commits{/sha}","comments_url":"https://api.github.com/repos/kuzzleio/kuzzle/comments{/number}","issue_comment_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues/comments{/number}","contents_url":"https://api.github.com/repos/kuzzleio/kuzzle/contents/{+path}","compare_url":"https://api.github.com/repos/kuzzleio/kuzzle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kuzzleio/kuzzle/merges","archive_url":"https://api.github.com/repos/kuzzleio/kuzzle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kuzzleio/kuzzle/downloads","issues_url":"https://api.github.com/repos/kuzzleio/kuzzle/issues{/number}","pulls_url":"https://api.github.com/repos/kuzzleio/kuzzle/pulls{/number}","milestones_url":"https://api.github.com/repos/kuzzleio/kuzzle/milestones{/number}","notifications_url":"https://api.github.com/repos/kuzzleio/kuzzle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kuzzleio/kuzzle/labels{/name}","releases_url":"https://api.github.com/repos/kuzzleio/kuzzle/releases{/id}","deployments_url":"https://api.github.com/repos/kuzzleio/kuzzle/deployments","created_at":"2015-08-20T08:26:57Z","updated_at":"2016-10-30T17:42:38Z","pushed_at":"2016-11-09T13:37:40Z","git_url":"git://github.com/kuzzleio/kuzzle.git","ssh_url":"git@github.com:kuzzleio/kuzzle.git","clone_url":"https://github.com/kuzzleio/kuzzle.git","svn_url":"https://github.com/kuzzleio/kuzzle","homepage":"http://kuzzle.io","size":9098,"stargazers_count":338,"watchers_count":338,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":59,"forks":21,"open_issues":59,"watchers":338,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/523"},"html":{"href":"https://github.com/kuzzleio/kuzzle/pull/523"},"issue":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/issues/523"},"comments":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/issues/523/comments"},"review_comments":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/523/comments"},"review_comment":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/pulls/523/commits"},"statuses":{"href":"https://api.github.com/repos/kuzzleio/kuzzle/statuses/a335cefa16e4bb397f46a30a0675db39997401cf"}}}}
{"actor":{"display_login":"j33f"}}