{"action":"created","comment":{"url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/comments/28034361","id":28034361,"diff_hunk":"@@ -25,11 +25,11 @@ def destroy\n   def upload\n     @video = Video.find(params[:video_id])\n     @translation = Translation.find(params[:translation_id])\n-\n     authorize! :upload, @translation\n \n     begin\n       @translation.upload_srt(params[:srt])\n+      @translation.update_status_to_completed","path":"app/controllers/translations_controller.rb","position":9,"original_position":9,"commit_id":"ba248ef6a8ccd1852a5edd39193e6de3b9570485","original_commit_id":"ba248ef6a8ccd1852a5edd39193e6de3b9570485","user":{"login":"DarryQueen","id":5403584,"avatar_url":"https://avatars.githubusercontent.com/u/5403584?v=3","gravatar_id":"","url":"https://api.github.com/users/DarryQueen","html_url":"https://github.com/DarryQueen","followers_url":"https://api.github.com/users/DarryQueen/followers","following_url":"https://api.github.com/users/DarryQueen/following{/other_user}","gists_url":"https://api.github.com/users/DarryQueen/gists{/gist_id}","starred_url":"https://api.github.com/users/DarryQueen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarryQueen/subscriptions","organizations_url":"https://api.github.com/users/DarryQueen/orgs","repos_url":"https://api.github.com/users/DarryQueen/repos","events_url":"https://api.github.com/users/DarryQueen/events{/privacy}","received_events_url":"https://api.github.com/users/DarryQueen/received_events","type":"User","site_admin":false},"body":"This logic should probably rest in the model.","created_at":"2015-04-09T04:15:11Z","updated_at":"2015-04-09T04:15:11Z","html_url":"https://github.com/DarryQueen/Khan-Burmese/pull/80#discussion_r28034361","pull_request_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/comments/28034361"},"html":{"href":"https://github.com/DarryQueen/Khan-Burmese/pull/80#discussion_r28034361"},"pull_request":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/80","id":32923836,"html_url":"https://github.com/DarryQueen/Khan-Burmese/pull/80","diff_url":"https://github.com/DarryQueen/Khan-Burmese/pull/80.diff","patch_url":"https://github.com/DarryQueen/Khan-Burmese/pull/80.patch","issue_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/issues/80","number":80,"state":"open","locked":false,"title":"Point system migration","user":{"login":"nishadsingh1","id":6938722,"avatar_url":"https://avatars.githubusercontent.com/u/6938722?v=3","gravatar_id":"","url":"https://api.github.com/users/nishadsingh1","html_url":"https://github.com/nishadsingh1","followers_url":"https://api.github.com/users/nishadsingh1/followers","following_url":"https://api.github.com/users/nishadsingh1/following{/other_user}","gists_url":"https://api.github.com/users/nishadsingh1/gists{/gist_id}","starred_url":"https://api.github.com/users/nishadsingh1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishadsingh1/subscriptions","organizations_url":"https://api.github.com/users/nishadsingh1/orgs","repos_url":"https://api.github.com/users/nishadsingh1/repos","events_url":"https://api.github.com/users/nishadsingh1/events{/privacy}","received_events_url":"https://api.github.com/users/nishadsingh1/received_events","type":"User","site_admin":false},"body":"Translations now store a status (incomplete, complete, complete with priority), can share their point value, and users can tell their point value. Upon uploading without an exception, translation statuses are updated depending on video starred status at the time of upload. If a translation was ever uploaded when the associated video had priority (and didn't cause an exception), then it will still have the priority-number of points (so we don't discourage people from editing their translations).\r\n\r\nreviewer: @DarryQueen ","created_at":"2015-04-09T04:11:54Z","updated_at":"2015-04-09T04:15:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29c348d29786e71a795d78017465c52aeba957fc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/80/commits","review_comments_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/80/comments","review_comment_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/issues/80/comments","statuses_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/statuses/ba248ef6a8ccd1852a5edd39193e6de3b9570485","head":{"label":"nishadsingh1:point_system_migration","ref":"point_system_migration","sha":"ba248ef6a8ccd1852a5edd39193e6de3b9570485","user":{"login":"nishadsingh1","id":6938722,"avatar_url":"https://avatars.githubusercontent.com/u/6938722?v=3","gravatar_id":"","url":"https://api.github.com/users/nishadsingh1","html_url":"https://github.com/nishadsingh1","followers_url":"https://api.github.com/users/nishadsingh1/followers","following_url":"https://api.github.com/users/nishadsingh1/following{/other_user}","gists_url":"https://api.github.com/users/nishadsingh1/gists{/gist_id}","starred_url":"https://api.github.com/users/nishadsingh1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishadsingh1/subscriptions","organizations_url":"https://api.github.com/users/nishadsingh1/orgs","repos_url":"https://api.github.com/users/nishadsingh1/repos","events_url":"https://api.github.com/users/nishadsingh1/events{/privacy}","received_events_url":"https://api.github.com/users/nishadsingh1/received_events","type":"User","site_admin":false},"repo":{"id":31683592,"name":"Khan-Burmese","full_name":"nishadsingh1/Khan-Burmese","owner":{"login":"nishadsingh1","id":6938722,"avatar_url":"https://avatars.githubusercontent.com/u/6938722?v=3","gravatar_id":"","url":"https://api.github.com/users/nishadsingh1","html_url":"https://github.com/nishadsingh1","followers_url":"https://api.github.com/users/nishadsingh1/followers","following_url":"https://api.github.com/users/nishadsingh1/following{/other_user}","gists_url":"https://api.github.com/users/nishadsingh1/gists{/gist_id}","starred_url":"https://api.github.com/users/nishadsingh1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nishadsingh1/subscriptions","organizations_url":"https://api.github.com/users/nishadsingh1/orgs","repos_url":"https://api.github.com/users/nishadsingh1/repos","events_url":"https://api.github.com/users/nishadsingh1/events{/privacy}","received_events_url":"https://api.github.com/users/nishadsingh1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nishadsingh1/Khan-Burmese","description":"Our software solution for Khan Academy's Myanmar Community translation system.","fork":true,"url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese","forks_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/forks","keys_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/teams","hooks_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/hooks","issue_events_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/issues/events{/number}","events_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/events","assignees_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/assignees{/user}","branches_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/branches{/branch}","tags_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/tags","blobs_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/git/refs{/sha}","trees_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/statuses/{sha}","languages_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/languages","stargazers_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/stargazers","contributors_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/contributors","subscribers_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/subscribers","subscription_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/subscription","commits_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/commits{/sha}","git_commits_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/git/commits{/sha}","comments_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/comments{/number}","issue_comment_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/issues/comments{/number}","contents_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/contents/{+path}","compare_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/merges","archive_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/downloads","issues_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/issues{/number}","pulls_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/pulls{/number}","milestones_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/milestones{/number}","notifications_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/labels{/name}","releases_url":"https://api.github.com/repos/nishadsingh1/Khan-Burmese/releases{/id}","created_at":"2015-03-04T22:34:50Z","updated_at":"2015-03-31T04:47:40Z","pushed_at":"2015-04-09T04:09:34Z","git_url":"git://github.com/nishadsingh1/Khan-Burmese.git","ssh_url":"git@github.com:nishadsingh1/Khan-Burmese.git","clone_url":"https://github.com/nishadsingh1/Khan-Burmese.git","svn_url":"https://github.com/nishadsingh1/Khan-Burmese","homepage":null,"size":1273,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"DarryQueen:master","ref":"master","sha":"032163d4dacdcdeb55e81396a900397e97750318","user":{"login":"DarryQueen","id":5403584,"avatar_url":"https://avatars.githubusercontent.com/u/5403584?v=3","gravatar_id":"","url":"https://api.github.com/users/DarryQueen","html_url":"https://github.com/DarryQueen","followers_url":"https://api.github.com/users/DarryQueen/followers","following_url":"https://api.github.com/users/DarryQueen/following{/other_user}","gists_url":"https://api.github.com/users/DarryQueen/gists{/gist_id}","starred_url":"https://api.github.com/users/DarryQueen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarryQueen/subscriptions","organizations_url":"https://api.github.com/users/DarryQueen/orgs","repos_url":"https://api.github.com/users/DarryQueen/repos","events_url":"https://api.github.com/users/DarryQueen/events{/privacy}","received_events_url":"https://api.github.com/users/DarryQueen/received_events","type":"User","site_admin":false},"repo":{"id":31053811,"name":"Khan-Burmese","full_name":"DarryQueen/Khan-Burmese","owner":{"login":"DarryQueen","id":5403584,"avatar_url":"https://avatars.githubusercontent.com/u/5403584?v=3","gravatar_id":"","url":"https://api.github.com/users/DarryQueen","html_url":"https://github.com/DarryQueen","followers_url":"https://api.github.com/users/DarryQueen/followers","following_url":"https://api.github.com/users/DarryQueen/following{/other_user}","gists_url":"https://api.github.com/users/DarryQueen/gists{/gist_id}","starred_url":"https://api.github.com/users/DarryQueen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DarryQueen/subscriptions","organizations_url":"https://api.github.com/users/DarryQueen/orgs","repos_url":"https://api.github.com/users/DarryQueen/repos","events_url":"https://api.github.com/users/DarryQueen/events{/privacy}","received_events_url":"https://api.github.com/users/DarryQueen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DarryQueen/Khan-Burmese","description":"Our software solution for Khan Academy's Myanmar Community translation system.","fork":false,"url":"https://api.github.com/repos/DarryQueen/Khan-Burmese","forks_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/forks","keys_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/teams","hooks_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/hooks","issue_events_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/issues/events{/number}","events_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/events","assignees_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/assignees{/user}","branches_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/branches{/branch}","tags_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/tags","blobs_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/git/refs{/sha}","trees_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/statuses/{sha}","languages_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/languages","stargazers_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/stargazers","contributors_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/contributors","subscribers_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/subscribers","subscription_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/subscription","commits_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/commits{/sha}","git_commits_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/git/commits{/sha}","comments_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/comments{/number}","issue_comment_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/issues/comments{/number}","contents_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/contents/{+path}","compare_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/merges","archive_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/downloads","issues_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/issues{/number}","pulls_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls{/number}","milestones_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/milestones{/number}","notifications_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/labels{/name}","releases_url":"https://api.github.com/repos/DarryQueen/Khan-Burmese/releases{/id}","created_at":"2015-02-20T06:34:06Z","updated_at":"2015-04-08T22:56:51Z","pushed_at":"2015-04-09T04:11:54Z","git_url":"git://github.com/DarryQueen/Khan-Burmese.git","ssh_url":"git@github.com:DarryQueen/Khan-Burmese.git","clone_url":"https://github.com/DarryQueen/Khan-Burmese.git","svn_url":"https://github.com/DarryQueen/Khan-Burmese","homepage":null,"size":2795,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":4,"forks":5,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/80"},"html":{"href":"https://github.com/DarryQueen/Khan-Burmese/pull/80"},"issue":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/issues/80"},"comments":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/DarryQueen/Khan-Burmese/statuses/ba248ef6a8ccd1852a5edd39193e6de3b9570485"}}}}