{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/10612","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/10612/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/10612/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/10612/events","html_url":"https://github.com/edx/edx-platform/pull/10612","id":116686402,"number":10612,"title":"(WIP) Badging starter apps","user":{"login":"Kelketek","id":1099483,"avatar_url":"https://avatars.githubusercontent.com/u/1099483?v=3","gravatar_id":"","url":"https://api.github.com/users/Kelketek","html_url":"https://github.com/Kelketek","followers_url":"https://api.github.com/users/Kelketek/followers","following_url":"https://api.github.com/users/Kelketek/following{/other_user}","gists_url":"https://api.github.com/users/Kelketek/gists{/gist_id}","starred_url":"https://api.github.com/users/Kelketek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kelketek/subscriptions","organizations_url":"https://api.github.com/users/Kelketek/orgs","repos_url":"https://api.github.com/users/Kelketek/repos","events_url":"https://api.github.com/users/Kelketek/events{/privacy}","received_events_url":"https://api.github.com/users/Kelketek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-11-13T02:23:31Z","updated_at":"2015-11-24T20:06:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/10612","html_url":"https://github.com/edx/edx-platform/pull/10612","diff_url":"https://github.com/edx/edx-platform/pull/10612.diff","patch_url":"https://github.com/edx/edx-platform/pull/10612.patch"},"body":"**Background**: Provides three badging award events, configurable through the admin.\r\n**Jira**: https://openedx.atlassian.net/browse/SOL-1364\r\n**Spec/Discussion**: https://docs.google.com/document/d/1ob-leRHV97agPGw5ys9uASXrcsU8qf51bzYlKH3mBEM/edit?usp=sharing\r\n**Sandbox**: LMS http://pr10556.sandbox.opencraft.com/ CMS http://studio.pr10556.sandbox.opencraft.com/home\r\n**Testing instructions**: \r\n\r\n1. Create a set of courses with easily passed grading options. Don't enroll. For each of these, configure a certificate for the 'honor' mode, following the instructions at http://edx.readthedocs.org/projects/open-edx-building-and-running-a-course/en/latest/building_course/creating_course_certificates.html#enable-certificates\r\n2. In the admin, create a BadgeClass object to award when the user has enrolled in a certain number of courses. Customize it with a PNG of your choice-- square, under 250KB or so. Make the issuing component `edx__course`. Make note of the slug you choose.\r\n3. Create another BadgeClass object to award when the user has completed a certain number of courses. Customize it with a PNG of your choice, same requirements as above, and same issuing component. Make note of the slug you choose.\r\n4. Create yet another BadgeClass object to award when the user has completed a set of courses together. Customize it with a PNG of your choice, same requirements as above, and same issuing component. Make note of the slug you choose.\r\n5. Create a CourseEventBadgesConfiguration object and follow the instructions on what to fill into the fields to configure it to award the desired badges. Make sure **Enabled** is checked.\r\n6. Enroll in enough courses to achieve the enrollment award as you configured it.\r\n7. Check in the Django shell to see if a BadgeAssertion with the desired BadgeClass has been created for that user (user.badgeassertion_set.all() should give you all of them when you have the user object as user.)\r\n8. Get a high enough grade in enough courses to pass, and close the courses. Run certificate generation for each of these courses until enough certs have been generated to mark enough courses completed to earn the badge as you configured it.\r\n9. Check in the Django shell to see if a BadgeAssertion with the desired BadgeClass has been created for that user (user.badgeassertion_set.all() should give you all of them when you have the user object as user.)\r\n10. Complete the courses in the course group in a similar manner as you did for the course completion badge, generating the certificates when done.\r\n11. Check in the Django shell to see if a BadgeAssertion with the desired BadgeClass has been created for that user (user.badgeassertion_set.all() should give you all of them when you have the user object as user.)"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/159389962","html_url":"https://github.com/edx/edx-platform/pull/10612#issuecomment-159389962","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/10612","id":159389962,"user":{"login":"Kelketek","id":1099483,"avatar_url":"https://avatars.githubusercontent.com/u/1099483?v=3","gravatar_id":"","url":"https://api.github.com/users/Kelketek","html_url":"https://github.com/Kelketek","followers_url":"https://api.github.com/users/Kelketek/followers","following_url":"https://api.github.com/users/Kelketek/following{/other_user}","gists_url":"https://api.github.com/users/Kelketek/gists{/gist_id}","starred_url":"https://api.github.com/users/Kelketek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kelketek/subscriptions","organizations_url":"https://api.github.com/users/Kelketek/orgs","repos_url":"https://api.github.com/users/Kelketek/repos","events_url":"https://api.github.com/users/Kelketek/events{/privacy}","received_events_url":"https://api.github.com/users/Kelketek/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T20:06:05Z","updated_at":"2015-11-24T20:06:05Z","body":"jenkins run lettuce"}}