Looking at https://gradebook.stage.edx.org/course-v1:edX+123+123, I created an override in the Final exam subsection for mroytman_test1. Confusingly, this showed me a score of 0.75/0. When I masqueraded as the user, I saw that the subsection is supposed to be hidden from that learner. We should either warn gradebook admins about this, or disallow it.
Confirm that the bug we saw is due to assignment being not available to the learner - vs. e.g. that learner has not yet started the assignment
Enumerate different scenarios in which assignments can be hidden from learners (e.g. assignment due date past & hidden, not yet available, wrong track/cohort, etc.)
Write up what happens right now, per scenario in our doc
We have open questions around whether this would impact the learner's course grade. If it does, it seems like it would be pretty important for us to address. If there's further logic to filter out subsections which can't be accessed by the learner from contributing to their course grade, then there's not as much urgency in moving on this.
As far as I can tell, this doesn’t affect course grades. None of my manual testing of overriding student grades in subsections that are ungraded for the student have resulted in a change to the course grade. Also, this method inside the CourseGrade class should mean that only graded subsections are taken into account when updating: