{"action":"created","comment":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/comments/214423024","pull_request_review_id":151484541,"id":214423024,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNDQyMzAyNA==","diff_hunk":"@@ -346,6 +351,37 @@ def override_fields(parent, data, graded, earliest=None, ccx_ids_to_delete=None)\n     )\n \n \n+@ensure_csrf_cookie\n+@cache_control(no_cache=True, no_store=True, must_revalidate=True)\n+@coach_dashboard\n+def update_course_details(request, course, ccx=None):\n+    \"\"\"\n+    Update course display name for the CCX.\n+    \"\"\"\n+    if not ccx:\n+        raise Http404\n+\n+    # TODO: This should have been saved as a override field. This will","path":"lms/djangoapps/ccx/views.py","position":null,"original_position":26,"commit_id":"e29d6e22efddcf5b6259c55488888e4d54f1bd0d","original_commit_id":"9d86bc78291548dee2d379061ee854dc7049ba47","user":{"login":"taranjeet","id":4302268,"node_id":"MDQ6VXNlcjQzMDIyNjg=","avatar_url":"https://avatars2.githubusercontent.com/u/4302268?v=4","gravatar_id":"","url":"https://api.github.com/users/taranjeet","html_url":"https://github.com/taranjeet","followers_url":"https://api.github.com/users/taranjeet/followers","following_url":"https://api.github.com/users/taranjeet/following{/other_user}","gists_url":"https://api.github.com/users/taranjeet/gists{/gist_id}","starred_url":"https://api.github.com/users/taranjeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taranjeet/subscriptions","organizations_url":"https://api.github.com/users/taranjeet/orgs","repos_url":"https://api.github.com/users/taranjeet/repos","events_url":"https://api.github.com/users/taranjeet/events{/privacy}","received_events_url":"https://api.github.com/users/taranjeet/received_events","type":"User","site_admin":false},"body":"By dependency, I meant that if this PR gets merged before #18808 , then for some courses, `display_name` will be saved as an override field, while it will be missing for the existing one. But I agree that we can add the code at least.\r\nI have updated the code snippet. Thanks :)\r\n","created_at":"2018-08-31T17:26:23Z","updated_at":"2018-08-31T17:26:23Z","html_url":"https://github.com/edx/edx-platform/pull/18845#discussion_r214423024","pull_request_url":"https://api.github.com/repos/edx/edx-platform/pulls/18845","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/edx/edx-platform/pulls/comments/214423024"},"html":{"href":"https://github.com/edx/edx-platform/pull/18845#discussion_r214423024"},"pull_request":{"href":"https://api.github.com/repos/edx/edx-platform/pulls/18845"}},"in_reply_to_id":213737689},"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/18845","id":211321258,"node_id":"MDExOlB1bGxSZXF1ZXN0MjExMzIxMjU4","html_url":"https://github.com/edx/edx-platform/pull/18845","diff_url":"https://github.com/edx/edx-platform/pull/18845.diff","patch_url":"https://github.com/edx/edx-platform/pull/18845.patch","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/18845","number":18845,"state":"open","locked":false,"title":"Add support to rename child course","user":{"login":"taranjeet","id":4302268,"node_id":"MDQ6VXNlcjQzMDIyNjg=","avatar_url":"https://avatars2.githubusercontent.com/u/4302268?v=4","gravatar_id":"","url":"https://api.github.com/users/taranjeet","html_url":"https://github.com/taranjeet","followers_url":"https://api.github.com/users/taranjeet/followers","following_url":"https://api.github.com/users/taranjeet/following{/other_user}","gists_url":"https://api.github.com/users/taranjeet/gists{/gist_id}","starred_url":"https://api.github.com/users/taranjeet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taranjeet/subscriptions","organizations_url":"https://api.github.com/users/taranjeet/orgs","repos_url":"https://api.github.com/users/taranjeet/repos","events_url":"https://api.github.com/users/taranjeet/events{/privacy}","received_events_url":"https://api.github.com/users/taranjeet/received_events","type":"User","site_admin":false},"body":"This PR adds support to rename child course. A new tab called \"Course Details\" in CCX Coach Dashboard is created for this.\r\n\r\n**JIRA tickets**: [OSPR-2573](https://openedx.atlassian.net/browse/OSPR-2573)\r\n\r\n**Dependencies**: None\r\n\r\n**Screenshots**:  \r\n\r\n**Course Details Tab**\r\n\r\n<img width=\"754\" alt=\"screen shot 2018-08-29 at 2 35 39 pm\" src=\"https://user-images.githubusercontent.com/4302268/44777984-897fcc00-ab99-11e8-8a73-5ff10a6e0aec.png\">\r\n\r\n*Note*: See the changes in green box\r\n\r\n**Sandbox URL**: TBD\r\n\r\n**Merge deadline**: None\r\n\r\n**Testing instructions**:\r\n\r\n1. Go to CCX Coach Dashboard and click on the Course Details Tab.\r\n2. You should see a field with a label of \"Course Display Name\".\r\n3. Enter a new name and then the name should be changed. \r\n4. Look for a span with class of `course-name` element (<span class=\"course-name\">) and see the updated value over there.\r\n\r\n**Author notes and concerns**:\r\n\r\nNone\r\n\r\n**Reviewers**\r\n- [ ] @itsjeyd \r\n- [ ] edX reviewer[s] TBD\r\n\r\n**Settings**\r\n```yaml\r\nEDXAPP_FEATURES:\r\n  CUSTOM_COURSES_EDX: true","created_at":"2018-08-28T07:05:27Z","updated_at":"2018-08-31T17:26:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81a482286164811a35d068d3e3b0f37a84b7b035","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":128413104,"node_id":"MDU6TGFiZWwxMjg0MTMxMDQ=","url":"https://api.github.com/repos/edx/edx-platform/labels/needs%20triage","name":"needs triage","color":"e11d21","default":false},{"id":78051711,"node_id":"MDU6TGFiZWw3ODA1MTcxMQ==","url":"https://api.github.com/repos/edx/edx-platform/labels/open-source-contribution","name":"open-source-contribution","color":"bfe5bf","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/edx/edx-platform/pulls/18845/commits","review_comments_url":"https://api.github.com/repos/edx/edx-platform/pulls/18845/comments","review_comment_url":"https://api.github.com/repos/edx/edx-platform/pulls/comments{/number}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/18845/comments","statuses_url":"https://api.github.com/repos/edx/edx-platform/statuses/e29d6e22efddcf5b6259c55488888e4d54f1bd0d","head":{"label":"open-craft:opencraft/taranjeet/rename-child-course","ref":"opencraft/taranjeet/rename-child-course","sha":"e29d6e22efddcf5b6259c55488888e4d54f1bd0d","user":{"login":"open-craft","id":7414786,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MTQ3ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7414786?v=4","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":19940883,"node_id":"MDEwOlJlcG9zaXRvcnkxOTk0MDg4Mw==","name":"edx-platform","full_name":"open-craft/edx-platform","owner":{"login":"open-craft","id":7414786,"node_id":"MDEyOk9yZ2FuaXphdGlvbjc0MTQ3ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/7414786?v=4","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/edx-platform","description":"the edX learning management system (LMS) and course authoring tool, Studio","fork":true,"url":"https://api.github.com/repos/open-craft/edx-platform","forks_url":"https://api.github.com/repos/open-craft/edx-platform/forks","keys_url":"https://api.github.com/repos/open-craft/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/open-craft/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/open-craft/edx-platform/teams","hooks_url":"https://api.github.com/repos/open-craft/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/open-craft/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/open-craft/edx-platform/events","assignees_url":"https://api.github.com/repos/open-craft/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/open-craft/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/open-craft/edx-platform/tags","blobs_url":"https://api.github.com/repos/open-craft/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/open-craft/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/open-craft/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/open-craft/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/open-craft/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/open-craft/edx-platform/languages","stargazers_url":"https://api.github.com/repos/open-craft/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/open-craft/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/open-craft/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/open-craft/edx-platform/subscription","commits_url":"https://api.github.com/repos/open-craft/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/open-craft/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/open-craft/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/open-craft/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/open-craft/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/open-craft/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/open-craft/edx-platform/merges","archive_url":"https://api.github.com/repos/open-craft/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/open-craft/edx-platform/downloads","issues_url":"https://api.github.com/repos/open-craft/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/open-craft/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/open-craft/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/open-craft/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/open-craft/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/open-craft/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/open-craft/edx-platform/deployments","created_at":"2014-05-19T12:28:25Z","updated_at":"2018-07-20T16:54:43Z","pushed_at":"2018-08-31T17:23:48Z","git_url":"git://github.com/open-craft/edx-platform.git","ssh_url":"git@github.com:open-craft/edx-platform.git","clone_url":"https://github.com/open-craft/edx-platform.git","svn_url":"https://github.com/open-craft/edx-platform","homepage":"http://code.edx.org/","size":967186,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":1,"open_issues":5,"watchers":6,"default_branch":"open-craft-notice"}},"base":{"label":"edx:master","ref":"master","sha":"33130622f0da751cc38f36ccc0dba215e347f1dc","user":{"login":"edx","id":3179841,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzk4NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"repo":{"id":10391073,"node_id":"MDEwOlJlcG9zaXRvcnkxMDM5MTA3Mw==","name":"edx-platform","full_name":"edx/edx-platform","owner":{"login":"edx","id":3179841,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxNzk4NDE=","avatar_url":"https://avatars3.githubusercontent.com/u/3179841?v=4","gravatar_id":"","url":"https://api.github.com/users/edx","html_url":"https://github.com/edx","followers_url":"https://api.github.com/users/edx/followers","following_url":"https://api.github.com/users/edx/following{/other_user}","gists_url":"https://api.github.com/users/edx/gists{/gist_id}","starred_url":"https://api.github.com/users/edx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edx/subscriptions","organizations_url":"https://api.github.com/users/edx/orgs","repos_url":"https://api.github.com/users/edx/repos","events_url":"https://api.github.com/users/edx/events{/privacy}","received_events_url":"https://api.github.com/users/edx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/edx/edx-platform","description":"The Open edX platform, the software that powers edX!","fork":false,"url":"https://api.github.com/repos/edx/edx-platform","forks_url":"https://api.github.com/repos/edx/edx-platform/forks","keys_url":"https://api.github.com/repos/edx/edx-platform/keys{/key_id}","collaborators_url":"https://api.github.com/repos/edx/edx-platform/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/edx/edx-platform/teams","hooks_url":"https://api.github.com/repos/edx/edx-platform/hooks","issue_events_url":"https://api.github.com/repos/edx/edx-platform/issues/events{/number}","events_url":"https://api.github.com/repos/edx/edx-platform/events","assignees_url":"https://api.github.com/repos/edx/edx-platform/assignees{/user}","branches_url":"https://api.github.com/repos/edx/edx-platform/branches{/branch}","tags_url":"https://api.github.com/repos/edx/edx-platform/tags","blobs_url":"https://api.github.com/repos/edx/edx-platform/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/edx/edx-platform/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/edx/edx-platform/git/refs{/sha}","trees_url":"https://api.github.com/repos/edx/edx-platform/git/trees{/sha}","statuses_url":"https://api.github.com/repos/edx/edx-platform/statuses/{sha}","languages_url":"https://api.github.com/repos/edx/edx-platform/languages","stargazers_url":"https://api.github.com/repos/edx/edx-platform/stargazers","contributors_url":"https://api.github.com/repos/edx/edx-platform/contributors","subscribers_url":"https://api.github.com/repos/edx/edx-platform/subscribers","subscription_url":"https://api.github.com/repos/edx/edx-platform/subscription","commits_url":"https://api.github.com/repos/edx/edx-platform/commits{/sha}","git_commits_url":"https://api.github.com/repos/edx/edx-platform/git/commits{/sha}","comments_url":"https://api.github.com/repos/edx/edx-platform/comments{/number}","issue_comment_url":"https://api.github.com/repos/edx/edx-platform/issues/comments{/number}","contents_url":"https://api.github.com/repos/edx/edx-platform/contents/{+path}","compare_url":"https://api.github.com/repos/edx/edx-platform/compare/{base}...{head}","merges_url":"https://api.github.com/repos/edx/edx-platform/merges","archive_url":"https://api.github.com/repos/edx/edx-platform/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/edx/edx-platform/downloads","issues_url":"https://api.github.com/repos/edx/edx-platform/issues{/number}","pulls_url":"https://api.github.com/repos/edx/edx-platform/pulls{/number}","milestones_url":"https://api.github.com/repos/edx/edx-platform/milestones{/number}","notifications_url":"https://api.github.com/repos/edx/edx-platform/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/edx/edx-platform/labels{/name}","releases_url":"https://api.github.com/repos/edx/edx-platform/releases{/id}","deployments_url":"https://api.github.com/repos/edx/edx-platform/deployments","created_at":"2013-05-30T20:20:38Z","updated_at":"2018-08-31T15:43:52Z","pushed_at":"2018-08-31T17:23:51Z","git_url":"git://github.com/edx/edx-platform.git","ssh_url":"git@github.com:edx/edx-platform.git","clone_url":"https://github.com/edx/edx-platform.git","svn_url":"https://github.com/edx/edx-platform","homepage":"http://open.edx.org/","size":960842,"stargazers_count":3828,"watchers_count":3828,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2157,"mirror_url":null,"archived":false,"open_issues_count":197,"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":2157,"open_issues":197,"watchers":3828,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/edx/edx-platform/pulls/18845"},"html":{"href":"https://github.com/edx/edx-platform/pull/18845"},"issue":{"href":"https://api.github.com/repos/edx/edx-platform/issues/18845"},"comments":{"href":"https://api.github.com/repos/edx/edx-platform/issues/18845/comments"},"review_comments":{"href":"https://api.github.com/repos/edx/edx-platform/pulls/18845/comments"},"review_comment":{"href":"https://api.github.com/repos/edx/edx-platform/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/edx/edx-platform/pulls/18845/commits"},"statuses":{"href":"https://api.github.com/repos/edx/edx-platform/statuses/e29d6e22efddcf5b6259c55488888e4d54f1bd0d"}},"author_association":"NONE"}}
{"actor":{"display_login":"taranjeet"}}