{"action":"created","comment":{"url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/comments/205416748","pull_request_review_id":140366975,"id":205416748,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTQxNjc0OA==","diff_hunk":"@@ -0,0 +1,43 @@\n+package com.training.weather.ingestor.infrastructure.service;\n+\n+import com.training.weather.ingestor.core.model.Coordinates;\n+import com.training.weather.ingestor.core.model.OpenWeatherMapResponse;\n+import org.apache.log4j.Logger;\n+import org.springframework.http.ResponseEntity;\n+import org.springframework.stereotype.Service;\n+import org.springframework.web.client.RestTemplate;\n+import org.springframework.web.util.UriComponents;\n+import org.springframework.web.util.UriComponentsBuilder;\n+\n+\n+@Service\n+public class OpenWeatherMapDataSource implements WeatherDataSource {\n+  private static final Logger LOG = Logger.getLogger(OpenWeatherMapDataSource.class);\n+\n+  private static final String API_SCHEME = \"http\";\n+  private static final String API_HOST = \"api.openweathermap.org\";\n+  private static final String API_KEY = \"a5b6e7041392ba7156b0d1de0e3e7923\";\n+\n+  private final RestTemplate restTemplate;\n+\n+  public OpenWeatherMapDataSource(RestTemplate restTemplate) {\n+    this.restTemplate = restTemplate;\n+  }\n+\n+  /**\n+   * Method for retrieving forecasts from OpenWeather.\n+   */\n+  public OpenWeatherMapResponse getForecasts(Coordinates coordinates) {","path":"weather-forecast-service-ingestor/src/main/java/com/training/weather/ingestor/infrastructure/service/OpenWeatherMapDataSource.java","position":30,"original_position":30,"commit_id":"8df6ac3d503db2dd1da0215a6284e055c0b79621","original_commit_id":"8df6ac3d503db2dd1da0215a6284e055c0b79621","user":{"login":"VolodymyrChemodurov","id":4348830,"node_id":"MDQ6VXNlcjQzNDg4MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/4348830?v=4","gravatar_id":"","url":"https://api.github.com/users/VolodymyrChemodurov","html_url":"https://github.com/VolodymyrChemodurov","followers_url":"https://api.github.com/users/VolodymyrChemodurov/followers","following_url":"https://api.github.com/users/VolodymyrChemodurov/following{/other_user}","gists_url":"https://api.github.com/users/VolodymyrChemodurov/gists{/gist_id}","starred_url":"https://api.github.com/users/VolodymyrChemodurov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolodymyrChemodurov/subscriptions","organizations_url":"https://api.github.com/users/VolodymyrChemodurov/orgs","repos_url":"https://api.github.com/users/VolodymyrChemodurov/repos","events_url":"https://api.github.com/users/VolodymyrChemodurov/events{/privacy}","received_events_url":"https://api.github.com/users/VolodymyrChemodurov/received_events","type":"User","site_admin":false},"body":"You should return your domain model here instead of OpenWeatherMapResponse. OpenWeatherMapResponse is an infrastructure related thing.","created_at":"2018-07-26T11:08:41Z","updated_at":"2018-07-26T11:34:37Z","html_url":"https://github.com/VolodymyrChemodurov/mentorship-project/pull/1#discussion_r205416748","pull_request_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/comments/205416748"},"html":{"href":"https://github.com/VolodymyrChemodurov/mentorship-project/pull/1#discussion_r205416748"},"pull_request":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/1","id":199958656,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5OTU4NjU2","html_url":"https://github.com/VolodymyrChemodurov/mentorship-project/pull/1","diff_url":"https://github.com/VolodymyrChemodurov/mentorship-project/pull/1.diff","patch_url":"https://github.com/VolodymyrChemodurov/mentorship-project/pull/1.patch","issue_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues/1","number":1,"state":"open","locked":false,"title":"Feature/mlg 1","user":{"login":"OlegHudyma","id":23501480,"node_id":"MDQ6VXNlcjIzNTAxNDgw","avatar_url":"https://avatars2.githubusercontent.com/u/23501480?v=4","gravatar_id":"","url":"https://api.github.com/users/OlegHudyma","html_url":"https://github.com/OlegHudyma","followers_url":"https://api.github.com/users/OlegHudyma/followers","following_url":"https://api.github.com/users/OlegHudyma/following{/other_user}","gists_url":"https://api.github.com/users/OlegHudyma/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHudyma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHudyma/subscriptions","organizations_url":"https://api.github.com/users/OlegHudyma/orgs","repos_url":"https://api.github.com/users/OlegHudyma/repos","events_url":"https://api.github.com/users/OlegHudyma/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHudyma/received_events","type":"User","site_admin":false},"body":"[MLG-1] Added Injestor implemention. ","created_at":"2018-07-08T20:20:58Z","updated_at":"2018-07-26T11:34:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"55f780a0885d548e611d9a0286034086dacc488f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/1/commits","review_comments_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/1/comments","review_comment_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/comments{/number}","comments_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues/1/comments","statuses_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/statuses/8df6ac3d503db2dd1da0215a6284e055c0b79621","head":{"label":"VolodymyrChemodurov:feature/MLG-1","ref":"feature/MLG-1","sha":"8df6ac3d503db2dd1da0215a6284e055c0b79621","user":{"login":"VolodymyrChemodurov","id":4348830,"node_id":"MDQ6VXNlcjQzNDg4MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/4348830?v=4","gravatar_id":"","url":"https://api.github.com/users/VolodymyrChemodurov","html_url":"https://github.com/VolodymyrChemodurov","followers_url":"https://api.github.com/users/VolodymyrChemodurov/followers","following_url":"https://api.github.com/users/VolodymyrChemodurov/following{/other_user}","gists_url":"https://api.github.com/users/VolodymyrChemodurov/gists{/gist_id}","starred_url":"https://api.github.com/users/VolodymyrChemodurov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolodymyrChemodurov/subscriptions","organizations_url":"https://api.github.com/users/VolodymyrChemodurov/orgs","repos_url":"https://api.github.com/users/VolodymyrChemodurov/repos","events_url":"https://api.github.com/users/VolodymyrChemodurov/events{/privacy}","received_events_url":"https://api.github.com/users/VolodymyrChemodurov/received_events","type":"User","site_admin":false},"repo":{"id":138768103,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg3NjgxMDM=","name":"mentorship-project","full_name":"VolodymyrChemodurov/mentorship-project","owner":{"login":"VolodymyrChemodurov","id":4348830,"node_id":"MDQ6VXNlcjQzNDg4MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/4348830?v=4","gravatar_id":"","url":"https://api.github.com/users/VolodymyrChemodurov","html_url":"https://github.com/VolodymyrChemodurov","followers_url":"https://api.github.com/users/VolodymyrChemodurov/followers","following_url":"https://api.github.com/users/VolodymyrChemodurov/following{/other_user}","gists_url":"https://api.github.com/users/VolodymyrChemodurov/gists{/gist_id}","starred_url":"https://api.github.com/users/VolodymyrChemodurov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolodymyrChemodurov/subscriptions","organizations_url":"https://api.github.com/users/VolodymyrChemodurov/orgs","repos_url":"https://api.github.com/users/VolodymyrChemodurov/repos","events_url":"https://api.github.com/users/VolodymyrChemodurov/events{/privacy}","received_events_url":"https://api.github.com/users/VolodymyrChemodurov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VolodymyrChemodurov/mentorship-project","description":"Pet project built for learning purpose.","fork":false,"url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project","forks_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/forks","keys_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/teams","hooks_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/hooks","issue_events_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues/events{/number}","events_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/events","assignees_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/assignees{/user}","branches_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/branches{/branch}","tags_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/tags","blobs_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/statuses/{sha}","languages_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/languages","stargazers_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/stargazers","contributors_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/contributors","subscribers_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/subscribers","subscription_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/subscription","commits_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/contents/{+path}","compare_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/merges","archive_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/downloads","issues_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues{/number}","pulls_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls{/number}","milestones_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/milestones{/number}","notifications_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/labels{/name}","releases_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/releases{/id}","deployments_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/deployments","created_at":"2018-06-26T17:02:37Z","updated_at":"2018-06-28T16:30:13Z","pushed_at":"2018-07-23T21:01:02Z","git_url":"git://github.com/VolodymyrChemodurov/mentorship-project.git","ssh_url":"git@github.com:VolodymyrChemodurov/mentorship-project.git","clone_url":"https://github.com/VolodymyrChemodurov/mentorship-project.git","svn_url":"https://github.com/VolodymyrChemodurov/mentorship-project","homepage":null,"size":53,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"VolodymyrChemodurov:develop","ref":"develop","sha":"3ed810ca6f7fea8baa388e991aee90d61fe8dcc1","user":{"login":"VolodymyrChemodurov","id":4348830,"node_id":"MDQ6VXNlcjQzNDg4MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/4348830?v=4","gravatar_id":"","url":"https://api.github.com/users/VolodymyrChemodurov","html_url":"https://github.com/VolodymyrChemodurov","followers_url":"https://api.github.com/users/VolodymyrChemodurov/followers","following_url":"https://api.github.com/users/VolodymyrChemodurov/following{/other_user}","gists_url":"https://api.github.com/users/VolodymyrChemodurov/gists{/gist_id}","starred_url":"https://api.github.com/users/VolodymyrChemodurov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolodymyrChemodurov/subscriptions","organizations_url":"https://api.github.com/users/VolodymyrChemodurov/orgs","repos_url":"https://api.github.com/users/VolodymyrChemodurov/repos","events_url":"https://api.github.com/users/VolodymyrChemodurov/events{/privacy}","received_events_url":"https://api.github.com/users/VolodymyrChemodurov/received_events","type":"User","site_admin":false},"repo":{"id":138768103,"node_id":"MDEwOlJlcG9zaXRvcnkxMzg3NjgxMDM=","name":"mentorship-project","full_name":"VolodymyrChemodurov/mentorship-project","owner":{"login":"VolodymyrChemodurov","id":4348830,"node_id":"MDQ6VXNlcjQzNDg4MzA=","avatar_url":"https://avatars2.githubusercontent.com/u/4348830?v=4","gravatar_id":"","url":"https://api.github.com/users/VolodymyrChemodurov","html_url":"https://github.com/VolodymyrChemodurov","followers_url":"https://api.github.com/users/VolodymyrChemodurov/followers","following_url":"https://api.github.com/users/VolodymyrChemodurov/following{/other_user}","gists_url":"https://api.github.com/users/VolodymyrChemodurov/gists{/gist_id}","starred_url":"https://api.github.com/users/VolodymyrChemodurov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/VolodymyrChemodurov/subscriptions","organizations_url":"https://api.github.com/users/VolodymyrChemodurov/orgs","repos_url":"https://api.github.com/users/VolodymyrChemodurov/repos","events_url":"https://api.github.com/users/VolodymyrChemodurov/events{/privacy}","received_events_url":"https://api.github.com/users/VolodymyrChemodurov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/VolodymyrChemodurov/mentorship-project","description":"Pet project built for learning purpose.","fork":false,"url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project","forks_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/forks","keys_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/keys{/key_id}","collaborators_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/teams","hooks_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/hooks","issue_events_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues/events{/number}","events_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/events","assignees_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/assignees{/user}","branches_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/branches{/branch}","tags_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/tags","blobs_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/refs{/sha}","trees_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/trees{/sha}","statuses_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/statuses/{sha}","languages_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/languages","stargazers_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/stargazers","contributors_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/contributors","subscribers_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/subscribers","subscription_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/subscription","commits_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/commits{/sha}","git_commits_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/git/commits{/sha}","comments_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/comments{/number}","issue_comment_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues/comments{/number}","contents_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/contents/{+path}","compare_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/compare/{base}...{head}","merges_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/merges","archive_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/downloads","issues_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues{/number}","pulls_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls{/number}","milestones_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/milestones{/number}","notifications_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/labels{/name}","releases_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/releases{/id}","deployments_url":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/deployments","created_at":"2018-06-26T17:02:37Z","updated_at":"2018-06-28T16:30:13Z","pushed_at":"2018-07-23T21:01:02Z","git_url":"git://github.com/VolodymyrChemodurov/mentorship-project.git","ssh_url":"git@github.com:VolodymyrChemodurov/mentorship-project.git","clone_url":"https://github.com/VolodymyrChemodurov/mentorship-project.git","svn_url":"https://github.com/VolodymyrChemodurov/mentorship-project","homepage":null,"size":53,"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":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/1"},"html":{"href":"https://github.com/VolodymyrChemodurov/mentorship-project/pull/1"},"issue":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues/1"},"comments":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/VolodymyrChemodurov/mentorship-project/statuses/8df6ac3d503db2dd1da0215a6284e055c0b79621"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"VolodymyrChemodurov"}}