{"action":"created","issue":{"url":"https://api.github.com/repos/DoSomething/rogue/issues/35","repository_url":"https://api.github.com/repos/DoSomething/rogue","labels_url":"https://api.github.com/repos/DoSomething/rogue/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/DoSomething/rogue/issues/35/comments","events_url":"https://api.github.com/repos/DoSomething/rogue/issues/35/events","html_url":"https://github.com/DoSomething/rogue/pull/35","id":176458895,"number":35,"title":"Queue","user":{"login":"chloealee","id":9019452,"avatar_url":"https://avatars.githubusercontent.com/u/9019452?v=3","gravatar_id":"","url":"https://api.github.com/users/chloealee","html_url":"https://github.com/chloealee","followers_url":"https://api.github.com/users/chloealee/followers","following_url":"https://api.github.com/users/chloealee/following{/other_user}","gists_url":"https://api.github.com/users/chloealee/gists{/gist_id}","starred_url":"https://api.github.com/users/chloealee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chloealee/subscriptions","organizations_url":"https://api.github.com/users/chloealee/orgs","repos_url":"https://api.github.com/users/chloealee/repos","events_url":"https://api.github.com/users/chloealee/events{/privacy}","received_events_url":"https://api.github.com/users/chloealee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},"assignees":[{"login":"DFurnes","id":583202,"avatar_url":"https://avatars.githubusercontent.com/u/583202?v=3","gravatar_id":"","url":"https://api.github.com/users/DFurnes","html_url":"https://github.com/DFurnes","followers_url":"https://api.github.com/users/DFurnes/followers","following_url":"https://api.github.com/users/DFurnes/following{/other_user}","gists_url":"https://api.github.com/users/DFurnes/gists{/gist_id}","starred_url":"https://api.github.com/users/DFurnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DFurnes/subscriptions","organizations_url":"https://api.github.com/users/DFurnes/orgs","repos_url":"https://api.github.com/users/DFurnes/repos","events_url":"https://api.github.com/users/DFurnes/events{/privacy}","received_events_url":"https://api.github.com/users/DFurnes/received_events","type":"User","site_admin":false},{"login":"angaither","id":645205,"avatar_url":"https://avatars.githubusercontent.com/u/645205?v=3","gravatar_id":"","url":"https://api.github.com/users/angaither","html_url":"https://github.com/angaither","followers_url":"https://api.github.com/users/angaither/followers","following_url":"https://api.github.com/users/angaither/following{/other_user}","gists_url":"https://api.github.com/users/angaither/gists{/gist_id}","starred_url":"https://api.github.com/users/angaither/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angaither/subscriptions","organizations_url":"https://api.github.com/users/angaither/orgs","repos_url":"https://api.github.com/users/angaither/repos","events_url":"https://api.github.com/users/angaither/events{/privacy}","received_events_url":"https://api.github.com/users/angaither/received_events","type":"User","site_admin":false},{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-09-12T19:11:18Z","updated_at":"2016-09-12T20:22:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/DoSomething/rogue/pulls/35","html_url":"https://github.com/DoSomething/rogue/pull/35","diff_url":"https://github.com/DoSomething/rogue/pull/35.diff","patch_url":"https://github.com/DoSomething/rogue/pull/35.patch"},"body":"#### What's this PR do?\r\n- Refactors to use Laravel queues and error handling.\r\n- Updates test to mock the job that sends reporback from Rogue->Phoenix instead of the Phoenix class.\r\n- Drops the `failed_logs` table.\r\n- Adds the `failed_jobs` table. \r\n\r\n#### How should this be reviewed?\r\n- Make sure the tests are passing by running `phpunit` in the vagrant box.\r\n- To manually test:\r\n  - Log into your local. \r\n  - Sign up for a campaign. \r\n  - Go to your \"My Account\" page. \r\n  - See that you are signed up for that campaign.\r\n  - Post reportback via postman for that campaign and campaign run, with your `drupal_id`. \r\n  - Refresh your \"My Account\" page and make sure the campaign has been moved from \"YOU'RE DOING\" to \"YOU DID\"\r\n  Example Postman request:\r\n![screen shot 2016-09-12 at 3 06 15 pm](https://cloud.githubusercontent.com/assets/9019452/18448807/7c679b48-78fa-11e6-8ea8-f53a78319439.png)\r\n\r\n#### Any background context you want to provide?\r\nQuestion -  @sbsmith86 when we are updating the reportback, do we want to dispatch the job to send this to Phoenix as well?\r\n\r\nNote from Shae for future planning: \r\nShae Smith [11:27 AM]  \r\nI don’t know if this is needed at the moment, but we could also use the event system in laravel to send stuff to queues since we might want a way of notifiying a bunch of systems that something happened in rogue. but I think this approach is fine for now.\r\nhttps://dosomething.slack.com/archives/rogue/p1473348457000138\r\n\r\n#### Relevant tickets\r\nFixes #34 \r\n\r\n#### Checklist\r\n- [ ] Documentation added for new features/changed endpoints.\r\n- [ ] Tested on staging.\r\n- [ ] Pinged a PM if this is a larger PR that would benefit from some additional testing love."},"comment":{"url":"https://api.github.com/repos/DoSomething/rogue/issues/comments/246479220","html_url":"https://github.com/DoSomething/rogue/pull/35#issuecomment-246479220","issue_url":"https://api.github.com/repos/DoSomething/rogue/issues/35","id":246479220,"user":{"login":"sbsmith86","id":1700409,"avatar_url":"https://avatars.githubusercontent.com/u/1700409?v=3","gravatar_id":"","url":"https://api.github.com/users/sbsmith86","html_url":"https://github.com/sbsmith86","followers_url":"https://api.github.com/users/sbsmith86/followers","following_url":"https://api.github.com/users/sbsmith86/following{/other_user}","gists_url":"https://api.github.com/users/sbsmith86/gists{/gist_id}","starred_url":"https://api.github.com/users/sbsmith86/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbsmith86/subscriptions","organizations_url":"https://api.github.com/users/sbsmith86/orgs","repos_url":"https://api.github.com/users/sbsmith86/repos","events_url":"https://api.github.com/users/sbsmith86/events{/privacy}","received_events_url":"https://api.github.com/users/sbsmith86/received_events","type":"User","site_admin":false},"created_at":"2016-09-12T20:22:59Z","updated_at":"2016-09-12T20:22:59Z","body":"sure!"}}
{"actor":{"display_login":"sbsmith86"}}