{"action":"created","comment":{"url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/comments/229121513","pull_request_review_id":169543039,"id":229121513,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTEyMTUxMw==","diff_hunk":"@@ -13,3 +26,44 @@\n    U - updateSmurf\n    D - deleteSmurf\n */\n+\n+const url = 'http://localhost:3333/smurfs'\n+\n+export const getSmurfs = () => dispatch => {\n+  dispatch({ type: FETCHING_SMURFS });\n+  axios.get(url)\n+    .then(({ data }) => dispatch({\n+      type: FETCHING_SMURFS_SUCCESS,\n+      payload: data\n+    }))\n+    .catch(({ data }) => dispatch({\n+      type: FETCHING_SMURFS_FAILURE,\n+      payload: data\n+    }));\n+};\n+\n+export const addSmurf = smurf => dispatch => {\n+  dispatch({ type: ADDING_SMURF });\n+  axios.post(url, smurf)\n+    .then(({ data }) => dispatch({\n+      type: ADDING_SMURF_SUCCESS,\n+      payload: data\n+    }))\n+    .catch(({ data }) => dispatch({\n+      type: ADDING_SMURF_FAILURE,\n+      payload: data\n+    }));\n+}\n+\n+export const deleteSmurf = id => dispatch => {\n+  dispatch({ type: DELETING_SMURF });\n+  axios.delete(`${url}/${id}`)\n+    .then(({ data }) => dispatch({\n+      type: DELETING_SMURF_SUCCESS,\n+      payload: data\n+    }))\n+    .catch(({ data }) => dispatch({\n+      type: DELETING_SMURF_FAILURE,\n+      payload: data\n+    }))","path":"smurfs/src/actions/index.js","position":66,"original_position":66,"commit_id":"37c6a00ec38369b87e52207a1ade4b95fbbffe66","original_commit_id":"37c6a00ec38369b87e52207a1ade4b95fbbffe66","user":{"login":"sumi419","id":26584764,"node_id":"MDQ6VXNlcjI2NTg0NzY0","avatar_url":"https://avatars1.githubusercontent.com/u/26584764?v=4","gravatar_id":"","url":"https://api.github.com/users/sumi419","html_url":"https://github.com/sumi419","followers_url":"https://api.github.com/users/sumi419/followers","following_url":"https://api.github.com/users/sumi419/following{/other_user}","gists_url":"https://api.github.com/users/sumi419/gists{/gist_id}","starred_url":"https://api.github.com/users/sumi419/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sumi419/subscriptions","organizations_url":"https://api.github.com/users/sumi419/orgs","repos_url":"https://api.github.com/users/sumi419/repos","events_url":"https://api.github.com/users/sumi419/events{/privacy}","received_events_url":"https://api.github.com/users/sumi419/received_events","type":"User","site_admin":false},"body":"Good job getting a stretch goal here 💯 ","created_at":"2018-10-29T22:29:20Z","updated_at":"2018-10-29T22:40:12Z","html_url":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pull/453#discussion_r229121513","pull_request_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/453","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/comments/229121513"},"html":{"href":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pull/453#discussion_r229121513"},"pull_request":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/453"}}},"pull_request":{"url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/453","id":226143484,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MTQzNDg0","html_url":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pull/453","diff_url":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pull/453.diff","patch_url":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pull/453.patch","issue_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/issues/453","number":453,"state":"open","locked":false,"title":"Jasmine Galang - Sprint Challenge: Redux-Smurfs","user":{"login":"jsmnglng","id":18733264,"node_id":"MDQ6VXNlcjE4NzMzMjY0","avatar_url":"https://avatars1.githubusercontent.com/u/18733264?v=4","gravatar_id":"","url":"https://api.github.com/users/jsmnglng","html_url":"https://github.com/jsmnglng","followers_url":"https://api.github.com/users/jsmnglng/followers","following_url":"https://api.github.com/users/jsmnglng/following{/other_user}","gists_url":"https://api.github.com/users/jsmnglng/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmnglng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmnglng/subscriptions","organizations_url":"https://api.github.com/users/jsmnglng/orgs","repos_url":"https://api.github.com/users/jsmnglng/repos","events_url":"https://api.github.com/users/jsmnglng/events{/privacy}","received_events_url":"https://api.github.com/users/jsmnglng/received_events","type":"User","site_admin":false},"body":"@sumi419 👋🏼","created_at":"2018-10-26T15:44:18Z","updated_at":"2018-10-29T22:40:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eebdc6d6f926fcd6b8d924c7447a6fdf4f2f6b0b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/453/commits","review_comments_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/453/comments","review_comment_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/issues/453/comments","statuses_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/statuses/37c6a00ec38369b87e52207a1ade4b95fbbffe66","head":{"label":"jsmnglng:master","ref":"master","sha":"37c6a00ec38369b87e52207a1ade4b95fbbffe66","user":{"login":"jsmnglng","id":18733264,"node_id":"MDQ6VXNlcjE4NzMzMjY0","avatar_url":"https://avatars1.githubusercontent.com/u/18733264?v=4","gravatar_id":"","url":"https://api.github.com/users/jsmnglng","html_url":"https://github.com/jsmnglng","followers_url":"https://api.github.com/users/jsmnglng/followers","following_url":"https://api.github.com/users/jsmnglng/following{/other_user}","gists_url":"https://api.github.com/users/jsmnglng/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmnglng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmnglng/subscriptions","organizations_url":"https://api.github.com/users/jsmnglng/orgs","repos_url":"https://api.github.com/users/jsmnglng/repos","events_url":"https://api.github.com/users/jsmnglng/events{/privacy}","received_events_url":"https://api.github.com/users/jsmnglng/received_events","type":"User","site_admin":false},"repo":{"id":154851783,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQ4NTE3ODM=","name":"Sprint-Challenge-Redux-Smurfs","full_name":"jsmnglng/Sprint-Challenge-Redux-Smurfs","private":false,"owner":{"login":"jsmnglng","id":18733264,"node_id":"MDQ6VXNlcjE4NzMzMjY0","avatar_url":"https://avatars1.githubusercontent.com/u/18733264?v=4","gravatar_id":"","url":"https://api.github.com/users/jsmnglng","html_url":"https://github.com/jsmnglng","followers_url":"https://api.github.com/users/jsmnglng/followers","following_url":"https://api.github.com/users/jsmnglng/following{/other_user}","gists_url":"https://api.github.com/users/jsmnglng/gists{/gist_id}","starred_url":"https://api.github.com/users/jsmnglng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsmnglng/subscriptions","organizations_url":"https://api.github.com/users/jsmnglng/orgs","repos_url":"https://api.github.com/users/jsmnglng/repos","events_url":"https://api.github.com/users/jsmnglng/events{/privacy}","received_events_url":"https://api.github.com/users/jsmnglng/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jsmnglng/Sprint-Challenge-Redux-Smurfs","description":null,"fork":true,"url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs","forks_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/forks","keys_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/teams","hooks_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/hooks","issue_events_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/issues/events{/number}","events_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/events","assignees_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/assignees{/user}","branches_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/branches{/branch}","tags_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/tags","blobs_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/statuses/{sha}","languages_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/languages","stargazers_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/stargazers","contributors_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/contributors","subscribers_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/subscribers","subscription_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/subscription","commits_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/contents/{+path}","compare_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/merges","archive_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/downloads","issues_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/issues{/number}","pulls_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/pulls{/number}","milestones_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/milestones{/number}","notifications_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/labels{/name}","releases_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/releases{/id}","deployments_url":"https://api.github.com/repos/jsmnglng/Sprint-Challenge-Redux-Smurfs/deployments","created_at":"2018-10-26T15:00:58Z","updated_at":"2018-10-26T16:20:58Z","pushed_at":"2018-10-26T16:20:56Z","git_url":"git://github.com/jsmnglng/Sprint-Challenge-Redux-Smurfs.git","ssh_url":"git@github.com:jsmnglng/Sprint-Challenge-Redux-Smurfs.git","clone_url":"https://github.com/jsmnglng/Sprint-Challenge-Redux-Smurfs.git","svn_url":"https://github.com/jsmnglng/Sprint-Challenge-Redux-Smurfs","homepage":null,"size":416,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"LambdaSchool:master","ref":"master","sha":"8a69140015b2965c4cc84351da2d01f40bd377ee","user":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"repo":{"id":118967272,"node_id":"MDEwOlJlcG9zaXRvcnkxMTg5NjcyNzI=","name":"Sprint-Challenge-Redux-Smurfs","full_name":"LambdaSchool/Sprint-Challenge-Redux-Smurfs","private":false,"owner":{"login":"LambdaSchool","id":24780114,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI0NzgwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/24780114?v=4","gravatar_id":"","url":"https://api.github.com/users/LambdaSchool","html_url":"https://github.com/LambdaSchool","followers_url":"https://api.github.com/users/LambdaSchool/followers","following_url":"https://api.github.com/users/LambdaSchool/following{/other_user}","gists_url":"https://api.github.com/users/LambdaSchool/gists{/gist_id}","starred_url":"https://api.github.com/users/LambdaSchool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LambdaSchool/subscriptions","organizations_url":"https://api.github.com/users/LambdaSchool/orgs","repos_url":"https://api.github.com/users/LambdaSchool/repos","events_url":"https://api.github.com/users/LambdaSchool/events{/privacy}","received_events_url":"https://api.github.com/users/LambdaSchool/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs","description":null,"fork":false,"url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs","forks_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/forks","keys_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/teams","hooks_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/hooks","issue_events_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/issues/events{/number}","events_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/events","assignees_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/assignees{/user}","branches_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/branches{/branch}","tags_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/tags","blobs_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/statuses/{sha}","languages_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/languages","stargazers_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/stargazers","contributors_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/contributors","subscribers_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/subscribers","subscription_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/subscription","commits_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/contents/{+path}","compare_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/merges","archive_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/downloads","issues_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/issues{/number}","pulls_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls{/number}","milestones_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/milestones{/number}","notifications_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/labels{/name}","releases_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/releases{/id}","deployments_url":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/deployments","created_at":"2018-01-25T21:01:44Z","updated_at":"2018-09-21T14:59:31Z","pushed_at":"2018-10-28T22:58:43Z","git_url":"git://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs.git","ssh_url":"git@github.com:LambdaSchool/Sprint-Challenge-Redux-Smurfs.git","clone_url":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs.git","svn_url":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs","homepage":null,"size":310,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":469,"mirror_url":null,"archived":false,"open_issues_count":443,"license":null,"forks":469,"open_issues":443,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/453"},"html":{"href":"https://github.com/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pull/453"},"issue":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/issues/453"},"comments":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/issues/453/comments"},"review_comments":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/453/comments"},"review_comment":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/pulls/453/commits"},"statuses":{"href":"https://api.github.com/repos/LambdaSchool/Sprint-Challenge-Redux-Smurfs/statuses/37c6a00ec38369b87e52207a1ade4b95fbbffe66"}},"author_association":"NONE"}}
{"actor":{"display_login":"sumi419"}}