{"action":"created","comment":{"url":"https://api.github.com/repos/calblueprint/ros-student/pulls/comments/86059180","pull_request_review_id":6736652,"id":86059180,"diff_hunk":"@@ -92,6 +99,34 @@ class TestingPage extends React.Component {\n     });\n   }\n \n+  onImage(value) {\n+    console.log('image')\n+    const params = {\n+      component: {\n+        photo_attributes: {\n+          image_data: value,\n+        },\n+      },\n+    }\n+    request.post('/api/admins/subsections/1/components', params, (response) => {\n+      this.setState({ image: response.component.photo.image_url })\n+      console.log(response.component.photo.image_url)\n+    })\n+  }\n+\n+  onAudio(audio) {\n+    console.log('audio')\n+    const params = {\n+      component: {\n+        audio_data: audio,\n+      }\n+    }\n+    request.post('/api/admins/subsections/1/components', params, (response) => {\n+      this.setState({ url: response.component.audio_url })\n+      console.log(response.component)","path":"app/assets/javascripts/authentication/components/TestingPage.js","position":62,"original_position":62,"commit_id":"b048b2037b21738bad8b8e384a9a7437e31423d5","original_commit_id":"b048b2037b21738bad8b8e384a9a7437e31423d5","user":{"login":"warrenshen","id":8787796,"avatar_url":"https://avatars.githubusercontent.com/u/8787796?v=3","gravatar_id":"","url":"https://api.github.com/users/warrenshen","html_url":"https://github.com/warrenshen","followers_url":"https://api.github.com/users/warrenshen/followers","following_url":"https://api.github.com/users/warrenshen/following{/other_user}","gists_url":"https://api.github.com/users/warrenshen/gists{/gist_id}","starred_url":"https://api.github.com/users/warrenshen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warrenshen/subscriptions","organizations_url":"https://api.github.com/users/warrenshen/orgs","repos_url":"https://api.github.com/users/warrenshen/repos","events_url":"https://api.github.com/users/warrenshen/events{/privacy}","received_events_url":"https://api.github.com/users/warrenshen/received_events","type":"User","site_admin":false},"body":"Same","created_at":"2016-11-02T01:24:32Z","updated_at":"2016-11-02T01:24:32Z","html_url":"https://github.com/calblueprint/ros-student/pull/95#discussion_r86059180","pull_request_url":"https://api.github.com/repos/calblueprint/ros-student/pulls/95","_links":{"self":{"href":"https://api.github.com/repos/calblueprint/ros-student/pulls/comments/86059180"},"html":{"href":"https://github.com/calblueprint/ros-student/pull/95#discussion_r86059180"},"pull_request":{"href":"https://api.github.com/repos/calblueprint/ros-student/pulls/95"}}},"pull_request":{"url":"https://api.github.com/repos/calblueprint/ros-student/pulls/95","id":91759996,"html_url":"https://github.com/calblueprint/ros-student/pull/95","diff_url":"https://github.com/calblueprint/ros-student/pull/95.diff","patch_url":"https://github.com/calblueprint/ros-student/pull/95.patch","issue_url":"https://api.github.com/repos/calblueprint/ros-student/issues/95","number":95,"state":"open","locked":false,"title":"Allow admin to upload files.","user":{"login":"charlesx2013","id":5563367,"avatar_url":"https://avatars.githubusercontent.com/u/5563367?v=3","gravatar_id":"","url":"https://api.github.com/users/charlesx2013","html_url":"https://github.com/charlesx2013","followers_url":"https://api.github.com/users/charlesx2013/followers","following_url":"https://api.github.com/users/charlesx2013/following{/other_user}","gists_url":"https://api.github.com/users/charlesx2013/gists{/gist_id}","starred_url":"https://api.github.com/users/charlesx2013/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charlesx2013/subscriptions","organizations_url":"https://api.github.com/users/charlesx2013/orgs","repos_url":"https://api.github.com/users/charlesx2013/repos","events_url":"https://api.github.com/users/charlesx2013/events{/privacy}","received_events_url":"https://api.github.com/users/charlesx2013/received_events","type":"User","site_admin":false},"body":"Adding carrier wave for both photos and audio.","created_at":"2016-11-01T10:19:30Z","updated_at":"2016-11-02T01:26:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f904c430315743199b9a3973c0bac174ac13af8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/calblueprint/ros-student/pulls/95/commits","review_comments_url":"https://api.github.com/repos/calblueprint/ros-student/pulls/95/comments","review_comment_url":"https://api.github.com/repos/calblueprint/ros-student/pulls/comments{/number}","comments_url":"https://api.github.com/repos/calblueprint/ros-student/issues/95/comments","statuses_url":"https://api.github.com/repos/calblueprint/ros-student/statuses/b048b2037b21738bad8b8e384a9a7437e31423d5","head":{"label":"calblueprint:charles/fileuploading","ref":"charles/fileuploading","sha":"b048b2037b21738bad8b8e384a9a7437e31423d5","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":66624689,"name":"ros-student","full_name":"calblueprint/ros-student","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/ros-student","description":"A student portal for Roots of Success","fork":false,"url":"https://api.github.com/repos/calblueprint/ros-student","forks_url":"https://api.github.com/repos/calblueprint/ros-student/forks","keys_url":"https://api.github.com/repos/calblueprint/ros-student/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/ros-student/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/ros-student/teams","hooks_url":"https://api.github.com/repos/calblueprint/ros-student/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/ros-student/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/ros-student/events","assignees_url":"https://api.github.com/repos/calblueprint/ros-student/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/ros-student/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/ros-student/tags","blobs_url":"https://api.github.com/repos/calblueprint/ros-student/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/ros-student/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/ros-student/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/ros-student/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/ros-student/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/ros-student/languages","stargazers_url":"https://api.github.com/repos/calblueprint/ros-student/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/ros-student/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/ros-student/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/ros-student/subscription","commits_url":"https://api.github.com/repos/calblueprint/ros-student/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/ros-student/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/ros-student/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/ros-student/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/ros-student/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/ros-student/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/ros-student/merges","archive_url":"https://api.github.com/repos/calblueprint/ros-student/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/ros-student/downloads","issues_url":"https://api.github.com/repos/calblueprint/ros-student/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/ros-student/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/ros-student/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/ros-student/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/ros-student/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/ros-student/releases{/id}","deployments_url":"https://api.github.com/repos/calblueprint/ros-student/deployments","created_at":"2016-08-26T07:01:32Z","updated_at":"2016-10-24T11:46:06Z","pushed_at":"2016-11-01T10:19:30Z","git_url":"git://github.com/calblueprint/ros-student.git","ssh_url":"git@github.com:calblueprint/ros-student.git","clone_url":"https://github.com/calblueprint/ros-student.git","svn_url":"https://github.com/calblueprint/ros-student","homepage":null,"size":543,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":22,"forks":0,"open_issues":22,"watchers":3,"default_branch":"master"}},"base":{"label":"calblueprint:master","ref":"master","sha":"43facb21c690fc36dc758291ab15bd9bf677d36a","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":66624689,"name":"ros-student","full_name":"calblueprint/ros-student","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/ros-student","description":"A student portal for Roots of Success","fork":false,"url":"https://api.github.com/repos/calblueprint/ros-student","forks_url":"https://api.github.com/repos/calblueprint/ros-student/forks","keys_url":"https://api.github.com/repos/calblueprint/ros-student/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/ros-student/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/ros-student/teams","hooks_url":"https://api.github.com/repos/calblueprint/ros-student/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/ros-student/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/ros-student/events","assignees_url":"https://api.github.com/repos/calblueprint/ros-student/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/ros-student/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/ros-student/tags","blobs_url":"https://api.github.com/repos/calblueprint/ros-student/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/ros-student/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/ros-student/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/ros-student/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/ros-student/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/ros-student/languages","stargazers_url":"https://api.github.com/repos/calblueprint/ros-student/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/ros-student/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/ros-student/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/ros-student/subscription","commits_url":"https://api.github.com/repos/calblueprint/ros-student/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/ros-student/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/ros-student/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/ros-student/issues/comments{/number}","contents_url":"https://api.github.com/repos/calblueprint/ros-student/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/ros-student/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/ros-student/merges","archive_url":"https://api.github.com/repos/calblueprint/ros-student/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/ros-student/downloads","issues_url":"https://api.github.com/repos/calblueprint/ros-student/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/ros-student/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/ros-student/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/ros-student/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/ros-student/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/ros-student/releases{/id}","deployments_url":"https://api.github.com/repos/calblueprint/ros-student/deployments","created_at":"2016-08-26T07:01:32Z","updated_at":"2016-10-24T11:46:06Z","pushed_at":"2016-11-01T10:19:30Z","git_url":"git://github.com/calblueprint/ros-student.git","ssh_url":"git@github.com:calblueprint/ros-student.git","clone_url":"https://github.com/calblueprint/ros-student.git","svn_url":"https://github.com/calblueprint/ros-student","homepage":null,"size":543,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":22,"forks":0,"open_issues":22,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calblueprint/ros-student/pulls/95"},"html":{"href":"https://github.com/calblueprint/ros-student/pull/95"},"issue":{"href":"https://api.github.com/repos/calblueprint/ros-student/issues/95"},"comments":{"href":"https://api.github.com/repos/calblueprint/ros-student/issues/95/comments"},"review_comments":{"href":"https://api.github.com/repos/calblueprint/ros-student/pulls/95/comments"},"review_comment":{"href":"https://api.github.com/repos/calblueprint/ros-student/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/calblueprint/ros-student/pulls/95/commits"},"statuses":{"href":"https://api.github.com/repos/calblueprint/ros-student/statuses/b048b2037b21738bad8b8e384a9a7437e31423d5"}}}}
{"actor":{"display_login":"warrenshen"}}