GitHub PullRequestReviewCommentEvent at 2014-09-24 12:04:30
Repository: MassiveSearchBundle
Actor: dantleech
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/comments/17966948","id":17966948,"diff_hunk":"@@ -30,16 +31,31 @@ public function execute(InputInterface $input, OutputInterface $output)\n     {\n         $query = $input->getArgument('query');\n         $index = $input->getOption('index');\n+        $locale = $input->getOption('locale');\n \n         $searchManager = $this->getContainer()->get('massive_search.search_manager');\n-        $res = $searchManager->search($query, $index);\n+        $res = $searchManager->createSearch($query)->index($index)->locale($locale)->go();\n \n         $table = new TableHelper();\n-        $table->setHeaders(array('Score', 'ID', 'Title', 'Description', 'Url', 'Class'));\n+        $table->setHeaders(array('Score', 'ID', 'Title', 'Description', 'Url', 'Image', 'Class'));\n         foreach ($res as $hit) {\n             $document = $hit->getDocument();\n-            $table->addRow(array($hit->getScore(), $document->getId(), $document->getTitle(), $document->getDescription(), $document->getUrl(), $document->getClass()));\n+            $table->addRow(array(\n+                $hit->getScore(), \n+                $document->getId(),\n+                $document->getTitle(),\n+                $this->truncate($document->getDescription(), 50),","path":"Command/QueryCommand.php","position":28,"original_position":28,"commit_id":"a853f43871d0970133daa8171dfa172b04e215de","original_commit_id":"a853f43871d0970133daa8171dfa172b04e215de","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=2","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"This is a console output","created_at":"2014-09-24T12:04:30Z","updated_at":"2014-09-24T12:04:30Z","html_url":"https://github.com/massiveart/MassiveSearchBundle/pull/10#discussion_r17966948","pull_request_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/comments/17966948"},"html":{"href":"https://github.com/massiveart/MassiveSearchBundle/pull/10#discussion_r17966948"},"pull_request":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/10","id":21439620,"html_url":"https://github.com/massiveart/MassiveSearchBundle/pull/10","diff_url":"https://github.com/massiveart/MassiveSearchBundle/pull/10.diff","patch_url":"https://github.com/massiveart/MassiveSearchBundle/pull/10.patch","issue_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/10","number":10,"state":"open","locked":false,"title":"Added image field","user":{"login":"dantleech","id":530801,"avatar_url":"https://avatars.githubusercontent.com/u/530801?v=2","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"This PR:\r\n\r\n- Adds an ImageURL field to the IndexMetadata and Document.\r\n- Adds a TestAdapter\r\n- Addsd get/set/has methods to the Document class\r\n\r\nBC: NO","created_at":"2014-09-18T15:05:20Z","updated_at":"2014-09-24T12:04:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2ed0c6aa5200de0f0ddba7e0045cd90071c6ad17","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/10/commits","review_comments_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/10/comments","review_comment_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/comments/{number}","comments_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/10/comments","statuses_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/statuses/a853f43871d0970133daa8171dfa172b04e215de","head":{"label":"massiveart:added-image-field","ref":"added-image-field","sha":"a853f43871d0970133daa8171dfa172b04e215de","user":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=2","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"repo":{"id":23216604,"name":"MassiveSearchBundle","full_name":"massiveart/MassiveSearchBundle","owner":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=2","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/massiveart/MassiveSearchBundle","description":"","fork":false,"url":"https://api.github.com/repos/massiveart/MassiveSearchBundle","forks_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/forks","keys_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/teams","hooks_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/hooks","issue_events_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/events{/number}","events_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/events","assignees_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/assignees{/user}","branches_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/branches{/branch}","tags_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/tags","blobs_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/languages","stargazers_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/stargazers","contributors_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/contributors","subscribers_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/subscribers","subscription_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/subscription","commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/contents/{+path}","compare_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/merges","archive_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/downloads","issues_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues{/number}","pulls_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/labels{/name}","releases_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/releases{/id}","created_at":"2014-08-22T07:19:25Z","updated_at":"2014-09-19T14:38:43Z","pushed_at":"2014-09-22T15:35:20Z","git_url":"git://github.com/massiveart/MassiveSearchBundle.git","ssh_url":"git@github.com:massiveart/MassiveSearchBundle.git","clone_url":"https://github.com/massiveart/MassiveSearchBundle.git","svn_url":"https://github.com/massiveart/MassiveSearchBundle","homepage":null,"size":508,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"base":{"label":"massiveart:master","ref":"master","sha":"997ec9b2f5efc5c37c5e6abafa12526dc04bfa07","user":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=2","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"repo":{"id":23216604,"name":"MassiveSearchBundle","full_name":"massiveart/MassiveSearchBundle","owner":{"login":"massiveart","id":854731,"avatar_url":"https://avatars.githubusercontent.com/u/854731?v=2","gravatar_id":"","url":"https://api.github.com/users/massiveart","html_url":"https://github.com/massiveart","followers_url":"https://api.github.com/users/massiveart/followers","following_url":"https://api.github.com/users/massiveart/following{/other_user}","gists_url":"https://api.github.com/users/massiveart/gists{/gist_id}","starred_url":"https://api.github.com/users/massiveart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/massiveart/subscriptions","organizations_url":"https://api.github.com/users/massiveart/orgs","repos_url":"https://api.github.com/users/massiveart/repos","events_url":"https://api.github.com/users/massiveart/events{/privacy}","received_events_url":"https://api.github.com/users/massiveart/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/massiveart/MassiveSearchBundle","description":"","fork":false,"url":"https://api.github.com/repos/massiveart/MassiveSearchBundle","forks_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/forks","keys_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/teams","hooks_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/hooks","issue_events_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/events{/number}","events_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/events","assignees_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/assignees{/user}","branches_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/branches{/branch}","tags_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/tags","blobs_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/refs{/sha}","trees_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/statuses/{sha}","languages_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/languages","stargazers_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/stargazers","contributors_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/contributors","subscribers_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/subscribers","subscription_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/subscription","commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/commits{/sha}","git_commits_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/git/commits{/sha}","comments_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/comments{/number}","issue_comment_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/comments/{number}","contents_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/contents/{+path}","compare_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/merges","archive_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/downloads","issues_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues{/number}","pulls_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls{/number}","milestones_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/milestones{/number}","notifications_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/labels{/name}","releases_url":"https://api.github.com/repos/massiveart/MassiveSearchBundle/releases{/id}","created_at":"2014-08-22T07:19:25Z","updated_at":"2014-09-19T14:38:43Z","pushed_at":"2014-09-22T15:35:20Z","git_url":"git://github.com/massiveart/MassiveSearchBundle.git","ssh_url":"git@github.com:massiveart/MassiveSearchBundle.git","clone_url":"https://github.com/massiveart/MassiveSearchBundle.git","svn_url":"https://github.com/massiveart/MassiveSearchBundle","homepage":null,"size":508,"stargazers_count":1,"watchers_count":1,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":7,"forks":0,"open_issues":7,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/10"},"html":{"href":"https://github.com/massiveart/MassiveSearchBundle/pull/10"},"issue":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/10"},"comments":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/massiveart/MassiveSearchBundle/statuses/a853f43871d0970133daa8171dfa172b04e215de"}}}}