{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/edx-platform/pulls/comments/229454750","pull_request_review_id":169959388,"id":229454750,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTQ1NDc1MA==","diff_hunk":"@@ -0,0 +1,538 @@\n+# -*- coding: utf-8 -*-\n+import base64\n+import json\n+import logging\n+import urlparse\n+from binascii import a2b_base64\n+\n+from Crypto import Random\n+from Crypto.Cipher import PKCS1_OAEP\n+from Crypto.PublicKey import RSA\n+from Crypto.Util.asn1 import DerSequence\n+from django.conf import settings\n+from django.core.exceptions import ImproperlyConfigured\n+from django.utils.translation import ugettext as _\n+from requests import HTTPError\n+\n+from .media_service import (\n+    MediaServiceClient,\n+    ContentKeyType,\n+    KeyDeliveryType, AssetDeliveryPolicyConfigurationKey, AssetDeliveryProtocol, AssetDeliveryPolicyType,\n+    AccessPolicyPermissions, LocatorTypes)\n+from .models import AzureOrgProfile\n+\n+LOGGER = logging.getLogger(__name__)\n+\n+\n+AZURE_TRANSCRIPT_FILE_FORMAT = 'vtt'","path":"cms/djangoapps/azure_video_pipeline/utils.py","position":27,"original_position":27,"commit_id":"0dea7b4fb4baf2039415e6af0f02db5b77d60108","original_commit_id":"0dea7b4fb4baf2039415e6af0f02db5b77d60108","user":{"login":"btelnes","id":21182799,"node_id":"MDQ6VXNlcjIxMTgyNzk5","avatar_url":"https://avatars3.githubusercontent.com/u/21182799?v=4","gravatar_id":"","url":"https://api.github.com/users/btelnes","html_url":"https://github.com/btelnes","followers_url":"https://api.github.com/users/btelnes/followers","following_url":"https://api.github.com/users/btelnes/following{/other_user}","gists_url":"https://api.github.com/users/btelnes/gists{/gist_id}","starred_url":"https://api.github.com/users/btelnes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/btelnes/subscriptions","organizations_url":"https://api.github.com/users/btelnes/orgs","repos_url":"https://api.github.com/users/btelnes/repos","events_url":"https://api.github.com/users/btelnes/events{/privacy}","received_events_url":"https://api.github.com/users/btelnes/received_events","type":"User","site_admin":false},"body":"Nit: Consider renaming to something which associates the transcript to Azure Media Services rather than Azure (e.g. AMS_VIDEO_TRANSCRIPT_FILE_FORMAT","created_at":"2018-10-30T19:33:27Z","updated_at":"2018-10-30T19:39:58Z","html_url":"https://github.com/Microsoft/edx-platform/pull/344#discussion_r229454750","pull_request_url":"https://api.github.com/repos/Microsoft/edx-platform/pulls/344","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/edx-platform/pulls/comments/229454750"},"html":{"href":"https://github.com/Microsoft/edx-platform/pull/344#discussion_r229454750"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/edx-platform/pulls/344"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/edx-platform/pulls/344","id":222046520,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyMDQ2NTIw","html_url":"https://github.com/Microsoft/edx-platform/pull/344","diff_url":"https://github.com/Microsoft/edx-platform/pull/344.diff","patch_url":"https://github.com/Microsoft/edx-platform/pull/344.patch","issue_url":"https://api.github.com/repos/Microsoft/edx-platform/issues/344","number":344,"state":"open","locked":false,"title":"Azure Video Uploads: transcripts attachment","user":{"login":"oksana-slu","id":352595,"node_id":"MDQ6VXNlcjM1MjU5NQ==","avatar_url":"https://avatars1.githubusercontent.com/u/352595?v=4","gravatar_id":"","url":"https://api.github.com/users/oksana-slu","html_url":"https://github.com/oksana-slu","followers_url":"https://api.github.com/users/oksana-slu/followers","following_url":"https://api.github.com/users/oksana-slu/following{/other_user}","gists_url":"https://api.github.com/users/oksana-slu/gists{/gist_id}","starred_url":"https://api.github.com/users/oksana-slu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oksana-slu/subscriptions","organizations_url":"https://api.github.com/users/oksana-slu/orgs","repos_url":"https://api.github.com/users/oksana-slu/repos","events_url":"https://api.github.com/users/oksana-slu/events{/privacy}","received_events_url":"https://api.github.com/users/oksana-slu/received_events","type":"User","site_admin":false},"body":"Please, refer to the Transcripts section of [inner README](https://github.com/raccoongang/edx-platform/blob/hawthorn_master_4racoongang_pr_2_transcript_uploads/cms/djangoapps/azure_video_pipeline/README.md#transcripts) for details and configuration instructions.\r\n\r\n#### Added\r\n\r\nThe PR extends new feature for Video Uploads page - an ability to add transcripts for video, which are stored in the same asset next to video files on Azure service.\r\n\r\n#### Changed\r\n\r\n- JS / python unit tests coverage improved;\r\n\r\nNote: this PR includes changes from the [#343](https://github.com/Microsoft/edx-platform/pull/343) and based on the top of those changes.","created_at":"2018-10-11T08:23:21Z","updated_at":"2018-10-30T19:39:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b51b428c10b0064819047cf766190d422218fb54","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/edx-platform/pulls/344/commits","review_comments_url":"https://api.github.com/repos/Microsoft/edx-platform/pulls/344/comments","review_comment_url":"https://api.github.com/repos/Microsoft/edx-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/edx-platform/issues/344/comments","statuses_url":"https://api.github.com/repos/Microsoft/edx-platform/statuses/0dea7b4fb4baf2039415e6af0f02db5b77d60108","head":{"label":"raccoongang:hawthorn_master_4racoongang_pr_2_transcript_uploads","ref":"hawthorn_master_4racoongang_pr_2_transcript_uploads","sha":"0dea7b4fb4baf2039415e6af0f02db5b77d60108","user":{"login":"raccoongang","id":11388447,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMzg4NDQ3","avatar_url":"https://avatars0.githubusercontent.com/u/11388447?v=4","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"repo":{"id":26811891,"node_id":"MDEwOlJlcG9zaXRvcnkyNjgxMTg5MQ==","name":"edx-platform","full_name":"raccoongang/edx-platform","private":false,"owner":{"login":"raccoongang","id":11388447,"node_id":"MDEyOk9yZ2FuaXphdGlvbjExMzg4NDQ3","avatar_url":"https://avatars0.githubusercontent.com/u/11388447?v=4","gravatar_id":"","url":"https://api.github.com/users/raccoongang","html_url":"https://github.com/raccoongang","followers_url":"https://api.github.com/users/raccoongang/followers","following_url":"https://api.github.com/users/raccoongang/following{/other_user}","gists_url":"https://api.github.com/users/raccoongang/gists{/gist_id}","starred_url":"https://api.github.com/users/raccoongang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raccoongang/subscriptions","organizations_url":"https://api.github.com/users/raccoongang/orgs","repos_url":"https://api.github.com/users/raccoongang/repos","events_url":"https://api.github.com/users/raccoongang/events{/privacy}","received_events_url":"https://api.github.com/users/raccoongang/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/raccoongang/edx-platform","description":"Open edX, the edX platform that powers http://edx.org","fork":true,"url":"https://api.github.com/repos/raccoongang/edx-platform","forks_url":"https://api.github.com/repos/raccoongang/edx-platform/forks","keys_url":"https://api.github.com/repos/raccoongang/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raccoongang/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raccoongang/edx-platform/teams","hooks_url":"https://api.github.com/repos/raccoongang/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/raccoongang/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/raccoongang/edx-platform/events","assignees_url":"https://api.github.com/repos/raccoongang/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/raccoongang/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/raccoongang/edx-platform/tags","blobs_url":"https://api.github.com/repos/raccoongang/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raccoongang/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raccoongang/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/raccoongang/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raccoongang/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/raccoongang/edx-platform/languages","stargazers_url":"https://api.github.com/repos/raccoongang/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/raccoongang/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/raccoongang/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/raccoongang/edx-platform/subscription","commits_url":"https://api.github.com/repos/raccoongang/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/raccoongang/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/raccoongang/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/raccoongang/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/raccoongang/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/raccoongang/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raccoongang/edx-platform/merges","archive_url":"https://api.github.com/repos/raccoongang/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raccoongang/edx-platform/downloads","issues_url":"https://api.github.com/repos/raccoongang/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/raccoongang/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/raccoongang/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/raccoongang/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raccoongang/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/raccoongang/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/raccoongang/edx-platform/deployments","created_at":"2014-11-18T14:05:58Z","updated_at":"2018-09-21T09:16:05Z","pushed_at":"2018-10-30T13:10:33Z","git_url":"git://github.com/raccoongang/edx-platform.git","ssh_url":"git@github.com:raccoongang/edx-platform.git","clone_url":"https://github.com/raccoongang/edx-platform.git","svn_url":"https://github.com/raccoongang/edx-platform","homepage":"http://openedx.org/","size":1068989,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"archived":false,"open_issues_count":10,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":13,"open_issues":10,"watchers":9,"default_branch":"ginkgo-rg"}},"base":{"label":"Microsoft:hawthorn_master_4racoongang","ref":"hawthorn_master_4racoongang","sha":"58d2ac8c92c4cffe3d8db180b45bdcfba7040a7f","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":65483935,"node_id":"MDEwOlJlcG9zaXRvcnk2NTQ4MzkzNQ==","name":"edx-platform","full_name":"Microsoft/edx-platform","private":false,"owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Microsoft/edx-platform","description":"The Open edX platform, the software that powers edX!","fork":true,"url":"https://api.github.com/repos/Microsoft/edx-platform","forks_url":"https://api.github.com/repos/Microsoft/edx-platform/forks","keys_url":"https://api.github.com/repos/Microsoft/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/edx-platform/teams","hooks_url":"https://api.github.com/repos/Microsoft/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/edx-platform/events","assignees_url":"https://api.github.com/repos/Microsoft/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/edx-platform/tags","blobs_url":"https://api.github.com/repos/Microsoft/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/edx-platform/languages","stargazers_url":"https://api.github.com/repos/Microsoft/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/edx-platform/subscription","commits_url":"https://api.github.com/repos/Microsoft/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/edx-platform/merges","archive_url":"https://api.github.com/repos/Microsoft/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/edx-platform/downloads","issues_url":"https://api.github.com/repos/Microsoft/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/edx-platform/deployments","created_at":"2016-08-11T16:18:42Z","updated_at":"2018-10-22T18:38:52Z","pushed_at":"2018-10-29T23:53:22Z","git_url":"git://github.com/Microsoft/edx-platform.git","ssh_url":"git@github.com:Microsoft/edx-platform.git","clone_url":"https://github.com/Microsoft/edx-platform.git","svn_url":"https://github.com/Microsoft/edx-platform","homepage":"http://open.edx.org/","size":943008,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0","node_id":"MDc6TGljZW5zZTE="},"forks":30,"open_issues":9,"watchers":20,"default_branch":"oxa/dev.fic"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/edx-platform/pulls/344"},"html":{"href":"https://github.com/Microsoft/edx-platform/pull/344"},"issue":{"href":"https://api.github.com/repos/Microsoft/edx-platform/issues/344"},"comments":{"href":"https://api.github.com/repos/Microsoft/edx-platform/issues/344/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/edx-platform/pulls/344/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/edx-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/edx-platform/pulls/344/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/edx-platform/statuses/0dea7b4fb4baf2039415e6af0f02db5b77d60108"}},"author_association":"NONE"}}
{"actor":{"display_login":"btelnes"}}