{"action":"created","comment":{"url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/comments/172661149","pull_request_review_id":101717437,"id":172661149,"diff_hunk":"@@ -0,0 +1,267 @@\n+import React, {Component} from 'react';\n+import firebase from '../../FirebaseConfig.js';\n+import { RequestRepeatType, RequestDurationType } from '../../Enums.js';\n+import './RequestPickup.css';\n+import PickupSummary from './PickupSummary.js';\n+\n+class RecurringPickupRequest extends Component {\n+    constructor(props) {\n+        super(props);\n+        this.state = {\n+            memberList: [\n+                {id: 'dhA03LwTp3cibXVUcb3nQqO34wj1', name: 'Test DA1 Member1'}, \n+                {id: 'fbCm3Yrbi4e12WgpVz3gq25VKea2', name: 'Test DA1 Member2'}\n+            ],\n+            delivererGroups: [\n+                {id: 'R8BAHrxdkfQoAmfWvGa1OJmjQP43', name: 'Test DG1'},\n+                {id: 'sS4dqgxgLIXtPf42DydgkWLWeHT2', name: 'Test DG2'}\n+            ],\n+            receivingAgencies: [\n+                {id: 'uCm0OG4WeoSyjk3c0rdY3mlaBXl2', name: 'Test RA2'},\n+                {id: 'uGOFJ8NqHjbZhKAYzSZFRs1dSKD3', name: 'Test RA1'}\n+            ],\n+            fields: {},\n+            errors: {},\n+            isOpen: false,\n+            formInfo: []\n+        }; \n+        this.submitRequest = this.submitRequest.bind(this);\n+        this.createRequest = this.createRequest.bind(this);\n+    }\n+\n+    componentDidMount(){\n+        const daRef = firebase.database().ref('donating_agencies').child(this.props.account.agency);\n+        daRef.on('value', (snapshot) => {\n+            let donatingAgency = snapshot.val();\n+            this.setState({\n+                schoolID: donatingAgency.school\n+            });\n+        });\n+    }\n+\n+    handleValidation(){\n+        let fields = this.state.fields;\n+        let errors = {};\n+        let formIsValid = true;\n+\n+        //Date\n+        if(!fields['startDate']){\n+            formIsValid = false;\n+            errors['startDate'] = 'Start date cannot be empty';\n+        }\n+\n+        if(fields['endDate'] < fields['startDate']){","path":"src/PageContent/RequestPickup/RecurringPickupRequest.js","position":51,"original_position":53,"commit_id":"e8f419d4ea984e61ed72f9786eba5f5a6b3b2d90","original_commit_id":"52a9dc2c08f4d27fff0018c01953da99a69b8121","user":{"login":"huangjoyce3","id":17226026,"avatar_url":"https://avatars3.githubusercontent.com/u/17226026?v=4","gravatar_id":"","url":"https://api.github.com/users/huangjoyce3","html_url":"https://github.com/huangjoyce3","followers_url":"https://api.github.com/users/huangjoyce3/followers","following_url":"https://api.github.com/users/huangjoyce3/following{/other_user}","gists_url":"https://api.github.com/users/huangjoyce3/gists{/gist_id}","starred_url":"https://api.github.com/users/huangjoyce3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangjoyce3/subscriptions","organizations_url":"https://api.github.com/users/huangjoyce3/orgs","repos_url":"https://api.github.com/users/huangjoyce3/repos","events_url":"https://api.github.com/users/huangjoyce3/events{/privacy}","received_events_url":"https://api.github.com/users/huangjoyce3/received_events","type":"User","site_admin":false},"body":"They are type Date. I set fields in my handleChange function \r\n```\r\nhandleChange(field, e){         \r\n        let fields = this.state.fields;\r\n        fields[field] = e.target.value;        \r\n        this.setState({fields});\r\n}\r\n```\r\n","created_at":"2018-03-06T21:12:09Z","updated_at":"2018-03-06T21:12:09Z","html_url":"https://github.com/huangjoyce3/uw-foodwaste/pull/11#discussion_r172661149","pull_request_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/11","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/comments/172661149"},"html":{"href":"https://github.com/huangjoyce3/uw-foodwaste/pull/11#discussion_r172661149"},"pull_request":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/11"}},"in_reply_to_id":172419195},"pull_request":{"url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/11","id":173060870,"html_url":"https://github.com/huangjoyce3/uw-foodwaste/pull/11","diff_url":"https://github.com/huangjoyce3/uw-foodwaste/pull/11.diff","patch_url":"https://github.com/huangjoyce3/uw-foodwaste/pull/11.patch","issue_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues/11","number":11,"state":"open","locked":false,"title":"Schedule Recurring Pickup + Summary UI","user":{"login":"huangjoyce3","id":17226026,"avatar_url":"https://avatars3.githubusercontent.com/u/17226026?v=4","gravatar_id":"","url":"https://api.github.com/users/huangjoyce3","html_url":"https://github.com/huangjoyce3","followers_url":"https://api.github.com/users/huangjoyce3/followers","following_url":"https://api.github.com/users/huangjoyce3/following{/other_user}","gists_url":"https://api.github.com/users/huangjoyce3/gists{/gist_id}","starred_url":"https://api.github.com/users/huangjoyce3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangjoyce3/subscriptions","organizations_url":"https://api.github.com/users/huangjoyce3/orgs","repos_url":"https://api.github.com/users/huangjoyce3/repos","events_url":"https://api.github.com/users/huangjoyce3/events{/privacy}","received_events_url":"https://api.github.com/users/huangjoyce3/received_events","type":"User","site_admin":false},"body":"![image](https://user-images.githubusercontent.com/17226026/37015342-43ebc25c-20bb-11e8-8af6-296fc04dc8cb.png)\r\n![image](https://user-images.githubusercontent.com/17226026/37015351-58e09ca0-20bb-11e8-811f-75baf294a81a.png)\r\n","created_at":"2018-03-06T05:22:52Z","updated_at":"2018-03-06T21:12:09Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dcc1b7e47b2ecaec1b031fced767f064631aa2dd","assignee":null,"assignees":[],"requested_reviewers":[{"login":"zubinchopra","id":14044105,"avatar_url":"https://avatars3.githubusercontent.com/u/14044105?v=4","gravatar_id":"","url":"https://api.github.com/users/zubinchopra","html_url":"https://github.com/zubinchopra","followers_url":"https://api.github.com/users/zubinchopra/followers","following_url":"https://api.github.com/users/zubinchopra/following{/other_user}","gists_url":"https://api.github.com/users/zubinchopra/gists{/gist_id}","starred_url":"https://api.github.com/users/zubinchopra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zubinchopra/subscriptions","organizations_url":"https://api.github.com/users/zubinchopra/orgs","repos_url":"https://api.github.com/users/zubinchopra/repos","events_url":"https://api.github.com/users/zubinchopra/events{/privacy}","received_events_url":"https://api.github.com/users/zubinchopra/received_events","type":"User","site_admin":false},{"login":"sarahf95","id":20346100,"avatar_url":"https://avatars3.githubusercontent.com/u/20346100?v=4","gravatar_id":"","url":"https://api.github.com/users/sarahf95","html_url":"https://github.com/sarahf95","followers_url":"https://api.github.com/users/sarahf95/followers","following_url":"https://api.github.com/users/sarahf95/following{/other_user}","gists_url":"https://api.github.com/users/sarahf95/gists{/gist_id}","starred_url":"https://api.github.com/users/sarahf95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sarahf95/subscriptions","organizations_url":"https://api.github.com/users/sarahf95/orgs","repos_url":"https://api.github.com/users/sarahf95/repos","events_url":"https://api.github.com/users/sarahf95/events{/privacy}","received_events_url":"https://api.github.com/users/sarahf95/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/11/commits","review_comments_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/11/comments","review_comment_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/comments{/number}","comments_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues/11/comments","statuses_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/statuses/e8f419d4ea984e61ed72f9786eba5f5a6b3b2d90","head":{"label":"huangjoyce3:backend_delivery","ref":"backend_delivery","sha":"e8f419d4ea984e61ed72f9786eba5f5a6b3b2d90","user":{"login":"huangjoyce3","id":17226026,"avatar_url":"https://avatars3.githubusercontent.com/u/17226026?v=4","gravatar_id":"","url":"https://api.github.com/users/huangjoyce3","html_url":"https://github.com/huangjoyce3","followers_url":"https://api.github.com/users/huangjoyce3/followers","following_url":"https://api.github.com/users/huangjoyce3/following{/other_user}","gists_url":"https://api.github.com/users/huangjoyce3/gists{/gist_id}","starred_url":"https://api.github.com/users/huangjoyce3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangjoyce3/subscriptions","organizations_url":"https://api.github.com/users/huangjoyce3/orgs","repos_url":"https://api.github.com/users/huangjoyce3/repos","events_url":"https://api.github.com/users/huangjoyce3/events{/privacy}","received_events_url":"https://api.github.com/users/huangjoyce3/received_events","type":"User","site_admin":false},"repo":{"id":118287273,"name":"uw-foodwaste","full_name":"huangjoyce3/uw-foodwaste","owner":{"login":"huangjoyce3","id":17226026,"avatar_url":"https://avatars3.githubusercontent.com/u/17226026?v=4","gravatar_id":"","url":"https://api.github.com/users/huangjoyce3","html_url":"https://github.com/huangjoyce3","followers_url":"https://api.github.com/users/huangjoyce3/followers","following_url":"https://api.github.com/users/huangjoyce3/following{/other_user}","gists_url":"https://api.github.com/users/huangjoyce3/gists{/gist_id}","starred_url":"https://api.github.com/users/huangjoyce3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangjoyce3/subscriptions","organizations_url":"https://api.github.com/users/huangjoyce3/orgs","repos_url":"https://api.github.com/users/huangjoyce3/repos","events_url":"https://api.github.com/users/huangjoyce3/events{/privacy}","received_events_url":"https://api.github.com/users/huangjoyce3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huangjoyce3/uw-foodwaste","description":"Web platform to pair food waste on campus to communities in need.","fork":false,"url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste","forks_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/forks","keys_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/teams","hooks_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/hooks","issue_events_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues/events{/number}","events_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/events","assignees_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/assignees{/user}","branches_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/branches{/branch}","tags_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/tags","blobs_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/refs{/sha}","trees_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/statuses/{sha}","languages_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/languages","stargazers_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/stargazers","contributors_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/contributors","subscribers_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/subscribers","subscription_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/subscription","commits_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/commits{/sha}","git_commits_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/commits{/sha}","comments_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/comments{/number}","issue_comment_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues/comments{/number}","contents_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/contents/{+path}","compare_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/merges","archive_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/downloads","issues_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues{/number}","pulls_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls{/number}","milestones_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/milestones{/number}","notifications_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/labels{/name}","releases_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/releases{/id}","deployments_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/deployments","created_at":"2018-01-20T22:52:06Z","updated_at":"2018-03-01T18:37:49Z","pushed_at":"2018-03-06T08:20:35Z","git_url":"git://github.com/huangjoyce3/uw-foodwaste.git","ssh_url":"git@github.com:huangjoyce3/uw-foodwaste.git","clone_url":"https://github.com/huangjoyce3/uw-foodwaste.git","svn_url":"https://github.com/huangjoyce3/uw-foodwaste","homepage":"","size":6587,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"huangjoyce3:master","ref":"master","sha":"7a92f82b0db4fa4aa19592282d739d31902c7aef","user":{"login":"huangjoyce3","id":17226026,"avatar_url":"https://avatars3.githubusercontent.com/u/17226026?v=4","gravatar_id":"","url":"https://api.github.com/users/huangjoyce3","html_url":"https://github.com/huangjoyce3","followers_url":"https://api.github.com/users/huangjoyce3/followers","following_url":"https://api.github.com/users/huangjoyce3/following{/other_user}","gists_url":"https://api.github.com/users/huangjoyce3/gists{/gist_id}","starred_url":"https://api.github.com/users/huangjoyce3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangjoyce3/subscriptions","organizations_url":"https://api.github.com/users/huangjoyce3/orgs","repos_url":"https://api.github.com/users/huangjoyce3/repos","events_url":"https://api.github.com/users/huangjoyce3/events{/privacy}","received_events_url":"https://api.github.com/users/huangjoyce3/received_events","type":"User","site_admin":false},"repo":{"id":118287273,"name":"uw-foodwaste","full_name":"huangjoyce3/uw-foodwaste","owner":{"login":"huangjoyce3","id":17226026,"avatar_url":"https://avatars3.githubusercontent.com/u/17226026?v=4","gravatar_id":"","url":"https://api.github.com/users/huangjoyce3","html_url":"https://github.com/huangjoyce3","followers_url":"https://api.github.com/users/huangjoyce3/followers","following_url":"https://api.github.com/users/huangjoyce3/following{/other_user}","gists_url":"https://api.github.com/users/huangjoyce3/gists{/gist_id}","starred_url":"https://api.github.com/users/huangjoyce3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huangjoyce3/subscriptions","organizations_url":"https://api.github.com/users/huangjoyce3/orgs","repos_url":"https://api.github.com/users/huangjoyce3/repos","events_url":"https://api.github.com/users/huangjoyce3/events{/privacy}","received_events_url":"https://api.github.com/users/huangjoyce3/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/huangjoyce3/uw-foodwaste","description":"Web platform to pair food waste on campus to communities in need.","fork":false,"url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste","forks_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/forks","keys_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/teams","hooks_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/hooks","issue_events_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues/events{/number}","events_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/events","assignees_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/assignees{/user}","branches_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/branches{/branch}","tags_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/tags","blobs_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/refs{/sha}","trees_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/statuses/{sha}","languages_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/languages","stargazers_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/stargazers","contributors_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/contributors","subscribers_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/subscribers","subscription_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/subscription","commits_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/commits{/sha}","git_commits_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/git/commits{/sha}","comments_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/comments{/number}","issue_comment_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues/comments{/number}","contents_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/contents/{+path}","compare_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/merges","archive_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/downloads","issues_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues{/number}","pulls_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls{/number}","milestones_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/milestones{/number}","notifications_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/labels{/name}","releases_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/releases{/id}","deployments_url":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/deployments","created_at":"2018-01-20T22:52:06Z","updated_at":"2018-03-01T18:37:49Z","pushed_at":"2018-03-06T08:20:35Z","git_url":"git://github.com/huangjoyce3/uw-foodwaste.git","ssh_url":"git@github.com:huangjoyce3/uw-foodwaste.git","clone_url":"https://github.com/huangjoyce3/uw-foodwaste.git","svn_url":"https://github.com/huangjoyce3/uw-foodwaste","homepage":"","size":6587,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":0,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/11"},"html":{"href":"https://github.com/huangjoyce3/uw-foodwaste/pull/11"},"issue":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues/11"},"comments":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/huangjoyce3/uw-foodwaste/statuses/e8f419d4ea984e61ed72f9786eba5f5a6b3b2d90"}},"author_association":"OWNER"}}
{"actor":{"display_login":"huangjoyce3"}}