{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-platform/issues/10877","labels_url":"https://api.github.com/repos/edx/edx-platform/issues/10877/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-platform/issues/10877/comments","events_url":"https://api.github.com/repos/edx/edx-platform/issues/10877/events","html_url":"https://github.com/edx/edx-platform/pull/10877","id":120981939,"number":10877,"title":"WIP Added staff and instructor roles on ccx to all the staff and instructors of the master course plus fixed view as student masquerade and display name of ccx on coach dashboard ","user":{"login":"amir-qayyum-khan","id":10431250,"avatar_url":"https://avatars.githubusercontent.com/u/10431250?v=3","gravatar_id":"","url":"https://api.github.com/users/amir-qayyum-khan","html_url":"https://github.com/amir-qayyum-khan","followers_url":"https://api.github.com/users/amir-qayyum-khan/followers","following_url":"https://api.github.com/users/amir-qayyum-khan/following{/other_user}","gists_url":"https://api.github.com/users/amir-qayyum-khan/gists{/gist_id}","starred_url":"https://api.github.com/users/amir-qayyum-khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir-qayyum-khan/subscriptions","organizations_url":"https://api.github.com/users/amir-qayyum-khan/orgs","repos_url":"https://api.github.com/users/amir-qayyum-khan/repos","events_url":"https://api.github.com/users/amir-qayyum-khan/events{/privacy}","received_events_url":"https://api.github.com/users/amir-qayyum-khan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/edx/edx-platform/labels/open%20edx%20community%20review","name":"open edx community review","color":"fbca04"},{"url":"https://api.github.com/repos/edx/edx-platform/labels/open-source-contribution","name":"open-source-contribution","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-12-08T10:48:36Z","updated_at":"2015-12-30T13:21:40Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/edx/edx-platform/pulls/10877","html_url":"https://github.com/edx/edx-platform/pull/10877","diff_url":"https://github.com/edx/edx-platform/pull/10877.diff","patch_url":"https://github.com/edx/edx-platform/pull/10877.patch"},"body":"### Background\r\nFrom issues https://github.com/mitocw/edx-platform/issues/126, https://github.com/mitocw/edx-platform/issues/155 and https://github.com/mitocw/edx-platform/issues/115\r\n\r\n### What is done in this PR\r\n**Studio Updates:** \r\n- Remove ccx from staff dashboard inside studio. Because  a master course can have unlimited ccx. If we allow display of all ccx of logged in staff (who is also staff of master course ) in studio dashboard then his (staff's) dashboard can be populate with huge list of ccx along with master course \r\n\r\n**LMS Updates:** \r\n- Now when a coach creates a new ccx, I am assigning staff role on this ccx course to all staff of master course.\r\n- Now staff of master course has staff rights on master course as well as ccx courses.\r\n- This is for course staff to see what ccx coaches are doing with course.\r\n- Added instructors of master course as instructor(s) in ccx.\r\n- **Note:** This code will add/enrol staff and instructors in ccx and now max student limit for ccx depends on number of staff and admins. \r\n- Fixed view as student issue on ccx, now staff can view as student and see how ccx  view will appear to student\r\n- Fixed display name on ccx coach dashboard. Previously it was show display name of master course on coach dashboard.\r\n\r\n@pdpinch @giocalitri @pwilkins \r\n\r\n- Staff on Master course\r\n![screen shot 2015-11-30 at 5 12 54 pm](https://cloud.githubusercontent.com/assets/10431250/11471231/ba5e9cc8-9785-11e5-95c5-0cdcea97f780.png)\r\n\r\n- Staff on CCX\r\n![screen shot 2015-11-30 at 5 13 04 pm](https://cloud.githubusercontent.com/assets/10431250/11471234/c2d0a9dc-9785-11e5-865f-a1b7d79a34db.png)\r\n\r\n- Admin/instructors on master course\r\n![screen shot 2015-12-10 at 5 10 18 pm](https://cloud.githubusercontent.com/assets/10431250/11715098/08685ed0-9f61-11e5-8b79-87defb82c2c9.png)\r\n\r\n- Admin/instructors on ccx\r\n![screen shot 2015-12-10 at 5 10 22 pm](https://cloud.githubusercontent.com/assets/10431250/11715099/11ada5ae-9f61-11e5-92c3-d0316f1b6190.png)\r\n\r\n#### Fixed view as student\r\n\r\n![screen shot 2015-12-17 at 7 21 37 pm 2](https://cloud.githubusercontent.com/assets/10431250/11871777/8eb3d64e-a4f3-11e5-9b32-d0df4a0dd0a6.png)\r\n![screen shot 2015-12-17 at 7 21 53 pm 2](https://cloud.githubusercontent.com/assets/10431250/11871778/8eb92040-a4f3-11e5-9bb7-49c691d4bb24.png)\r\n![screen shot 2015-12-17 at 7 22 05 pm 2](https://cloud.githubusercontent.com/assets/10431250/11871779/8ebdc94c-a4f3-11e5-9e7d-0ee44b1652c3.png)\r\n\r\n#### Fixed display name of ccx on coach dashboard.\r\n![screen shot 2015-12-18 at 3 29 34 pm](https://cloud.githubusercontent.com/assets/10431250/11894922/3f39bfa8-a59c-11e5-82e9-0dabd349e963.png)\r\n![screen shot 2015-12-18 at 3 29 44 pm](https://cloud.githubusercontent.com/assets/10431250/11894921/3f3880de-a59c-11e5-9d38-da5de6837b8a.png)\r\n![screen shot 2015-12-18 at 3 29 55 pm](https://cloud.githubusercontent.com/assets/10431250/11894923/3f411bf4-a59c-11e5-80bb-b79b5073c936.png)\r\n"},"comment":{"url":"https://api.github.com/repos/edx/edx-platform/issues/comments/167998131","html_url":"https://github.com/edx/edx-platform/pull/10877#issuecomment-167998131","issue_url":"https://api.github.com/repos/edx/edx-platform/issues/10877","id":167998131,"user":{"login":"amir-qayyum-khan","id":10431250,"avatar_url":"https://avatars.githubusercontent.com/u/10431250?v=3","gravatar_id":"","url":"https://api.github.com/users/amir-qayyum-khan","html_url":"https://github.com/amir-qayyum-khan","followers_url":"https://api.github.com/users/amir-qayyum-khan/followers","following_url":"https://api.github.com/users/amir-qayyum-khan/following{/other_user}","gists_url":"https://api.github.com/users/amir-qayyum-khan/gists{/gist_id}","starred_url":"https://api.github.com/users/amir-qayyum-khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amir-qayyum-khan/subscriptions","organizations_url":"https://api.github.com/users/amir-qayyum-khan/orgs","repos_url":"https://api.github.com/users/amir-qayyum-khan/repos","events_url":"https://api.github.com/users/amir-qayyum-khan/events{/privacy}","received_events_url":"https://api.github.com/users/amir-qayyum-khan/received_events","type":"User","site_admin":false},"created_at":"2015-12-30T13:21:40Z","updated_at":"2015-12-30T13:21:40Z","body":"Done @pdpinch "}}