{"action":"created","comment":{"url":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/comments/176131619","pull_request_review_id":105781193,"id":176131619,"diff_hunk":"@@ -87,133 +80,116 @@ def update_activity_records(self, upd_filter, upd_data):\n             # return an instance of UpdateResult(raw_result, acknowledged)\n             update_ret = self.mt_coll.update_one(upd_filter,\n                                                  upd_op, upsert=True)\n-        except BulkWriteError as bwe:\n-            # pprint(bwe.details['writeErrors'])\n-            panic = filter(lambda x: x['code'] != 11000,\n-                           bwe.details['writeErrors'])\n-            if len(panic) > 0:\n-                print \"really panic\"\n-                raise\n-        else:\n-            pass\n-            # pprint(update_ret.raw_result)\n-            # if update_ret.upserted_id:\n-            # print(update_ret.upserted_id)\n+        except WriteError as we:\n+            pprint(we.details['writeErrors'])\n+            raise","path":"lib/kb_Metrics/metricsDBs.py","position":75,"original_position":75,"commit_id":"4cb91c1e8159384e22866518ea428e7db657c556","original_commit_id":"4cb91c1e8159384e22866518ea428e7db657c556","user":{"login":"qzzhang","id":19156975,"avatar_url":"https://avatars3.githubusercontent.com/u/19156975?v=4","gravatar_id":"","url":"https://api.github.com/users/qzzhang","html_url":"https://github.com/qzzhang","followers_url":"https://api.github.com/users/qzzhang/followers","following_url":"https://api.github.com/users/qzzhang/following{/other_user}","gists_url":"https://api.github.com/users/qzzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/qzzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qzzhang/subscriptions","organizations_url":"https://api.github.com/users/qzzhang/orgs","repos_url":"https://api.github.com/users/qzzhang/repos","events_url":"https://api.github.com/users/qzzhang/events{/privacy}","received_events_url":"https://api.github.com/users/qzzhang/received_events","type":"User","site_admin":false},"body":"All right.  I will add test on that.","created_at":"2018-03-21T15:44:47Z","updated_at":"2018-03-21T15:44:48Z","html_url":"https://github.com/kbaseapps/kb_Metrics/pull/9#discussion_r176131619","pull_request_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/9","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/comments/176131619"},"html":{"href":"https://github.com/kbaseapps/kb_Metrics/pull/9#discussion_r176131619"},"pull_request":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/9"}},"in_reply_to_id":176127934},"pull_request":{"url":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/9","id":173007760,"html_url":"https://github.com/kbaseapps/kb_Metrics/pull/9","diff_url":"https://github.com/kbaseapps/kb_Metrics/pull/9.diff","patch_url":"https://github.com/kbaseapps/kb_Metrics/pull/9.patch","issue_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/issues/9","number":9,"state":"open","locked":false,"title":"Reduced serviced data structure for appcatalog/stats","user":{"login":"qzzhang","id":19156975,"avatar_url":"https://avatars3.githubusercontent.com/u/19156975?v=4","gravatar_id":"","url":"https://api.github.com/users/qzzhang","html_url":"https://github.com/qzzhang","followers_url":"https://api.github.com/users/qzzhang/followers","following_url":"https://api.github.com/users/qzzhang/following{/other_user}","gists_url":"https://api.github.com/users/qzzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/qzzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qzzhang/subscriptions","organizations_url":"https://api.github.com/users/qzzhang/orgs","repos_url":"https://api.github.com/users/qzzhang/repos","events_url":"https://api.github.com/users/qzzhang/events{/privacy}","received_events_url":"https://api.github.com/users/qzzhang/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-05T22:39:24Z","updated_at":"2018-03-21T15:44:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"143ff7c8c6040fba66cf596e4df73ca0dc633aa8","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/9/commits","review_comments_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/9/comments","review_comment_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/issues/9/comments","statuses_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/statuses/4cb91c1e8159384e22866518ea428e7db657c556","head":{"label":"qzzhang:dev","ref":"dev","sha":"4cb91c1e8159384e22866518ea428e7db657c556","user":{"login":"qzzhang","id":19156975,"avatar_url":"https://avatars3.githubusercontent.com/u/19156975?v=4","gravatar_id":"","url":"https://api.github.com/users/qzzhang","html_url":"https://github.com/qzzhang","followers_url":"https://api.github.com/users/qzzhang/followers","following_url":"https://api.github.com/users/qzzhang/following{/other_user}","gists_url":"https://api.github.com/users/qzzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/qzzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qzzhang/subscriptions","organizations_url":"https://api.github.com/users/qzzhang/orgs","repos_url":"https://api.github.com/users/qzzhang/repos","events_url":"https://api.github.com/users/qzzhang/events{/privacy}","received_events_url":"https://api.github.com/users/qzzhang/received_events","type":"User","site_admin":false},"repo":{"id":123437177,"name":"kb_Metrics","full_name":"qzzhang/kb_Metrics","owner":{"login":"qzzhang","id":19156975,"avatar_url":"https://avatars3.githubusercontent.com/u/19156975?v=4","gravatar_id":"","url":"https://api.github.com/users/qzzhang","html_url":"https://github.com/qzzhang","followers_url":"https://api.github.com/users/qzzhang/followers","following_url":"https://api.github.com/users/qzzhang/following{/other_user}","gists_url":"https://api.github.com/users/qzzhang/gists{/gist_id}","starred_url":"https://api.github.com/users/qzzhang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qzzhang/subscriptions","organizations_url":"https://api.github.com/users/qzzhang/orgs","repos_url":"https://api.github.com/users/qzzhang/repos","events_url":"https://api.github.com/users/qzzhang/events{/privacy}","received_events_url":"https://api.github.com/users/qzzhang/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/qzzhang/kb_Metrics","description":"KBase Metrics","fork":true,"url":"https://api.github.com/repos/qzzhang/kb_Metrics","forks_url":"https://api.github.com/repos/qzzhang/kb_Metrics/forks","keys_url":"https://api.github.com/repos/qzzhang/kb_Metrics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/qzzhang/kb_Metrics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/qzzhang/kb_Metrics/teams","hooks_url":"https://api.github.com/repos/qzzhang/kb_Metrics/hooks","issue_events_url":"https://api.github.com/repos/qzzhang/kb_Metrics/issues/events{/number}","events_url":"https://api.github.com/repos/qzzhang/kb_Metrics/events","assignees_url":"https://api.github.com/repos/qzzhang/kb_Metrics/assignees{/user}","branches_url":"https://api.github.com/repos/qzzhang/kb_Metrics/branches{/branch}","tags_url":"https://api.github.com/repos/qzzhang/kb_Metrics/tags","blobs_url":"https://api.github.com/repos/qzzhang/kb_Metrics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/qzzhang/kb_Metrics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/qzzhang/kb_Metrics/git/refs{/sha}","trees_url":"https://api.github.com/repos/qzzhang/kb_Metrics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/qzzhang/kb_Metrics/statuses/{sha}","languages_url":"https://api.github.com/repos/qzzhang/kb_Metrics/languages","stargazers_url":"https://api.github.com/repos/qzzhang/kb_Metrics/stargazers","contributors_url":"https://api.github.com/repos/qzzhang/kb_Metrics/contributors","subscribers_url":"https://api.github.com/repos/qzzhang/kb_Metrics/subscribers","subscription_url":"https://api.github.com/repos/qzzhang/kb_Metrics/subscription","commits_url":"https://api.github.com/repos/qzzhang/kb_Metrics/commits{/sha}","git_commits_url":"https://api.github.com/repos/qzzhang/kb_Metrics/git/commits{/sha}","comments_url":"https://api.github.com/repos/qzzhang/kb_Metrics/comments{/number}","issue_comment_url":"https://api.github.com/repos/qzzhang/kb_Metrics/issues/comments{/number}","contents_url":"https://api.github.com/repos/qzzhang/kb_Metrics/contents/{+path}","compare_url":"https://api.github.com/repos/qzzhang/kb_Metrics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/qzzhang/kb_Metrics/merges","archive_url":"https://api.github.com/repos/qzzhang/kb_Metrics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/qzzhang/kb_Metrics/downloads","issues_url":"https://api.github.com/repos/qzzhang/kb_Metrics/issues{/number}","pulls_url":"https://api.github.com/repos/qzzhang/kb_Metrics/pulls{/number}","milestones_url":"https://api.github.com/repos/qzzhang/kb_Metrics/milestones{/number}","notifications_url":"https://api.github.com/repos/qzzhang/kb_Metrics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/qzzhang/kb_Metrics/labels{/name}","releases_url":"https://api.github.com/repos/qzzhang/kb_Metrics/releases{/id}","deployments_url":"https://api.github.com/repos/qzzhang/kb_Metrics/deployments","created_at":"2018-03-01T13:16:10Z","updated_at":"2018-03-01T13:16:12Z","pushed_at":"2018-03-21T05:35:51Z","git_url":"git://github.com/qzzhang/kb_Metrics.git","ssh_url":"git@github.com:qzzhang/kb_Metrics.git","clone_url":"https://github.com/qzzhang/kb_Metrics.git","svn_url":"https://github.com/qzzhang/kb_Metrics","homepage":null,"size":490,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"kbaseapps:dev","ref":"dev","sha":"639ec66821e87e648a43348ecbe7c0e79357dd02","user":{"login":"kbaseapps","id":17482783,"avatar_url":"https://avatars0.githubusercontent.com/u/17482783?v=4","gravatar_id":"","url":"https://api.github.com/users/kbaseapps","html_url":"https://github.com/kbaseapps","followers_url":"https://api.github.com/users/kbaseapps/followers","following_url":"https://api.github.com/users/kbaseapps/following{/other_user}","gists_url":"https://api.github.com/users/kbaseapps/gists{/gist_id}","starred_url":"https://api.github.com/users/kbaseapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbaseapps/subscriptions","organizations_url":"https://api.github.com/users/kbaseapps/orgs","repos_url":"https://api.github.com/users/kbaseapps/repos","events_url":"https://api.github.com/users/kbaseapps/events{/privacy}","received_events_url":"https://api.github.com/users/kbaseapps/received_events","type":"Organization","site_admin":false},"repo":{"id":108290854,"name":"kb_Metrics","full_name":"kbaseapps/kb_Metrics","owner":{"login":"kbaseapps","id":17482783,"avatar_url":"https://avatars0.githubusercontent.com/u/17482783?v=4","gravatar_id":"","url":"https://api.github.com/users/kbaseapps","html_url":"https://github.com/kbaseapps","followers_url":"https://api.github.com/users/kbaseapps/followers","following_url":"https://api.github.com/users/kbaseapps/following{/other_user}","gists_url":"https://api.github.com/users/kbaseapps/gists{/gist_id}","starred_url":"https://api.github.com/users/kbaseapps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbaseapps/subscriptions","organizations_url":"https://api.github.com/users/kbaseapps/orgs","repos_url":"https://api.github.com/users/kbaseapps/repos","events_url":"https://api.github.com/users/kbaseapps/events{/privacy}","received_events_url":"https://api.github.com/users/kbaseapps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kbaseapps/kb_Metrics","description":"KBase Metrics","fork":false,"url":"https://api.github.com/repos/kbaseapps/kb_Metrics","forks_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/forks","keys_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/teams","hooks_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/hooks","issue_events_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/issues/events{/number}","events_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/events","assignees_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/assignees{/user}","branches_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/branches{/branch}","tags_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/tags","blobs_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/git/refs{/sha}","trees_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/statuses/{sha}","languages_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/languages","stargazers_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/stargazers","contributors_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/contributors","subscribers_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/subscribers","subscription_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/subscription","commits_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/commits{/sha}","git_commits_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/git/commits{/sha}","comments_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/comments{/number}","issue_comment_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/issues/comments{/number}","contents_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/contents/{+path}","compare_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/merges","archive_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/downloads","issues_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/issues{/number}","pulls_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls{/number}","milestones_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/milestones{/number}","notifications_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/labels{/name}","releases_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/releases{/id}","deployments_url":"https://api.github.com/repos/kbaseapps/kb_Metrics/deployments","created_at":"2017-10-25T15:42:20Z","updated_at":"2017-10-25T15:43:23Z","pushed_at":"2018-03-21T05:35:53Z","git_url":"git://github.com/kbaseapps/kb_Metrics.git","ssh_url":"git@github.com:kbaseapps/kb_Metrics.git","clone_url":"https://github.com/kbaseapps/kb_Metrics.git","svn_url":"https://github.com/kbaseapps/kb_Metrics","homepage":null,"size":346,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":2,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/9"},"html":{"href":"https://github.com/kbaseapps/kb_Metrics/pull/9"},"issue":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/issues/9"},"comments":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/kbaseapps/kb_Metrics/statuses/4cb91c1e8159384e22866518ea428e7db657c556"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"qzzhang"}}