{"action":"created","comment":{"url":"https://api.github.com/repos/Safecast/safecastapi/pulls/comments/41483320","id":41483320,"diff_hunk":"@@ -0,0 +1,20 @@\n+class AirImportsController < ApplicationController\n+  def create\n+    @import = AirImport.new(params[:air_import])\n+    @import.user = current_user\n+    if @import.save\n+      @import.process_in_background\n+    end\n+    respond_with @import\n+  end\n+\n+  def new\n+    @import = AirImport.new\n+  end\n+\n+  def show\n+    @import = AirImport.find(params[:id])\n+    render(:partial => params[:partial]) and return if params[:partial].present?","path":"app/controllers/air_imports_controller.rb","position":17,"original_position":17,"commit_id":"aa84d74ecbe96c2e32c48265307e5206f93bc6ef","original_commit_id":"aa84d74ecbe96c2e32c48265307e5206f93bc6ef","user":{"login":"evadne","id":104086,"avatar_url":"https://avatars.githubusercontent.com/u/104086?v=3","gravatar_id":"","url":"https://api.github.com/users/evadne","html_url":"https://github.com/evadne","followers_url":"https://api.github.com/users/evadne/followers","following_url":"https://api.github.com/users/evadne/following{/other_user}","gists_url":"https://api.github.com/users/evadne/gists{/gist_id}","starred_url":"https://api.github.com/users/evadne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evadne/subscriptions","organizations_url":"https://api.github.com/users/evadne/orgs","repos_url":"https://api.github.com/users/evadne/repos","events_url":"https://api.github.com/users/evadne/events{/privacy}","received_events_url":"https://api.github.com/users/evadne/received_events","type":"User","site_admin":false},"body":"reason?","created_at":"2015-10-08T07:31:34Z","updated_at":"2015-10-08T07:31:34Z","html_url":"https://github.com/Safecast/safecastapi/pull/205#discussion_r41483320","pull_request_url":"https://api.github.com/repos/Safecast/safecastapi/pulls/205","_links":{"self":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/comments/41483320"},"html":{"href":"https://github.com/Safecast/safecastapi/pull/205#discussion_r41483320"},"pull_request":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/205"}}},"pull_request":{"url":"https://api.github.com/repos/Safecast/safecastapi/pulls/205","id":47115272,"html_url":"https://github.com/Safecast/safecastapi/pull/205","diff_url":"https://github.com/Safecast/safecastapi/pull/205.diff","patch_url":"https://github.com/Safecast/safecastapi/pull/205.patch","issue_url":"https://api.github.com/repos/Safecast/safecastapi/issues/205","number":205,"state":"open","locked":false,"title":"Handle air data","user":{"login":"matschaffer","id":690,"avatar_url":"https://avatars.githubusercontent.com/u/690?v=3","gravatar_id":"","url":"https://api.github.com/users/matschaffer","html_url":"https://github.com/matschaffer","followers_url":"https://api.github.com/users/matschaffer/followers","following_url":"https://api.github.com/users/matschaffer/following{/other_user}","gists_url":"https://api.github.com/users/matschaffer/gists{/gist_id}","starred_url":"https://api.github.com/users/matschaffer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matschaffer/subscriptions","organizations_url":"https://api.github.com/users/matschaffer/orgs","repos_url":"https://api.github.com/users/matschaffer/repos","events_url":"https://api.github.com/users/matschaffer/events{/privacy}","received_events_url":"https://api.github.com/users/matschaffer/received_events","type":"User","site_admin":false},"body":"Assumes that air lines are in the format of `spec/fixtures/air0simple.log`.\n\nWe're working on updating the firmware to supply this format and a post-processor to add approriate values to existing data sets.","created_at":"2015-10-08T06:16:32Z","updated_at":"2015-10-08T07:31:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8bb152fabe36f548135437774f129fa491f2d01b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Safecast/safecastapi/pulls/205/commits","review_comments_url":"https://api.github.com/repos/Safecast/safecastapi/pulls/205/comments","review_comment_url":"https://api.github.com/repos/Safecast/safecastapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Safecast/safecastapi/issues/205/comments","statuses_url":"https://api.github.com/repos/Safecast/safecastapi/statuses/aa84d74ecbe96c2e32c48265307e5206f93bc6ef","head":{"label":"Safecast:air/import","ref":"air/import","sha":"aa84d74ecbe96c2e32c48265307e5206f93bc6ef","user":{"login":"Safecast","id":959637,"avatar_url":"https://avatars.githubusercontent.com/u/959637?v=3","gravatar_id":"","url":"https://api.github.com/users/Safecast","html_url":"https://github.com/Safecast","followers_url":"https://api.github.com/users/Safecast/followers","following_url":"https://api.github.com/users/Safecast/following{/other_user}","gists_url":"https://api.github.com/users/Safecast/gists{/gist_id}","starred_url":"https://api.github.com/users/Safecast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safecast/subscriptions","organizations_url":"https://api.github.com/users/Safecast/orgs","repos_url":"https://api.github.com/users/Safecast/repos","events_url":"https://api.github.com/users/Safecast/events{/privacy}","received_events_url":"https://api.github.com/users/Safecast/received_events","type":"Organization","site_admin":false},"repo":{"id":2851358,"name":"safecastapi","full_name":"Safecast/safecastapi","owner":{"login":"Safecast","id":959637,"avatar_url":"https://avatars.githubusercontent.com/u/959637?v=3","gravatar_id":"","url":"https://api.github.com/users/Safecast","html_url":"https://github.com/Safecast","followers_url":"https://api.github.com/users/Safecast/followers","following_url":"https://api.github.com/users/Safecast/following{/other_user}","gists_url":"https://api.github.com/users/Safecast/gists{/gist_id}","starred_url":"https://api.github.com/users/Safecast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safecast/subscriptions","organizations_url":"https://api.github.com/users/Safecast/orgs","repos_url":"https://api.github.com/users/Safecast/repos","events_url":"https://api.github.com/users/Safecast/events{/privacy}","received_events_url":"https://api.github.com/users/Safecast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Safecast/safecastapi","description":"The app that powers api.safecast.org","fork":false,"url":"https://api.github.com/repos/Safecast/safecastapi","forks_url":"https://api.github.com/repos/Safecast/safecastapi/forks","keys_url":"https://api.github.com/repos/Safecast/safecastapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Safecast/safecastapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Safecast/safecastapi/teams","hooks_url":"https://api.github.com/repos/Safecast/safecastapi/hooks","issue_events_url":"https://api.github.com/repos/Safecast/safecastapi/issues/events{/number}","events_url":"https://api.github.com/repos/Safecast/safecastapi/events","assignees_url":"https://api.github.com/repos/Safecast/safecastapi/assignees{/user}","branches_url":"https://api.github.com/repos/Safecast/safecastapi/branches{/branch}","tags_url":"https://api.github.com/repos/Safecast/safecastapi/tags","blobs_url":"https://api.github.com/repos/Safecast/safecastapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Safecast/safecastapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Safecast/safecastapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Safecast/safecastapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Safecast/safecastapi/statuses/{sha}","languages_url":"https://api.github.com/repos/Safecast/safecastapi/languages","stargazers_url":"https://api.github.com/repos/Safecast/safecastapi/stargazers","contributors_url":"https://api.github.com/repos/Safecast/safecastapi/contributors","subscribers_url":"https://api.github.com/repos/Safecast/safecastapi/subscribers","subscription_url":"https://api.github.com/repos/Safecast/safecastapi/subscription","commits_url":"https://api.github.com/repos/Safecast/safecastapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Safecast/safecastapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Safecast/safecastapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Safecast/safecastapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Safecast/safecastapi/contents/{+path}","compare_url":"https://api.github.com/repos/Safecast/safecastapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Safecast/safecastapi/merges","archive_url":"https://api.github.com/repos/Safecast/safecastapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Safecast/safecastapi/downloads","issues_url":"https://api.github.com/repos/Safecast/safecastapi/issues{/number}","pulls_url":"https://api.github.com/repos/Safecast/safecastapi/pulls{/number}","milestones_url":"https://api.github.com/repos/Safecast/safecastapi/milestones{/number}","notifications_url":"https://api.github.com/repos/Safecast/safecastapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Safecast/safecastapi/labels{/name}","releases_url":"https://api.github.com/repos/Safecast/safecastapi/releases{/id}","created_at":"2011-11-25T18:04:30Z","updated_at":"2015-08-05T00:48:15Z","pushed_at":"2015-10-08T07:29:30Z","git_url":"git://github.com/Safecast/safecastapi.git","ssh_url":"git@github.com:Safecast/safecastapi.git","clone_url":"https://github.com/Safecast/safecastapi.git","svn_url":"https://github.com/Safecast/safecastapi","homepage":"","size":3516,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":83,"forks":2,"open_issues":83,"watchers":4,"default_branch":"master"}},"base":{"label":"Safecast:master","ref":"master","sha":"f7ac799c577b62d5f55c930a3a2dbe61d83f5851","user":{"login":"Safecast","id":959637,"avatar_url":"https://avatars.githubusercontent.com/u/959637?v=3","gravatar_id":"","url":"https://api.github.com/users/Safecast","html_url":"https://github.com/Safecast","followers_url":"https://api.github.com/users/Safecast/followers","following_url":"https://api.github.com/users/Safecast/following{/other_user}","gists_url":"https://api.github.com/users/Safecast/gists{/gist_id}","starred_url":"https://api.github.com/users/Safecast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safecast/subscriptions","organizations_url":"https://api.github.com/users/Safecast/orgs","repos_url":"https://api.github.com/users/Safecast/repos","events_url":"https://api.github.com/users/Safecast/events{/privacy}","received_events_url":"https://api.github.com/users/Safecast/received_events","type":"Organization","site_admin":false},"repo":{"id":2851358,"name":"safecastapi","full_name":"Safecast/safecastapi","owner":{"login":"Safecast","id":959637,"avatar_url":"https://avatars.githubusercontent.com/u/959637?v=3","gravatar_id":"","url":"https://api.github.com/users/Safecast","html_url":"https://github.com/Safecast","followers_url":"https://api.github.com/users/Safecast/followers","following_url":"https://api.github.com/users/Safecast/following{/other_user}","gists_url":"https://api.github.com/users/Safecast/gists{/gist_id}","starred_url":"https://api.github.com/users/Safecast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Safecast/subscriptions","organizations_url":"https://api.github.com/users/Safecast/orgs","repos_url":"https://api.github.com/users/Safecast/repos","events_url":"https://api.github.com/users/Safecast/events{/privacy}","received_events_url":"https://api.github.com/users/Safecast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Safecast/safecastapi","description":"The app that powers api.safecast.org","fork":false,"url":"https://api.github.com/repos/Safecast/safecastapi","forks_url":"https://api.github.com/repos/Safecast/safecastapi/forks","keys_url":"https://api.github.com/repos/Safecast/safecastapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Safecast/safecastapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Safecast/safecastapi/teams","hooks_url":"https://api.github.com/repos/Safecast/safecastapi/hooks","issue_events_url":"https://api.github.com/repos/Safecast/safecastapi/issues/events{/number}","events_url":"https://api.github.com/repos/Safecast/safecastapi/events","assignees_url":"https://api.github.com/repos/Safecast/safecastapi/assignees{/user}","branches_url":"https://api.github.com/repos/Safecast/safecastapi/branches{/branch}","tags_url":"https://api.github.com/repos/Safecast/safecastapi/tags","blobs_url":"https://api.github.com/repos/Safecast/safecastapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Safecast/safecastapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Safecast/safecastapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/Safecast/safecastapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Safecast/safecastapi/statuses/{sha}","languages_url":"https://api.github.com/repos/Safecast/safecastapi/languages","stargazers_url":"https://api.github.com/repos/Safecast/safecastapi/stargazers","contributors_url":"https://api.github.com/repos/Safecast/safecastapi/contributors","subscribers_url":"https://api.github.com/repos/Safecast/safecastapi/subscribers","subscription_url":"https://api.github.com/repos/Safecast/safecastapi/subscription","commits_url":"https://api.github.com/repos/Safecast/safecastapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/Safecast/safecastapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/Safecast/safecastapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/Safecast/safecastapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/Safecast/safecastapi/contents/{+path}","compare_url":"https://api.github.com/repos/Safecast/safecastapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Safecast/safecastapi/merges","archive_url":"https://api.github.com/repos/Safecast/safecastapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Safecast/safecastapi/downloads","issues_url":"https://api.github.com/repos/Safecast/safecastapi/issues{/number}","pulls_url":"https://api.github.com/repos/Safecast/safecastapi/pulls{/number}","milestones_url":"https://api.github.com/repos/Safecast/safecastapi/milestones{/number}","notifications_url":"https://api.github.com/repos/Safecast/safecastapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Safecast/safecastapi/labels{/name}","releases_url":"https://api.github.com/repos/Safecast/safecastapi/releases{/id}","created_at":"2011-11-25T18:04:30Z","updated_at":"2015-08-05T00:48:15Z","pushed_at":"2015-10-08T07:29:30Z","git_url":"git://github.com/Safecast/safecastapi.git","ssh_url":"git@github.com:Safecast/safecastapi.git","clone_url":"https://github.com/Safecast/safecastapi.git","svn_url":"https://github.com/Safecast/safecastapi","homepage":"","size":3516,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":83,"forks":2,"open_issues":83,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/205"},"html":{"href":"https://github.com/Safecast/safecastapi/pull/205"},"issue":{"href":"https://api.github.com/repos/Safecast/safecastapi/issues/205"},"comments":{"href":"https://api.github.com/repos/Safecast/safecastapi/issues/205/comments"},"review_comments":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/205/comments"},"review_comment":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Safecast/safecastapi/pulls/205/commits"},"statuses":{"href":"https://api.github.com/repos/Safecast/safecastapi/statuses/aa84d74ecbe96c2e32c48265307e5206f93bc6ef"}}}}