{"action":"created","comment":{"url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/comments/45011778","id":45011778,"diff_hunk":"@@ -39,5 +42,14 @@ Template.dashboardShopifyProducts.events({\n     } else {\n       Meteor.call('importShopifyProducts/importProducts', update, productType);\n     }\n+  },\n+  'submit #import-products-csv-form': function (event) {\n+    event.preventDefault();\n+    Papa.parse(event.target.csvImportProductsFile.files[0], {\n+      header: true,\n+      complete: function (results) {\n+        Meteor.call('importCSVProducts/importProducts', results.data);\n+      }","path":"client/templates/dashboard/dashboard.js","position":21,"original_position":21,"commit_id":"9e905d205d566ce2b28c177e5124e047b1459753","original_commit_id":"9e905d205d566ce2b28c177e5124e047b1459753","user":{"login":"spencern","id":1203639,"avatar_url":"https://avatars.githubusercontent.com/u/1203639?v=3","gravatar_id":"","url":"https://api.github.com/users/spencern","html_url":"https://github.com/spencern","followers_url":"https://api.github.com/users/spencern/followers","following_url":"https://api.github.com/users/spencern/following{/other_user}","gists_url":"https://api.github.com/users/spencern/gists{/gist_id}","starred_url":"https://api.github.com/users/spencern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencern/subscriptions","organizations_url":"https://api.github.com/users/spencern/orgs","repos_url":"https://api.github.com/users/spencern/repos","events_url":"https://api.github.com/users/spencern/events{/privacy}","received_events_url":"https://api.github.com/users/spencern/received_events","type":"User","site_admin":false},"body":"Good catch. I should add an error handler in here. There's 2 ways to do it in Papa Parse - with an `error:` option and with an `error` object on the `results object` - I should add both.","created_at":"2015-11-17T01:31:41Z","updated_at":"2015-11-17T01:31:41Z","html_url":"https://github.com/getoutfitted/reaction-shopify-products/pull/8#discussion_r45011778","pull_request_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/comments/45011778"},"html":{"href":"https://github.com/getoutfitted/reaction-shopify-products/pull/8#discussion_r45011778"},"pull_request":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/8","id":50890521,"html_url":"https://github.com/getoutfitted/reaction-shopify-products/pull/8","diff_url":"https://github.com/getoutfitted/reaction-shopify-products/pull/8.diff","patch_url":"https://github.com/getoutfitted/reaction-shopify-products/pull/8.patch","issue_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues/8","number":8,"state":"closed","locked":false,"title":"Csv import","user":{"login":"spencern","id":1203639,"avatar_url":"https://avatars.githubusercontent.com/u/1203639?v=3","gravatar_id":"","url":"https://api.github.com/users/spencern","html_url":"https://github.com/spencern","followers_url":"https://api.github.com/users/spencern/followers","following_url":"https://api.github.com/users/spencern/following{/other_user}","gists_url":"https://api.github.com/users/spencern/gists{/gist_id}","starred_url":"https://api.github.com/users/spencern/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spencern/subscriptions","organizations_url":"https://api.github.com/users/spencern/orgs","repos_url":"https://api.github.com/users/spencern/repos","events_url":"https://api.github.com/users/spencern/events{/privacy}","received_events_url":"https://api.github.com/users/spencern/received_events","type":"User","site_admin":false},"body":"Finishes CSV Product Import functionality","created_at":"2015-11-17T01:01:01Z","updated_at":"2015-11-17T01:31:41Z","closed_at":"2015-11-17T01:19:03Z","merged_at":"2015-11-17T01:19:03Z","merge_commit_sha":"150cd53ade2f828bc9223f2ff0caad1a980b5db7","assignee":{"login":"paulgrever","id":3664281,"avatar_url":"https://avatars.githubusercontent.com/u/3664281?v=3","gravatar_id":"","url":"https://api.github.com/users/paulgrever","html_url":"https://github.com/paulgrever","followers_url":"https://api.github.com/users/paulgrever/followers","following_url":"https://api.github.com/users/paulgrever/following{/other_user}","gists_url":"https://api.github.com/users/paulgrever/gists{/gist_id}","starred_url":"https://api.github.com/users/paulgrever/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulgrever/subscriptions","organizations_url":"https://api.github.com/users/paulgrever/orgs","repos_url":"https://api.github.com/users/paulgrever/repos","events_url":"https://api.github.com/users/paulgrever/events{/privacy}","received_events_url":"https://api.github.com/users/paulgrever/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/8/commits","review_comments_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/8/comments","review_comment_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/comments{/number}","comments_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues/8/comments","statuses_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/statuses/9e905d205d566ce2b28c177e5124e047b1459753","head":{"label":"getoutfitted:csv-import","ref":"csv-import","sha":"9e905d205d566ce2b28c177e5124e047b1459753","user":{"login":"getoutfitted","id":11788610,"avatar_url":"https://avatars.githubusercontent.com/u/11788610?v=3","gravatar_id":"","url":"https://api.github.com/users/getoutfitted","html_url":"https://github.com/getoutfitted","followers_url":"https://api.github.com/users/getoutfitted/followers","following_url":"https://api.github.com/users/getoutfitted/following{/other_user}","gists_url":"https://api.github.com/users/getoutfitted/gists{/gist_id}","starred_url":"https://api.github.com/users/getoutfitted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getoutfitted/subscriptions","organizations_url":"https://api.github.com/users/getoutfitted/orgs","repos_url":"https://api.github.com/users/getoutfitted/repos","events_url":"https://api.github.com/users/getoutfitted/events{/privacy}","received_events_url":"https://api.github.com/users/getoutfitted/received_events","type":"Organization","site_admin":false},"repo":{"id":45870680,"name":"reaction-shopify-products","full_name":"getoutfitted/reaction-shopify-products","owner":{"login":"getoutfitted","id":11788610,"avatar_url":"https://avatars.githubusercontent.com/u/11788610?v=3","gravatar_id":"","url":"https://api.github.com/users/getoutfitted","html_url":"https://github.com/getoutfitted","followers_url":"https://api.github.com/users/getoutfitted/followers","following_url":"https://api.github.com/users/getoutfitted/following{/other_user}","gists_url":"https://api.github.com/users/getoutfitted/gists{/gist_id}","starred_url":"https://api.github.com/users/getoutfitted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getoutfitted/subscriptions","organizations_url":"https://api.github.com/users/getoutfitted/orgs","repos_url":"https://api.github.com/users/getoutfitted/repos","events_url":"https://api.github.com/users/getoutfitted/events{/privacy}","received_events_url":"https://api.github.com/users/getoutfitted/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getoutfitted/reaction-shopify-products","description":"Import your products from an existing shopify store","fork":false,"url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products","forks_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/forks","keys_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/teams","hooks_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/hooks","issue_events_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues/events{/number}","events_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/events","assignees_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/assignees{/user}","branches_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/branches{/branch}","tags_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/tags","blobs_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/refs{/sha}","trees_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/statuses/{sha}","languages_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/languages","stargazers_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/stargazers","contributors_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/contributors","subscribers_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/subscribers","subscription_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/subscription","commits_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/commits{/sha}","git_commits_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/commits{/sha}","comments_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/comments{/number}","issue_comment_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues/comments{/number}","contents_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/contents/{+path}","compare_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/merges","archive_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/downloads","issues_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues{/number}","pulls_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls{/number}","milestones_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/milestones{/number}","notifications_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/labels{/name}","releases_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/releases{/id}","created_at":"2015-11-09T22:21:47Z","updated_at":"2015-11-14T01:30:55Z","pushed_at":"2015-11-17T01:19:04Z","git_url":"git://github.com/getoutfitted/reaction-shopify-products.git","ssh_url":"git@github.com:getoutfitted/reaction-shopify-products.git","clone_url":"https://github.com/getoutfitted/reaction-shopify-products.git","svn_url":"https://github.com/getoutfitted/reaction-shopify-products","homepage":null,"size":36,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"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":1,"default_branch":"development"}},"base":{"label":"getoutfitted:development","ref":"development","sha":"14065fd197658314bec9ace79d393d416754d874","user":{"login":"getoutfitted","id":11788610,"avatar_url":"https://avatars.githubusercontent.com/u/11788610?v=3","gravatar_id":"","url":"https://api.github.com/users/getoutfitted","html_url":"https://github.com/getoutfitted","followers_url":"https://api.github.com/users/getoutfitted/followers","following_url":"https://api.github.com/users/getoutfitted/following{/other_user}","gists_url":"https://api.github.com/users/getoutfitted/gists{/gist_id}","starred_url":"https://api.github.com/users/getoutfitted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getoutfitted/subscriptions","organizations_url":"https://api.github.com/users/getoutfitted/orgs","repos_url":"https://api.github.com/users/getoutfitted/repos","events_url":"https://api.github.com/users/getoutfitted/events{/privacy}","received_events_url":"https://api.github.com/users/getoutfitted/received_events","type":"Organization","site_admin":false},"repo":{"id":45870680,"name":"reaction-shopify-products","full_name":"getoutfitted/reaction-shopify-products","owner":{"login":"getoutfitted","id":11788610,"avatar_url":"https://avatars.githubusercontent.com/u/11788610?v=3","gravatar_id":"","url":"https://api.github.com/users/getoutfitted","html_url":"https://github.com/getoutfitted","followers_url":"https://api.github.com/users/getoutfitted/followers","following_url":"https://api.github.com/users/getoutfitted/following{/other_user}","gists_url":"https://api.github.com/users/getoutfitted/gists{/gist_id}","starred_url":"https://api.github.com/users/getoutfitted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getoutfitted/subscriptions","organizations_url":"https://api.github.com/users/getoutfitted/orgs","repos_url":"https://api.github.com/users/getoutfitted/repos","events_url":"https://api.github.com/users/getoutfitted/events{/privacy}","received_events_url":"https://api.github.com/users/getoutfitted/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getoutfitted/reaction-shopify-products","description":"Import your products from an existing shopify store","fork":false,"url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products","forks_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/forks","keys_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/teams","hooks_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/hooks","issue_events_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues/events{/number}","events_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/events","assignees_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/assignees{/user}","branches_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/branches{/branch}","tags_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/tags","blobs_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/refs{/sha}","trees_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/statuses/{sha}","languages_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/languages","stargazers_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/stargazers","contributors_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/contributors","subscribers_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/subscribers","subscription_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/subscription","commits_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/commits{/sha}","git_commits_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/git/commits{/sha}","comments_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/comments{/number}","issue_comment_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues/comments{/number}","contents_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/contents/{+path}","compare_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/merges","archive_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/downloads","issues_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues{/number}","pulls_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls{/number}","milestones_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/milestones{/number}","notifications_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/labels{/name}","releases_url":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/releases{/id}","created_at":"2015-11-09T22:21:47Z","updated_at":"2015-11-14T01:30:55Z","pushed_at":"2015-11-17T01:19:04Z","git_url":"git://github.com/getoutfitted/reaction-shopify-products.git","ssh_url":"git@github.com:getoutfitted/reaction-shopify-products.git","clone_url":"https://github.com/getoutfitted/reaction-shopify-products.git","svn_url":"https://github.com/getoutfitted/reaction-shopify-products","homepage":null,"size":36,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"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":1,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/8"},"html":{"href":"https://github.com/getoutfitted/reaction-shopify-products/pull/8"},"issue":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues/8"},"comments":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/getoutfitted/reaction-shopify-products/statuses/9e905d205d566ce2b28c177e5124e047b1459753"}}}}