{"action":"created","comment":{"url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments/231210762","pull_request_review_id":172128578,"id":231210762,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzMTIxMDc2Mg==","diff_hunk":"@@ -335,28 +360,37 @@ func (projectRef *ProjectRef) Upsert() error {\n \t\t\tProjectRefIdentifierKey: projectRef.Identifier,\n \t\t},\n \t\tbson.M{\n-\t\t\t\"$set\": bson.M{\n-\t\t\t\tProjectRefRepoKindKey:           projectRef.RepoKind,\n-\t\t\t\tProjectRefEnabledKey:            projectRef.Enabled,\n-\t\t\t\tProjectRefPrivateKey:            projectRef.Private,\n-\t\t\t\tProjectRefBatchTimeKey:          projectRef.BatchTime,\n-\t\t\t\tProjectRefOwnerKey:              projectRef.Owner,\n-\t\t\t\tProjectRefRepoKey:               projectRef.Repo,\n-\t\t\t\tProjectRefBranchKey:             projectRef.Branch,\n-\t\t\t\tProjectRefDisplayNameKey:        projectRef.DisplayName,\n-\t\t\t\tProjectRefDeactivatePreviousKey: projectRef.DeactivatePrevious,\n-\t\t\t\tProjectRefTrackedKey:            projectRef.Tracked,\n-\t\t\t\tProjectRefRemotePathKey:         projectRef.RemotePath,\n-\t\t\t\tProjectRefTrackedKey:            projectRef.Tracked,\n-\t\t\t\tProjectRefLocalConfig:           projectRef.LocalConfig,\n-\t\t\t\tProjectRefRepotrackerError:      projectRef.RepotrackerError,\n-\t\t\t\tProjectRefAdminsKey:             projectRef.Admins,\n-\t\t\t\tprojectRefTracksPushEventsKey:   projectRef.TracksPushEvents,\n-\t\t\t\tprojectRefPRTestingEnabledKey:   projectRef.PRTestingEnabled,\n-\t\t\t\tprojectRefPatchingDisabledKey:   projectRef.PatchingDisabled,\n-\t\t\t\tprojectRefNotifyOnFailureKey:    projectRef.NotifyOnBuildFailure,\n-\t\t\t\tprojectRefTriggersKey:           projectRef.Triggers,\n-\t\t\t},\n+\t\t\t\"$set\": projectRef.AsBsonM(),\n+\t\t},\n+\t)\n+\treturn err\n+}\n+\n+// Similar to ProjectRef.Upsert but uses Update method\n+// Also it only updates field specified in keys array,\n+// regardless of projectRef instance\n+func (projectRef *ProjectRef) Update(keys *[]string) error {","path":"model/project_ref.go","position":67,"original_position":67,"commit_id":"d5656b672d76cdde99de61af2e8d9cdbba029c54","original_commit_id":"d5656b672d76cdde99de61af2e8d9cdbba029c54","user":{"login":"tychoish","id":17534,"node_id":"MDQ6VXNlcjE3NTM0","avatar_url":"https://avatars1.githubusercontent.com/u/17534?v=4","gravatar_id":"","url":"https://api.github.com/users/tychoish","html_url":"https://github.com/tychoish","followers_url":"https://api.github.com/users/tychoish/followers","following_url":"https://api.github.com/users/tychoish/following{/other_user}","gists_url":"https://api.github.com/users/tychoish/gists{/gist_id}","starred_url":"https://api.github.com/users/tychoish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tychoish/subscriptions","organizations_url":"https://api.github.com/users/tychoish/orgs","repos_url":"https://api.github.com/users/tychoish/repos","events_url":"https://api.github.com/users/tychoish/events{/privacy}","received_events_url":"https://api.github.com/users/tychoish/received_events","type":"User","site_admin":false},"body":"this shouldn't be a pointer to a slice. ","created_at":"2018-11-06T17:08:03Z","updated_at":"2018-11-06T17:13:49Z","html_url":"https://github.com/evergreen-ci/evergreen/pull/1748#discussion_r231210762","pull_request_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1748","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments/231210762"},"html":{"href":"https://github.com/evergreen-ci/evergreen/pull/1748#discussion_r231210762"},"pull_request":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1748"}}},"pull_request":{"url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1748","id":228707331,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI4NzA3MzMx","html_url":"https://github.com/evergreen-ci/evergreen/pull/1748","diff_url":"https://github.com/evergreen-ci/evergreen/pull/1748.diff","patch_url":"https://github.com/evergreen-ci/evergreen/pull/1748.patch","issue_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1748","number":1748,"state":"open","locked":false,"title":"EVG-1730, EVG-1731 (feat) RESTv2 PATCH/PUT /projects/[project_id]","user":{"login":"unrealsolver","id":1101771,"node_id":"MDQ6VXNlcjExMDE3NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1101771?v=4","gravatar_id":"","url":"https://api.github.com/users/unrealsolver","html_url":"https://github.com/unrealsolver","followers_url":"https://api.github.com/users/unrealsolver/followers","following_url":"https://api.github.com/users/unrealsolver/following{/other_user}","gists_url":"https://api.github.com/users/unrealsolver/gists{/gist_id}","starred_url":"https://api.github.com/users/unrealsolver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unrealsolver/subscriptions","organizations_url":"https://api.github.com/users/unrealsolver/orgs","repos_url":"https://api.github.com/users/unrealsolver/repos","events_url":"https://api.github.com/users/unrealsolver/events{/privacy}","received_events_url":"https://api.github.com/users/unrealsolver/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-06T14:19:50Z","updated_at":"2018-11-06T17:13:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc65d41991bdcda9ef4fb1f64370293cdeacf736","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1748/commits","review_comments_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1748/comments","review_comment_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1748/comments","statuses_url":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/d5656b672d76cdde99de61af2e8d9cdbba029c54","head":{"label":"unrealsolver:EVG-1730","ref":"EVG-1730","sha":"d5656b672d76cdde99de61af2e8d9cdbba029c54","user":{"login":"unrealsolver","id":1101771,"node_id":"MDQ6VXNlcjExMDE3NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1101771?v=4","gravatar_id":"","url":"https://api.github.com/users/unrealsolver","html_url":"https://github.com/unrealsolver","followers_url":"https://api.github.com/users/unrealsolver/followers","following_url":"https://api.github.com/users/unrealsolver/following{/other_user}","gists_url":"https://api.github.com/users/unrealsolver/gists{/gist_id}","starred_url":"https://api.github.com/users/unrealsolver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unrealsolver/subscriptions","organizations_url":"https://api.github.com/users/unrealsolver/orgs","repos_url":"https://api.github.com/users/unrealsolver/repos","events_url":"https://api.github.com/users/unrealsolver/events{/privacy}","received_events_url":"https://api.github.com/users/unrealsolver/received_events","type":"User","site_admin":false},"repo":{"id":114141991,"node_id":"MDEwOlJlcG9zaXRvcnkxMTQxNDE5OTE=","name":"evergreen","full_name":"unrealsolver/evergreen","private":false,"owner":{"login":"unrealsolver","id":1101771,"node_id":"MDQ6VXNlcjExMDE3NzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1101771?v=4","gravatar_id":"","url":"https://api.github.com/users/unrealsolver","html_url":"https://github.com/unrealsolver","followers_url":"https://api.github.com/users/unrealsolver/followers","following_url":"https://api.github.com/users/unrealsolver/following{/other_user}","gists_url":"https://api.github.com/users/unrealsolver/gists{/gist_id}","starred_url":"https://api.github.com/users/unrealsolver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unrealsolver/subscriptions","organizations_url":"https://api.github.com/users/unrealsolver/orgs","repos_url":"https://api.github.com/users/unrealsolver/repos","events_url":"https://api.github.com/users/unrealsolver/events{/privacy}","received_events_url":"https://api.github.com/users/unrealsolver/received_events","type":"User","site_admin":false},"html_url":"https://github.com/unrealsolver/evergreen","description":"A Distributed Continuous Integration System from MongoDB","fork":true,"url":"https://api.github.com/repos/unrealsolver/evergreen","forks_url":"https://api.github.com/repos/unrealsolver/evergreen/forks","keys_url":"https://api.github.com/repos/unrealsolver/evergreen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unrealsolver/evergreen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unrealsolver/evergreen/teams","hooks_url":"https://api.github.com/repos/unrealsolver/evergreen/hooks","issue_events_url":"https://api.github.com/repos/unrealsolver/evergreen/issues/events{/number}","events_url":"https://api.github.com/repos/unrealsolver/evergreen/events","assignees_url":"https://api.github.com/repos/unrealsolver/evergreen/assignees{/user}","branches_url":"https://api.github.com/repos/unrealsolver/evergreen/branches{/branch}","tags_url":"https://api.github.com/repos/unrealsolver/evergreen/tags","blobs_url":"https://api.github.com/repos/unrealsolver/evergreen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unrealsolver/evergreen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unrealsolver/evergreen/git/refs{/sha}","trees_url":"https://api.github.com/repos/unrealsolver/evergreen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unrealsolver/evergreen/statuses/{sha}","languages_url":"https://api.github.com/repos/unrealsolver/evergreen/languages","stargazers_url":"https://api.github.com/repos/unrealsolver/evergreen/stargazers","contributors_url":"https://api.github.com/repos/unrealsolver/evergreen/contributors","subscribers_url":"https://api.github.com/repos/unrealsolver/evergreen/subscribers","subscription_url":"https://api.github.com/repos/unrealsolver/evergreen/subscription","commits_url":"https://api.github.com/repos/unrealsolver/evergreen/commits{/sha}","git_commits_url":"https://api.github.com/repos/unrealsolver/evergreen/git/commits{/sha}","comments_url":"https://api.github.com/repos/unrealsolver/evergreen/comments{/number}","issue_comment_url":"https://api.github.com/repos/unrealsolver/evergreen/issues/comments{/number}","contents_url":"https://api.github.com/repos/unrealsolver/evergreen/contents/{+path}","compare_url":"https://api.github.com/repos/unrealsolver/evergreen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unrealsolver/evergreen/merges","archive_url":"https://api.github.com/repos/unrealsolver/evergreen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unrealsolver/evergreen/downloads","issues_url":"https://api.github.com/repos/unrealsolver/evergreen/issues{/number}","pulls_url":"https://api.github.com/repos/unrealsolver/evergreen/pulls{/number}","milestones_url":"https://api.github.com/repos/unrealsolver/evergreen/milestones{/number}","notifications_url":"https://api.github.com/repos/unrealsolver/evergreen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unrealsolver/evergreen/labels{/name}","releases_url":"https://api.github.com/repos/unrealsolver/evergreen/releases{/id}","deployments_url":"https://api.github.com/repos/unrealsolver/evergreen/deployments","created_at":"2017-12-13T16:11:53Z","updated_at":"2018-09-03T11:57:57Z","pushed_at":"2018-11-06T15:09:13Z","git_url":"git://github.com/unrealsolver/evergreen.git","ssh_url":"git@github.com:unrealsolver/evergreen.git","clone_url":"https://github.com/unrealsolver/evergreen.git","svn_url":"https://github.com/unrealsolver/evergreen","homepage":"http://evergreen.mongodb.com","size":63913,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"evergreen-ci:master","ref":"master","sha":"a9ba09267dcae19ead5f43c27f019343227e2d10","user":{"login":"evergreen-ci","id":10089490,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDg5NDkw","avatar_url":"https://avatars3.githubusercontent.com/u/10089490?v=4","gravatar_id":"","url":"https://api.github.com/users/evergreen-ci","html_url":"https://github.com/evergreen-ci","followers_url":"https://api.github.com/users/evergreen-ci/followers","following_url":"https://api.github.com/users/evergreen-ci/following{/other_user}","gists_url":"https://api.github.com/users/evergreen-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/evergreen-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evergreen-ci/subscriptions","organizations_url":"https://api.github.com/users/evergreen-ci/orgs","repos_url":"https://api.github.com/users/evergreen-ci/repos","events_url":"https://api.github.com/users/evergreen-ci/events{/privacy}","received_events_url":"https://api.github.com/users/evergreen-ci/received_events","type":"Organization","site_admin":false},"repo":{"id":36385798,"node_id":"MDEwOlJlcG9zaXRvcnkzNjM4NTc5OA==","name":"evergreen","full_name":"evergreen-ci/evergreen","private":false,"owner":{"login":"evergreen-ci","id":10089490,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEwMDg5NDkw","avatar_url":"https://avatars3.githubusercontent.com/u/10089490?v=4","gravatar_id":"","url":"https://api.github.com/users/evergreen-ci","html_url":"https://github.com/evergreen-ci","followers_url":"https://api.github.com/users/evergreen-ci/followers","following_url":"https://api.github.com/users/evergreen-ci/following{/other_user}","gists_url":"https://api.github.com/users/evergreen-ci/gists{/gist_id}","starred_url":"https://api.github.com/users/evergreen-ci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evergreen-ci/subscriptions","organizations_url":"https://api.github.com/users/evergreen-ci/orgs","repos_url":"https://api.github.com/users/evergreen-ci/repos","events_url":"https://api.github.com/users/evergreen-ci/events{/privacy}","received_events_url":"https://api.github.com/users/evergreen-ci/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/evergreen-ci/evergreen","description":"A Distributed Continuous Integration System from MongoDB","fork":false,"url":"https://api.github.com/repos/evergreen-ci/evergreen","forks_url":"https://api.github.com/repos/evergreen-ci/evergreen/forks","keys_url":"https://api.github.com/repos/evergreen-ci/evergreen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evergreen-ci/evergreen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evergreen-ci/evergreen/teams","hooks_url":"https://api.github.com/repos/evergreen-ci/evergreen/hooks","issue_events_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/events{/number}","events_url":"https://api.github.com/repos/evergreen-ci/evergreen/events","assignees_url":"https://api.github.com/repos/evergreen-ci/evergreen/assignees{/user}","branches_url":"https://api.github.com/repos/evergreen-ci/evergreen/branches{/branch}","tags_url":"https://api.github.com/repos/evergreen-ci/evergreen/tags","blobs_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/refs{/sha}","trees_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/{sha}","languages_url":"https://api.github.com/repos/evergreen-ci/evergreen/languages","stargazers_url":"https://api.github.com/repos/evergreen-ci/evergreen/stargazers","contributors_url":"https://api.github.com/repos/evergreen-ci/evergreen/contributors","subscribers_url":"https://api.github.com/repos/evergreen-ci/evergreen/subscribers","subscription_url":"https://api.github.com/repos/evergreen-ci/evergreen/subscription","commits_url":"https://api.github.com/repos/evergreen-ci/evergreen/commits{/sha}","git_commits_url":"https://api.github.com/repos/evergreen-ci/evergreen/git/commits{/sha}","comments_url":"https://api.github.com/repos/evergreen-ci/evergreen/comments{/number}","issue_comment_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues/comments{/number}","contents_url":"https://api.github.com/repos/evergreen-ci/evergreen/contents/{+path}","compare_url":"https://api.github.com/repos/evergreen-ci/evergreen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evergreen-ci/evergreen/merges","archive_url":"https://api.github.com/repos/evergreen-ci/evergreen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evergreen-ci/evergreen/downloads","issues_url":"https://api.github.com/repos/evergreen-ci/evergreen/issues{/number}","pulls_url":"https://api.github.com/repos/evergreen-ci/evergreen/pulls{/number}","milestones_url":"https://api.github.com/repos/evergreen-ci/evergreen/milestones{/number}","notifications_url":"https://api.github.com/repos/evergreen-ci/evergreen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evergreen-ci/evergreen/labels{/name}","releases_url":"https://api.github.com/repos/evergreen-ci/evergreen/releases{/id}","deployments_url":"https://api.github.com/repos/evergreen-ci/evergreen/deployments","created_at":"2015-05-27T18:03:09Z","updated_at":"2018-11-06T15:06:32Z","pushed_at":"2018-11-06T17:05:56Z","git_url":"git://github.com/evergreen-ci/evergreen.git","ssh_url":"git@github.com:evergreen-ci/evergreen.git","clone_url":"https://github.com/evergreen-ci/evergreen.git","svn_url":"https://github.com/evergreen-ci/evergreen","homepage":"http://evergreen.mongodb.com","size":63822,"stargazers_count":179,"watchers_count":179,"language":"Go","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":56,"open_issues":9,"watchers":179,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1748"},"html":{"href":"https://github.com/evergreen-ci/evergreen/pull/1748"},"issue":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1748"},"comments":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/issues/1748/comments"},"review_comments":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1748/comments"},"review_comment":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/pulls/1748/commits"},"statuses":{"href":"https://api.github.com/repos/evergreen-ci/evergreen/statuses/d5656b672d76cdde99de61af2e8d9cdbba029c54"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tychoish"}}