{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/6190","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/6190/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/6190/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/6190/events","html_url":"https://github.com/edx/edx-platform/pull/6190","id":51384571,"number":6190,"title":"Public Course Import/Export API","user":{"login":"bdero","id":919017,"avatar_url":"https://avatars.githubusercontent.com/u/919017?v=3","gravatar_id":"","url":"https://api.github.com/users/bdero","html_url":"https://github.com/bdero","followers_url":"https://api.github.com/users/bdero/followers","following_url":"https://api.github.com/users/bdero/following{/other_user}","gists_url":"https://api.github.com/users/bdero/gists{/gist_id}","starred_url":"https://api.github.com/users/bdero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdero/subscriptions","organizations_url":"https://api.github.com/users/bdero/orgs","repos_url":"https://api.github.com/users/bdero/repos","events_url":"https://api.github.com/users/bdero/events{/privacy}","received_events_url":"https://api.github.com/users/bdero/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/edx/edx-platform/labels/awaiting%20prioritization","name":"awaiting prioritization","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":55,"created_at":"2014-12-09T03:41:43Z","updated_at":"2015-05-11T21:14:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/6190","html_url":"https://github.com/edx/edx-platform/pull/6190","diff_url":"https://github.com/edx/edx-platform/pull/6190.diff","patch_url":"https://github.com/edx/edx-platform/pull/6190.patch"},"body":"This is a public, shared, versioned, RESTful API for importing and exporting full course content. The code was initially ripped from the existing import/export API in the CMS contentstore djangoapp and wrapped in Django Rest Framework view classes. It's simply a new djangoapp in the *openedx* directory with 4 views:\r\n- GET /api/v1/courses - List courses (course keys) for which the user has full author access\r\n- GET /api/v1/courses/{course_key} - Export a full course in the form of a tarball\r\n- POST /api/v1/courses/{course_key} - Import a full course tarball\r\n- GET /api/v1/courses/{course_key}/import_status/{filename} - View the status of a course import (see https://github.com/edx/edx-platform/pull/6190/files#diff-4c6e0b7531e770ee217a370f8d990ac8R108)\r\n\r\nThis PR includes configuration changes. Most notably, Studio is configured to serve the OAuth2 provider alongside the LMS.\r\n\r\nHere's the relevant thread on the code list: https://groups.google.com/forum/#!msg/edx-code/DmnHWmly25A/ZqjD1zb4o7oJ\r\n\r\nThere are 28 non-covered lines, all of which are missing coverage in the existing CMS API. They're mostly error conditions, such as handling of multipart file upload errors."},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/101048795","html_url":"https://github.com/edx/edx-platform/pull/6190#issuecomment-101048795","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/6190","id":101048795,"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-05-11T21:14:42Z","updated_at":"2015-05-11T21:14:42Z","body":"@bdero The error message says that it couldn't find a library item on the draft branch: `library-v1:org7489+lib7489+branch@draft-branch`. Libraries do not have drafts. See https://github.com/edx/edx-platform/blob/master/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py#L229 on the master branch."}}