{"action":"created","issue":{"url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/158","repository_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo","labels_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/158/comments","events_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/158/events","html_url":"https://github.com/praekeltfoundation/gem-bbb-indo/issues/158","id":192556929,"number":158,"title":"Achievements: Include Achievements in Response Objects","user":{"login":"wvictor-rr","id":22614906,"avatar_url":"https://avatars.githubusercontent.com/u/22614906?v=3","gravatar_id":"","url":"https://api.github.com/users/wvictor-rr","html_url":"https://github.com/wvictor-rr","followers_url":"https://api.github.com/users/wvictor-rr/followers","following_url":"https://api.github.com/users/wvictor-rr/following{/other_user}","gists_url":"https://api.github.com/users/wvictor-rr/gists{/gist_id}","starred_url":"https://api.github.com/users/wvictor-rr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvictor-rr/subscriptions","organizations_url":"https://api.github.com/users/wvictor-rr/orgs","repos_url":"https://api.github.com/users/wvictor-rr/repos","events_url":"https://api.github.com/users/wvictor-rr/events{/privacy}","received_events_url":"https://api.github.com/users/wvictor-rr/received_events","type":"User","site_admin":false},"labels":[{"id":473589546,"url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/labels/server","name":"server","color":"1d76db","default":false}],"state":"open","locked":false,"assignee":{"login":"rjacobs31","id":19429961,"avatar_url":"https://avatars.githubusercontent.com/u/19429961?v=3","gravatar_id":"","url":"https://api.github.com/users/rjacobs31","html_url":"https://github.com/rjacobs31","followers_url":"https://api.github.com/users/rjacobs31/followers","following_url":"https://api.github.com/users/rjacobs31/following{/other_user}","gists_url":"https://api.github.com/users/rjacobs31/gists{/gist_id}","starred_url":"https://api.github.com/users/rjacobs31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjacobs31/subscriptions","organizations_url":"https://api.github.com/users/rjacobs31/orgs","repos_url":"https://api.github.com/users/rjacobs31/repos","events_url":"https://api.github.com/users/rjacobs31/events{/privacy}","received_events_url":"https://api.github.com/users/rjacobs31/received_events","type":"User","site_admin":false},"assignees":[{"login":"rjacobs31","id":19429961,"avatar_url":"https://avatars.githubusercontent.com/u/19429961?v=3","gravatar_id":"","url":"https://api.github.com/users/rjacobs31","html_url":"https://github.com/rjacobs31","followers_url":"https://api.github.com/users/rjacobs31/followers","following_url":"https://api.github.com/users/rjacobs31/following{/other_user}","gists_url":"https://api.github.com/users/rjacobs31/gists{/gist_id}","starred_url":"https://api.github.com/users/rjacobs31/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjacobs31/subscriptions","organizations_url":"https://api.github.com/users/rjacobs31/orgs","repos_url":"https://api.github.com/users/rjacobs31/repos","events_url":"https://api.github.com/users/rjacobs31/events{/privacy}","received_events_url":"https://api.github.com/users/rjacobs31/received_events","type":"User","site_admin":false},{"login":"wvictor-rr","id":22614906,"avatar_url":"https://avatars.githubusercontent.com/u/22614906?v=3","gravatar_id":"","url":"https://api.github.com/users/wvictor-rr","html_url":"https://github.com/wvictor-rr","followers_url":"https://api.github.com/users/wvictor-rr/followers","following_url":"https://api.github.com/users/wvictor-rr/following{/other_user}","gists_url":"https://api.github.com/users/wvictor-rr/gists{/gist_id}","starred_url":"https://api.github.com/users/wvictor-rr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvictor-rr/subscriptions","organizations_url":"https://api.github.com/users/wvictor-rr/orgs","repos_url":"https://api.github.com/users/wvictor-rr/repos","events_url":"https://api.github.com/users/wvictor-rr/events{/privacy}","received_events_url":"https://api.github.com/users/wvictor-rr/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/milestones/13","html_url":"https://github.com/praekeltfoundation/gem-bbb-indo/milestone/13","labels_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/milestones/13/labels","id":2206629,"number":13,"title":"0.0.13","description":"","creator":{"login":"wvictor-rr","id":22614906,"avatar_url":"https://avatars.githubusercontent.com/u/22614906?v=3","gravatar_id":"","url":"https://api.github.com/users/wvictor-rr","html_url":"https://github.com/wvictor-rr","followers_url":"https://api.github.com/users/wvictor-rr/followers","following_url":"https://api.github.com/users/wvictor-rr/following{/other_user}","gists_url":"https://api.github.com/users/wvictor-rr/gists{/gist_id}","starred_url":"https://api.github.com/users/wvictor-rr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvictor-rr/subscriptions","organizations_url":"https://api.github.com/users/wvictor-rr/orgs","repos_url":"https://api.github.com/users/wvictor-rr/repos","events_url":"https://api.github.com/users/wvictor-rr/events{/privacy}","received_events_url":"https://api.github.com/users/wvictor-rr/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":6,"state":"open","created_at":"2016-12-20T07:30:26Z","updated_at":"2017-01-20T04:52:20Z","due_on":"2017-01-06T08:00:00Z","closed_at":null},"comments":2,"created_at":"2016-11-30T12:46:34Z","updated_at":"2017-01-20T05:11:31Z","closed_at":null,"body":"In preparation for Badges on the app, select endpoints must return an `achievement` field on a successful response. The field must contain a list of achievements.\r\n\r\n- [x] Goal Create\r\n   - **First Goal Created:** User has successfully set their first goal\r\n- [x] Transaction Create\r\n   - **First savings entered:** User has recorded their first savings amount\r\n   - **Halfway:** User has reached 50% of their total amount\r\n   - **First Goal Reached**: User has reached her first Goal\r\n   - **1 Week to Go:** User has 1 week left to save before they reach their goal\r\n   - **2 weeks in a row:** User has saved for 2 weeks in a row\r\n   - **4 weeks in a row:** User has saved for 4 weeks in a row\r\n   - **6 weeks in a row:** User has saved for 6 weeks in a row\r\n   - **On track 2 weeks:** User has saved her weekly goal as per plan for 2 weeks in a row\r\n   - **On track 4 weeks:** User has saved her weekly goal as per plan for 4 weeks in a row\r\n   - **On track 8 weeks:** User has saved her weekly goal as per plan for 8 weeks in a row\r\n- [ ] Participant Retrieve\r\n   - Winner Achievement on Service poll\r\n- [ ] Entry Create\r\n   - Participation Achievement on Challenge submit\r\n\r\n~Planned example response:~ _The actual implemented model does not look like this_\r\n\r\n```json\r\n{\r\n   \"name\": \"Snacks\",\r\n   \"start_date\": \"2016-11-30\",\r\n   \"end_date\": \"2016-12-31\",\r\n   \"achievements\" : [\r\n      { \r\n         \"type\": \"first_goal\",\r\n         \"title\": \"Added First Goal!\",\r\n         \"image_url\": \"http://localhost:8000/static/achievements/first_goal.jpeg\",\r\n         \"created_on\": \"2016-11-30\"\r\n      }\r\n   ]\r\n}\r\n```\r\n\r\nActual responses include the new badges that are relevant to the specific reesponse. They don't include a type.\r\n\r\n```json\r\n{\r\n   \"new_badges\": [{\r\n            \"earned_on\": \"2016-12-27T07:36:56.520164Z\",\r\n            \"name\": \"Savings Mode: ON!\",\r\n            \"image_url\": \"http://localhost:8000/media/original_images/First_Goal_Created.jpeg\",\r\n            \"social_url\": \"http://localhost:8000/social/badges/first-goal-created/\"\r\n        }]\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/comments/273979277","html_url":"https://github.com/praekeltfoundation/gem-bbb-indo/issues/158#issuecomment-273979277","issue_url":"https://api.github.com/repos/praekeltfoundation/gem-bbb-indo/issues/158","id":273979277,"user":{"login":"wvictor-rr","id":22614906,"avatar_url":"https://avatars.githubusercontent.com/u/22614906?v=3","gravatar_id":"","url":"https://api.github.com/users/wvictor-rr","html_url":"https://github.com/wvictor-rr","followers_url":"https://api.github.com/users/wvictor-rr/followers","following_url":"https://api.github.com/users/wvictor-rr/following{/other_user}","gists_url":"https://api.github.com/users/wvictor-rr/gists{/gist_id}","starred_url":"https://api.github.com/users/wvictor-rr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvictor-rr/subscriptions","organizations_url":"https://api.github.com/users/wvictor-rr/orgs","repos_url":"https://api.github.com/users/wvictor-rr/repos","events_url":"https://api.github.com/users/wvictor-rr/events{/privacy}","received_events_url":"https://api.github.com/users/wvictor-rr/received_events","type":"User","site_admin":false},"created_at":"2017-01-20T05:11:31Z","updated_at":"2017-01-20T05:11:31Z","body":"On Track type goals are moved to https://github.com/praekeltfoundation/gem-bbb-indo/issues/453"}}
{"actor":{"display_login":"wvictor-rr"}}