{"action":"created","comment":{"url":"https://api.github.com/repos/scitran/core/pulls/comments/82479070","pull_request_review_id":3387436,"id":82479070,"diff_hunk":"@@ -37,6 +37,32 @@ def add_id_to_subject(subject, pid):\n         subject['_id'] = bson.ObjectId()\n     return subject\n \n+def get_stats(cont, cont_type):","path":"api/dao/containerutil.py","position":4,"original_position":4,"commit_id":"ae68789b48a86e860772488c9abb780ab0d6dfc8","original_commit_id":"ae68789b48a86e860772488c9abb780ab0d6dfc8","user":{"login":"nagem","id":5702596,"avatar_url":"https://avatars.githubusercontent.com/u/5702596?v=3","gravatar_id":"","url":"https://api.github.com/users/nagem","html_url":"https://github.com/nagem","followers_url":"https://api.github.com/users/nagem/followers","following_url":"https://api.github.com/users/nagem/following{/other_user}","gists_url":"https://api.github.com/users/nagem/gists{/gist_id}","starred_url":"https://api.github.com/users/nagem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagem/subscriptions","organizations_url":"https://api.github.com/users/nagem/orgs","repos_url":"https://api.github.com/users/nagem/repos","events_url":"https://api.github.com/users/nagem/events{/privacy}","received_events_url":"https://api.github.com/users/nagem/received_events","type":"User","site_admin":false},"body":"I would like to move this to `containerstorage.py`, as well as `add_id_to_subject()` above, but `session-templates` contains the rework. \r\n\r\nThis will most likely merge first so I'll make the move in the rebase of `session-templates` when this lands. ","created_at":"2016-10-07T22:12:52Z","updated_at":"2016-10-07T22:12:52Z","html_url":"https://github.com/scitran/core/pull/530#discussion_r82479070","pull_request_url":"https://api.github.com/repos/scitran/core/pulls/530","_links":{"self":{"href":"https://api.github.com/repos/scitran/core/pulls/comments/82479070"},"html":{"href":"https://github.com/scitran/core/pull/530#discussion_r82479070"},"pull_request":{"href":"https://api.github.com/repos/scitran/core/pulls/530"}}},"pull_request":{"url":"https://api.github.com/repos/scitran/core/pulls/530","id":88515880,"html_url":"https://github.com/scitran/core/pull/530","diff_url":"https://github.com/scitran/core/pull/530.diff","patch_url":"https://github.com/scitran/core/pull/530.patch","issue_url":"https://api.github.com/repos/scitran/core/issues/530","number":530,"state":"open","locked":false,"title":"Add stats endpoint for colls/projs","user":{"login":"nagem","id":5702596,"avatar_url":"https://avatars.githubusercontent.com/u/5702596?v=3","gravatar_id":"","url":"https://api.github.com/users/nagem","html_url":"https://github.com/nagem","followers_url":"https://api.github.com/users/nagem/followers","following_url":"https://api.github.com/users/nagem/following{/other_user}","gists_url":"https://api.github.com/users/nagem/gists{/gist_id}","starred_url":"https://api.github.com/users/nagem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nagem/subscriptions","organizations_url":"https://api.github.com/users/nagem/orgs","repos_url":"https://api.github.com/users/nagem/repos","events_url":"https://api.github.com/users/nagem/events{/privacy}","received_events_url":"https://api.github.com/users/nagem/received_events","type":"User","site_admin":false},"body":"\r\n### Review Checklist\r\n\r\n- Tests were added to cover all code changes\r\n- Documentation was added / updated\r\n- Code and tests follow standards in CONTRIBUTING.md\r\n\r\n","created_at":"2016-10-07T22:09:09Z","updated_at":"2016-10-07T22:12:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55fc3a263640917cc3133c87ddf03b20f7a66c60","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/scitran/core/pulls/530/commits","review_comments_url":"https://api.github.com/repos/scitran/core/pulls/530/comments","review_comment_url":"https://api.github.com/repos/scitran/core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scitran/core/issues/530/comments","statuses_url":"https://api.github.com/repos/scitran/core/statuses/ae68789b48a86e860772488c9abb780ab0d6dfc8","head":{"label":"scitran:project-stats","ref":"project-stats","sha":"ae68789b48a86e860772488c9abb780ab0d6dfc8","user":{"login":"scitran","id":7379762,"avatar_url":"https://avatars.githubusercontent.com/u/7379762?v=3","gravatar_id":"","url":"https://api.github.com/users/scitran","html_url":"https://github.com/scitran","followers_url":"https://api.github.com/users/scitran/followers","following_url":"https://api.github.com/users/scitran/following{/other_user}","gists_url":"https://api.github.com/users/scitran/gists{/gist_id}","starred_url":"https://api.github.com/users/scitran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scitran/subscriptions","organizations_url":"https://api.github.com/users/scitran/orgs","repos_url":"https://api.github.com/users/scitran/repos","events_url":"https://api.github.com/users/scitran/events{/privacy}","received_events_url":"https://api.github.com/users/scitran/received_events","type":"Organization","site_admin":false},"repo":{"id":16557832,"name":"core","full_name":"scitran/core","owner":{"login":"scitran","id":7379762,"avatar_url":"https://avatars.githubusercontent.com/u/7379762?v=3","gravatar_id":"","url":"https://api.github.com/users/scitran","html_url":"https://github.com/scitran","followers_url":"https://api.github.com/users/scitran/followers","following_url":"https://api.github.com/users/scitran/following{/other_user}","gists_url":"https://api.github.com/users/scitran/gists{/gist_id}","starred_url":"https://api.github.com/users/scitran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scitran/subscriptions","organizations_url":"https://api.github.com/users/scitran/orgs","repos_url":"https://api.github.com/users/scitran/repos","events_url":"https://api.github.com/users/scitran/events{/privacy}","received_events_url":"https://api.github.com/users/scitran/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scitran/core","description":"RESTful API","fork":false,"url":"https://api.github.com/repos/scitran/core","forks_url":"https://api.github.com/repos/scitran/core/forks","keys_url":"https://api.github.com/repos/scitran/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scitran/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scitran/core/teams","hooks_url":"https://api.github.com/repos/scitran/core/hooks","issue_events_url":"https://api.github.com/repos/scitran/core/issues/events{/number}","events_url":"https://api.github.com/repos/scitran/core/events","assignees_url":"https://api.github.com/repos/scitran/core/assignees{/user}","branches_url":"https://api.github.com/repos/scitran/core/branches{/branch}","tags_url":"https://api.github.com/repos/scitran/core/tags","blobs_url":"https://api.github.com/repos/scitran/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scitran/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scitran/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/scitran/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scitran/core/statuses/{sha}","languages_url":"https://api.github.com/repos/scitran/core/languages","stargazers_url":"https://api.github.com/repos/scitran/core/stargazers","contributors_url":"https://api.github.com/repos/scitran/core/contributors","subscribers_url":"https://api.github.com/repos/scitran/core/subscribers","subscription_url":"https://api.github.com/repos/scitran/core/subscription","commits_url":"https://api.github.com/repos/scitran/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/scitran/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/scitran/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/scitran/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/scitran/core/contents/{+path}","compare_url":"https://api.github.com/repos/scitran/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scitran/core/merges","archive_url":"https://api.github.com/repos/scitran/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scitran/core/downloads","issues_url":"https://api.github.com/repos/scitran/core/issues{/number}","pulls_url":"https://api.github.com/repos/scitran/core/pulls{/number}","milestones_url":"https://api.github.com/repos/scitran/core/milestones{/number}","notifications_url":"https://api.github.com/repos/scitran/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scitran/core/labels{/name}","releases_url":"https://api.github.com/repos/scitran/core/releases{/id}","deployments_url":"https://api.github.com/repos/scitran/core/deployments","created_at":"2014-02-05T20:48:50Z","updated_at":"2016-09-30T20:55:36Z","pushed_at":"2016-10-07T22:09:09Z","git_url":"git://github.com/scitran/core.git","ssh_url":"git@github.com:scitran/core.git","clone_url":"https://github.com/scitran/core.git","svn_url":"https://github.com/scitran/core","homepage":"https://scitran.github.io","size":5256,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":76,"forks":6,"open_issues":76,"watchers":9,"default_branch":"master"}},"base":{"label":"scitran:master","ref":"master","sha":"22fc1954688b556acf5da5c96a7361a853ab0769","user":{"login":"scitran","id":7379762,"avatar_url":"https://avatars.githubusercontent.com/u/7379762?v=3","gravatar_id":"","url":"https://api.github.com/users/scitran","html_url":"https://github.com/scitran","followers_url":"https://api.github.com/users/scitran/followers","following_url":"https://api.github.com/users/scitran/following{/other_user}","gists_url":"https://api.github.com/users/scitran/gists{/gist_id}","starred_url":"https://api.github.com/users/scitran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scitran/subscriptions","organizations_url":"https://api.github.com/users/scitran/orgs","repos_url":"https://api.github.com/users/scitran/repos","events_url":"https://api.github.com/users/scitran/events{/privacy}","received_events_url":"https://api.github.com/users/scitran/received_events","type":"Organization","site_admin":false},"repo":{"id":16557832,"name":"core","full_name":"scitran/core","owner":{"login":"scitran","id":7379762,"avatar_url":"https://avatars.githubusercontent.com/u/7379762?v=3","gravatar_id":"","url":"https://api.github.com/users/scitran","html_url":"https://github.com/scitran","followers_url":"https://api.github.com/users/scitran/followers","following_url":"https://api.github.com/users/scitran/following{/other_user}","gists_url":"https://api.github.com/users/scitran/gists{/gist_id}","starred_url":"https://api.github.com/users/scitran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scitran/subscriptions","organizations_url":"https://api.github.com/users/scitran/orgs","repos_url":"https://api.github.com/users/scitran/repos","events_url":"https://api.github.com/users/scitran/events{/privacy}","received_events_url":"https://api.github.com/users/scitran/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/scitran/core","description":"RESTful API","fork":false,"url":"https://api.github.com/repos/scitran/core","forks_url":"https://api.github.com/repos/scitran/core/forks","keys_url":"https://api.github.com/repos/scitran/core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scitran/core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scitran/core/teams","hooks_url":"https://api.github.com/repos/scitran/core/hooks","issue_events_url":"https://api.github.com/repos/scitran/core/issues/events{/number}","events_url":"https://api.github.com/repos/scitran/core/events","assignees_url":"https://api.github.com/repos/scitran/core/assignees{/user}","branches_url":"https://api.github.com/repos/scitran/core/branches{/branch}","tags_url":"https://api.github.com/repos/scitran/core/tags","blobs_url":"https://api.github.com/repos/scitran/core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scitran/core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scitran/core/git/refs{/sha}","trees_url":"https://api.github.com/repos/scitran/core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scitran/core/statuses/{sha}","languages_url":"https://api.github.com/repos/scitran/core/languages","stargazers_url":"https://api.github.com/repos/scitran/core/stargazers","contributors_url":"https://api.github.com/repos/scitran/core/contributors","subscribers_url":"https://api.github.com/repos/scitran/core/subscribers","subscription_url":"https://api.github.com/repos/scitran/core/subscription","commits_url":"https://api.github.com/repos/scitran/core/commits{/sha}","git_commits_url":"https://api.github.com/repos/scitran/core/git/commits{/sha}","comments_url":"https://api.github.com/repos/scitran/core/comments{/number}","issue_comment_url":"https://api.github.com/repos/scitran/core/issues/comments{/number}","contents_url":"https://api.github.com/repos/scitran/core/contents/{+path}","compare_url":"https://api.github.com/repos/scitran/core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scitran/core/merges","archive_url":"https://api.github.com/repos/scitran/core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scitran/core/downloads","issues_url":"https://api.github.com/repos/scitran/core/issues{/number}","pulls_url":"https://api.github.com/repos/scitran/core/pulls{/number}","milestones_url":"https://api.github.com/repos/scitran/core/milestones{/number}","notifications_url":"https://api.github.com/repos/scitran/core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scitran/core/labels{/name}","releases_url":"https://api.github.com/repos/scitran/core/releases{/id}","deployments_url":"https://api.github.com/repos/scitran/core/deployments","created_at":"2014-02-05T20:48:50Z","updated_at":"2016-09-30T20:55:36Z","pushed_at":"2016-10-07T22:09:09Z","git_url":"git://github.com/scitran/core.git","ssh_url":"git@github.com:scitran/core.git","clone_url":"https://github.com/scitran/core.git","svn_url":"https://github.com/scitran/core","homepage":"https://scitran.github.io","size":5256,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6,"mirror_url":null,"open_issues_count":76,"forks":6,"open_issues":76,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scitran/core/pulls/530"},"html":{"href":"https://github.com/scitran/core/pull/530"},"issue":{"href":"https://api.github.com/repos/scitran/core/issues/530"},"comments":{"href":"https://api.github.com/repos/scitran/core/issues/530/comments"},"review_comments":{"href":"https://api.github.com/repos/scitran/core/pulls/530/comments"},"review_comment":{"href":"https://api.github.com/repos/scitran/core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scitran/core/pulls/530/commits"},"statuses":{"href":"https://api.github.com/repos/scitran/core/statuses/ae68789b48a86e860772488c9abb780ab0d6dfc8"}}}}
{"actor":{"display_login":"nagem"}}