{"action":"created","issue":{"url":"https://api.github.com/repos/MichaelBrew/owakabi/issues/2","labels_url":"https://api.github.com/repos/MichaelBrew/owakabi/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/MichaelBrew/owakabi/issues/2/comments","events_url":"https://api.github.com/repos/MichaelBrew/owakabi/issues/2/events","html_url":"https://github.com/MichaelBrew/owakabi/issues/2","id":60236762,"number":2,"title":"If driver is available within 30 mins, notify rider","user":{"login":"MichaelBrew","id":3493682,"avatar_url":"https://avatars.githubusercontent.com/u/3493682?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelBrew","html_url":"https://github.com/MichaelBrew","followers_url":"https://api.github.com/users/MichaelBrew/followers","following_url":"https://api.github.com/users/MichaelBrew/following{/other_user}","gists_url":"https://api.github.com/users/MichaelBrew/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelBrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelBrew/subscriptions","organizations_url":"https://api.github.com/users/MichaelBrew/orgs","repos_url":"https://api.github.com/users/MichaelBrew/repos","events_url":"https://api.github.com/users/MichaelBrew/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelBrew/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"MichaelBrew","id":3493682,"avatar_url":"https://avatars.githubusercontent.com/u/3493682?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelBrew","html_url":"https://github.com/MichaelBrew","followers_url":"https://api.github.com/users/MichaelBrew/followers","following_url":"https://api.github.com/users/MichaelBrew/following{/other_user}","gists_url":"https://api.github.com/users/MichaelBrew/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelBrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelBrew/subscriptions","organizations_url":"https://api.github.com/users/MichaelBrew/orgs","repos_url":"https://api.github.com/users/MichaelBrew/repos","events_url":"https://api.github.com/users/MichaelBrew/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelBrew/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-03-08T02:11:52Z","updated_at":"2015-03-10T02:11:01Z","closed_at":null,"body":"If there were no available drivers after rider's initial request, notify them if a driver becomes available within half an hour. \r\n\r\nPseudo code:\r\n\r\nif (no drivers available)\r\n    send 'no drivers available' text to rider\r\n    set 'waitingForRide' column of rider to true\r\n    start 30 min timeout\r\n\r\n...\r\n\r\nif (driver becomes available)\r\n   get the location they are now available in\r\n   search riders table for any 'waitingForRide'\r\n   if (waiting rider's zone matches driver's zone)\r\n      cancel timeout\r\n      ask driver if they want request\r\n\r\n...\r\n\r\nif (30 mins has been reach, timeout triggered)\r\n    send rider text about no drivers"},"comment":{"url":"https://api.github.com/repos/MichaelBrew/owakabi/issues/comments/77983675","html_url":"https://github.com/MichaelBrew/owakabi/issues/2#issuecomment-77983675","issue_url":"https://api.github.com/repos/MichaelBrew/owakabi/issues/2","id":77983675,"user":{"login":"MichaelBrew","id":3493682,"avatar_url":"https://avatars.githubusercontent.com/u/3493682?v=3","gravatar_id":"","url":"https://api.github.com/users/MichaelBrew","html_url":"https://github.com/MichaelBrew","followers_url":"https://api.github.com/users/MichaelBrew/followers","following_url":"https://api.github.com/users/MichaelBrew/following{/other_user}","gists_url":"https://api.github.com/users/MichaelBrew/gists{/gist_id}","starred_url":"https://api.github.com/users/MichaelBrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichaelBrew/subscriptions","organizations_url":"https://api.github.com/users/MichaelBrew/orgs","repos_url":"https://api.github.com/users/MichaelBrew/repos","events_url":"https://api.github.com/users/MichaelBrew/events{/privacy}","received_events_url":"https://api.github.com/users/MichaelBrew/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T02:11:01Z","updated_at":"2015-03-10T02:11:01Z","body":"Ok things are looking good, except RiderMessenger is having some trouble with including other files. Both calls to db and RiderWaitingQueue result in \"undefined is not a function.\" Will figure it out later."}}