{"action":"created","comment":{"url":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/comments/169673198","pull_request_review_id":98237312,"id":169673198,"diff_hunk":"@@ -0,0 +1,51 @@\n+// Import a saga helper\n+import {\n+  takeLatest\n+} from 'redux-saga';\n+import {\n+  put,\n+  call\n+} from 'redux-saga/effects';\n+// A saga will take care of GET_RECIPES actions\n+import {\n+  GET_RECIPES\n+} from '../constants/recipes';\n+// either one is yielded once the fetch is done\n+import { getRecipesSuccess, getRecipesFailure } from '../actions/recipes';\n+\n+/**\n+   * @returns {Object} fetch recipes\n+   */\n+const fetchRecipes = () => fetch('http://localhost:3000/api/v1/recipes', {\n+  // Set the header content-type to application/json\n+  headers: new Headers({\n+    'Content-Type': 'application/json'\n+  })\n+})\n+  .then(response => response.json());\n+\n+// yield call to fetchRecipes is in a try catch to control the flow even when the promise rejects\n+  /**\n+   * @returns {Object} Get recipes\n+   */\n+function* getRecipes() {\n+  try {\n+    const recipes = yield call(fetchRecipes);","path":"client/src/sagas/recipes.js","position":33,"original_position":33,"commit_id":"f1855f67ea258439f235baee5f932675866e0d4e","original_commit_id":"f1855f67ea258439f235baee5f932675866e0d4e","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).<br>'yield' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).","created_at":"2018-02-21T15:27:08Z","updated_at":"2018-02-21T15:27:09Z","html_url":"https://github.com/Dammyy/More-Recipes/pull/22#discussion_r169673198","pull_request_url":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/22","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/comments/169673198"},"html":{"href":"https://github.com/Dammyy/More-Recipes/pull/22#discussion_r169673198"},"pull_request":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/22","id":170502276,"html_url":"https://github.com/Dammyy/More-Recipes/pull/22","diff_url":"https://github.com/Dammyy/More-Recipes/pull/22.diff","patch_url":"https://github.com/Dammyy/More-Recipes/pull/22.patch","issue_url":"https://api.github.com/repos/Dammyy/More-Recipes/issues/22","number":22,"state":"open","locked":false,"title":"#154897893 user can retrieve all recipes","user":{"login":"Dammyy","id":32909231,"avatar_url":"https://avatars3.githubusercontent.com/u/32909231?v=4","gravatar_id":"","url":"https://api.github.com/users/Dammyy","html_url":"https://github.com/Dammyy","followers_url":"https://api.github.com/users/Dammyy/followers","following_url":"https://api.github.com/users/Dammyy/following{/other_user}","gists_url":"https://api.github.com/users/Dammyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Dammyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dammyy/subscriptions","organizations_url":"https://api.github.com/users/Dammyy/orgs","repos_url":"https://api.github.com/users/Dammyy/repos","events_url":"https://api.github.com/users/Dammyy/events{/privacy}","received_events_url":"https://api.github.com/users/Dammyy/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nImplement feature allowing any user to retrieve all recipes in the application\r\n#### Description of Task to be completed?\r\nUser can retrieve all recipes\r\n#### How should this be manually tested?\r\nvisit the homepage or catalog page\r\n#### Any background context you want to provide?\r\nN/A\r\n#### What are the relevant pivotal tracker stories?\r\n#154897893\r\n#### Screenshots (if appropriate)\r\nN/A\r\n#### Questions:\r\nN/A","created_at":"2018-02-21T15:26:54Z","updated_at":"2018-02-21T15:27:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcab10c2aea40fbcc8e060c06bc5185faea2c33b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/22/commits","review_comments_url":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/22/comments","review_comment_url":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Dammyy/More-Recipes/issues/22/comments","statuses_url":"https://api.github.com/repos/Dammyy/More-Recipes/statuses/f1855f67ea258439f235baee5f932675866e0d4e","head":{"label":"Dammyy:feature/154897893/retrieve-all-recipes","ref":"feature/154897893/retrieve-all-recipes","sha":"f1855f67ea258439f235baee5f932675866e0d4e","user":{"login":"Dammyy","id":32909231,"avatar_url":"https://avatars3.githubusercontent.com/u/32909231?v=4","gravatar_id":"","url":"https://api.github.com/users/Dammyy","html_url":"https://github.com/Dammyy","followers_url":"https://api.github.com/users/Dammyy/followers","following_url":"https://api.github.com/users/Dammyy/following{/other_user}","gists_url":"https://api.github.com/users/Dammyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Dammyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dammyy/subscriptions","organizations_url":"https://api.github.com/users/Dammyy/orgs","repos_url":"https://api.github.com/users/Dammyy/repos","events_url":"https://api.github.com/users/Dammyy/events{/privacy}","received_events_url":"https://api.github.com/users/Dammyy/received_events","type":"User","site_admin":false},"repo":{"id":107448606,"name":"More-Recipes","full_name":"Dammyy/More-Recipes","owner":{"login":"Dammyy","id":32909231,"avatar_url":"https://avatars3.githubusercontent.com/u/32909231?v=4","gravatar_id":"","url":"https://api.github.com/users/Dammyy","html_url":"https://github.com/Dammyy","followers_url":"https://api.github.com/users/Dammyy/followers","following_url":"https://api.github.com/users/Dammyy/following{/other_user}","gists_url":"https://api.github.com/users/Dammyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Dammyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dammyy/subscriptions","organizations_url":"https://api.github.com/users/Dammyy/orgs","repos_url":"https://api.github.com/users/Dammyy/repos","events_url":"https://api.github.com/users/Dammyy/events{/privacy}","received_events_url":"https://api.github.com/users/Dammyy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dammyy/More-Recipes","description":"More recipes App allows users post recipes and review recipes","fork":false,"url":"https://api.github.com/repos/Dammyy/More-Recipes","forks_url":"https://api.github.com/repos/Dammyy/More-Recipes/forks","keys_url":"https://api.github.com/repos/Dammyy/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dammyy/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dammyy/More-Recipes/teams","hooks_url":"https://api.github.com/repos/Dammyy/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/Dammyy/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/Dammyy/More-Recipes/events","assignees_url":"https://api.github.com/repos/Dammyy/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/Dammyy/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/Dammyy/More-Recipes/tags","blobs_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dammyy/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/Dammyy/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/Dammyy/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/Dammyy/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/Dammyy/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/Dammyy/More-Recipes/subscription","commits_url":"https://api.github.com/repos/Dammyy/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dammyy/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dammyy/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dammyy/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/Dammyy/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dammyy/More-Recipes/merges","archive_url":"https://api.github.com/repos/Dammyy/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dammyy/More-Recipes/downloads","issues_url":"https://api.github.com/repos/Dammyy/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/Dammyy/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/Dammyy/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/Dammyy/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dammyy/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/Dammyy/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/Dammyy/More-Recipes/deployments","created_at":"2017-10-18T18:41:34Z","updated_at":"2018-02-04T18:43:15Z","pushed_at":"2018-02-21T15:26:55Z","git_url":"git://github.com/Dammyy/More-Recipes.git","ssh_url":"git@github.com:Dammyy/More-Recipes.git","clone_url":"https://github.com/Dammyy/More-Recipes.git","svn_url":"https://github.com/Dammyy/More-Recipes","homepage":"https://more-recipes-dammyy.herokuapp.com/","size":2701,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"Dammyy:develop","ref":"develop","sha":"440223e63c711707632d78c4a4fb9f06db742973","user":{"login":"Dammyy","id":32909231,"avatar_url":"https://avatars3.githubusercontent.com/u/32909231?v=4","gravatar_id":"","url":"https://api.github.com/users/Dammyy","html_url":"https://github.com/Dammyy","followers_url":"https://api.github.com/users/Dammyy/followers","following_url":"https://api.github.com/users/Dammyy/following{/other_user}","gists_url":"https://api.github.com/users/Dammyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Dammyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dammyy/subscriptions","organizations_url":"https://api.github.com/users/Dammyy/orgs","repos_url":"https://api.github.com/users/Dammyy/repos","events_url":"https://api.github.com/users/Dammyy/events{/privacy}","received_events_url":"https://api.github.com/users/Dammyy/received_events","type":"User","site_admin":false},"repo":{"id":107448606,"name":"More-Recipes","full_name":"Dammyy/More-Recipes","owner":{"login":"Dammyy","id":32909231,"avatar_url":"https://avatars3.githubusercontent.com/u/32909231?v=4","gravatar_id":"","url":"https://api.github.com/users/Dammyy","html_url":"https://github.com/Dammyy","followers_url":"https://api.github.com/users/Dammyy/followers","following_url":"https://api.github.com/users/Dammyy/following{/other_user}","gists_url":"https://api.github.com/users/Dammyy/gists{/gist_id}","starred_url":"https://api.github.com/users/Dammyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dammyy/subscriptions","organizations_url":"https://api.github.com/users/Dammyy/orgs","repos_url":"https://api.github.com/users/Dammyy/repos","events_url":"https://api.github.com/users/Dammyy/events{/privacy}","received_events_url":"https://api.github.com/users/Dammyy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dammyy/More-Recipes","description":"More recipes App allows users post recipes and review recipes","fork":false,"url":"https://api.github.com/repos/Dammyy/More-Recipes","forks_url":"https://api.github.com/repos/Dammyy/More-Recipes/forks","keys_url":"https://api.github.com/repos/Dammyy/More-Recipes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dammyy/More-Recipes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dammyy/More-Recipes/teams","hooks_url":"https://api.github.com/repos/Dammyy/More-Recipes/hooks","issue_events_url":"https://api.github.com/repos/Dammyy/More-Recipes/issues/events{/number}","events_url":"https://api.github.com/repos/Dammyy/More-Recipes/events","assignees_url":"https://api.github.com/repos/Dammyy/More-Recipes/assignees{/user}","branches_url":"https://api.github.com/repos/Dammyy/More-Recipes/branches{/branch}","tags_url":"https://api.github.com/repos/Dammyy/More-Recipes/tags","blobs_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dammyy/More-Recipes/statuses/{sha}","languages_url":"https://api.github.com/repos/Dammyy/More-Recipes/languages","stargazers_url":"https://api.github.com/repos/Dammyy/More-Recipes/stargazers","contributors_url":"https://api.github.com/repos/Dammyy/More-Recipes/contributors","subscribers_url":"https://api.github.com/repos/Dammyy/More-Recipes/subscribers","subscription_url":"https://api.github.com/repos/Dammyy/More-Recipes/subscription","commits_url":"https://api.github.com/repos/Dammyy/More-Recipes/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dammyy/More-Recipes/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dammyy/More-Recipes/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dammyy/More-Recipes/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dammyy/More-Recipes/contents/{+path}","compare_url":"https://api.github.com/repos/Dammyy/More-Recipes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dammyy/More-Recipes/merges","archive_url":"https://api.github.com/repos/Dammyy/More-Recipes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dammyy/More-Recipes/downloads","issues_url":"https://api.github.com/repos/Dammyy/More-Recipes/issues{/number}","pulls_url":"https://api.github.com/repos/Dammyy/More-Recipes/pulls{/number}","milestones_url":"https://api.github.com/repos/Dammyy/More-Recipes/milestones{/number}","notifications_url":"https://api.github.com/repos/Dammyy/More-Recipes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dammyy/More-Recipes/labels{/name}","releases_url":"https://api.github.com/repos/Dammyy/More-Recipes/releases{/id}","deployments_url":"https://api.github.com/repos/Dammyy/More-Recipes/deployments","created_at":"2017-10-18T18:41:34Z","updated_at":"2018-02-04T18:43:15Z","pushed_at":"2018-02-21T15:26:55Z","git_url":"git://github.com/Dammyy/More-Recipes.git","ssh_url":"git@github.com:Dammyy/More-Recipes.git","clone_url":"https://github.com/Dammyy/More-Recipes.git","svn_url":"https://github.com/Dammyy/More-Recipes","homepage":"https://more-recipes-dammyy.herokuapp.com/","size":2701,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/22"},"html":{"href":"https://github.com/Dammyy/More-Recipes/pull/22"},"issue":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/issues/22"},"comments":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/Dammyy/More-Recipes/statuses/f1855f67ea258439f235baee5f932675866e0d4e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}