{"action":"opened","number":73,"pull_request":{"url":"https://api.github.com/repos/cds-snc/pulse/pulls/73","id":189774368,"html_url":"https://github.com/cds-snc/pulse/pull/73","diff_url":"https://github.com/cds-snc/pulse/pull/73.diff","patch_url":"https://github.com/cds-snc/pulse/pull/73.patch","issue_url":"https://api.github.com/repos/cds-snc/pulse/issues/73","number":73,"state":"open","locked":false,"title":"ignore _id field","user":{"login":"buckley-w-david","id":1952571,"avatar_url":"https://avatars0.githubusercontent.com/u/1952571?v=4","gravatar_id":"","url":"https://api.github.com/users/buckley-w-david","html_url":"https://github.com/buckley-w-david","followers_url":"https://api.github.com/users/buckley-w-david/followers","following_url":"https://api.github.com/users/buckley-w-david/following{/other_user}","gists_url":"https://api.github.com/users/buckley-w-david/gists{/gist_id}","starred_url":"https://api.github.com/users/buckley-w-david/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buckley-w-david/subscriptions","organizations_url":"https://api.github.com/users/buckley-w-david/orgs","repos_url":"https://api.github.com/users/buckley-w-david/repos","events_url":"https://api.github.com/users/buckley-w-david/events{/privacy}","received_events_url":"https://api.github.com/users/buckley-w-david/received_events","type":"User","site_admin":false},"body":"With the switch to pymongo we have to contend with an annoying feature on it's insert method, the fact that it mutates the input dictionary to contain an `_id` field. The only ways of preventing this behavior is to already have an `_id` field on the object, or to insert a copy (which would be quite slow).\r\n\r\nI would prefer not to have to modify the client code to reflect the switch to mongo, but at least temporarily this is the best solution to the problems this behavior causes.","created_at":"2018-05-22T19:55:32Z","updated_at":"2018-05-22T19:55:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cds-snc/pulse/pulls/73/commits","review_comments_url":"https://api.github.com/repos/cds-snc/pulse/pulls/73/comments","review_comment_url":"https://api.github.com/repos/cds-snc/pulse/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cds-snc/pulse/issues/73/comments","statuses_url":"https://api.github.com/repos/cds-snc/pulse/statuses/5e6909f8a4d60a891f9becd970a1576a7e961588","head":{"label":"cds-snc:ignore_id","ref":"ignore_id","sha":"5e6909f8a4d60a891f9becd970a1576a7e961588","user":{"login":"cds-snc","id":30166251,"avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"repo":{"id":125949697,"name":"pulse","full_name":"cds-snc/pulse","owner":{"login":"cds-snc","id":30166251,"avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cds-snc/pulse","description":"Check whether a Government of Canada domain is adhering to best security practices.","fork":true,"url":"https://api.github.com/repos/cds-snc/pulse","forks_url":"https://api.github.com/repos/cds-snc/pulse/forks","keys_url":"https://api.github.com/repos/cds-snc/pulse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cds-snc/pulse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cds-snc/pulse/teams","hooks_url":"https://api.github.com/repos/cds-snc/pulse/hooks","issue_events_url":"https://api.github.com/repos/cds-snc/pulse/issues/events{/number}","events_url":"https://api.github.com/repos/cds-snc/pulse/events","assignees_url":"https://api.github.com/repos/cds-snc/pulse/assignees{/user}","branches_url":"https://api.github.com/repos/cds-snc/pulse/branches{/branch}","tags_url":"https://api.github.com/repos/cds-snc/pulse/tags","blobs_url":"https://api.github.com/repos/cds-snc/pulse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cds-snc/pulse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cds-snc/pulse/git/refs{/sha}","trees_url":"https://api.github.com/repos/cds-snc/pulse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cds-snc/pulse/statuses/{sha}","languages_url":"https://api.github.com/repos/cds-snc/pulse/languages","stargazers_url":"https://api.github.com/repos/cds-snc/pulse/stargazers","contributors_url":"https://api.github.com/repos/cds-snc/pulse/contributors","subscribers_url":"https://api.github.com/repos/cds-snc/pulse/subscribers","subscription_url":"https://api.github.com/repos/cds-snc/pulse/subscription","commits_url":"https://api.github.com/repos/cds-snc/pulse/commits{/sha}","git_commits_url":"https://api.github.com/repos/cds-snc/pulse/git/commits{/sha}","comments_url":"https://api.github.com/repos/cds-snc/pulse/comments{/number}","issue_comment_url":"https://api.github.com/repos/cds-snc/pulse/issues/comments{/number}","contents_url":"https://api.github.com/repos/cds-snc/pulse/contents/{+path}","compare_url":"https://api.github.com/repos/cds-snc/pulse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cds-snc/pulse/merges","archive_url":"https://api.github.com/repos/cds-snc/pulse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cds-snc/pulse/downloads","issues_url":"https://api.github.com/repos/cds-snc/pulse/issues{/number}","pulls_url":"https://api.github.com/repos/cds-snc/pulse/pulls{/number}","milestones_url":"https://api.github.com/repos/cds-snc/pulse/milestones{/number}","notifications_url":"https://api.github.com/repos/cds-snc/pulse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cds-snc/pulse/labels{/name}","releases_url":"https://api.github.com/repos/cds-snc/pulse/releases{/id}","deployments_url":"https://api.github.com/repos/cds-snc/pulse/deployments","created_at":"2018-03-20T02:33:52Z","updated_at":"2018-05-22T15:57:57Z","pushed_at":"2018-05-22T19:44:07Z","git_url":"git://github.com/cds-snc/pulse.git","ssh_url":"git@github.com:cds-snc/pulse.git","clone_url":"https://github.com/cds-snc/pulse.git","svn_url":"https://github.com/cds-snc/pulse","homepage":"","size":16759,"stargazers_count":3,"watchers_count":3,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":16,"watchers":3,"default_branch":"master"}},"base":{"label":"cds-snc:master","ref":"master","sha":"22d96b3eb68ac24b9aa48be61eeff53a2aaa3db0","user":{"login":"cds-snc","id":30166251,"avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"repo":{"id":125949697,"name":"pulse","full_name":"cds-snc/pulse","owner":{"login":"cds-snc","id":30166251,"avatar_url":"https://avatars1.githubusercontent.com/u/30166251?v=4","gravatar_id":"","url":"https://api.github.com/users/cds-snc","html_url":"https://github.com/cds-snc","followers_url":"https://api.github.com/users/cds-snc/followers","following_url":"https://api.github.com/users/cds-snc/following{/other_user}","gists_url":"https://api.github.com/users/cds-snc/gists{/gist_id}","starred_url":"https://api.github.com/users/cds-snc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cds-snc/subscriptions","organizations_url":"https://api.github.com/users/cds-snc/orgs","repos_url":"https://api.github.com/users/cds-snc/repos","events_url":"https://api.github.com/users/cds-snc/events{/privacy}","received_events_url":"https://api.github.com/users/cds-snc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cds-snc/pulse","description":"Check whether a Government of Canada domain is adhering to best security practices.","fork":true,"url":"https://api.github.com/repos/cds-snc/pulse","forks_url":"https://api.github.com/repos/cds-snc/pulse/forks","keys_url":"https://api.github.com/repos/cds-snc/pulse/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cds-snc/pulse/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cds-snc/pulse/teams","hooks_url":"https://api.github.com/repos/cds-snc/pulse/hooks","issue_events_url":"https://api.github.com/repos/cds-snc/pulse/issues/events{/number}","events_url":"https://api.github.com/repos/cds-snc/pulse/events","assignees_url":"https://api.github.com/repos/cds-snc/pulse/assignees{/user}","branches_url":"https://api.github.com/repos/cds-snc/pulse/branches{/branch}","tags_url":"https://api.github.com/repos/cds-snc/pulse/tags","blobs_url":"https://api.github.com/repos/cds-snc/pulse/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cds-snc/pulse/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cds-snc/pulse/git/refs{/sha}","trees_url":"https://api.github.com/repos/cds-snc/pulse/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cds-snc/pulse/statuses/{sha}","languages_url":"https://api.github.com/repos/cds-snc/pulse/languages","stargazers_url":"https://api.github.com/repos/cds-snc/pulse/stargazers","contributors_url":"https://api.github.com/repos/cds-snc/pulse/contributors","subscribers_url":"https://api.github.com/repos/cds-snc/pulse/subscribers","subscription_url":"https://api.github.com/repos/cds-snc/pulse/subscription","commits_url":"https://api.github.com/repos/cds-snc/pulse/commits{/sha}","git_commits_url":"https://api.github.com/repos/cds-snc/pulse/git/commits{/sha}","comments_url":"https://api.github.com/repos/cds-snc/pulse/comments{/number}","issue_comment_url":"https://api.github.com/repos/cds-snc/pulse/issues/comments{/number}","contents_url":"https://api.github.com/repos/cds-snc/pulse/contents/{+path}","compare_url":"https://api.github.com/repos/cds-snc/pulse/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cds-snc/pulse/merges","archive_url":"https://api.github.com/repos/cds-snc/pulse/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cds-snc/pulse/downloads","issues_url":"https://api.github.com/repos/cds-snc/pulse/issues{/number}","pulls_url":"https://api.github.com/repos/cds-snc/pulse/pulls{/number}","milestones_url":"https://api.github.com/repos/cds-snc/pulse/milestones{/number}","notifications_url":"https://api.github.com/repos/cds-snc/pulse/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cds-snc/pulse/labels{/name}","releases_url":"https://api.github.com/repos/cds-snc/pulse/releases{/id}","deployments_url":"https://api.github.com/repos/cds-snc/pulse/deployments","created_at":"2018-03-20T02:33:52Z","updated_at":"2018-05-22T15:57:57Z","pushed_at":"2018-05-22T19:44:07Z","git_url":"git://github.com/cds-snc/pulse.git","ssh_url":"git@github.com:cds-snc/pulse.git","clone_url":"https://github.com/cds-snc/pulse.git","svn_url":"https://github.com/cds-snc/pulse","homepage":"","size":16759,"stargazers_count":3,"watchers_count":3,"language":"CSS","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":16,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":16,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cds-snc/pulse/pulls/73"},"html":{"href":"https://github.com/cds-snc/pulse/pull/73"},"issue":{"href":"https://api.github.com/repos/cds-snc/pulse/issues/73"},"comments":{"href":"https://api.github.com/repos/cds-snc/pulse/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/cds-snc/pulse/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/cds-snc/pulse/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cds-snc/pulse/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/cds-snc/pulse/statuses/5e6909f8a4d60a891f9becd970a1576a7e961588"}},"author_association":"NONE","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":2,"deletions":2,"changed_files":1}}
{"actor":{"display_login":"buckley-w-david"}}