{"action":"created","comment":{"url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/comments/37963620","id":37963620,"diff_hunk":"@@ -48,4 +59,32 @@ public function getProfileLogs()\n             'yii\\mongodb\\Database::*',\n         ]);\n     }\n+\n+    /**\n+     * @inheritdoc\n+     */\n+    protected function hasExplain()\n+    {\n+        return true;\n+    }\n+\n+    /**\n+     * @inheritdoc\n+     */\n+    protected function getQueryType($timing)\n+    {\n+        $timing = ltrim($timing);\n+        $timing = mb_substr($timing, 0, mb_strpos($timing, '('));","path":"debug/MongoDbPanel.php","position":37,"original_position":37,"commit_id":"b3235def63be7deed068b75f7316c3eb710464f3","original_commit_id":"b3235def63be7deed068b75f7316c3eb710464f3","user":{"login":"webdevsega","id":1552376,"avatar_url":"https://avatars.githubusercontent.com/u/1552376?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevsega","html_url":"https://github.com/webdevsega","followers_url":"https://api.github.com/users/webdevsega/followers","following_url":"https://api.github.com/users/webdevsega/following{/other_user}","gists_url":"https://api.github.com/users/webdevsega/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevsega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevsega/subscriptions","organizations_url":"https://api.github.com/users/webdevsega/orgs","repos_url":"https://api.github.com/users/webdevsega/repos","events_url":"https://api.github.com/users/webdevsega/events{/privacy}","received_events_url":"https://api.github.com/users/webdevsega/received_events","type":"User","site_admin":false},"body":"Right? mb_substr($timing, 0, mb_strpos($timing, '('), 'utf8')","created_at":"2015-08-26T09:44:22Z","updated_at":"2015-08-26T09:44:22Z","html_url":"https://github.com/yiisoft/yii2-mongodb/pull/39#discussion_r37963620","pull_request_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/comments/37963620"},"html":{"href":"https://github.com/yiisoft/yii2-mongodb/pull/39#discussion_r37963620"},"pull_request":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/39","id":41329698,"html_url":"https://github.com/yiisoft/yii2-mongodb/pull/39","diff_url":"https://github.com/yiisoft/yii2-mongodb/pull/39.diff","patch_url":"https://github.com/yiisoft/yii2-mongodb/pull/39.patch","issue_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/39","number":39,"state":"open","locked":false,"title":"Added ability to EXPLAIN queries in Debug panel","user":{"login":"webdevsega","id":1552376,"avatar_url":"https://avatars.githubusercontent.com/u/1552376?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevsega","html_url":"https://github.com/webdevsega","followers_url":"https://api.github.com/users/webdevsega/followers","following_url":"https://api.github.com/users/webdevsega/following{/other_user}","gists_url":"https://api.github.com/users/webdevsega/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevsega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevsega/subscriptions","organizations_url":"https://api.github.com/users/webdevsega/orgs","repos_url":"https://api.github.com/users/webdevsega/repos","events_url":"https://api.github.com/users/webdevsega/events{/privacy}","received_events_url":"https://api.github.com/users/webdevsega/received_events","type":"User","site_admin":false},"body":"I add explain queries in debug panel and method in Query class.","created_at":"2015-07-31T11:14:28Z","updated_at":"2015-08-26T09:44:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"21fd6fbdb215d3590d737a8dfa3f2f2b10909807","assignee":{"login":"klimov-paul","id":1482054,"avatar_url":"https://avatars.githubusercontent.com/u/1482054?v=3","gravatar_id":"","url":"https://api.github.com/users/klimov-paul","html_url":"https://github.com/klimov-paul","followers_url":"https://api.github.com/users/klimov-paul/followers","following_url":"https://api.github.com/users/klimov-paul/following{/other_user}","gists_url":"https://api.github.com/users/klimov-paul/gists{/gist_id}","starred_url":"https://api.github.com/users/klimov-paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klimov-paul/subscriptions","organizations_url":"https://api.github.com/users/klimov-paul/orgs","repos_url":"https://api.github.com/users/klimov-paul/repos","events_url":"https://api.github.com/users/klimov-paul/events{/privacy}","received_events_url":"https://api.github.com/users/klimov-paul/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/39/commits","review_comments_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/39/comments","review_comment_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/39/comments","statuses_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/statuses/b3235def63be7deed068b75f7316c3eb710464f3","head":{"label":"webdevsega:explain_for_mongodb_debug","ref":"explain_for_mongodb_debug","sha":"b3235def63be7deed068b75f7316c3eb710464f3","user":{"login":"webdevsega","id":1552376,"avatar_url":"https://avatars.githubusercontent.com/u/1552376?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevsega","html_url":"https://github.com/webdevsega","followers_url":"https://api.github.com/users/webdevsega/followers","following_url":"https://api.github.com/users/webdevsega/following{/other_user}","gists_url":"https://api.github.com/users/webdevsega/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevsega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevsega/subscriptions","organizations_url":"https://api.github.com/users/webdevsega/orgs","repos_url":"https://api.github.com/users/webdevsega/repos","events_url":"https://api.github.com/users/webdevsega/events{/privacy}","received_events_url":"https://api.github.com/users/webdevsega/received_events","type":"User","site_admin":false},"repo":{"id":39464598,"name":"yii2-mongodb","full_name":"webdevsega/yii2-mongodb","owner":{"login":"webdevsega","id":1552376,"avatar_url":"https://avatars.githubusercontent.com/u/1552376?v=3","gravatar_id":"","url":"https://api.github.com/users/webdevsega","html_url":"https://github.com/webdevsega","followers_url":"https://api.github.com/users/webdevsega/followers","following_url":"https://api.github.com/users/webdevsega/following{/other_user}","gists_url":"https://api.github.com/users/webdevsega/gists{/gist_id}","starred_url":"https://api.github.com/users/webdevsega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webdevsega/subscriptions","organizations_url":"https://api.github.com/users/webdevsega/orgs","repos_url":"https://api.github.com/users/webdevsega/repos","events_url":"https://api.github.com/users/webdevsega/events{/privacy}","received_events_url":"https://api.github.com/users/webdevsega/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/webdevsega/yii2-mongodb","description":"Yii 2 MongoDB extension.","fork":true,"url":"https://api.github.com/repos/webdevsega/yii2-mongodb","forks_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/forks","keys_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/teams","hooks_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/hooks","issue_events_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/events","assignees_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/tags","blobs_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/languages","stargazers_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/stargazers","contributors_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/contributors","subscribers_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/subscribers","subscription_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/subscription","commits_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/merges","archive_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/downloads","issues_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/webdevsega/yii2-mongodb/releases{/id}","created_at":"2015-07-21T19:08:32Z","updated_at":"2015-07-21T19:08:34Z","pushed_at":"2015-07-31T11:10:57Z","git_url":"git://github.com/webdevsega/yii2-mongodb.git","ssh_url":"git@github.com:webdevsega/yii2-mongodb.git","clone_url":"https://github.com/webdevsega/yii2-mongodb.git","svn_url":"https://github.com/webdevsega/yii2-mongodb","homepage":"http://www.yiiframework.com","size":10141,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"yiisoft:master","ref":"master","sha":"a41a96bd00639ee01f70028fbdef635e5c306a47","user":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"repo":{"id":14986960,"name":"yii2-mongodb","full_name":"yiisoft/yii2-mongodb","owner":{"login":"yiisoft","id":993323,"avatar_url":"https://avatars.githubusercontent.com/u/993323?v=3","gravatar_id":"","url":"https://api.github.com/users/yiisoft","html_url":"https://github.com/yiisoft","followers_url":"https://api.github.com/users/yiisoft/followers","following_url":"https://api.github.com/users/yiisoft/following{/other_user}","gists_url":"https://api.github.com/users/yiisoft/gists{/gist_id}","starred_url":"https://api.github.com/users/yiisoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiisoft/subscriptions","organizations_url":"https://api.github.com/users/yiisoft/orgs","repos_url":"https://api.github.com/users/yiisoft/repos","events_url":"https://api.github.com/users/yiisoft/events{/privacy}","received_events_url":"https://api.github.com/users/yiisoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yiisoft/yii2-mongodb","description":"Yii 2 MongoDB extension.","fork":false,"url":"https://api.github.com/repos/yiisoft/yii2-mongodb","forks_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/forks","keys_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/teams","hooks_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/hooks","issue_events_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/events{/number}","events_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/events","assignees_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/assignees{/user}","branches_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/branches{/branch}","tags_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/tags","blobs_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/refs{/sha}","trees_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/statuses/{sha}","languages_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/languages","stargazers_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/stargazers","contributors_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/contributors","subscribers_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/subscribers","subscription_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/subscription","commits_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/commits{/sha}","git_commits_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/git/commits{/sha}","comments_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/comments{/number}","issue_comment_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/comments{/number}","contents_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/contents/{+path}","compare_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/merges","archive_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/downloads","issues_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues{/number}","pulls_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls{/number}","milestones_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/milestones{/number}","notifications_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/labels{/name}","releases_url":"https://api.github.com/repos/yiisoft/yii2-mongodb/releases{/id}","created_at":"2013-12-06T16:00:15Z","updated_at":"2015-08-24T03:32:00Z","pushed_at":"2015-08-22T14:35:37Z","git_url":"git://github.com/yiisoft/yii2-mongodb.git","ssh_url":"git@github.com:yiisoft/yii2-mongodb.git","clone_url":"https://github.com/yiisoft/yii2-mongodb.git","svn_url":"https://github.com/yiisoft/yii2-mongodb","homepage":"http://www.yiiframework.com","size":10944,"stargazers_count":68,"watchers_count":68,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":10,"forks":48,"open_issues":10,"watchers":68,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/39"},"html":{"href":"https://github.com/yiisoft/yii2-mongodb/pull/39"},"issue":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/39"},"comments":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/yiisoft/yii2-mongodb/statuses/b3235def63be7deed068b75f7316c3eb710464f3"}}}}