{"action":"created","comment":{"url":"https://api.github.com/repos/andela/travel_tool_front/pulls/comments/211515012","pull_request_review_id":147947898,"id":211515012,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMTUxNTAxMg==","diff_hunk":"@@ -0,0 +1,60 @@\n+import {","path":"src/redux/actionCreator/__tests__/requestActions.test.js","position":1,"original_position":1,"commit_id":"9dbe613e194e2b199983b311f50ce20575127fe2","original_commit_id":"9dbe613e194e2b199983b311f50ce20575127fe2","user":{"login":"albert85","id":28366272,"node_id":"MDQ6VXNlcjI4MzY2Mjcy","avatar_url":"https://avatars1.githubusercontent.com/u/28366272?v=4","gravatar_id":"","url":"https://api.github.com/users/albert85","html_url":"https://github.com/albert85","followers_url":"https://api.github.com/users/albert85/followers","following_url":"https://api.github.com/users/albert85/following{/other_user}","gists_url":"https://api.github.com/users/albert85/gists{/gist_id}","starred_url":"https://api.github.com/users/albert85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/albert85/subscriptions","organizations_url":"https://api.github.com/users/albert85/orgs","repos_url":"https://api.github.com/users/albert85/repos","events_url":"https://api.github.com/users/albert85/events{/privacy}","received_events_url":"https://api.github.com/users/albert85/received_events","type":"User","site_admin":false},"body":"can you create a mock folder and put all mock relate variables in it. You can import into your test file. this mock variable is making the tests file long ","created_at":"2018-08-21T08:13:43Z","updated_at":"2018-08-21T08:13:44Z","html_url":"https://github.com/andela/travel_tool_front/pull/43#discussion_r211515012","pull_request_url":"https://api.github.com/repos/andela/travel_tool_front/pulls/43","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/andela/travel_tool_front/pulls/comments/211515012"},"html":{"href":"https://github.com/andela/travel_tool_front/pull/43#discussion_r211515012"},"pull_request":{"href":"https://api.github.com/repos/andela/travel_tool_front/pulls/43"}}},"pull_request":{"url":"https://api.github.com/repos/andela/travel_tool_front/pulls/43","id":208725453,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA4NzI1NDUz","html_url":"https://github.com/andela/travel_tool_front/pull/43","diff_url":"https://github.com/andela/travel_tool_front/pull/43.diff","patch_url":"https://github.com/andela/travel_tool_front/pull/43.patch","issue_url":"https://api.github.com/repos/andela/travel_tool_front/issues/43","number":43,"state":"open","locked":false,"title":"#159725850 Consume api to post a new request","user":{"login":"d3mola","id":25783086,"node_id":"MDQ6VXNlcjI1NzgzMDg2","avatar_url":"https://avatars2.githubusercontent.com/u/25783086?v=4","gravatar_id":"","url":"https://api.github.com/users/d3mola","html_url":"https://github.com/d3mola","followers_url":"https://api.github.com/users/d3mola/followers","following_url":"https://api.github.com/users/d3mola/following{/other_user}","gists_url":"https://api.github.com/users/d3mola/gists{/gist_id}","starred_url":"https://api.github.com/users/d3mola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d3mola/subscriptions","organizations_url":"https://api.github.com/users/d3mola/orgs","repos_url":"https://api.github.com/users/d3mola/repos","events_url":"https://api.github.com/users/d3mola/events{/privacy}","received_events_url":"https://api.github.com/users/d3mola/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nConsumes api to post a new request\r\n\r\n#### Description of Task to be completed?\r\n- create handleChange and handleSubmit methods\r\n- create actions to create a new request\r\n- create reducer to create a new request\r\n- write tests for action, reducers, services and sagas\r\n- create saga middleware to make a post request to the server\r\n- set token globally so that it can be available on every api call\r\n- add requestSaga tot the root saga\r\n\r\n#### How should this be manually tested?\r\n- clone the repo\r\n- checkout to this branch  with`git checkout ft-consume-create-requests-api-159725850`\r\n- install dependencies with `yarn`\r\n- start the docker engine, then run `make start` to start the server\r\n\r\n#### Any background context you want to provide?\r\nDepends on the `add request modal feature`- [159725850](https://www.pivotaltracker.com/story/show/159725850)\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[159725850](https://www.pivotaltracker.com/story/show/159724397)","created_at":"2018-08-16T01:50:08Z","updated_at":"2018-08-21T08:13:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b90b3c4cf178f2fea7fc73d329ce2a7f54282665","assignee":null,"assignees":[],"requested_reviewers":[{"login":"hariclerry","id":12033494,"node_id":"MDQ6VXNlcjEyMDMzNDk0","avatar_url":"https://avatars3.githubusercontent.com/u/12033494?v=4","gravatar_id":"","url":"https://api.github.com/users/hariclerry","html_url":"https://github.com/hariclerry","followers_url":"https://api.github.com/users/hariclerry/followers","following_url":"https://api.github.com/users/hariclerry/following{/other_user}","gists_url":"https://api.github.com/users/hariclerry/gists{/gist_id}","starred_url":"https://api.github.com/users/hariclerry/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hariclerry/subscriptions","organizations_url":"https://api.github.com/users/hariclerry/orgs","repos_url":"https://api.github.com/users/hariclerry/repos","events_url":"https://api.github.com/users/hariclerry/events{/privacy}","received_events_url":"https://api.github.com/users/hariclerry/received_events","type":"User","site_admin":false},{"login":"Spectrumsun","id":20597418,"node_id":"MDQ6VXNlcjIwNTk3NDE4","avatar_url":"https://avatars2.githubusercontent.com/u/20597418?v=4","gravatar_id":"","url":"https://api.github.com/users/Spectrumsun","html_url":"https://github.com/Spectrumsun","followers_url":"https://api.github.com/users/Spectrumsun/followers","following_url":"https://api.github.com/users/Spectrumsun/following{/other_user}","gists_url":"https://api.github.com/users/Spectrumsun/gists{/gist_id}","starred_url":"https://api.github.com/users/Spectrumsun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Spectrumsun/subscriptions","organizations_url":"https://api.github.com/users/Spectrumsun/orgs","repos_url":"https://api.github.com/users/Spectrumsun/repos","events_url":"https://api.github.com/users/Spectrumsun/events{/privacy}","received_events_url":"https://api.github.com/users/Spectrumsun/received_events","type":"User","site_admin":false},{"login":"johnmutuma5","id":23254512,"node_id":"MDQ6VXNlcjIzMjU0NTEy","avatar_url":"https://avatars0.githubusercontent.com/u/23254512?v=4","gravatar_id":"","url":"https://api.github.com/users/johnmutuma5","html_url":"https://github.com/johnmutuma5","followers_url":"https://api.github.com/users/johnmutuma5/followers","following_url":"https://api.github.com/users/johnmutuma5/following{/other_user}","gists_url":"https://api.github.com/users/johnmutuma5/gists{/gist_id}","starred_url":"https://api.github.com/users/johnmutuma5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnmutuma5/subscriptions","organizations_url":"https://api.github.com/users/johnmutuma5/orgs","repos_url":"https://api.github.com/users/johnmutuma5/repos","events_url":"https://api.github.com/users/johnmutuma5/events{/privacy}","received_events_url":"https://api.github.com/users/johnmutuma5/received_events","type":"User","site_admin":false},{"login":"Collins33","id":23402614,"node_id":"MDQ6VXNlcjIzNDAyNjE0","avatar_url":"https://avatars2.githubusercontent.com/u/23402614?v=4","gravatar_id":"","url":"https://api.github.com/users/Collins33","html_url":"https://github.com/Collins33","followers_url":"https://api.github.com/users/Collins33/followers","following_url":"https://api.github.com/users/Collins33/following{/other_user}","gists_url":"https://api.github.com/users/Collins33/gists{/gist_id}","starred_url":"https://api.github.com/users/Collins33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Collins33/subscriptions","organizations_url":"https://api.github.com/users/Collins33/orgs","repos_url":"https://api.github.com/users/Collins33/repos","events_url":"https://api.github.com/users/Collins33/events{/privacy}","received_events_url":"https://api.github.com/users/Collins33/received_events","type":"User","site_admin":false},{"login":"amarachukwu-agbo","id":25195857,"node_id":"MDQ6VXNlcjI1MTk1ODU3","avatar_url":"https://avatars0.githubusercontent.com/u/25195857?v=4","gravatar_id":"","url":"https://api.github.com/users/amarachukwu-agbo","html_url":"https://github.com/amarachukwu-agbo","followers_url":"https://api.github.com/users/amarachukwu-agbo/followers","following_url":"https://api.github.com/users/amarachukwu-agbo/following{/other_user}","gists_url":"https://api.github.com/users/amarachukwu-agbo/gists{/gist_id}","starred_url":"https://api.github.com/users/amarachukwu-agbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amarachukwu-agbo/subscriptions","organizations_url":"https://api.github.com/users/amarachukwu-agbo/orgs","repos_url":"https://api.github.com/users/amarachukwu-agbo/repos","events_url":"https://api.github.com/users/amarachukwu-agbo/events{/privacy}","received_events_url":"https://api.github.com/users/amarachukwu-agbo/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1024012334,"node_id":"MDU6TGFiZWwxMDI0MDEyMzM0","url":"https://api.github.com/repos/andela/travel_tool_front/labels/completed","name":"completed","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/andela/travel_tool_front/pulls/43/commits","review_comments_url":"https://api.github.com/repos/andela/travel_tool_front/pulls/43/comments","review_comment_url":"https://api.github.com/repos/andela/travel_tool_front/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/travel_tool_front/issues/43/comments","statuses_url":"https://api.github.com/repos/andela/travel_tool_front/statuses/9dbe613e194e2b199983b311f50ce20575127fe2","head":{"label":"andela:ft-consume-create-requests-api-159725850","ref":"ft-consume-create-requests-api-159725850","sha":"9dbe613e194e2b199983b311f50ce20575127fe2","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":141128101,"node_id":"MDEwOlJlcG9zaXRvcnkxNDExMjgxMDE=","name":"travel_tool_front","full_name":"andela/travel_tool_front","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/travel_tool_front","description":"Andela travel tool web client.","fork":false,"url":"https://api.github.com/repos/andela/travel_tool_front","forks_url":"https://api.github.com/repos/andela/travel_tool_front/forks","keys_url":"https://api.github.com/repos/andela/travel_tool_front/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/travel_tool_front/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/travel_tool_front/teams","hooks_url":"https://api.github.com/repos/andela/travel_tool_front/hooks","issue_events_url":"https://api.github.com/repos/andela/travel_tool_front/issues/events{/number}","events_url":"https://api.github.com/repos/andela/travel_tool_front/events","assignees_url":"https://api.github.com/repos/andela/travel_tool_front/assignees{/user}","branches_url":"https://api.github.com/repos/andela/travel_tool_front/branches{/branch}","tags_url":"https://api.github.com/repos/andela/travel_tool_front/tags","blobs_url":"https://api.github.com/repos/andela/travel_tool_front/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/travel_tool_front/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/travel_tool_front/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/travel_tool_front/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/travel_tool_front/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/travel_tool_front/languages","stargazers_url":"https://api.github.com/repos/andela/travel_tool_front/stargazers","contributors_url":"https://api.github.com/repos/andela/travel_tool_front/contributors","subscribers_url":"https://api.github.com/repos/andela/travel_tool_front/subscribers","subscription_url":"https://api.github.com/repos/andela/travel_tool_front/subscription","commits_url":"https://api.github.com/repos/andela/travel_tool_front/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/travel_tool_front/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/travel_tool_front/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/travel_tool_front/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/travel_tool_front/contents/{+path}","compare_url":"https://api.github.com/repos/andela/travel_tool_front/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/travel_tool_front/merges","archive_url":"https://api.github.com/repos/andela/travel_tool_front/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/travel_tool_front/downloads","issues_url":"https://api.github.com/repos/andela/travel_tool_front/issues{/number}","pulls_url":"https://api.github.com/repos/andela/travel_tool_front/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/travel_tool_front/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/travel_tool_front/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/travel_tool_front/labels{/name}","releases_url":"https://api.github.com/repos/andela/travel_tool_front/releases{/id}","deployments_url":"https://api.github.com/repos/andela/travel_tool_front/deployments","created_at":"2018-07-16T11:13:07Z","updated_at":"2018-08-20T14:44:29Z","pushed_at":"2018-08-21T00:28:33Z","git_url":"git://github.com/andela/travel_tool_front.git","ssh_url":"git@github.com:andela/travel_tool_front.git","clone_url":"https://github.com/andela/travel_tool_front.git","svn_url":"https://github.com/andela/travel_tool_front","homepage":"","size":4322,"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":3,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":3,"open_issues":9,"watchers":2,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"c5da518fca870043849d036b8f852ae52d6dc6e8","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":141128101,"node_id":"MDEwOlJlcG9zaXRvcnkxNDExMjgxMDE=","name":"travel_tool_front","full_name":"andela/travel_tool_front","owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/andela/travel_tool_front","description":"Andela travel tool web client.","fork":false,"url":"https://api.github.com/repos/andela/travel_tool_front","forks_url":"https://api.github.com/repos/andela/travel_tool_front/forks","keys_url":"https://api.github.com/repos/andela/travel_tool_front/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/travel_tool_front/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/travel_tool_front/teams","hooks_url":"https://api.github.com/repos/andela/travel_tool_front/hooks","issue_events_url":"https://api.github.com/repos/andela/travel_tool_front/issues/events{/number}","events_url":"https://api.github.com/repos/andela/travel_tool_front/events","assignees_url":"https://api.github.com/repos/andela/travel_tool_front/assignees{/user}","branches_url":"https://api.github.com/repos/andela/travel_tool_front/branches{/branch}","tags_url":"https://api.github.com/repos/andela/travel_tool_front/tags","blobs_url":"https://api.github.com/repos/andela/travel_tool_front/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/travel_tool_front/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/travel_tool_front/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/travel_tool_front/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/travel_tool_front/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/travel_tool_front/languages","stargazers_url":"https://api.github.com/repos/andela/travel_tool_front/stargazers","contributors_url":"https://api.github.com/repos/andela/travel_tool_front/contributors","subscribers_url":"https://api.github.com/repos/andela/travel_tool_front/subscribers","subscription_url":"https://api.github.com/repos/andela/travel_tool_front/subscription","commits_url":"https://api.github.com/repos/andela/travel_tool_front/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/travel_tool_front/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/travel_tool_front/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/travel_tool_front/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/travel_tool_front/contents/{+path}","compare_url":"https://api.github.com/repos/andela/travel_tool_front/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/travel_tool_front/merges","archive_url":"https://api.github.com/repos/andela/travel_tool_front/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/travel_tool_front/downloads","issues_url":"https://api.github.com/repos/andela/travel_tool_front/issues{/number}","pulls_url":"https://api.github.com/repos/andela/travel_tool_front/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/travel_tool_front/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/travel_tool_front/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/travel_tool_front/labels{/name}","releases_url":"https://api.github.com/repos/andela/travel_tool_front/releases{/id}","deployments_url":"https://api.github.com/repos/andela/travel_tool_front/deployments","created_at":"2018-07-16T11:13:07Z","updated_at":"2018-08-20T14:44:29Z","pushed_at":"2018-08-21T00:28:33Z","git_url":"git://github.com/andela/travel_tool_front.git","ssh_url":"git@github.com:andela/travel_tool_front.git","clone_url":"https://github.com/andela/travel_tool_front.git","svn_url":"https://github.com/andela/travel_tool_front","homepage":"","size":4322,"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":3,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":3,"open_issues":9,"watchers":2,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/travel_tool_front/pulls/43"},"html":{"href":"https://github.com/andela/travel_tool_front/pull/43"},"issue":{"href":"https://api.github.com/repos/andela/travel_tool_front/issues/43"},"comments":{"href":"https://api.github.com/repos/andela/travel_tool_front/issues/43/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/travel_tool_front/pulls/43/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/travel_tool_front/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/travel_tool_front/pulls/43/commits"},"statuses":{"href":"https://api.github.com/repos/andela/travel_tool_front/statuses/9dbe613e194e2b199983b311f50ce20575127fe2"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"albert85"}}