{"action":"created","comment":{"url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/comments/239609216","pull_request_review_id":182440367,"id":239609216,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzOTYwOTIxNg==","diff_hunk":"@@ -0,0 +1,78 @@\n+package gov.usgs.wma.mlrgateway.util;\n+\n+import gov.usgs.wma.mlrgateway.GatewayReport;\n+import gov.usgs.wma.mlrgateway.SiteReport;\n+\n+import org.springframework.beans.factory.annotation.Autowired;\n+import org.springframework.stereotype.Service;\n+\n+import gov.usgs.wma.mlrgateway.StepReport;\n+import gov.usgs.wma.mlrgateway.UserSummaryReport;\n+import gov.usgs.wma.mlrgateway.controller.BaseController;\n+\n+import java.util.List;\n+import java.util.stream.Collectors;\n+import java.util.ArrayList;\n+\n+import org.apache.http.HttpStatus;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+@Service\n+public class UserSummaryReportBuilder {\n+\t\n+\tprivate Logger log = LoggerFactory.getLogger(UserSummaryReportBuilder.class);\n+\t\n+\t@Autowired\n+\tpublic UserSummaryReportBuilder(){\n+\t}\n+\n+\tpublic UserSummaryReport buildUserSummaryReport(GatewayReport report) {\n+\t\tUserSummaryReport userSummaryReport = new UserSummaryReport();\n+\t\tList<SiteReport> reportedSites = new ArrayList<>();\n+\t\t\n+\t\ttry {\n+\t\tList<SiteReport> successfulSites = report.getSites().stream()","path":"src/main/java/gov/usgs/wma/mlrgateway/util/UserSummaryReportBuilder.java","position":35,"original_position":35,"commit_id":"8f74e40e4b363105f9142c5bd0b00b66ba9886a8","original_commit_id":"8f74e40e4b363105f9142c5bd0b00b66ba9886a8","user":{"login":"zmoore-usgs","id":20842403,"node_id":"MDQ6VXNlcjIwODQyNDAz","avatar_url":"https://avatars1.githubusercontent.com/u/20842403?v=4","gravatar_id":"","url":"https://api.github.com/users/zmoore-usgs","html_url":"https://github.com/zmoore-usgs","followers_url":"https://api.github.com/users/zmoore-usgs/followers","following_url":"https://api.github.com/users/zmoore-usgs/following{/other_user}","gists_url":"https://api.github.com/users/zmoore-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/zmoore-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zmoore-usgs/subscriptions","organizations_url":"https://api.github.com/users/zmoore-usgs/orgs","repos_url":"https://api.github.com/users/zmoore-usgs/repos","events_url":"https://api.github.com/users/zmoore-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/zmoore-usgs/received_events","type":"User","site_admin":false},"body":"Indentation seems a little wonky here. I think the stuff inside the `try{...}` block should be indented one level further?","created_at":"2018-12-06T20:50:18Z","updated_at":"2018-12-06T20:56:27Z","html_url":"https://github.com/USGS-CIDA/MLR-Gateway/pull/72#discussion_r239609216","pull_request_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/72","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/comments/239609216"},"html":{"href":"https://github.com/USGS-CIDA/MLR-Gateway/pull/72#discussion_r239609216"},"pull_request":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/72","id":236563562,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NTYzNTYy","html_url":"https://github.com/USGS-CIDA/MLR-Gateway/pull/72","diff_url":"https://github.com/USGS-CIDA/MLR-Gateway/pull/72.diff","patch_url":"https://github.com/USGS-CIDA/MLR-Gateway/pull/72.patch","issue_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/issues/72","number":72,"state":"open","locked":false,"title":"Mlr 331","user":{"login":"kmschoep-usgs","id":2364610,"node_id":"MDQ6VXNlcjIzNjQ2MTA=","avatar_url":"https://avatars2.githubusercontent.com/u/2364610?v=4","gravatar_id":"","url":"https://api.github.com/users/kmschoep-usgs","html_url":"https://github.com/kmschoep-usgs","followers_url":"https://api.github.com/users/kmschoep-usgs/followers","following_url":"https://api.github.com/users/kmschoep-usgs/following{/other_user}","gists_url":"https://api.github.com/users/kmschoep-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/kmschoep-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmschoep-usgs/subscriptions","organizations_url":"https://api.github.com/users/kmschoep-usgs/orgs","repos_url":"https://api.github.com/users/kmschoep-usgs/repos","events_url":"https://api.github.com/users/kmschoep-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/kmschoep-usgs/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-12-06T15:10:52Z","updated_at":"2018-12-06T20:56:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e46cef15db42c8a69d903544565880b694819e30","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/72/commits","review_comments_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/72/comments","review_comment_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/comments{/number}","comments_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/issues/72/comments","statuses_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/statuses/8f74e40e4b363105f9142c5bd0b00b66ba9886a8","head":{"label":"kmschoep-usgs:MLR-331","ref":"MLR-331","sha":"8f74e40e4b363105f9142c5bd0b00b66ba9886a8","user":{"login":"kmschoep-usgs","id":2364610,"node_id":"MDQ6VXNlcjIzNjQ2MTA=","avatar_url":"https://avatars2.githubusercontent.com/u/2364610?v=4","gravatar_id":"","url":"https://api.github.com/users/kmschoep-usgs","html_url":"https://github.com/kmschoep-usgs","followers_url":"https://api.github.com/users/kmschoep-usgs/followers","following_url":"https://api.github.com/users/kmschoep-usgs/following{/other_user}","gists_url":"https://api.github.com/users/kmschoep-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/kmschoep-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmschoep-usgs/subscriptions","organizations_url":"https://api.github.com/users/kmschoep-usgs/orgs","repos_url":"https://api.github.com/users/kmschoep-usgs/repos","events_url":"https://api.github.com/users/kmschoep-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/kmschoep-usgs/received_events","type":"User","site_admin":false},"repo":{"id":106014575,"node_id":"MDEwOlJlcG9zaXRvcnkxMDYwMTQ1NzU=","name":"MLR-Gateway","full_name":"kmschoep-usgs/MLR-Gateway","private":false,"owner":{"login":"kmschoep-usgs","id":2364610,"node_id":"MDQ6VXNlcjIzNjQ2MTA=","avatar_url":"https://avatars2.githubusercontent.com/u/2364610?v=4","gravatar_id":"","url":"https://api.github.com/users/kmschoep-usgs","html_url":"https://github.com/kmschoep-usgs","followers_url":"https://api.github.com/users/kmschoep-usgs/followers","following_url":"https://api.github.com/users/kmschoep-usgs/following{/other_user}","gists_url":"https://api.github.com/users/kmschoep-usgs/gists{/gist_id}","starred_url":"https://api.github.com/users/kmschoep-usgs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmschoep-usgs/subscriptions","organizations_url":"https://api.github.com/users/kmschoep-usgs/orgs","repos_url":"https://api.github.com/users/kmschoep-usgs/repos","events_url":"https://api.github.com/users/kmschoep-usgs/events{/privacy}","received_events_url":"https://api.github.com/users/kmschoep-usgs/received_events","type":"User","site_admin":false},"html_url":"https://github.com/kmschoep-usgs/MLR-Gateway","description":"Gateway Service for the MLR Pilot Project","fork":true,"url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway","forks_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/forks","keys_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/teams","hooks_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/hooks","issue_events_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/issues/events{/number}","events_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/events","assignees_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/assignees{/user}","branches_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/branches{/branch}","tags_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/tags","blobs_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/languages","stargazers_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/stargazers","contributors_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/contributors","subscribers_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/subscribers","subscription_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/subscription","commits_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/contents/{+path}","compare_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/merges","archive_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/downloads","issues_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/issues{/number}","pulls_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/labels{/name}","releases_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/releases{/id}","deployments_url":"https://api.github.com/repos/kmschoep-usgs/MLR-Gateway/deployments","created_at":"2017-10-06T14:32:53Z","updated_at":"2018-11-16T16:41:51Z","pushed_at":"2018-12-06T15:10:41Z","git_url":"git://github.com/kmschoep-usgs/MLR-Gateway.git","ssh_url":"git@github.com:kmschoep-usgs/MLR-Gateway.git","clone_url":"https://github.com/kmschoep-usgs/MLR-Gateway.git","svn_url":"https://github.com/kmschoep-usgs/MLR-Gateway","homepage":null,"size":470,"stargazers_count":0,"watchers_count":0,"language":"Java","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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"USGS-CIDA:master","ref":"master","sha":"e13dc08346a6ccd7caea61dea839a0d250a78a5a","user":{"login":"USGS-CIDA","id":918179,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxODE3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/918179?v=4","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"repo":{"id":103181702,"node_id":"MDEwOlJlcG9zaXRvcnkxMDMxODE3MDI=","name":"MLR-Gateway","full_name":"USGS-CIDA/MLR-Gateway","private":false,"owner":{"login":"USGS-CIDA","id":918179,"node_id":"MDEyOk9yZ2FuaXphdGlvbjkxODE3OQ==","avatar_url":"https://avatars2.githubusercontent.com/u/918179?v=4","gravatar_id":"","url":"https://api.github.com/users/USGS-CIDA","html_url":"https://github.com/USGS-CIDA","followers_url":"https://api.github.com/users/USGS-CIDA/followers","following_url":"https://api.github.com/users/USGS-CIDA/following{/other_user}","gists_url":"https://api.github.com/users/USGS-CIDA/gists{/gist_id}","starred_url":"https://api.github.com/users/USGS-CIDA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/USGS-CIDA/subscriptions","organizations_url":"https://api.github.com/users/USGS-CIDA/orgs","repos_url":"https://api.github.com/users/USGS-CIDA/repos","events_url":"https://api.github.com/users/USGS-CIDA/events{/privacy}","received_events_url":"https://api.github.com/users/USGS-CIDA/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/USGS-CIDA/MLR-Gateway","description":"Gateway Service for the MLR Pilot Project","fork":false,"url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway","forks_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/forks","keys_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/keys{/key_id}","collaborators_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/teams","hooks_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/hooks","issue_events_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/issues/events{/number}","events_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/events","assignees_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/assignees{/user}","branches_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/branches{/branch}","tags_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/tags","blobs_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/git/refs{/sha}","trees_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/git/trees{/sha}","statuses_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/statuses/{sha}","languages_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/languages","stargazers_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/stargazers","contributors_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/contributors","subscribers_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/subscribers","subscription_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/subscription","commits_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/commits{/sha}","git_commits_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/git/commits{/sha}","comments_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/comments{/number}","issue_comment_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/issues/comments{/number}","contents_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/contents/{+path}","compare_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/compare/{base}...{head}","merges_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/merges","archive_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/downloads","issues_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/issues{/number}","pulls_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls{/number}","milestones_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/milestones{/number}","notifications_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/labels{/name}","releases_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/releases{/id}","deployments_url":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/deployments","created_at":"2017-09-11T19:58:07Z","updated_at":"2018-11-30T23:04:18Z","pushed_at":"2018-12-06T15:10:53Z","git_url":"git://github.com/USGS-CIDA/MLR-Gateway.git","ssh_url":"git@github.com:USGS-CIDA/MLR-Gateway.git","clone_url":"https://github.com/USGS-CIDA/MLR-Gateway.git","svn_url":"https://github.com/USGS-CIDA/MLR-Gateway","homepage":null,"size":455,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":7,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/72"},"html":{"href":"https://github.com/USGS-CIDA/MLR-Gateway/pull/72"},"issue":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/issues/72"},"comments":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/USGS-CIDA/MLR-Gateway/statuses/8f74e40e4b363105f9142c5bd0b00b66ba9886a8"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"zmoore-usgs"}}