{"action":"created","comment":{"url":"https://api.github.com/repos/openfun/marsha/pulls/comments/267285904","pull_request_review_id":216652917,"id":267285904,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2NzI4NTkwNA==","diff_hunk":"@@ -388,3 +388,71 @@ class Meta:\n         verbose_name = _(\"signs language track\")\n         verbose_name_plural = _(\"signs language tracks\")\n         indexes = [NonDeletedUniqueIndex([\"video\", \"language\"])]\n+\n+\n+class Thumbnail(BaseModel):","path":"src/backend/marsha/core/models/video.py","position":6,"original_position":6,"commit_id":"d78360876cf0cc9c22df738f418de406260f14ab","original_commit_id":"d78360876cf0cc9c22df738f418de406260f14ab","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":"Maybe call this model Image to make it more generic and allow using it for other purposes?\r\n\r\nA thumbnail is when we use an image on the video.","created_at":"2019-03-20T11:07:08Z","updated_at":"2019-03-20T11:09:31Z","html_url":"https://github.com/openfun/marsha/pull/262#discussion_r267285904","pull_request_url":"https://api.github.com/repos/openfun/marsha/pulls/262","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/openfun/marsha/pulls/comments/267285904"},"html":{"href":"https://github.com/openfun/marsha/pull/262#discussion_r267285904"},"pull_request":{"href":"https://api.github.com/repos/openfun/marsha/pulls/262"}}},"pull_request":{"url":"https://api.github.com/repos/openfun/marsha/pulls/262","id":262816148,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYyODE2MTQ4","html_url":"https://github.com/openfun/marsha/pull/262","diff_url":"https://github.com/openfun/marsha/pull/262.diff","patch_url":"https://github.com/openfun/marsha/pull/262.patch","issue_url":"https://api.github.com/repos/openfun/marsha/issues/262","number":262,"state":"open","locked":false,"title":"Thumbnails","user":{"login":"lunika","id":767834,"node_id":"MDQ6VXNlcjc2NzgzNA==","avatar_url":"https://avatars0.githubusercontent.com/u/767834?v=4","gravatar_id":"","url":"https://api.github.com/users/lunika","html_url":"https://github.com/lunika","followers_url":"https://api.github.com/users/lunika/followers","following_url":"https://api.github.com/users/lunika/following{/other_user}","gists_url":"https://api.github.com/users/lunika/gists{/gist_id}","starred_url":"https://api.github.com/users/lunika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunika/subscriptions","organizations_url":"https://api.github.com/users/lunika/orgs","repos_url":"https://api.github.com/users/lunika/repos","events_url":"https://api.github.com/users/lunika/events{/privacy}","received_events_url":"https://api.github.com/users/lunika/received_events","type":"User","site_admin":false},"body":"## Purpose\r\n\r\nWe want to upload a custom thumbnail in the dashboard in order to replace the default one computed by AWS.\r\n\r\n## Proposal\r\n\r\n### Backend\r\n\r\n- [x] Create a `Thumbnail` model.\r\n- [x] Create the `ThumbnailViewSet`\r\n\r\n### Frontend\r\n\r\nToDo\r\n\r\n","created_at":"2019-03-20T11:02:59Z","updated_at":"2019-03-20T11:09:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d0c7a1e83605a89a6de2bc3a10b1af06ddf2ad1a","assignee":{"login":"lunika","id":767834,"node_id":"MDQ6VXNlcjc2NzgzNA==","avatar_url":"https://avatars0.githubusercontent.com/u/767834?v=4","gravatar_id":"","url":"https://api.github.com/users/lunika","html_url":"https://github.com/lunika","followers_url":"https://api.github.com/users/lunika/followers","following_url":"https://api.github.com/users/lunika/following{/other_user}","gists_url":"https://api.github.com/users/lunika/gists{/gist_id}","starred_url":"https://api.github.com/users/lunika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunika/subscriptions","organizations_url":"https://api.github.com/users/lunika/orgs","repos_url":"https://api.github.com/users/lunika/repos","events_url":"https://api.github.com/users/lunika/events{/privacy}","received_events_url":"https://api.github.com/users/lunika/received_events","type":"User","site_admin":false},"assignees":[{"login":"lunika","id":767834,"node_id":"MDQ6VXNlcjc2NzgzNA==","avatar_url":"https://avatars0.githubusercontent.com/u/767834?v=4","gravatar_id":"","url":"https://api.github.com/users/lunika","html_url":"https://github.com/lunika","followers_url":"https://api.github.com/users/lunika/followers","following_url":"https://api.github.com/users/lunika/following{/other_user}","gists_url":"https://api.github.com/users/lunika/gists{/gist_id}","starred_url":"https://api.github.com/users/lunika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lunika/subscriptions","organizations_url":"https://api.github.com/users/lunika/orgs","repos_url":"https://api.github.com/users/lunika/repos","events_url":"https://api.github.com/users/lunika/events{/privacy}","received_events_url":"https://api.github.com/users/lunika/received_events","type":"User","site_admin":false}],"requested_reviewers":[{"login":"mbenadda","id":1932937,"node_id":"MDQ6VXNlcjE5MzI5Mzc=","avatar_url":"https://avatars0.githubusercontent.com/u/1932937?v=4","gravatar_id":"","url":"https://api.github.com/users/mbenadda","html_url":"https://github.com/mbenadda","followers_url":"https://api.github.com/users/mbenadda/followers","following_url":"https://api.github.com/users/mbenadda/following{/other_user}","gists_url":"https://api.github.com/users/mbenadda/gists{/gist_id}","starred_url":"https://api.github.com/users/mbenadda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbenadda/subscriptions","organizations_url":"https://api.github.com/users/mbenadda/orgs","repos_url":"https://api.github.com/users/mbenadda/repos","events_url":"https://api.github.com/users/mbenadda/events{/privacy}","received_events_url":"https://api.github.com/users/mbenadda/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":1064438741,"node_id":"MDU6TGFiZWwxMDY0NDM4NzQx","url":"https://api.github.com/repos/openfun/marsha/labels/feature","name":"feature","color":"0052cc","default":false},{"id":1064438747,"node_id":"MDU6TGFiZWwxMDY0NDM4NzQ3","url":"https://api.github.com/repos/openfun/marsha/labels/improvement","name":"improvement","color":"9900ff","default":false},{"id":1127694628,"node_id":"MDU6TGFiZWwxMTI3Njk0NjI4","url":"https://api.github.com/repos/openfun/marsha/labels/work%20in%20progress","name":"work in progress","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/openfun/marsha/pulls/262/commits","review_comments_url":"https://api.github.com/repos/openfun/marsha/pulls/262/comments","review_comment_url":"https://api.github.com/repos/openfun/marsha/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openfun/marsha/issues/262/comments","statuses_url":"https://api.github.com/repos/openfun/marsha/statuses/d78360876cf0cc9c22df738f418de406260f14ab","head":{"label":"openfun:thumbnails","ref":"thumbnails","sha":"d78360876cf0cc9c22df738f418de406260f14ab","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 self-hosted opensource 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":"2019-03-19T13:34:20Z","pushed_at":"2019-03-20T11:02:59Z","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":1941,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":11,"watchers":6,"default_branch":"master"}},"base":{"label":"openfun:master","ref":"master","sha":"60bde681e16a66c71315266e1537c72eb8b842b1","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 self-hosted opensource 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":"2019-03-19T13:34:20Z","pushed_at":"2019-03-20T11:02:59Z","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":1941,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":2,"open_issues":11,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openfun/marsha/pulls/262"},"html":{"href":"https://github.com/openfun/marsha/pull/262"},"issue":{"href":"https://api.github.com/repos/openfun/marsha/issues/262"},"comments":{"href":"https://api.github.com/repos/openfun/marsha/issues/262/comments"},"review_comments":{"href":"https://api.github.com/repos/openfun/marsha/pulls/262/comments"},"review_comment":{"href":"https://api.github.com/repos/openfun/marsha/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openfun/marsha/pulls/262/commits"},"statuses":{"href":"https://api.github.com/repos/openfun/marsha/statuses/d78360876cf0cc9c22df738f418de406260f14ab"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"sampaccoud"}}