{"action":"opened","number":131,"pull_request":{"url":"https://api.github.com/repos/open-craft/problem-builder/pulls/131","id":94960390,"html_url":"https://github.com/open-craft/problem-builder/pull/131","diff_url":"https://github.com/open-craft/problem-builder/pull/131.diff","patch_url":"https://github.com/open-craft/problem-builder/pull/131.patch","issue_url":"https://api.github.com/repos/open-craft/problem-builder/issues/131","number":131,"state":"open","locked":false,"title":"Introduce Answer.course_key and deprecate course_id.","user":{"login":"mtyaka","id":32585,"avatar_url":"https://avatars.githubusercontent.com/u/32585?v=3","gravatar_id":"","url":"https://api.github.com/users/mtyaka","html_url":"https://github.com/mtyaka","followers_url":"https://api.github.com/users/mtyaka/followers","following_url":"https://api.github.com/users/mtyaka/following{/other_user}","gists_url":"https://api.github.com/users/mtyaka/gists{/gist_id}","starred_url":"https://api.github.com/users/mtyaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtyaka/subscriptions","organizations_url":"https://api.github.com/users/mtyaka/orgs","repos_url":"https://api.github.com/users/mtyaka/repos","events_url":"https://api.github.com/users/mtyaka/events{/privacy}","received_events_url":"https://api.github.com/users/mtyaka/received_events","type":"User","site_admin":false},"body":"This introduces a new 255-char `course_key` field to the `Answer` model. The old 50-char `course_id` field is still present, but is deprecated and will be removed in next release.\r\n\r\nWe cannot simply extend the existing `course_id` field because we have some large `problem_builder_answer` tables in production and the migration to extend the column would lock the table causing issues in production.\r\n\r\nThe code is updated so that it uses the new course_key column, but falls back to `course_id`.\r\nIn next release, a data migration to copy course_id data to `course_key` will be provided and the `course_id` column dropped.","created_at":"2016-11-23T08:25:02Z","updated_at":"2016-11-23T08:25:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/open-craft/problem-builder/pulls/131/commits","review_comments_url":"https://api.github.com/repos/open-craft/problem-builder/pulls/131/comments","review_comment_url":"https://api.github.com/repos/open-craft/problem-builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/open-craft/problem-builder/issues/131/comments","statuses_url":"https://api.github.com/repos/open-craft/problem-builder/statuses/d1754f110a4c7704b539ecec2014b06e51f4e054","head":{"label":"open-craft:mtyaka/extended-course-key","ref":"mtyaka/extended-course-key","sha":"d1754f110a4c7704b539ecec2014b06e51f4e054","user":{"login":"open-craft","id":7414786,"avatar_url":"https://avatars.githubusercontent.com/u/7414786?v=3","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"repo":{"id":33264452,"name":"problem-builder","full_name":"open-craft/problem-builder","owner":{"login":"open-craft","id":7414786,"avatar_url":"https://avatars.githubusercontent.com/u/7414786?v=3","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-craft/problem-builder","description":"An XBlock for posing questions to students","fork":false,"url":"https://api.github.com/repos/open-craft/problem-builder","forks_url":"https://api.github.com/repos/open-craft/problem-builder/forks","keys_url":"https://api.github.com/repos/open-craft/problem-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-craft/problem-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-craft/problem-builder/teams","hooks_url":"https://api.github.com/repos/open-craft/problem-builder/hooks","issue_events_url":"https://api.github.com/repos/open-craft/problem-builder/issues/events{/number}","events_url":"https://api.github.com/repos/open-craft/problem-builder/events","assignees_url":"https://api.github.com/repos/open-craft/problem-builder/assignees{/user}","branches_url":"https://api.github.com/repos/open-craft/problem-builder/branches{/branch}","tags_url":"https://api.github.com/repos/open-craft/problem-builder/tags","blobs_url":"https://api.github.com/repos/open-craft/problem-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-craft/problem-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-craft/problem-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-craft/problem-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-craft/problem-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/open-craft/problem-builder/languages","stargazers_url":"https://api.github.com/repos/open-craft/problem-builder/stargazers","contributors_url":"https://api.github.com/repos/open-craft/problem-builder/contributors","subscribers_url":"https://api.github.com/repos/open-craft/problem-builder/subscribers","subscription_url":"https://api.github.com/repos/open-craft/problem-builder/subscription","commits_url":"https://api.github.com/repos/open-craft/problem-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-craft/problem-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-craft/problem-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-craft/problem-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-craft/problem-builder/contents/{+path}","compare_url":"https://api.github.com/repos/open-craft/problem-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-craft/problem-builder/merges","archive_url":"https://api.github.com/repos/open-craft/problem-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-craft/problem-builder/downloads","issues_url":"https://api.github.com/repos/open-craft/problem-builder/issues{/number}","pulls_url":"https://api.github.com/repos/open-craft/problem-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/open-craft/problem-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/open-craft/problem-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-craft/problem-builder/labels{/name}","releases_url":"https://api.github.com/repos/open-craft/problem-builder/releases{/id}","deployments_url":"https://api.github.com/repos/open-craft/problem-builder/deployments","created_at":"2015-04-01T18:18:42Z","updated_at":"2016-10-30T02:44:23Z","pushed_at":"2016-11-23T08:22:17Z","git_url":"git://github.com/open-craft/problem-builder.git","ssh_url":"git@github.com:open-craft/problem-builder.git","clone_url":"https://github.com/open-craft/problem-builder.git","svn_url":"https://github.com/open-craft/problem-builder","homepage":null,"size":3941,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":9,"default_branch":"master"}},"base":{"label":"open-craft:master","ref":"master","sha":"94bd72c3bbad8794dce0f570276980d599a14440","user":{"login":"open-craft","id":7414786,"avatar_url":"https://avatars.githubusercontent.com/u/7414786?v=3","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"repo":{"id":33264452,"name":"problem-builder","full_name":"open-craft/problem-builder","owner":{"login":"open-craft","id":7414786,"avatar_url":"https://avatars.githubusercontent.com/u/7414786?v=3","gravatar_id":"","url":"https://api.github.com/users/open-craft","html_url":"https://github.com/open-craft","followers_url":"https://api.github.com/users/open-craft/followers","following_url":"https://api.github.com/users/open-craft/following{/other_user}","gists_url":"https://api.github.com/users/open-craft/gists{/gist_id}","starred_url":"https://api.github.com/users/open-craft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/open-craft/subscriptions","organizations_url":"https://api.github.com/users/open-craft/orgs","repos_url":"https://api.github.com/users/open-craft/repos","events_url":"https://api.github.com/users/open-craft/events{/privacy}","received_events_url":"https://api.github.com/users/open-craft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/open-craft/problem-builder","description":"An XBlock for posing questions to students","fork":false,"url":"https://api.github.com/repos/open-craft/problem-builder","forks_url":"https://api.github.com/repos/open-craft/problem-builder/forks","keys_url":"https://api.github.com/repos/open-craft/problem-builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-craft/problem-builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-craft/problem-builder/teams","hooks_url":"https://api.github.com/repos/open-craft/problem-builder/hooks","issue_events_url":"https://api.github.com/repos/open-craft/problem-builder/issues/events{/number}","events_url":"https://api.github.com/repos/open-craft/problem-builder/events","assignees_url":"https://api.github.com/repos/open-craft/problem-builder/assignees{/user}","branches_url":"https://api.github.com/repos/open-craft/problem-builder/branches{/branch}","tags_url":"https://api.github.com/repos/open-craft/problem-builder/tags","blobs_url":"https://api.github.com/repos/open-craft/problem-builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-craft/problem-builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-craft/problem-builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-craft/problem-builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-craft/problem-builder/statuses/{sha}","languages_url":"https://api.github.com/repos/open-craft/problem-builder/languages","stargazers_url":"https://api.github.com/repos/open-craft/problem-builder/stargazers","contributors_url":"https://api.github.com/repos/open-craft/problem-builder/contributors","subscribers_url":"https://api.github.com/repos/open-craft/problem-builder/subscribers","subscription_url":"https://api.github.com/repos/open-craft/problem-builder/subscription","commits_url":"https://api.github.com/repos/open-craft/problem-builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-craft/problem-builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-craft/problem-builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-craft/problem-builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-craft/problem-builder/contents/{+path}","compare_url":"https://api.github.com/repos/open-craft/problem-builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-craft/problem-builder/merges","archive_url":"https://api.github.com/repos/open-craft/problem-builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-craft/problem-builder/downloads","issues_url":"https://api.github.com/repos/open-craft/problem-builder/issues{/number}","pulls_url":"https://api.github.com/repos/open-craft/problem-builder/pulls{/number}","milestones_url":"https://api.github.com/repos/open-craft/problem-builder/milestones{/number}","notifications_url":"https://api.github.com/repos/open-craft/problem-builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-craft/problem-builder/labels{/name}","releases_url":"https://api.github.com/repos/open-craft/problem-builder/releases{/id}","deployments_url":"https://api.github.com/repos/open-craft/problem-builder/deployments","created_at":"2015-04-01T18:18:42Z","updated_at":"2016-10-30T02:44:23Z","pushed_at":"2016-11-23T08:22:17Z","git_url":"git://github.com/open-craft/problem-builder.git","ssh_url":"git@github.com:open-craft/problem-builder.git","clone_url":"https://github.com/open-craft/problem-builder.git","svn_url":"https://github.com/open-craft/problem-builder","homepage":null,"size":3941,"stargazers_count":9,"watchers_count":9,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":2,"forks":8,"open_issues":2,"watchers":9,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/open-craft/problem-builder/pulls/131"},"html":{"href":"https://github.com/open-craft/problem-builder/pull/131"},"issue":{"href":"https://api.github.com/repos/open-craft/problem-builder/issues/131"},"comments":{"href":"https://api.github.com/repos/open-craft/problem-builder/issues/131/comments"},"review_comments":{"href":"https://api.github.com/repos/open-craft/problem-builder/pulls/131/comments"},"review_comment":{"href":"https://api.github.com/repos/open-craft/problem-builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/open-craft/problem-builder/pulls/131/commits"},"statuses":{"href":"https://api.github.com/repos/open-craft/problem-builder/statuses/d1754f110a4c7704b539ecec2014b06e51f4e054"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":83,"deletions":26,"changed_files":4}}
{"actor":{"display_login":"mtyaka"}}