{"action":"created","comment":{"url":"https://api.github.com/repos/BristechSRM/frontend/pulls/comments/74211983","id":74211983,"diff_hunk":"@@ -182,3 +182,35 @@ export const getAllAdmins = (sessionId) =>\n             .catch(error => dispatch(createAction(actionTypes.NEW_SESSION_GET_ADMINS_ERROR)(error)));\n     };\n \n+export const newEventNameEntered = (newName) =>\n+    createAction(actionTypes.NEW_EVENT_ADD_NAME)(newName);\n+\n+export const newEventDateEntered = (newDate) =>\n+    createAction(actionTypes.NEW_EVENT_ADD_DATE)(newDate);\n+\n+// This action requires the react-route history object (from this.props.history) to be passed in,\n+// because the action re-routes the user to the 'event details' page.\n+// Simply dispatching push(url) doesn't work - it updates history only.\n+export const submitNewEvent = (history) =>\n+    (dispatch, getState) => {\n+        dispatch(createAction(actionTypes.NEW_EVENT_SUBMIT_START)());\n+        const eventInRedux = getState().newevent;\n+\n+        const newEventPostData = {\n+            name: eventInRedux.title,","path":"app/actions/index.js","position":28,"original_position":28,"commit_id":"90ce8cce281af9ef19786d319f0f1ab022533371","original_commit_id":"90ce8cce281af9ef19786d319f0f1ab022533371","user":{"login":"dmorrisSL","id":20594993,"avatar_url":"https://avatars.githubusercontent.com/u/20594993?v=3","gravatar_id":"","url":"https://api.github.com/users/dmorrisSL","html_url":"https://github.com/dmorrisSL","followers_url":"https://api.github.com/users/dmorrisSL/followers","following_url":"https://api.github.com/users/dmorrisSL/following{/other_user}","gists_url":"https://api.github.com/users/dmorrisSL/gists{/gist_id}","starred_url":"https://api.github.com/users/dmorrisSL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmorrisSL/subscriptions","organizations_url":"https://api.github.com/users/dmorrisSL/orgs","repos_url":"https://api.github.com/users/dmorrisSL/repos","events_url":"https://api.github.com/users/dmorrisSL/events{/privacy}","received_events_url":"https://api.github.com/users/dmorrisSL/received_events","type":"User","site_admin":false},"body":"If you mean the id of the new event, I'm expecting it to come back (as a string) as the result of the post (since the create session POST worked that way). That gets picked up below (line 206), and forms part of the redirect URL (or rather will do).\r\n","created_at":"2016-08-10T09:21:52Z","updated_at":"2016-08-10T09:21:52Z","html_url":"https://github.com/BristechSRM/frontend/pull/110#discussion_r74211983","pull_request_url":"https://api.github.com/repos/BristechSRM/frontend/pulls/110","_links":{"self":{"href":"https://api.github.com/repos/BristechSRM/frontend/pulls/comments/74211983"},"html":{"href":"https://github.com/BristechSRM/frontend/pull/110#discussion_r74211983"},"pull_request":{"href":"https://api.github.com/repos/BristechSRM/frontend/pulls/110"}}},"pull_request":{"url":"https://api.github.com/repos/BristechSRM/frontend/pulls/110","id":80754000,"html_url":"https://github.com/BristechSRM/frontend/pull/110","diff_url":"https://github.com/BristechSRM/frontend/pull/110.diff","patch_url":"https://github.com/BristechSRM/frontend/pull/110.patch","issue_url":"https://api.github.com/repos/BristechSRM/frontend/issues/110","number":110,"state":"closed","locked":false,"title":"Actions for the new event form.","user":{"login":"dmorrisSL","id":20594993,"avatar_url":"https://avatars.githubusercontent.com/u/20594993?v=3","gravatar_id":"","url":"https://api.github.com/users/dmorrisSL","html_url":"https://github.com/dmorrisSL","followers_url":"https://api.github.com/users/dmorrisSL/followers","following_url":"https://api.github.com/users/dmorrisSL/following{/other_user}","gists_url":"https://api.github.com/users/dmorrisSL/gists{/gist_id}","starred_url":"https://api.github.com/users/dmorrisSL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmorrisSL/subscriptions","organizations_url":"https://api.github.com/users/dmorrisSL/orgs","repos_url":"https://api.github.com/users/dmorrisSL/repos","events_url":"https://api.github.com/users/dmorrisSL/events{/privacy}","received_events_url":"https://api.github.com/users/dmorrisSL/received_events","type":"User","site_admin":false},"body":"Reducer, actions, etc, so that interacting with the front end form calls the back end api.","created_at":"2016-08-10T08:30:43Z","updated_at":"2016-08-10T09:21:52Z","closed_at":"2016-08-10T09:09:05Z","merged_at":"2016-08-10T09:09:05Z","merge_commit_sha":"a756a51368563ed3531f878a156ec7e1f3516114","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/BristechSRM/frontend/pulls/110/commits","review_comments_url":"https://api.github.com/repos/BristechSRM/frontend/pulls/110/comments","review_comment_url":"https://api.github.com/repos/BristechSRM/frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/BristechSRM/frontend/issues/110/comments","statuses_url":"https://api.github.com/repos/BristechSRM/frontend/statuses/90ce8cce281af9ef19786d319f0f1ab022533371","head":{"label":"BristechSRM:actions_for_new_event","ref":"actions_for_new_event","sha":"90ce8cce281af9ef19786d319f0f1ab022533371","user":{"login":"BristechSRM","id":17645943,"avatar_url":"https://avatars.githubusercontent.com/u/17645943?v=3","gravatar_id":"","url":"https://api.github.com/users/BristechSRM","html_url":"https://github.com/BristechSRM","followers_url":"https://api.github.com/users/BristechSRM/followers","following_url":"https://api.github.com/users/BristechSRM/following{/other_user}","gists_url":"https://api.github.com/users/BristechSRM/gists{/gist_id}","starred_url":"https://api.github.com/users/BristechSRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BristechSRM/subscriptions","organizations_url":"https://api.github.com/users/BristechSRM/orgs","repos_url":"https://api.github.com/users/BristechSRM/repos","events_url":"https://api.github.com/users/BristechSRM/events{/privacy}","received_events_url":"https://api.github.com/users/BristechSRM/received_events","type":"Organization","site_admin":false},"repo":{"id":55150575,"name":"frontend","full_name":"BristechSRM/frontend","owner":{"login":"BristechSRM","id":17645943,"avatar_url":"https://avatars.githubusercontent.com/u/17645943?v=3","gravatar_id":"","url":"https://api.github.com/users/BristechSRM","html_url":"https://github.com/BristechSRM","followers_url":"https://api.github.com/users/BristechSRM/followers","following_url":"https://api.github.com/users/BristechSRM/following{/other_user}","gists_url":"https://api.github.com/users/BristechSRM/gists{/gist_id}","starred_url":"https://api.github.com/users/BristechSRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BristechSRM/subscriptions","organizations_url":"https://api.github.com/users/BristechSRM/orgs","repos_url":"https://api.github.com/users/BristechSRM/repos","events_url":"https://api.github.com/users/BristechSRM/events{/privacy}","received_events_url":"https://api.github.com/users/BristechSRM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BristechSRM/frontend","description":"React / Redux front end","fork":false,"url":"https://api.github.com/repos/BristechSRM/frontend","forks_url":"https://api.github.com/repos/BristechSRM/frontend/forks","keys_url":"https://api.github.com/repos/BristechSRM/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BristechSRM/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BristechSRM/frontend/teams","hooks_url":"https://api.github.com/repos/BristechSRM/frontend/hooks","issue_events_url":"https://api.github.com/repos/BristechSRM/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/BristechSRM/frontend/events","assignees_url":"https://api.github.com/repos/BristechSRM/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/BristechSRM/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/BristechSRM/frontend/tags","blobs_url":"https://api.github.com/repos/BristechSRM/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BristechSRM/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BristechSRM/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/BristechSRM/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BristechSRM/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/BristechSRM/frontend/languages","stargazers_url":"https://api.github.com/repos/BristechSRM/frontend/stargazers","contributors_url":"https://api.github.com/repos/BristechSRM/frontend/contributors","subscribers_url":"https://api.github.com/repos/BristechSRM/frontend/subscribers","subscription_url":"https://api.github.com/repos/BristechSRM/frontend/subscription","commits_url":"https://api.github.com/repos/BristechSRM/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/BristechSRM/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/BristechSRM/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/BristechSRM/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/BristechSRM/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/BristechSRM/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BristechSRM/frontend/merges","archive_url":"https://api.github.com/repos/BristechSRM/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BristechSRM/frontend/downloads","issues_url":"https://api.github.com/repos/BristechSRM/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/BristechSRM/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/BristechSRM/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/BristechSRM/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BristechSRM/frontend/labels{/name}","releases_url":"https://api.github.com/repos/BristechSRM/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/BristechSRM/frontend/deployments","created_at":"2016-03-31T12:56:28Z","updated_at":"2016-03-31T13:32:49Z","pushed_at":"2016-08-10T09:09:07Z","git_url":"git://github.com/BristechSRM/frontend.git","ssh_url":"git@github.com:BristechSRM/frontend.git","clone_url":"https://github.com/BristechSRM/frontend.git","svn_url":"https://github.com/BristechSRM/frontend","homepage":null,"size":978,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"BristechSRM:master","ref":"master","sha":"9318fa2a760cfed5d92c1175bbe43cbc44fdce01","user":{"login":"BristechSRM","id":17645943,"avatar_url":"https://avatars.githubusercontent.com/u/17645943?v=3","gravatar_id":"","url":"https://api.github.com/users/BristechSRM","html_url":"https://github.com/BristechSRM","followers_url":"https://api.github.com/users/BristechSRM/followers","following_url":"https://api.github.com/users/BristechSRM/following{/other_user}","gists_url":"https://api.github.com/users/BristechSRM/gists{/gist_id}","starred_url":"https://api.github.com/users/BristechSRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BristechSRM/subscriptions","organizations_url":"https://api.github.com/users/BristechSRM/orgs","repos_url":"https://api.github.com/users/BristechSRM/repos","events_url":"https://api.github.com/users/BristechSRM/events{/privacy}","received_events_url":"https://api.github.com/users/BristechSRM/received_events","type":"Organization","site_admin":false},"repo":{"id":55150575,"name":"frontend","full_name":"BristechSRM/frontend","owner":{"login":"BristechSRM","id":17645943,"avatar_url":"https://avatars.githubusercontent.com/u/17645943?v=3","gravatar_id":"","url":"https://api.github.com/users/BristechSRM","html_url":"https://github.com/BristechSRM","followers_url":"https://api.github.com/users/BristechSRM/followers","following_url":"https://api.github.com/users/BristechSRM/following{/other_user}","gists_url":"https://api.github.com/users/BristechSRM/gists{/gist_id}","starred_url":"https://api.github.com/users/BristechSRM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BristechSRM/subscriptions","organizations_url":"https://api.github.com/users/BristechSRM/orgs","repos_url":"https://api.github.com/users/BristechSRM/repos","events_url":"https://api.github.com/users/BristechSRM/events{/privacy}","received_events_url":"https://api.github.com/users/BristechSRM/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/BristechSRM/frontend","description":"React / Redux front end","fork":false,"url":"https://api.github.com/repos/BristechSRM/frontend","forks_url":"https://api.github.com/repos/BristechSRM/frontend/forks","keys_url":"https://api.github.com/repos/BristechSRM/frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/BristechSRM/frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/BristechSRM/frontend/teams","hooks_url":"https://api.github.com/repos/BristechSRM/frontend/hooks","issue_events_url":"https://api.github.com/repos/BristechSRM/frontend/issues/events{/number}","events_url":"https://api.github.com/repos/BristechSRM/frontend/events","assignees_url":"https://api.github.com/repos/BristechSRM/frontend/assignees{/user}","branches_url":"https://api.github.com/repos/BristechSRM/frontend/branches{/branch}","tags_url":"https://api.github.com/repos/BristechSRM/frontend/tags","blobs_url":"https://api.github.com/repos/BristechSRM/frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/BristechSRM/frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/BristechSRM/frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/BristechSRM/frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/BristechSRM/frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/BristechSRM/frontend/languages","stargazers_url":"https://api.github.com/repos/BristechSRM/frontend/stargazers","contributors_url":"https://api.github.com/repos/BristechSRM/frontend/contributors","subscribers_url":"https://api.github.com/repos/BristechSRM/frontend/subscribers","subscription_url":"https://api.github.com/repos/BristechSRM/frontend/subscription","commits_url":"https://api.github.com/repos/BristechSRM/frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/BristechSRM/frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/BristechSRM/frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/BristechSRM/frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/BristechSRM/frontend/contents/{+path}","compare_url":"https://api.github.com/repos/BristechSRM/frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/BristechSRM/frontend/merges","archive_url":"https://api.github.com/repos/BristechSRM/frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/BristechSRM/frontend/downloads","issues_url":"https://api.github.com/repos/BristechSRM/frontend/issues{/number}","pulls_url":"https://api.github.com/repos/BristechSRM/frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/BristechSRM/frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/BristechSRM/frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/BristechSRM/frontend/labels{/name}","releases_url":"https://api.github.com/repos/BristechSRM/frontend/releases{/id}","deployments_url":"https://api.github.com/repos/BristechSRM/frontend/deployments","created_at":"2016-03-31T12:56:28Z","updated_at":"2016-03-31T13:32:49Z","pushed_at":"2016-08-10T09:09:07Z","git_url":"git://github.com/BristechSRM/frontend.git","ssh_url":"git@github.com:BristechSRM/frontend.git","clone_url":"https://github.com/BristechSRM/frontend.git","svn_url":"https://github.com/BristechSRM/frontend","homepage":null,"size":978,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/BristechSRM/frontend/pulls/110"},"html":{"href":"https://github.com/BristechSRM/frontend/pull/110"},"issue":{"href":"https://api.github.com/repos/BristechSRM/frontend/issues/110"},"comments":{"href":"https://api.github.com/repos/BristechSRM/frontend/issues/110/comments"},"review_comments":{"href":"https://api.github.com/repos/BristechSRM/frontend/pulls/110/comments"},"review_comment":{"href":"https://api.github.com/repos/BristechSRM/frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/BristechSRM/frontend/pulls/110/commits"},"statuses":{"href":"https://api.github.com/repos/BristechSRM/frontend/statuses/90ce8cce281af9ef19786d319f0f1ab022533371"}}}}
{"actor":{"display_login":"dmorrisSL"}}