{"action":"closed","number":27,"pull_request":{"url":"https://api.github.com/repos/mitodl/edx-api-client/pulls/27","id":86221863,"html_url":"https://github.com/mitodl/edx-api-client/pull/27","diff_url":"https://github.com/mitodl/edx-api-client/pull/27.diff","patch_url":"https://github.com/mitodl/edx-api-client/pull/27.patch","issue_url":"https://api.github.com/repos/mitodl/edx-api-client/issues/27","number":27,"state":"closed","locked":false,"title":"Added capability to create enrollment in a course","user":{"login":"giocalitri","id":1005204,"avatar_url":"https://avatars.githubusercontent.com/u/1005204?v=3","gravatar_id":"","url":"https://api.github.com/users/giocalitri","html_url":"https://github.com/giocalitri","followers_url":"https://api.github.com/users/giocalitri/followers","following_url":"https://api.github.com/users/giocalitri/following{/other_user}","gists_url":"https://api.github.com/users/giocalitri/gists{/gist_id}","starred_url":"https://api.github.com/users/giocalitri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giocalitri/subscriptions","organizations_url":"https://api.github.com/users/giocalitri/orgs","repos_url":"https://api.github.com/users/giocalitri/repos","events_url":"https://api.github.com/users/giocalitri/events{/privacy}","received_events_url":"https://api.github.com/users/giocalitri/received_events","type":"User","site_admin":false},"body":"#### What are the relevant tickets?\r\ncloses #26 \r\n\r\n#### What's this PR do?\r\nIntroduces the support for creating an audit enrollment in a specified course\r\n\r\n#### Where should the reviewer start?\r\n`edx_api/enrollments/__init__.py`\r\n\r\n#### How should this be manually tested?\r\ntry to enrolls the user is a course or just run the integration tests\r\n\r\n#### Any background context you want to provide?\r\nCurrently one of the integration tests (the ccx one) fails due to a problem about the edx support of OAUTH in the ccx \r\n\r\n#### Screenshots (if appropriate)\r\n\r\n#### What GIF best describes this PR or how it makes you feel?\r\n","created_at":"2016-09-21T19:01:57Z","updated_at":"2016-09-22T13:46:43Z","closed_at":"2016-09-22T13:46:43Z","merged_at":"2016-09-22T13:46:43Z","merge_commit_sha":"524410bc2fb4f4ae9240222be6c04ba30ced5bf6","assignee":{"login":"amir-qayyum-khan","id":10431250,"avatar_url":"https://avatars.githubusercontent.com/u/10431250?v=3","gravatar_id":"","url":"https://api.github.com/users/amir-qayyum-khan","html_url":"https://github.com/amir-qayyum-khan","followers_url":"https://api.github.com/users/amir-qayyum-khan/followers","following_url":"https://api.github.com/users/amir-qayyum-khan/following{/other_user}","gists_url":"https://api.github.com/users/amir-qayyum-khan/gists{/gist_id}","starred_url":"https://api.github.com/users/amir-qayyum-khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir-qayyum-khan/subscriptions","organizations_url":"https://api.github.com/users/amir-qayyum-khan/orgs","repos_url":"https://api.github.com/users/amir-qayyum-khan/repos","events_url":"https://api.github.com/users/amir-qayyum-khan/events{/privacy}","received_events_url":"https://api.github.com/users/amir-qayyum-khan/received_events","type":"User","site_admin":false},"assignees":[{"login":"amir-qayyum-khan","id":10431250,"avatar_url":"https://avatars.githubusercontent.com/u/10431250?v=3","gravatar_id":"","url":"https://api.github.com/users/amir-qayyum-khan","html_url":"https://github.com/amir-qayyum-khan","followers_url":"https://api.github.com/users/amir-qayyum-khan/followers","following_url":"https://api.github.com/users/amir-qayyum-khan/following{/other_user}","gists_url":"https://api.github.com/users/amir-qayyum-khan/gists{/gist_id}","starred_url":"https://api.github.com/users/amir-qayyum-khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir-qayyum-khan/subscriptions","organizations_url":"https://api.github.com/users/amir-qayyum-khan/orgs","repos_url":"https://api.github.com/users/amir-qayyum-khan/repos","events_url":"https://api.github.com/users/amir-qayyum-khan/events{/privacy}","received_events_url":"https://api.github.com/users/amir-qayyum-khan/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/mitodl/edx-api-client/pulls/27/commits","review_comments_url":"https://api.github.com/repos/mitodl/edx-api-client/pulls/27/comments","review_comment_url":"https://api.github.com/repos/mitodl/edx-api-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mitodl/edx-api-client/issues/27/comments","statuses_url":"https://api.github.com/repos/mitodl/edx-api-client/statuses/c2a31638af8213bf92412f9e9cf30221ebfca7d9","head":{"label":"mitodl:post_enrollment","ref":"post_enrollment","sha":"c2a31638af8213bf92412f9e9cf30221ebfca7d9","user":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars.githubusercontent.com/u/7918516?v=3","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"repo":{"id":54502789,"name":"edx-api-client","full_name":"mitodl/edx-api-client","owner":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars.githubusercontent.com/u/7918516?v=3","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mitodl/edx-api-client","description":"Python interface for edX REST APIs","fork":false,"url":"https://api.github.com/repos/mitodl/edx-api-client","forks_url":"https://api.github.com/repos/mitodl/edx-api-client/forks","keys_url":"https://api.github.com/repos/mitodl/edx-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitodl/edx-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitodl/edx-api-client/teams","hooks_url":"https://api.github.com/repos/mitodl/edx-api-client/hooks","issue_events_url":"https://api.github.com/repos/mitodl/edx-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/mitodl/edx-api-client/events","assignees_url":"https://api.github.com/repos/mitodl/edx-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/mitodl/edx-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/mitodl/edx-api-client/tags","blobs_url":"https://api.github.com/repos/mitodl/edx-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitodl/edx-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitodl/edx-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitodl/edx-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitodl/edx-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/mitodl/edx-api-client/languages","stargazers_url":"https://api.github.com/repos/mitodl/edx-api-client/stargazers","contributors_url":"https://api.github.com/repos/mitodl/edx-api-client/contributors","subscribers_url":"https://api.github.com/repos/mitodl/edx-api-client/subscribers","subscription_url":"https://api.github.com/repos/mitodl/edx-api-client/subscription","commits_url":"https://api.github.com/repos/mitodl/edx-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitodl/edx-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitodl/edx-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitodl/edx-api-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitodl/edx-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/mitodl/edx-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitodl/edx-api-client/merges","archive_url":"https://api.github.com/repos/mitodl/edx-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitodl/edx-api-client/downloads","issues_url":"https://api.github.com/repos/mitodl/edx-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/mitodl/edx-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/mitodl/edx-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/mitodl/edx-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitodl/edx-api-client/labels{/name}","releases_url":"https://api.github.com/repos/mitodl/edx-api-client/releases{/id}","deployments_url":"https://api.github.com/repos/mitodl/edx-api-client/deployments","created_at":"2016-03-22T19:24:51Z","updated_at":"2016-03-23T18:20:56Z","pushed_at":"2016-09-22T13:46:44Z","git_url":"git://github.com/mitodl/edx-api-client.git","ssh_url":"git@github.com:mitodl/edx-api-client.git","clone_url":"https://github.com/mitodl/edx-api-client.git","svn_url":"https://github.com/mitodl/edx-api-client","homepage":"","size":67,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"mitodl:master","ref":"master","sha":"c3afe4cf9ca0be4b7ebd9725ae374b39ddeaf30d","user":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars.githubusercontent.com/u/7918516?v=3","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"repo":{"id":54502789,"name":"edx-api-client","full_name":"mitodl/edx-api-client","owner":{"login":"mitodl","id":7918516,"avatar_url":"https://avatars.githubusercontent.com/u/7918516?v=3","gravatar_id":"","url":"https://api.github.com/users/mitodl","html_url":"https://github.com/mitodl","followers_url":"https://api.github.com/users/mitodl/followers","following_url":"https://api.github.com/users/mitodl/following{/other_user}","gists_url":"https://api.github.com/users/mitodl/gists{/gist_id}","starred_url":"https://api.github.com/users/mitodl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitodl/subscriptions","organizations_url":"https://api.github.com/users/mitodl/orgs","repos_url":"https://api.github.com/users/mitodl/repos","events_url":"https://api.github.com/users/mitodl/events{/privacy}","received_events_url":"https://api.github.com/users/mitodl/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mitodl/edx-api-client","description":"Python interface for edX REST APIs","fork":false,"url":"https://api.github.com/repos/mitodl/edx-api-client","forks_url":"https://api.github.com/repos/mitodl/edx-api-client/forks","keys_url":"https://api.github.com/repos/mitodl/edx-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mitodl/edx-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mitodl/edx-api-client/teams","hooks_url":"https://api.github.com/repos/mitodl/edx-api-client/hooks","issue_events_url":"https://api.github.com/repos/mitodl/edx-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/mitodl/edx-api-client/events","assignees_url":"https://api.github.com/repos/mitodl/edx-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/mitodl/edx-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/mitodl/edx-api-client/tags","blobs_url":"https://api.github.com/repos/mitodl/edx-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mitodl/edx-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mitodl/edx-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/mitodl/edx-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mitodl/edx-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/mitodl/edx-api-client/languages","stargazers_url":"https://api.github.com/repos/mitodl/edx-api-client/stargazers","contributors_url":"https://api.github.com/repos/mitodl/edx-api-client/contributors","subscribers_url":"https://api.github.com/repos/mitodl/edx-api-client/subscribers","subscription_url":"https://api.github.com/repos/mitodl/edx-api-client/subscription","commits_url":"https://api.github.com/repos/mitodl/edx-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/mitodl/edx-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/mitodl/edx-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/mitodl/edx-api-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/mitodl/edx-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/mitodl/edx-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mitodl/edx-api-client/merges","archive_url":"https://api.github.com/repos/mitodl/edx-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mitodl/edx-api-client/downloads","issues_url":"https://api.github.com/repos/mitodl/edx-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/mitodl/edx-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/mitodl/edx-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/mitodl/edx-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mitodl/edx-api-client/labels{/name}","releases_url":"https://api.github.com/repos/mitodl/edx-api-client/releases{/id}","deployments_url":"https://api.github.com/repos/mitodl/edx-api-client/deployments","created_at":"2016-03-22T19:24:51Z","updated_at":"2016-03-23T18:20:56Z","pushed_at":"2016-09-22T13:46:44Z","git_url":"git://github.com/mitodl/edx-api-client.git","ssh_url":"git@github.com:mitodl/edx-api-client.git","clone_url":"https://github.com/mitodl/edx-api-client.git","svn_url":"https://github.com/mitodl/edx-api-client","homepage":"","size":67,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mitodl/edx-api-client/pulls/27"},"html":{"href":"https://github.com/mitodl/edx-api-client/pull/27"},"issue":{"href":"https://api.github.com/repos/mitodl/edx-api-client/issues/27"},"comments":{"href":"https://api.github.com/repos/mitodl/edx-api-client/issues/27/comments"},"review_comments":{"href":"https://api.github.com/repos/mitodl/edx-api-client/pulls/27/comments"},"review_comment":{"href":"https://api.github.com/repos/mitodl/edx-api-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mitodl/edx-api-client/pulls/27/commits"},"statuses":{"href":"https://api.github.com/repos/mitodl/edx-api-client/statuses/c2a31638af8213bf92412f9e9cf30221ebfca7d9"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"giocalitri","id":1005204,"avatar_url":"https://avatars.githubusercontent.com/u/1005204?v=3","gravatar_id":"","url":"https://api.github.com/users/giocalitri","html_url":"https://github.com/giocalitri","followers_url":"https://api.github.com/users/giocalitri/followers","following_url":"https://api.github.com/users/giocalitri/following{/other_user}","gists_url":"https://api.github.com/users/giocalitri/gists{/gist_id}","starred_url":"https://api.github.com/users/giocalitri/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/giocalitri/subscriptions","organizations_url":"https://api.github.com/users/giocalitri/orgs","repos_url":"https://api.github.com/users/giocalitri/repos","events_url":"https://api.github.com/users/giocalitri/events{/privacy}","received_events_url":"https://api.github.com/users/giocalitri/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":1,"additions":89,"deletions":7,"changed_files":6}}
{"actor":{"display_login":"giocalitri"}}