feat: Teaching Assistant role [BB-8580] #632
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds a new
Teaching Assistant
course team role, which is similar to eSHE Instructor, with the only difference being that it doesn't have access to viewing and modifying grades.Provided you set
ENABLE_TEACHING_ASSISTANT_ROLE
feature flag toTrue
, as anAdmin
orStaff
, you should see this on theMembership
tab of the instructor dashboard:Screenshot
Here is how the dashboard looks for a user with this role:
Screenshot
You can see that the
Membership
tab is hidden and that theStudent Admin
tab contains only two sections, unlike the regularStaff
, from which the role in question is derived:Screenshot
This role should be composable with any other course team roles. For example,
Teaching Assistant
+Admin
will have the same permissions asAdmin
.Teaching Assistant
+Discussion Admin
will be able to access the membership tab, but assign only forum-related roles.Testing instructions
0x29a/bb8580/teaching-assistant
branch from the[email protected]:open-craft/edx-platform.git
repo.ENABLE_TEACHING_ASSISTANT_ROLE
toTrue
.[email protected]
and[email protected]
. Give the formerStaff
course team role using the Instructor Dashboard.instructor.enroll
,instructor.give_student_extension
, andinstructor.override_grades
permissions, verify that[email protected]
still can enroll students (Membership
tab) and that all features on theStudent Admin
tab work for this user as before.[email protected]
theTeaching Assistant
role.[email protected]
, verify that you have access to the Instructor Dashboard, but not to theMembership
tab.[email protected]
sees only two sections on theStudent Admin
tab of the dashboard.[email protected]
theStaff
role and verify that it has allStaff
permissions (can enroll students, see theMembership
tab and allStudent Admin
content).Staff
role from[email protected]
, giveDiscussion Admin
and verify that it can assign forum moderator roles.Forum Discussion
role from[email protected]
, giveData Researcher
and verify that it can access theData Download
tab.Additionally, this script can be used to test that the
instructor.enroll
,instructor.give_student_extension
, andinstructor.override_grades
permissions work as expected: