Repository navigation
Description
Description
courses.manage_learner_grading lets a user reset attempts, rescore submissions, override scores and clear problem state for individual learners. It doesn't require courses.view_gradebook, so a custom role can let someone change a learner's grades without letting them see grades. Anyone who can change a learner's grades should also be able to see the grades they change. This adds courses.view_gradebook to the dependencies of courses.manage_learner_grading (ADR 0034).
Current Behavior
courses.manage_learner_grading depends only on courses.view_learner_course_status. The Custom Roles API accepts a role with courses.manage_learner_grading and without courses.view_gradebook, and the role catalog doesn't list courses.view_gradebook as a dependency.
Expected Behavior
courses.manage_learner_grading depends on both courses.view_learner_course_status and courses.view_gradebook. Because courses.view_gradebook depends on courses.view_course_info, a role with courses.manage_learner_grading must also include courses.view_course_info. courses.manage_bulk_learner_grading depends on courses.manage_learner_grading, so it inherits both requirements.
Acceptance Criteria
- The
depends_onofcourses.manage_learner_gradinglistscourses.view_learner_course_statusandcourses.view_gradebook. - The built-in roles that grant
courses.manage_learner_grading(course_admin,course_staff,course_limited_staff) still pass schema validation. They already grantcourses.view_gradebook. - Creating or updating a custom role with
courses.manage_learner_gradingand withoutcourses.view_gradebookreturns400, and the error lists the missing dependency. - The role catalog lists
courses.view_gradebook(and, indirectly,courses.view_course_info) as dependencies ofcourses.manage_learner_gradingandcourses.manage_bulk_learner_grading. - Tests cover the new dependency and the indirect dependencies of
courses.manage_bulk_learner_grading. -
compiled-schema.yaml,course_roles.rst(if it documents dependencies) and the CHANGELOG are updated.
Related Issues
- Follow-up to Split learner grading permissions and add Instructor Dashboard dependencies #660 / feat!: add bulk learner grading permission and dashboard dependencies #661, which declared the Instructor Dashboard dependencies.
- Related to Enforcement: Grading tab #490 (Grading tab enforcement).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsReady for Development
Activity