{"action":"created","comment":{"url":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/comments/242049746","pull_request_review_id":185468868,"id":242049746,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MjA0OTc0Ng==","diff_hunk":"@@ -218,7 +217,7 @@ def get_ui_availability(self, elt, range_start=None, range_end=None):\n                 if '_id' in log:\n                     del log['_id']\n                 records.append(log)\n-            logger.debug(\"[mongo-logs] %d records fetched from database.\", records.count())\n+            logger.debug(\"[mongo-logs] %d records fetched from database.\", len(records))","path":"module/submodules/logs.py","position":47,"original_position":47,"commit_id":"7e8eb26f4ef5c18ab7684111437a32f4265ba624","original_commit_id":"7e8eb26f4ef5c18ab7684111437a32f4265ba624","user":{"login":"mohierf","id":2932687,"node_id":"MDQ6VXNlcjI5MzI2ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/2932687?v=4","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"body":"@maethor: in this place, records is a list not a pymongo Cursor ... as such you cannot use the `count` method and you must use `len` ...","created_at":"2018-12-17T07:54:58Z","updated_at":"2018-12-17T07:54:58Z","html_url":"https://github.com/shinken-monitoring/mod-webui/pull/684#discussion_r242049746","pull_request_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/684","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/comments/242049746"},"html":{"href":"https://github.com/shinken-monitoring/mod-webui/pull/684#discussion_r242049746"},"pull_request":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/684"}},"in_reply_to_id":242048648},"pull_request":{"url":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/684","id":239049599,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5MDQ5NTk5","html_url":"https://github.com/shinken-monitoring/mod-webui/pull/684","diff_url":"https://github.com/shinken-monitoring/mod-webui/pull/684.diff","patch_url":"https://github.com/shinken-monitoring/mod-webui/pull/684.patch","issue_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/684","number":684,"state":"open","locked":false,"title":"Fix small errors in the logs sub-module:","user":{"login":"mohierf","id":2932687,"node_id":"MDQ6VXNlcjI5MzI2ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/2932687?v=4","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"body":"- erroneous logs\r\n- check if configured logs collection exist to confirm correct connection","created_at":"2018-12-17T07:28:21Z","updated_at":"2018-12-17T07:54:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20f0841f204d533b95afc14b3bf7b9d7519f36f8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/684/commits","review_comments_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/684/comments","review_comment_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/684/comments","statuses_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/statuses/7e8eb26f4ef5c18ab7684111437a32f4265ba624","head":{"label":"mohierf:logs-submodule","ref":"logs-submodule","sha":"7e8eb26f4ef5c18ab7684111437a32f4265ba624","user":{"login":"mohierf","id":2932687,"node_id":"MDQ6VXNlcjI5MzI2ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/2932687?v=4","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"repo":{"id":146697045,"node_id":"MDEwOlJlcG9zaXRvcnkxNDY2OTcwNDU=","name":"mod-webui","full_name":"mohierf/mod-webui","private":false,"owner":{"login":"mohierf","id":2932687,"node_id":"MDQ6VXNlcjI5MzI2ODc=","avatar_url":"https://avatars3.githubusercontent.com/u/2932687?v=4","gravatar_id":"","url":"https://api.github.com/users/mohierf","html_url":"https://github.com/mohierf","followers_url":"https://api.github.com/users/mohierf/followers","following_url":"https://api.github.com/users/mohierf/following{/other_user}","gists_url":"https://api.github.com/users/mohierf/gists{/gist_id}","starred_url":"https://api.github.com/users/mohierf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohierf/subscriptions","organizations_url":"https://api.github.com/users/mohierf/orgs","repos_url":"https://api.github.com/users/mohierf/repos","events_url":"https://api.github.com/users/mohierf/events{/privacy}","received_events_url":"https://api.github.com/users/mohierf/received_events","type":"User","site_admin":false},"html_url":"https://github.com/mohierf/mod-webui","description":"Shinken Web User Interface","fork":true,"url":"https://api.github.com/repos/mohierf/mod-webui","forks_url":"https://api.github.com/repos/mohierf/mod-webui/forks","keys_url":"https://api.github.com/repos/mohierf/mod-webui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mohierf/mod-webui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mohierf/mod-webui/teams","hooks_url":"https://api.github.com/repos/mohierf/mod-webui/hooks","issue_events_url":"https://api.github.com/repos/mohierf/mod-webui/issues/events{/number}","events_url":"https://api.github.com/repos/mohierf/mod-webui/events","assignees_url":"https://api.github.com/repos/mohierf/mod-webui/assignees{/user}","branches_url":"https://api.github.com/repos/mohierf/mod-webui/branches{/branch}","tags_url":"https://api.github.com/repos/mohierf/mod-webui/tags","blobs_url":"https://api.github.com/repos/mohierf/mod-webui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mohierf/mod-webui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mohierf/mod-webui/git/refs{/sha}","trees_url":"https://api.github.com/repos/mohierf/mod-webui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mohierf/mod-webui/statuses/{sha}","languages_url":"https://api.github.com/repos/mohierf/mod-webui/languages","stargazers_url":"https://api.github.com/repos/mohierf/mod-webui/stargazers","contributors_url":"https://api.github.com/repos/mohierf/mod-webui/contributors","subscribers_url":"https://api.github.com/repos/mohierf/mod-webui/subscribers","subscription_url":"https://api.github.com/repos/mohierf/mod-webui/subscription","commits_url":"https://api.github.com/repos/mohierf/mod-webui/commits{/sha}","git_commits_url":"https://api.github.com/repos/mohierf/mod-webui/git/commits{/sha}","comments_url":"https://api.github.com/repos/mohierf/mod-webui/comments{/number}","issue_comment_url":"https://api.github.com/repos/mohierf/mod-webui/issues/comments{/number}","contents_url":"https://api.github.com/repos/mohierf/mod-webui/contents/{+path}","compare_url":"https://api.github.com/repos/mohierf/mod-webui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mohierf/mod-webui/merges","archive_url":"https://api.github.com/repos/mohierf/mod-webui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mohierf/mod-webui/downloads","issues_url":"https://api.github.com/repos/mohierf/mod-webui/issues{/number}","pulls_url":"https://api.github.com/repos/mohierf/mod-webui/pulls{/number}","milestones_url":"https://api.github.com/repos/mohierf/mod-webui/milestones{/number}","notifications_url":"https://api.github.com/repos/mohierf/mod-webui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mohierf/mod-webui/labels{/name}","releases_url":"https://api.github.com/repos/mohierf/mod-webui/releases{/id}","deployments_url":"https://api.github.com/repos/mohierf/mod-webui/deployments","created_at":"2018-08-30T04:48:11Z","updated_at":"2018-12-13T13:59:10Z","pushed_at":"2018-12-17T07:28:50Z","git_url":"git://github.com/mohierf/mod-webui.git","ssh_url":"git@github.com:mohierf/mod-webui.git","clone_url":"https://github.com/mohierf/mod-webui.git","svn_url":"https://github.com/mohierf/mod-webui","homepage":"","size":22367,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"shinken-monitoring:develop","ref":"develop","sha":"0e1bad8c928828e987bde746f7c642fc62959985","user":{"login":"shinken-monitoring","id":2073658,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNzM2NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2073658?v=4","gravatar_id":"","url":"https://api.github.com/users/shinken-monitoring","html_url":"https://github.com/shinken-monitoring","followers_url":"https://api.github.com/users/shinken-monitoring/followers","following_url":"https://api.github.com/users/shinken-monitoring/following{/other_user}","gists_url":"https://api.github.com/users/shinken-monitoring/gists{/gist_id}","starred_url":"https://api.github.com/users/shinken-monitoring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinken-monitoring/subscriptions","organizations_url":"https://api.github.com/users/shinken-monitoring/orgs","repos_url":"https://api.github.com/users/shinken-monitoring/repos","events_url":"https://api.github.com/users/shinken-monitoring/events{/privacy}","received_events_url":"https://api.github.com/users/shinken-monitoring/received_events","type":"Organization","site_admin":false},"repo":{"id":11446601,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQ0NjYwMQ==","name":"mod-webui","full_name":"shinken-monitoring/mod-webui","private":false,"owner":{"login":"shinken-monitoring","id":2073658,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIwNzM2NTg=","avatar_url":"https://avatars0.githubusercontent.com/u/2073658?v=4","gravatar_id":"","url":"https://api.github.com/users/shinken-monitoring","html_url":"https://github.com/shinken-monitoring","followers_url":"https://api.github.com/users/shinken-monitoring/followers","following_url":"https://api.github.com/users/shinken-monitoring/following{/other_user}","gists_url":"https://api.github.com/users/shinken-monitoring/gists{/gist_id}","starred_url":"https://api.github.com/users/shinken-monitoring/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shinken-monitoring/subscriptions","organizations_url":"https://api.github.com/users/shinken-monitoring/orgs","repos_url":"https://api.github.com/users/shinken-monitoring/repos","events_url":"https://api.github.com/users/shinken-monitoring/events{/privacy}","received_events_url":"https://api.github.com/users/shinken-monitoring/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/shinken-monitoring/mod-webui","description":"Shinken Web User Interface","fork":false,"url":"https://api.github.com/repos/shinken-monitoring/mod-webui","forks_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/forks","keys_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/teams","hooks_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/hooks","issue_events_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/events{/number}","events_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/events","assignees_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/assignees{/user}","branches_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/branches{/branch}","tags_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/tags","blobs_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/git/refs{/sha}","trees_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/statuses/{sha}","languages_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/languages","stargazers_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/stargazers","contributors_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/contributors","subscribers_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/subscribers","subscription_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/subscription","commits_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/commits{/sha}","git_commits_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/git/commits{/sha}","comments_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/comments{/number}","issue_comment_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/comments{/number}","contents_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/contents/{+path}","compare_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/merges","archive_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/downloads","issues_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues{/number}","pulls_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls{/number}","milestones_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/milestones{/number}","notifications_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/labels{/name}","releases_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/releases{/id}","deployments_url":"https://api.github.com/repos/shinken-monitoring/mod-webui/deployments","created_at":"2013-07-16T10:12:02Z","updated_at":"2018-12-17T07:45:09Z","pushed_at":"2018-12-17T07:45:07Z","git_url":"git://github.com/shinken-monitoring/mod-webui.git","ssh_url":"git@github.com:shinken-monitoring/mod-webui.git","clone_url":"https://github.com/shinken-monitoring/mod-webui.git","svn_url":"https://github.com/shinken-monitoring/mod-webui","homepage":"","size":22149,"stargazers_count":72,"watchers_count":72,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":68,"mirror_url":null,"archived":false,"open_issues_count":49,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":68,"open_issues":49,"watchers":72,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/684"},"html":{"href":"https://github.com/shinken-monitoring/mod-webui/pull/684"},"issue":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/684"},"comments":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/issues/684/comments"},"review_comments":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/684/comments"},"review_comment":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/pulls/684/commits"},"statuses":{"href":"https://api.github.com/repos/shinken-monitoring/mod-webui/statuses/7e8eb26f4ef5c18ab7684111437a32f4265ba624"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"mohierf"}}