Closed alec-gullon closed 2 weeks ago
Could it be possible this isse impact in the app version?
We have this error in the app https://github.com/amandadoughty/moodle-mod_peerwork/issues/14
when a user is enrolled in a course with grouping and completion options and with "Students must grade all their peers" activated.
I have tested this in 4.1 - 4.5 and I can only recreate the issue in versions < 4.3 so I am closing it as stale. Thank you for providing enough steps to help write a behat test to cover the feature.
We were testing this plugin's activity completion and we noticed it doesn't work as expected when the activity completion is configured to "Students must grade all their peers". Steps to reproduce below:
I did a little inspection of the code, and it looks to me like this query needs something additional added to its WHERE clause: https://github.com/amandadoughty/moodle-mod_peerwork/blob/master/classes/completion/custom_completion.php#L59. Possibly something like
$gradedby = ?
which is set equal to the user's id. This is how it is done here, for example: https://github.com/amandadoughty/moodle-mod_peerwork/blob/master/locallib.php#L540.As it currently stands, this particular check for activity completion will pass for everybody as soon as one individual has submitted grades for everybody in the group.