{"action":"created","comment":{"url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments/27453134","id":27453134,"diff_hunk":"@@ -414,8 +425,36 @@ def csv_upload\n           end\n         end\n       end\n+      # Display a warning message if the newly uploaded file\n+      #      overrides existing collumn names and/or grade totals\n+      matching_names = true\n+      begin\n+        if !abort_upload\n+          grade_entry_items =\n+            GradeEntryItem.where(grade_entry_form_id: @grade_entry_form.id)\n+          lines = File.foreach(params[:upload][:grades_file].path.to_s).first(2)\n+          uploaded_column_names =  lines[0].split(',').map(&:strip)","path":"app/controllers/grade_entry_forms_controller.rb","position":67,"original_position":67,"commit_id":"347486f5faf65b9c805521bd002db044866d2472","original_commit_id":"347486f5faf65b9c805521bd002db044866d2472","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Unnecessary spacing detected.","created_at":"2015-03-31T04:57:28Z","updated_at":"2015-03-31T04:57:28Z","html_url":"https://github.com/MarkUsProject/Markus/pull/2115#discussion_r27453134","pull_request_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2115","_links":{"self":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments/27453134"},"html":{"href":"https://github.com/MarkUsProject/Markus/pull/2115#discussion_r27453134"},"pull_request":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2115"}}},"pull_request":{"url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2115","id":32291219,"html_url":"https://github.com/MarkUsProject/Markus/pull/2115","diff_url":"https://github.com/MarkUsProject/Markus/pull/2115.diff","patch_url":"https://github.com/MarkUsProject/Markus/pull/2115.patch","issue_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/2115","number":2115,"state":"open","locked":false,"title":"added the warning message on attempted csv template overwrite","user":{"login":"MatakuT","id":10067146,"avatar_url":"https://avatars.githubusercontent.com/u/10067146?v=3","gravatar_id":"","url":"https://api.github.com/users/MatakuT","html_url":"https://github.com/MatakuT","followers_url":"https://api.github.com/users/MatakuT/followers","following_url":"https://api.github.com/users/MatakuT/following{/other_user}","gists_url":"https://api.github.com/users/MatakuT/gists{/gist_id}","starred_url":"https://api.github.com/users/MatakuT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatakuT/subscriptions","organizations_url":"https://api.github.com/users/MatakuT/orgs","repos_url":"https://api.github.com/users/MatakuT/repos","events_url":"https://api.github.com/users/MatakuT/events{/privacy}","received_events_url":"https://api.github.com/users/MatakuT/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-31T04:57:17Z","updated_at":"2015-03-31T04:57:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"970c61152ce49550b26bc7794f020bc1ebae2e72","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2115/commits","review_comments_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2115/comments","review_comment_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/2115/comments","statuses_url":"https://api.github.com/repos/MarkUsProject/Markus/statuses/347486f5faf65b9c805521bd002db044866d2472","head":{"label":"MatakuT:iss2112","ref":"iss2112","sha":"347486f5faf65b9c805521bd002db044866d2472","user":{"login":"MatakuT","id":10067146,"avatar_url":"https://avatars.githubusercontent.com/u/10067146?v=3","gravatar_id":"","url":"https://api.github.com/users/MatakuT","html_url":"https://github.com/MatakuT","followers_url":"https://api.github.com/users/MatakuT/followers","following_url":"https://api.github.com/users/MatakuT/following{/other_user}","gists_url":"https://api.github.com/users/MatakuT/gists{/gist_id}","starred_url":"https://api.github.com/users/MatakuT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatakuT/subscriptions","organizations_url":"https://api.github.com/users/MatakuT/orgs","repos_url":"https://api.github.com/users/MatakuT/repos","events_url":"https://api.github.com/users/MatakuT/events{/privacy}","received_events_url":"https://api.github.com/users/MatakuT/received_events","type":"User","site_admin":false},"repo":{"id":29375342,"name":"Markus","full_name":"MatakuT/Markus","owner":{"login":"MatakuT","id":10067146,"avatar_url":"https://avatars.githubusercontent.com/u/10067146?v=3","gravatar_id":"","url":"https://api.github.com/users/MatakuT","html_url":"https://github.com/MatakuT","followers_url":"https://api.github.com/users/MatakuT/followers","following_url":"https://api.github.com/users/MatakuT/following{/other_user}","gists_url":"https://api.github.com/users/MatakuT/gists{/gist_id}","starred_url":"https://api.github.com/users/MatakuT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MatakuT/subscriptions","organizations_url":"https://api.github.com/users/MatakuT/orgs","repos_url":"https://api.github.com/users/MatakuT/repos","events_url":"https://api.github.com/users/MatakuT/events{/privacy}","received_events_url":"https://api.github.com/users/MatakuT/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MatakuT/Markus","description":"Git repository of MarkUs","fork":true,"url":"https://api.github.com/repos/MatakuT/Markus","forks_url":"https://api.github.com/repos/MatakuT/Markus/forks","keys_url":"https://api.github.com/repos/MatakuT/Markus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MatakuT/Markus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MatakuT/Markus/teams","hooks_url":"https://api.github.com/repos/MatakuT/Markus/hooks","issue_events_url":"https://api.github.com/repos/MatakuT/Markus/issues/events{/number}","events_url":"https://api.github.com/repos/MatakuT/Markus/events","assignees_url":"https://api.github.com/repos/MatakuT/Markus/assignees{/user}","branches_url":"https://api.github.com/repos/MatakuT/Markus/branches{/branch}","tags_url":"https://api.github.com/repos/MatakuT/Markus/tags","blobs_url":"https://api.github.com/repos/MatakuT/Markus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MatakuT/Markus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MatakuT/Markus/git/refs{/sha}","trees_url":"https://api.github.com/repos/MatakuT/Markus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MatakuT/Markus/statuses/{sha}","languages_url":"https://api.github.com/repos/MatakuT/Markus/languages","stargazers_url":"https://api.github.com/repos/MatakuT/Markus/stargazers","contributors_url":"https://api.github.com/repos/MatakuT/Markus/contributors","subscribers_url":"https://api.github.com/repos/MatakuT/Markus/subscribers","subscription_url":"https://api.github.com/repos/MatakuT/Markus/subscription","commits_url":"https://api.github.com/repos/MatakuT/Markus/commits{/sha}","git_commits_url":"https://api.github.com/repos/MatakuT/Markus/git/commits{/sha}","comments_url":"https://api.github.com/repos/MatakuT/Markus/comments{/number}","issue_comment_url":"https://api.github.com/repos/MatakuT/Markus/issues/comments{/number}","contents_url":"https://api.github.com/repos/MatakuT/Markus/contents/{+path}","compare_url":"https://api.github.com/repos/MatakuT/Markus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MatakuT/Markus/merges","archive_url":"https://api.github.com/repos/MatakuT/Markus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MatakuT/Markus/downloads","issues_url":"https://api.github.com/repos/MatakuT/Markus/issues{/number}","pulls_url":"https://api.github.com/repos/MatakuT/Markus/pulls{/number}","milestones_url":"https://api.github.com/repos/MatakuT/Markus/milestones{/number}","notifications_url":"https://api.github.com/repos/MatakuT/Markus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MatakuT/Markus/labels{/name}","releases_url":"https://api.github.com/repos/MatakuT/Markus/releases{/id}","created_at":"2015-01-17T01:12:45Z","updated_at":"2015-03-31T04:34:17Z","pushed_at":"2015-03-31T04:56:51Z","git_url":"git://github.com/MatakuT/Markus.git","ssh_url":"git@github.com:MatakuT/Markus.git","clone_url":"https://github.com/MatakuT/Markus.git","svn_url":"https://github.com/MatakuT/Markus","homepage":"http://www.markusproject.org","size":21615,"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":"MarkUsProject:master","ref":"master","sha":"b1d66bc9c54fb27b9fda1aab147ee9a646e1b484","user":{"login":"MarkUsProject","id":415874,"avatar_url":"https://avatars.githubusercontent.com/u/415874?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkUsProject","html_url":"https://github.com/MarkUsProject","followers_url":"https://api.github.com/users/MarkUsProject/followers","following_url":"https://api.github.com/users/MarkUsProject/following{/other_user}","gists_url":"https://api.github.com/users/MarkUsProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkUsProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkUsProject/subscriptions","organizations_url":"https://api.github.com/users/MarkUsProject/orgs","repos_url":"https://api.github.com/users/MarkUsProject/repos","events_url":"https://api.github.com/users/MarkUsProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarkUsProject/received_events","type":"Organization","site_admin":false},"repo":{"id":940538,"name":"Markus","full_name":"MarkUsProject/Markus","owner":{"login":"MarkUsProject","id":415874,"avatar_url":"https://avatars.githubusercontent.com/u/415874?v=3","gravatar_id":"","url":"https://api.github.com/users/MarkUsProject","html_url":"https://github.com/MarkUsProject","followers_url":"https://api.github.com/users/MarkUsProject/followers","following_url":"https://api.github.com/users/MarkUsProject/following{/other_user}","gists_url":"https://api.github.com/users/MarkUsProject/gists{/gist_id}","starred_url":"https://api.github.com/users/MarkUsProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarkUsProject/subscriptions","organizations_url":"https://api.github.com/users/MarkUsProject/orgs","repos_url":"https://api.github.com/users/MarkUsProject/repos","events_url":"https://api.github.com/users/MarkUsProject/events{/privacy}","received_events_url":"https://api.github.com/users/MarkUsProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MarkUsProject/Markus","description":"Git repository of MarkUs","fork":false,"url":"https://api.github.com/repos/MarkUsProject/Markus","forks_url":"https://api.github.com/repos/MarkUsProject/Markus/forks","keys_url":"https://api.github.com/repos/MarkUsProject/Markus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MarkUsProject/Markus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MarkUsProject/Markus/teams","hooks_url":"https://api.github.com/repos/MarkUsProject/Markus/hooks","issue_events_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/events{/number}","events_url":"https://api.github.com/repos/MarkUsProject/Markus/events","assignees_url":"https://api.github.com/repos/MarkUsProject/Markus/assignees{/user}","branches_url":"https://api.github.com/repos/MarkUsProject/Markus/branches{/branch}","tags_url":"https://api.github.com/repos/MarkUsProject/Markus/tags","blobs_url":"https://api.github.com/repos/MarkUsProject/Markus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MarkUsProject/Markus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MarkUsProject/Markus/git/refs{/sha}","trees_url":"https://api.github.com/repos/MarkUsProject/Markus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MarkUsProject/Markus/statuses/{sha}","languages_url":"https://api.github.com/repos/MarkUsProject/Markus/languages","stargazers_url":"https://api.github.com/repos/MarkUsProject/Markus/stargazers","contributors_url":"https://api.github.com/repos/MarkUsProject/Markus/contributors","subscribers_url":"https://api.github.com/repos/MarkUsProject/Markus/subscribers","subscription_url":"https://api.github.com/repos/MarkUsProject/Markus/subscription","commits_url":"https://api.github.com/repos/MarkUsProject/Markus/commits{/sha}","git_commits_url":"https://api.github.com/repos/MarkUsProject/Markus/git/commits{/sha}","comments_url":"https://api.github.com/repos/MarkUsProject/Markus/comments{/number}","issue_comment_url":"https://api.github.com/repos/MarkUsProject/Markus/issues/comments{/number}","contents_url":"https://api.github.com/repos/MarkUsProject/Markus/contents/{+path}","compare_url":"https://api.github.com/repos/MarkUsProject/Markus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MarkUsProject/Markus/merges","archive_url":"https://api.github.com/repos/MarkUsProject/Markus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MarkUsProject/Markus/downloads","issues_url":"https://api.github.com/repos/MarkUsProject/Markus/issues{/number}","pulls_url":"https://api.github.com/repos/MarkUsProject/Markus/pulls{/number}","milestones_url":"https://api.github.com/repos/MarkUsProject/Markus/milestones{/number}","notifications_url":"https://api.github.com/repos/MarkUsProject/Markus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MarkUsProject/Markus/labels{/name}","releases_url":"https://api.github.com/repos/MarkUsProject/Markus/releases{/id}","created_at":"2010-09-26T16:18:08Z","updated_at":"2015-03-31T02:00:24Z","pushed_at":"2015-03-31T04:57:17Z","git_url":"git://github.com/MarkUsProject/Markus.git","ssh_url":"git@github.com:MarkUsProject/Markus.git","clone_url":"https://github.com/MarkUsProject/Markus.git","svn_url":"https://github.com/MarkUsProject/Markus","homepage":"http://www.markusproject.org","size":47351,"stargazers_count":123,"watchers_count":123,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":150,"mirror_url":null,"open_issues_count":105,"forks":150,"open_issues":105,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2115"},"html":{"href":"https://github.com/MarkUsProject/Markus/pull/2115"},"issue":{"href":"https://api.github.com/repos/MarkUsProject/Markus/issues/2115"},"comments":{"href":"https://api.github.com/repos/MarkUsProject/Markus/issues/2115/comments"},"review_comments":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2115/comments"},"review_comment":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MarkUsProject/Markus/pulls/2115/commits"},"statuses":{"href":"https://api.github.com/repos/MarkUsProject/Markus/statuses/347486f5faf65b9c805521bd002db044866d2472"}}}}