{"action":"created","comment":{"url":"https://api.github.com/repos/ski-climb/strava_curious/pulls/comments/98827941","pull_request_review_id":19482060,"id":98827941,"diff_hunk":"@@ -0,0 +1,10 @@\n+class DashboardsController < ApplicationController\n+\n+  def show\n+    strava_activities = Faraday.get(\"https://www.strava.com/api/v3/athlete/activities?access_token=#{current_user.token}\")\n+    # strava_streams = Faraday.get(\"https://www.strava.com/api/v3/activities/849984063/streams/latlng?access_token=#{current_user.token}&resolution=low\")\n+    @activities = JSON.parse(strava_activities.body)\n+    # @streams = JSON.parse(strava_streams.body)\n+    render json: @activities","path":"app/controllers/dashboards_controller.rb","position":8,"original_position":8,"commit_id":"e02464a19af65cff8e4d560e0dfd9802cd32f4cb","original_commit_id":"e02464a19af65cff8e4d560e0dfd9802cd32f4cb","user":{"login":"ski-climb","id":19230981,"avatar_url":"https://avatars.githubusercontent.com/u/19230981?v=3","gravatar_id":"","url":"https://api.github.com/users/ski-climb","html_url":"https://github.com/ski-climb","followers_url":"https://api.github.com/users/ski-climb/followers","following_url":"https://api.github.com/users/ski-climb/following{/other_user}","gists_url":"https://api.github.com/users/ski-climb/gists{/gist_id}","starred_url":"https://api.github.com/users/ski-climb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ski-climb/subscriptions","organizations_url":"https://api.github.com/users/ski-climb/orgs","repos_url":"https://api.github.com/users/ski-climb/repos","events_url":"https://api.github.com/users/ski-climb/events{/privacy}","received_events_url":"https://api.github.com/users/ski-climb/received_events","type":"User","site_admin":false},"body":"Good call!  Since the Strava API returns so much information, I wanted to view the JSON to see which bits of information to keep.  \r\n\r\nThanks for the feedback!  I'll ping you in future PR's","created_at":"2017-02-01T04:46:57Z","updated_at":"2017-02-01T04:46:57Z","html_url":"https://github.com/ski-climb/strava_curious/pull/10#discussion_r98827941","pull_request_url":"https://api.github.com/repos/ski-climb/strava_curious/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/ski-climb/strava_curious/pulls/comments/98827941"},"html":{"href":"https://github.com/ski-climb/strava_curious/pull/10#discussion_r98827941"},"pull_request":{"href":"https://api.github.com/repos/ski-climb/strava_curious/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/ski-climb/strava_curious/pulls/10","id":103962621,"html_url":"https://github.com/ski-climb/strava_curious/pull/10","diff_url":"https://github.com/ski-climb/strava_curious/pull/10.diff","patch_url":"https://github.com/ski-climb/strava_curious/pull/10.patch","issue_url":"https://api.github.com/repos/ski-climb/strava_curious/issues/10","number":10,"state":"open","locked":false,"title":"3 oauth","user":{"login":"ski-climb","id":19230981,"avatar_url":"https://avatars.githubusercontent.com/u/19230981?v=3","gravatar_id":"","url":"https://api.github.com/users/ski-climb","html_url":"https://github.com/ski-climb","followers_url":"https://api.github.com/users/ski-climb/followers","following_url":"https://api.github.com/users/ski-climb/following{/other_user}","gists_url":"https://api.github.com/users/ski-climb/gists{/gist_id}","starred_url":"https://api.github.com/users/ski-climb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ski-climb/subscriptions","organizations_url":"https://api.github.com/users/ski-climb/orgs","repos_url":"https://api.github.com/users/ski-climb/repos","events_url":"https://api.github.com/users/ski-climb/events{/privacy}","received_events_url":"https://api.github.com/users/ski-climb/received_events","type":"User","site_admin":false},"body":"@sallymacnicholas: This is on the messy side.  I felt a bit lost not really having tests for the sign in process.   Looking forward to your feedback!","created_at":"2017-01-31T15:48:43Z","updated_at":"2017-02-01T04:46:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5a2d60e1714eccc04fb896638b6205b8fc5260fe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ski-climb/strava_curious/pulls/10/commits","review_comments_url":"https://api.github.com/repos/ski-climb/strava_curious/pulls/10/comments","review_comment_url":"https://api.github.com/repos/ski-climb/strava_curious/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ski-climb/strava_curious/issues/10/comments","statuses_url":"https://api.github.com/repos/ski-climb/strava_curious/statuses/e02464a19af65cff8e4d560e0dfd9802cd32f4cb","head":{"label":"ski-climb:3-oauth","ref":"3-oauth","sha":"e02464a19af65cff8e4d560e0dfd9802cd32f4cb","user":{"login":"ski-climb","id":19230981,"avatar_url":"https://avatars.githubusercontent.com/u/19230981?v=3","gravatar_id":"","url":"https://api.github.com/users/ski-climb","html_url":"https://github.com/ski-climb","followers_url":"https://api.github.com/users/ski-climb/followers","following_url":"https://api.github.com/users/ski-climb/following{/other_user}","gists_url":"https://api.github.com/users/ski-climb/gists{/gist_id}","starred_url":"https://api.github.com/users/ski-climb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ski-climb/subscriptions","organizations_url":"https://api.github.com/users/ski-climb/orgs","repos_url":"https://api.github.com/users/ski-climb/repos","events_url":"https://api.github.com/users/ski-climb/events{/privacy}","received_events_url":"https://api.github.com/users/ski-climb/received_events","type":"User","site_admin":false},"repo":{"id":80466385,"name":"strava_curious","full_name":"ski-climb/strava_curious","owner":{"login":"ski-climb","id":19230981,"avatar_url":"https://avatars.githubusercontent.com/u/19230981?v=3","gravatar_id":"","url":"https://api.github.com/users/ski-climb","html_url":"https://github.com/ski-climb","followers_url":"https://api.github.com/users/ski-climb/followers","following_url":"https://api.github.com/users/ski-climb/following{/other_user}","gists_url":"https://api.github.com/users/ski-climb/gists{/gist_id}","starred_url":"https://api.github.com/users/ski-climb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ski-climb/subscriptions","organizations_url":"https://api.github.com/users/ski-climb/orgs","repos_url":"https://api.github.com/users/ski-climb/repos","events_url":"https://api.github.com/users/ski-climb/events{/privacy}","received_events_url":"https://api.github.com/users/ski-climb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ski-climb/strava_curious","description":null,"fork":false,"url":"https://api.github.com/repos/ski-climb/strava_curious","forks_url":"https://api.github.com/repos/ski-climb/strava_curious/forks","keys_url":"https://api.github.com/repos/ski-climb/strava_curious/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ski-climb/strava_curious/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ski-climb/strava_curious/teams","hooks_url":"https://api.github.com/repos/ski-climb/strava_curious/hooks","issue_events_url":"https://api.github.com/repos/ski-climb/strava_curious/issues/events{/number}","events_url":"https://api.github.com/repos/ski-climb/strava_curious/events","assignees_url":"https://api.github.com/repos/ski-climb/strava_curious/assignees{/user}","branches_url":"https://api.github.com/repos/ski-climb/strava_curious/branches{/branch}","tags_url":"https://api.github.com/repos/ski-climb/strava_curious/tags","blobs_url":"https://api.github.com/repos/ski-climb/strava_curious/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ski-climb/strava_curious/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ski-climb/strava_curious/git/refs{/sha}","trees_url":"https://api.github.com/repos/ski-climb/strava_curious/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ski-climb/strava_curious/statuses/{sha}","languages_url":"https://api.github.com/repos/ski-climb/strava_curious/languages","stargazers_url":"https://api.github.com/repos/ski-climb/strava_curious/stargazers","contributors_url":"https://api.github.com/repos/ski-climb/strava_curious/contributors","subscribers_url":"https://api.github.com/repos/ski-climb/strava_curious/subscribers","subscription_url":"https://api.github.com/repos/ski-climb/strava_curious/subscription","commits_url":"https://api.github.com/repos/ski-climb/strava_curious/commits{/sha}","git_commits_url":"https://api.github.com/repos/ski-climb/strava_curious/git/commits{/sha}","comments_url":"https://api.github.com/repos/ski-climb/strava_curious/comments{/number}","issue_comment_url":"https://api.github.com/repos/ski-climb/strava_curious/issues/comments{/number}","contents_url":"https://api.github.com/repos/ski-climb/strava_curious/contents/{+path}","compare_url":"https://api.github.com/repos/ski-climb/strava_curious/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ski-climb/strava_curious/merges","archive_url":"https://api.github.com/repos/ski-climb/strava_curious/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ski-climb/strava_curious/downloads","issues_url":"https://api.github.com/repos/ski-climb/strava_curious/issues{/number}","pulls_url":"https://api.github.com/repos/ski-climb/strava_curious/pulls{/number}","milestones_url":"https://api.github.com/repos/ski-climb/strava_curious/milestones{/number}","notifications_url":"https://api.github.com/repos/ski-climb/strava_curious/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ski-climb/strava_curious/labels{/name}","releases_url":"https://api.github.com/repos/ski-climb/strava_curious/releases{/id}","deployments_url":"https://api.github.com/repos/ski-climb/strava_curious/deployments","created_at":"2017-01-30T21:39:32Z","updated_at":"2017-01-30T21:39:58Z","pushed_at":"2017-01-31T20:25:46Z","git_url":"git://github.com/ski-climb/strava_curious.git","ssh_url":"git@github.com:ski-climb/strava_curious.git","clone_url":"https://github.com/ski-climb/strava_curious.git","svn_url":"https://github.com/ski-climb/strava_curious","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"base":{"label":"ski-climb:master","ref":"master","sha":"fc80199e961ce2ad27e611ea858a34b7210993bc","user":{"login":"ski-climb","id":19230981,"avatar_url":"https://avatars.githubusercontent.com/u/19230981?v=3","gravatar_id":"","url":"https://api.github.com/users/ski-climb","html_url":"https://github.com/ski-climb","followers_url":"https://api.github.com/users/ski-climb/followers","following_url":"https://api.github.com/users/ski-climb/following{/other_user}","gists_url":"https://api.github.com/users/ski-climb/gists{/gist_id}","starred_url":"https://api.github.com/users/ski-climb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ski-climb/subscriptions","organizations_url":"https://api.github.com/users/ski-climb/orgs","repos_url":"https://api.github.com/users/ski-climb/repos","events_url":"https://api.github.com/users/ski-climb/events{/privacy}","received_events_url":"https://api.github.com/users/ski-climb/received_events","type":"User","site_admin":false},"repo":{"id":80466385,"name":"strava_curious","full_name":"ski-climb/strava_curious","owner":{"login":"ski-climb","id":19230981,"avatar_url":"https://avatars.githubusercontent.com/u/19230981?v=3","gravatar_id":"","url":"https://api.github.com/users/ski-climb","html_url":"https://github.com/ski-climb","followers_url":"https://api.github.com/users/ski-climb/followers","following_url":"https://api.github.com/users/ski-climb/following{/other_user}","gists_url":"https://api.github.com/users/ski-climb/gists{/gist_id}","starred_url":"https://api.github.com/users/ski-climb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ski-climb/subscriptions","organizations_url":"https://api.github.com/users/ski-climb/orgs","repos_url":"https://api.github.com/users/ski-climb/repos","events_url":"https://api.github.com/users/ski-climb/events{/privacy}","received_events_url":"https://api.github.com/users/ski-climb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ski-climb/strava_curious","description":null,"fork":false,"url":"https://api.github.com/repos/ski-climb/strava_curious","forks_url":"https://api.github.com/repos/ski-climb/strava_curious/forks","keys_url":"https://api.github.com/repos/ski-climb/strava_curious/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ski-climb/strava_curious/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ski-climb/strava_curious/teams","hooks_url":"https://api.github.com/repos/ski-climb/strava_curious/hooks","issue_events_url":"https://api.github.com/repos/ski-climb/strava_curious/issues/events{/number}","events_url":"https://api.github.com/repos/ski-climb/strava_curious/events","assignees_url":"https://api.github.com/repos/ski-climb/strava_curious/assignees{/user}","branches_url":"https://api.github.com/repos/ski-climb/strava_curious/branches{/branch}","tags_url":"https://api.github.com/repos/ski-climb/strava_curious/tags","blobs_url":"https://api.github.com/repos/ski-climb/strava_curious/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ski-climb/strava_curious/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ski-climb/strava_curious/git/refs{/sha}","trees_url":"https://api.github.com/repos/ski-climb/strava_curious/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ski-climb/strava_curious/statuses/{sha}","languages_url":"https://api.github.com/repos/ski-climb/strava_curious/languages","stargazers_url":"https://api.github.com/repos/ski-climb/strava_curious/stargazers","contributors_url":"https://api.github.com/repos/ski-climb/strava_curious/contributors","subscribers_url":"https://api.github.com/repos/ski-climb/strava_curious/subscribers","subscription_url":"https://api.github.com/repos/ski-climb/strava_curious/subscription","commits_url":"https://api.github.com/repos/ski-climb/strava_curious/commits{/sha}","git_commits_url":"https://api.github.com/repos/ski-climb/strava_curious/git/commits{/sha}","comments_url":"https://api.github.com/repos/ski-climb/strava_curious/comments{/number}","issue_comment_url":"https://api.github.com/repos/ski-climb/strava_curious/issues/comments{/number}","contents_url":"https://api.github.com/repos/ski-climb/strava_curious/contents/{+path}","compare_url":"https://api.github.com/repos/ski-climb/strava_curious/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ski-climb/strava_curious/merges","archive_url":"https://api.github.com/repos/ski-climb/strava_curious/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ski-climb/strava_curious/downloads","issues_url":"https://api.github.com/repos/ski-climb/strava_curious/issues{/number}","pulls_url":"https://api.github.com/repos/ski-climb/strava_curious/pulls{/number}","milestones_url":"https://api.github.com/repos/ski-climb/strava_curious/milestones{/number}","notifications_url":"https://api.github.com/repos/ski-climb/strava_curious/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ski-climb/strava_curious/labels{/name}","releases_url":"https://api.github.com/repos/ski-climb/strava_curious/releases{/id}","deployments_url":"https://api.github.com/repos/ski-climb/strava_curious/deployments","created_at":"2017-01-30T21:39:32Z","updated_at":"2017-01-30T21:39:58Z","pushed_at":"2017-01-31T20:25:46Z","git_url":"git://github.com/ski-climb/strava_curious.git","ssh_url":"git@github.com:ski-climb/strava_curious.git","clone_url":"https://github.com/ski-climb/strava_curious.git","svn_url":"https://github.com/ski-climb/strava_curious","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":8,"forks":0,"open_issues":8,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ski-climb/strava_curious/pulls/10"},"html":{"href":"https://github.com/ski-climb/strava_curious/pull/10"},"issue":{"href":"https://api.github.com/repos/ski-climb/strava_curious/issues/10"},"comments":{"href":"https://api.github.com/repos/ski-climb/strava_curious/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/ski-climb/strava_curious/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/ski-climb/strava_curious/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ski-climb/strava_curious/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/ski-climb/strava_curious/statuses/e02464a19af65cff8e4d560e0dfd9802cd32f4cb"}}}}
{"actor":{"display_login":"ski-climb"}}