Moodle

Students assigned at site or course category level do not appear in grader report

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9
  • Fix Version/s: 1.9.1
  • Component/s: Gradebook
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE
  • Fixed Branches:
    MOODLE_19_STABLE

Description

Students assigned at site or course category levels DO NOT appear in the grader report. They can be assigned to course groups, but these do not appear either in the report until course-assigned students are added to them.

The reason is probably the very simple SQL in the grader report lib that fetches the list of students.

Activity

Hide
Petr Škoda (skodak) added a comment -

Workaround - assign students in course context only.

Show
Petr Škoda (skodak) added a comment - Workaround - assign students in course context only.
Hide
Petr Škoda (skodak) added a comment -

could be solved by adding $parent=true to get_role_users() call, but I think for transparency we should use similar queries in both cases so that the results are guaranteed to be consistent even if get_role_users() changes

Show
Petr Škoda (skodak) added a comment - could be solved by adding $parent=true to get_role_users() call, but I think for transparency we should use similar queries in both cases so that the results are guaranteed to be consistent even if get_role_users() changes
Hide
Petr Škoda (skodak) added a comment -

patch committed, please reopen in case of any problems.
thanks

Show
Petr Škoda (skodak) added a comment - patch committed, please reopen in case of any problems. thanks
Hide
Petr Škoda (skodak) added a comment -

fixed incorrect left join - pointed out by Tim, sorry

Show
Petr Škoda (skodak) added a comment - fixed incorrect left join - pointed out by Tim, sorry
Hide
Eloy Lafuente (stronk7) added a comment -

Verified. Closing....ciao

Show
Eloy Lafuente (stronk7) added a comment - Verified. Closing....ciao

Dates

  • Created:
    Updated:
    Resolved: