{"action":"opened","number":84,"pull_request":{"url":"https://api.github.com/repos/openfun/marsha/pulls/84","id":220325099,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwMzI1MDk5","html_url":"https://github.com/openfun/marsha/pull/84","diff_url":"https://github.com/openfun/marsha/pull/84.diff","patch_url":"https://github.com/openfun/marsha/pull/84.patch","issue_url":"https://api.github.com/repos/openfun/marsha/issues/84","number":84,"state":"open","locked":false,"title":"✨(lti) allow portability of videos between playlists and consumer sites","user":{"login":"sampaccoud","id":1427165,"node_id":"MDQ6VXNlcjE0MjcxNjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1427165?v=4","gravatar_id":"","url":"https://api.github.com/users/sampaccoud","html_url":"https://github.com/sampaccoud","followers_url":"https://api.github.com/users/sampaccoud/followers","following_url":"https://api.github.com/users/sampaccoud/following{/other_user}","gists_url":"https://api.github.com/users/sampaccoud/gists{/gist_id}","starred_url":"https://api.github.com/users/sampaccoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sampaccoud/subscriptions","organizations_url":"https://api.github.com/users/sampaccoud/orgs","repos_url":"https://api.github.com/users/sampaccoud/repos","events_url":"https://api.github.com/users/sampaccoud/events{/privacy}","received_events_url":"https://api.github.com/users/sampaccoud/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n\r\nA course may be copied in the LMS which results in the LTI launch request targetting a video with a known \"resource_link_id\" (that we already have in database) but with a different playlist and/or a different consumer site. In this case, we must be able to automatically duplicate the existing videos and share the same video files. \r\n\r\nBy default, we allow videos to be portable to another playlist but not to another consumer site.\r\n\r\n## Proposal\r\n\r\n- {x] add flags on the playlist to allow portability to another playlist and/or to another consumer site\r\n- [x] progressively search for an existing video and duplicate it automatically.\r\n- [ ] in case several videos exist with the same lti_id, take the latest one\r\n\r\n","created_at":"2018-10-04T10:27:18Z","updated_at":"2018-10-04T10:27:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/openfun/marsha/pulls/84/commits","review_comments_url":"https://api.github.com/repos/openfun/marsha/pulls/84/comments","review_comment_url":"https://api.github.com/repos/openfun/marsha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfun/marsha/issues/84/comments","statuses_url":"https://api.github.com/repos/openfun/marsha/statuses/ecc08333d2ac8a3ad156603bf2d34dbdb28aeef6","head":{"label":"openfun:make-videos-portable","ref":"make-videos-portable","sha":"ecc08333d2ac8a3ad156603bf2d34dbdb28aeef6","user":{"login":"openfun","id":7224891,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMjQ4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7224891?v=4","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"repo":{"id":129740507,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk3NDA1MDc=","name":"marsha","full_name":"openfun/marsha","private":false,"owner":{"login":"openfun","id":7224891,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMjQ4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7224891?v=4","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openfun/marsha","description":"🐠 A FUN LTI video provider","fork":false,"url":"https://api.github.com/repos/openfun/marsha","forks_url":"https://api.github.com/repos/openfun/marsha/forks","keys_url":"https://api.github.com/repos/openfun/marsha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfun/marsha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfun/marsha/teams","hooks_url":"https://api.github.com/repos/openfun/marsha/hooks","issue_events_url":"https://api.github.com/repos/openfun/marsha/issues/events{/number}","events_url":"https://api.github.com/repos/openfun/marsha/events","assignees_url":"https://api.github.com/repos/openfun/marsha/assignees{/user}","branches_url":"https://api.github.com/repos/openfun/marsha/branches{/branch}","tags_url":"https://api.github.com/repos/openfun/marsha/tags","blobs_url":"https://api.github.com/repos/openfun/marsha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfun/marsha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfun/marsha/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfun/marsha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfun/marsha/statuses/{sha}","languages_url":"https://api.github.com/repos/openfun/marsha/languages","stargazers_url":"https://api.github.com/repos/openfun/marsha/stargazers","contributors_url":"https://api.github.com/repos/openfun/marsha/contributors","subscribers_url":"https://api.github.com/repos/openfun/marsha/subscribers","subscription_url":"https://api.github.com/repos/openfun/marsha/subscription","commits_url":"https://api.github.com/repos/openfun/marsha/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfun/marsha/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfun/marsha/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfun/marsha/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfun/marsha/contents/{+path}","compare_url":"https://api.github.com/repos/openfun/marsha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfun/marsha/merges","archive_url":"https://api.github.com/repos/openfun/marsha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfun/marsha/downloads","issues_url":"https://api.github.com/repos/openfun/marsha/issues{/number}","pulls_url":"https://api.github.com/repos/openfun/marsha/pulls{/number}","milestones_url":"https://api.github.com/repos/openfun/marsha/milestones{/number}","notifications_url":"https://api.github.com/repos/openfun/marsha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfun/marsha/labels{/name}","releases_url":"https://api.github.com/repos/openfun/marsha/releases{/id}","deployments_url":"https://api.github.com/repos/openfun/marsha/deployments","created_at":"2018-04-16T12:32:54Z","updated_at":"2018-10-03T12:57:36Z","pushed_at":"2018-10-04T10:24:14Z","git_url":"git://github.com/openfun/marsha.git","ssh_url":"git@github.com:openfun/marsha.git","clone_url":"https://github.com/openfun/marsha.git","svn_url":"https://github.com/openfun/marsha","homepage":"","size":487,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":4,"watchers":4,"default_branch":"master"}},"base":{"label":"openfun:master","ref":"master","sha":"1e7fd71a81382fd88b475456c0f9a3b162d1533f","user":{"login":"openfun","id":7224891,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMjQ4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7224891?v=4","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"repo":{"id":129740507,"node_id":"MDEwOlJlcG9zaXRvcnkxMjk3NDA1MDc=","name":"marsha","full_name":"openfun/marsha","private":false,"owner":{"login":"openfun","id":7224891,"node_id":"MDEyOk9yZ2FuaXphdGlvbjcyMjQ4OTE=","avatar_url":"https://avatars2.githubusercontent.com/u/7224891?v=4","gravatar_id":"","url":"https://api.github.com/users/openfun","html_url":"https://github.com/openfun","followers_url":"https://api.github.com/users/openfun/followers","following_url":"https://api.github.com/users/openfun/following{/other_user}","gists_url":"https://api.github.com/users/openfun/gists{/gist_id}","starred_url":"https://api.github.com/users/openfun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openfun/subscriptions","organizations_url":"https://api.github.com/users/openfun/orgs","repos_url":"https://api.github.com/users/openfun/repos","events_url":"https://api.github.com/users/openfun/events{/privacy}","received_events_url":"https://api.github.com/users/openfun/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/openfun/marsha","description":"🐠 A FUN LTI video provider","fork":false,"url":"https://api.github.com/repos/openfun/marsha","forks_url":"https://api.github.com/repos/openfun/marsha/forks","keys_url":"https://api.github.com/repos/openfun/marsha/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openfun/marsha/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openfun/marsha/teams","hooks_url":"https://api.github.com/repos/openfun/marsha/hooks","issue_events_url":"https://api.github.com/repos/openfun/marsha/issues/events{/number}","events_url":"https://api.github.com/repos/openfun/marsha/events","assignees_url":"https://api.github.com/repos/openfun/marsha/assignees{/user}","branches_url":"https://api.github.com/repos/openfun/marsha/branches{/branch}","tags_url":"https://api.github.com/repos/openfun/marsha/tags","blobs_url":"https://api.github.com/repos/openfun/marsha/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openfun/marsha/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openfun/marsha/git/refs{/sha}","trees_url":"https://api.github.com/repos/openfun/marsha/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openfun/marsha/statuses/{sha}","languages_url":"https://api.github.com/repos/openfun/marsha/languages","stargazers_url":"https://api.github.com/repos/openfun/marsha/stargazers","contributors_url":"https://api.github.com/repos/openfun/marsha/contributors","subscribers_url":"https://api.github.com/repos/openfun/marsha/subscribers","subscription_url":"https://api.github.com/repos/openfun/marsha/subscription","commits_url":"https://api.github.com/repos/openfun/marsha/commits{/sha}","git_commits_url":"https://api.github.com/repos/openfun/marsha/git/commits{/sha}","comments_url":"https://api.github.com/repos/openfun/marsha/comments{/number}","issue_comment_url":"https://api.github.com/repos/openfun/marsha/issues/comments{/number}","contents_url":"https://api.github.com/repos/openfun/marsha/contents/{+path}","compare_url":"https://api.github.com/repos/openfun/marsha/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openfun/marsha/merges","archive_url":"https://api.github.com/repos/openfun/marsha/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openfun/marsha/downloads","issues_url":"https://api.github.com/repos/openfun/marsha/issues{/number}","pulls_url":"https://api.github.com/repos/openfun/marsha/pulls{/number}","milestones_url":"https://api.github.com/repos/openfun/marsha/milestones{/number}","notifications_url":"https://api.github.com/repos/openfun/marsha/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openfun/marsha/labels{/name}","releases_url":"https://api.github.com/repos/openfun/marsha/releases{/id}","deployments_url":"https://api.github.com/repos/openfun/marsha/deployments","created_at":"2018-04-16T12:32:54Z","updated_at":"2018-10-03T12:57:36Z","pushed_at":"2018-10-04T10:24:14Z","git_url":"git://github.com/openfun/marsha.git","ssh_url":"git@github.com:openfun/marsha.git","clone_url":"https://github.com/openfun/marsha.git","svn_url":"https://github.com/openfun/marsha","homepage":"","size":487,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":4,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":4,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfun/marsha/pulls/84"},"html":{"href":"https://github.com/openfun/marsha/pull/84"},"issue":{"href":"https://api.github.com/repos/openfun/marsha/issues/84"},"comments":{"href":"https://api.github.com/repos/openfun/marsha/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/openfun/marsha/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/openfun/marsha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfun/marsha/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/openfun/marsha/statuses/ecc08333d2ac8a3ad156603bf2d34dbdb28aeef6"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":88,"deletions":8,"changed_files":4}}
{"actor":{"display_login":"sampaccoud"}}