{"action":"created","comment":{"url":"https://api.github.com/repos/zalando/innkeeper/pulls/comments/41983572","id":41983572,"diff_hunk":"@@ -40,7 +43,13 @@ class OAuthService @Inject() (val config: Config,\n     Try {\n       val json = Await.result(futureJson, 1.second)\n       json.parseJson.convertTo[AuthorizedUser]\n-    }.toOption\n+    } match {\n+      case Success(value) => Some(value)\n+      case Failure(ex) => {\n+        logger.warn(\"The OAuth exception is\", ex)\n+        None\n+      }\n+    }","path":"src/main/scala/org/zalando/spearheads/innkeeper/oauth/OAuthService.scala","position":34,"original_position":34,"commit_id":"3158f76513085d34dc224779f723fdd4a6801795","original_commit_id":"3158f76513085d34dc224779f723fdd4a6801795","user":{"login":"mo-gr","id":95577,"avatar_url":"https://avatars.githubusercontent.com/u/95577?v=3","gravatar_id":"","url":"https://api.github.com/users/mo-gr","html_url":"https://github.com/mo-gr","followers_url":"https://api.github.com/users/mo-gr/followers","following_url":"https://api.github.com/users/mo-gr/following{/other_user}","gists_url":"https://api.github.com/users/mo-gr/gists{/gist_id}","starred_url":"https://api.github.com/users/mo-gr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mo-gr/subscriptions","organizations_url":"https://api.github.com/users/mo-gr/orgs","repos_url":"https://api.github.com/users/mo-gr/repos","events_url":"https://api.github.com/users/mo-gr/events{/privacy}","received_events_url":"https://api.github.com/users/mo-gr/received_events","type":"User","site_admin":false},"body":"can be rewritten as:\r\n`.transform(identity, {case e => logger.warn(\"The OAuth exception is\", ex); Failure(e)}).toOption`","created_at":"2015-10-14T11:46:52Z","updated_at":"2015-10-14T11:46:52Z","html_url":"https://github.com/zalando/innkeeper/pull/15#discussion_r41983572","pull_request_url":"https://api.github.com/repos/zalando/innkeeper/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/comments/41983572"},"html":{"href":"https://github.com/zalando/innkeeper/pull/15#discussion_r41983572"},"pull_request":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/zalando/innkeeper/pulls/15","id":47639677,"html_url":"https://github.com/zalando/innkeeper/pull/15","diff_url":"https://github.com/zalando/innkeeper/pull/15.diff","patch_url":"https://github.com/zalando/innkeeper/pull/15.patch","issue_url":"https://api.github.com/repos/zalando/innkeeper/issues/15","number":15,"state":"closed","locked":false,"title":"Added list of scopes in config","user":{"login":"danpersa","id":579158,"avatar_url":"https://avatars.githubusercontent.com/u/579158?v=3","gravatar_id":"","url":"https://api.github.com/users/danpersa","html_url":"https://github.com/danpersa","followers_url":"https://api.github.com/users/danpersa/followers","following_url":"https://api.github.com/users/danpersa/following{/other_user}","gists_url":"https://api.github.com/users/danpersa/gists{/gist_id}","starred_url":"https://api.github.com/users/danpersa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danpersa/subscriptions","organizations_url":"https://api.github.com/users/danpersa/orgs","repos_url":"https://api.github.com/users/danpersa/repos","events_url":"https://api.github.com/users/danpersa/events{/privacy}","received_events_url":"https://api.github.com/users/danpersa/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-14T10:07:16Z","updated_at":"2015-10-14T11:46:52Z","closed_at":"2015-10-14T11:28:36Z","merged_at":"2015-10-14T11:28:36Z","merge_commit_sha":"191a2b52d5a9550a9cbd93d6dc9994948ca7ee2b","assignee":{"login":"aryszka","id":733217,"avatar_url":"https://avatars.githubusercontent.com/u/733217?v=3","gravatar_id":"","url":"https://api.github.com/users/aryszka","html_url":"https://github.com/aryszka","followers_url":"https://api.github.com/users/aryszka/followers","following_url":"https://api.github.com/users/aryszka/following{/other_user}","gists_url":"https://api.github.com/users/aryszka/gists{/gist_id}","starred_url":"https://api.github.com/users/aryszka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aryszka/subscriptions","organizations_url":"https://api.github.com/users/aryszka/orgs","repos_url":"https://api.github.com/users/aryszka/repos","events_url":"https://api.github.com/users/aryszka/events{/privacy}","received_events_url":"https://api.github.com/users/aryszka/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/zalando/innkeeper/pulls/15/commits","review_comments_url":"https://api.github.com/repos/zalando/innkeeper/pulls/15/comments","review_comment_url":"https://api.github.com/repos/zalando/innkeeper/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zalando/innkeeper/issues/15/comments","statuses_url":"https://api.github.com/repos/zalando/innkeeper/statuses/3158f76513085d34dc224779f723fdd4a6801795","head":{"label":"zalando:list-of-scopes","ref":"list-of-scopes","sha":"3158f76513085d34dc224779f723fdd4a6801795","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":42450261,"name":"innkeeper","full_name":"zalando/innkeeper","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/innkeeper","description":"Simple route management API for Skipper","fork":false,"url":"https://api.github.com/repos/zalando/innkeeper","forks_url":"https://api.github.com/repos/zalando/innkeeper/forks","keys_url":"https://api.github.com/repos/zalando/innkeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/innkeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/innkeeper/teams","hooks_url":"https://api.github.com/repos/zalando/innkeeper/hooks","issue_events_url":"https://api.github.com/repos/zalando/innkeeper/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/innkeeper/events","assignees_url":"https://api.github.com/repos/zalando/innkeeper/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/innkeeper/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/innkeeper/tags","blobs_url":"https://api.github.com/repos/zalando/innkeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/innkeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/innkeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/innkeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/innkeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/innkeeper/languages","stargazers_url":"https://api.github.com/repos/zalando/innkeeper/stargazers","contributors_url":"https://api.github.com/repos/zalando/innkeeper/contributors","subscribers_url":"https://api.github.com/repos/zalando/innkeeper/subscribers","subscription_url":"https://api.github.com/repos/zalando/innkeeper/subscription","commits_url":"https://api.github.com/repos/zalando/innkeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/innkeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/innkeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/innkeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/innkeeper/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/innkeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/innkeeper/merges","archive_url":"https://api.github.com/repos/zalando/innkeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/innkeeper/downloads","issues_url":"https://api.github.com/repos/zalando/innkeeper/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/innkeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/innkeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/innkeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/innkeeper/labels{/name}","releases_url":"https://api.github.com/repos/zalando/innkeeper/releases{/id}","created_at":"2015-09-14T13:28:02Z","updated_at":"2015-09-14T13:29:14Z","pushed_at":"2015-10-14T11:28:36Z","git_url":"git://github.com/zalando/innkeeper.git","ssh_url":"git@github.com:zalando/innkeeper.git","clone_url":"https://github.com/zalando/innkeeper.git","svn_url":"https://github.com/zalando/innkeeper","homepage":"","size":1448,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"zalando:master","ref":"master","sha":"764979ce72664f156236a1d36516d90d62c58d5d","user":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"repo":{"id":42450261,"name":"innkeeper","full_name":"zalando/innkeeper","owner":{"login":"zalando","id":1564818,"avatar_url":"https://avatars.githubusercontent.com/u/1564818?v=3","gravatar_id":"","url":"https://api.github.com/users/zalando","html_url":"https://github.com/zalando","followers_url":"https://api.github.com/users/zalando/followers","following_url":"https://api.github.com/users/zalando/following{/other_user}","gists_url":"https://api.github.com/users/zalando/gists{/gist_id}","starred_url":"https://api.github.com/users/zalando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalando/subscriptions","organizations_url":"https://api.github.com/users/zalando/orgs","repos_url":"https://api.github.com/users/zalando/repos","events_url":"https://api.github.com/users/zalando/events{/privacy}","received_events_url":"https://api.github.com/users/zalando/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zalando/innkeeper","description":"Simple route management API for Skipper","fork":false,"url":"https://api.github.com/repos/zalando/innkeeper","forks_url":"https://api.github.com/repos/zalando/innkeeper/forks","keys_url":"https://api.github.com/repos/zalando/innkeeper/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalando/innkeeper/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalando/innkeeper/teams","hooks_url":"https://api.github.com/repos/zalando/innkeeper/hooks","issue_events_url":"https://api.github.com/repos/zalando/innkeeper/issues/events{/number}","events_url":"https://api.github.com/repos/zalando/innkeeper/events","assignees_url":"https://api.github.com/repos/zalando/innkeeper/assignees{/user}","branches_url":"https://api.github.com/repos/zalando/innkeeper/branches{/branch}","tags_url":"https://api.github.com/repos/zalando/innkeeper/tags","blobs_url":"https://api.github.com/repos/zalando/innkeeper/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalando/innkeeper/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalando/innkeeper/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalando/innkeeper/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalando/innkeeper/statuses/{sha}","languages_url":"https://api.github.com/repos/zalando/innkeeper/languages","stargazers_url":"https://api.github.com/repos/zalando/innkeeper/stargazers","contributors_url":"https://api.github.com/repos/zalando/innkeeper/contributors","subscribers_url":"https://api.github.com/repos/zalando/innkeeper/subscribers","subscription_url":"https://api.github.com/repos/zalando/innkeeper/subscription","commits_url":"https://api.github.com/repos/zalando/innkeeper/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalando/innkeeper/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalando/innkeeper/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalando/innkeeper/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalando/innkeeper/contents/{+path}","compare_url":"https://api.github.com/repos/zalando/innkeeper/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalando/innkeeper/merges","archive_url":"https://api.github.com/repos/zalando/innkeeper/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalando/innkeeper/downloads","issues_url":"https://api.github.com/repos/zalando/innkeeper/issues{/number}","pulls_url":"https://api.github.com/repos/zalando/innkeeper/pulls{/number}","milestones_url":"https://api.github.com/repos/zalando/innkeeper/milestones{/number}","notifications_url":"https://api.github.com/repos/zalando/innkeeper/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalando/innkeeper/labels{/name}","releases_url":"https://api.github.com/repos/zalando/innkeeper/releases{/id}","created_at":"2015-09-14T13:28:02Z","updated_at":"2015-09-14T13:29:14Z","pushed_at":"2015-10-14T11:28:36Z","git_url":"git://github.com/zalando/innkeeper.git","ssh_url":"git@github.com:zalando/innkeeper.git","clone_url":"https://github.com/zalando/innkeeper.git","svn_url":"https://github.com/zalando/innkeeper","homepage":"","size":1448,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/15"},"html":{"href":"https://github.com/zalando/innkeeper/pull/15"},"issue":{"href":"https://api.github.com/repos/zalando/innkeeper/issues/15"},"comments":{"href":"https://api.github.com/repos/zalando/innkeeper/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zalando/innkeeper/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/zalando/innkeeper/statuses/3158f76513085d34dc224779f723fdd4a6801795"}}}}