Made coach dashboard available on ccx in addition to master course - #10672
Conversation
|
Thanks for the pull request, @amir-qayyum-khan! I've created OSPR-967 to keep track of it in JIRA. JIRA is a place for product owners to prioritize feature reviews by the engineering development teams. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will still be done via the GitHub pull request interface. As a reminder, our process documentation is here. |
|
Hi, This branch needs to be rebased, and you’ll also need to manually test it again! Please see https://groups.google.com/forum/#!topic/edx-code/hh42xd16wuQ for more detail. |
fe399ec to
5a2db67
Compare
|
@amir-qayyum-khan this is failing the performance tests. Somehow its executing an additional query. Can you look into this? |
|
sure let me. |
a96264c to
bedeb5a
Compare
6f35772 to
6aca581
Compare
|
Added WIP to title, as I want to review the logic in this. |
|
@amir-qayyum-khan Please try rebasing again, rather than slamming Jenkins with builds. |
6aca581 to
909d264
Compare
909d264 to
7383cf4
Compare
08ac5cf to
1644768
Compare
There was a problem hiding this comment.
Why did you remove the comma?
There was a problem hiding this comment.
@pdpinch Because code was not able to compare ccxLocator objects though it was able to compare courseLocator.
In sum when this line was comparing ccx keys it always give false even both key are match. Thats why I am deserialising keys and comparing them as strings.
There was a problem hiding this comment.
Second option is block this PR and create small PR against ccx locator.py and override __eq__ method. Because we dont have overridden __eq__ method thats why when i compare 2 ccx locator objects it always returns false.
After that resume this PR
There was a problem hiding this comment.
Same question as the other PR: how is this handled elsewhere in edx-platform?
There was a problem hiding this comment.
@pdpinch The issue was this
course.id is unicode object but ccx.id is not uni code it is number views.py So when we create ccx_locator i was not fully unicode because ccx_id was number. That why roles.py was not able to compare give ccx_locator with ccx_locator save in CourseAccessRole . See content of input ccx_locator and database value below
(
'course_id: ', CCXLocator(u'FAST', u'CC101', u'dummy_dec_2015', None, None, 10L),
''access_role.course_id: ', CCXLocator(u'FAST', u'CC101', u'dummy_dec_2015', None, None, u'10'),
'is Equal: ', False
)
Fix this issue by making ccx.id unicode
https://github.com/edx/edx-platform/pull/10672/files#diff-faebd8eb1d591f3ad3147fe858e4e849R136
|
I'm not sure why this is failing a bunch of CCX enrollment tests... |
1630187 to
2780629
Compare
|
@pdpinch Because now on ccx create user will be assign ccx_coach role on ccx (other then master course i.e he has already ccx_coach role on master course. Now he has this role on both master and ccx). |
2780629 to
77013f7
Compare
|
I'm confused by the changes to lms/djangoapps/instructor/access.py -- does the existing code send e-mail by default whenever a user is granted access? I've never seen that in production. |
There was a problem hiding this comment.
Can we address this upstream in https://github.com/edx/ccx-keys ?
There was a problem hiding this comment.
@pdpinch
yeah we can but then we need to hold this PR. it depends on this fix
There was a problem hiding this comment.
Ok. Leave it as is, but let's open a PR on ccx-keys too.
|
@amir-qayyum-khan this is functioning OK in my devstack, but it's failing a python test locally. And I still want to understand the changes to https://github.com/edx/edx-platform/pull/10672/files#diff-b289cefe1d85995559153339637dc4bb |
|
@pdpinch. When a user creates ccx I am not sending him email that he is now coach on ccx. In this PR we are assigning coach role on ccx to a user who is coach on master course. |
|
👍 |
|
This looks good to me as well. @amir-qayyum-khan could you please rebase atop master one last time? Then I think it's fine for @pdpinch to merge. |
77013f7 to
4afd0b9
Compare
4afd0b9 to
85c7258
Compare
Made coach dashboard available on ccx in addition to master course
Background
From issue mitocw#33
What is done in this PR
Studio Updates: None.
LMS Updates:
@pdpinch @pwilkins @giocalitri
MIT PR mitocw#143