Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-51619

Group Assignment Completion Tracking

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Make certain that completion tracking is enabled in your Moodle site
      2. Create a course with completion tracking enabled
      3. Create an assignment (Assignment 1) with the following settings:
      4. Group submission settings > Students submit in groups = Yes
      5. Submission settings > Require students click submit button = Yes
      6. Activity completion > "Show activity as complete when conditions are met" and "Student must submit to this activity to complete it"
      7. Create an assignment (Assignment 2) with the following settings:
      8. Restrict access > Add a restriction that Assignment 1 must be marked complete
      9. Enroll 2 students in the course (Student 1 and Student 2)
      10. Put the students into the same group
      11. Log in as Student 1
      12. Click on Assignment 1
      13. Upload a file
      14. Click on Submit to complete the assignment
      15. Return to the course overview
      16. Student 1 should now have access to work on Assignment 2
      17. Log out of Student 1
      18. Log in as Student 2
      19. Go to the course overview
      20. Student 2 should have access to Assignment 2
      Show
      Make certain that completion tracking is enabled in your Moodle site Create a course with completion tracking enabled Create an assignment (Assignment 1) with the following settings: Group submission settings > Students submit in groups = Yes Submission settings > Require students click submit button = Yes Activity completion > "Show activity as complete when conditions are met" and "Student must submit to this activity to complete it" Create an assignment (Assignment 2) with the following settings: Restrict access > Add a restriction that Assignment 1 must be marked complete Enroll 2 students in the course (Student 1 and Student 2) Put the students into the same group Log in as Student 1 Click on Assignment 1 Upload a file Click on Submit to complete the assignment Return to the course overview Student 1 should now have access to work on Assignment 2 Log out of Student 1 Log in as Student 2 Go to the course overview Student 2 should have access to Assignment 2
    • Workaround:
      Hide

      The only workaround I have found is to require all students in the group to click the Submit button, which writes the necessary database record for each student.

      Show
      The only workaround I have found is to require all students in the group to click the Submit button, which writes the necessary database record for each student.
    • Affected Branches:
      MOODLE_28_STABLE, MOODLE_30_STABLE

      Description

      When group assignments are set up such that only one of the students in the group must click the submit button, then the first student who submits is the only one for whom there is a completion record created in mdl_course_module_completion. This is important because if there is a later assignment that cannot be worked on until the earlier assignment is completed (where completion is achieved by submitting for grading), then only the student who actually submits the work will be granted access to the later assignment.

      This is also true if no student is required to click the submit button, meaning that simply uploading the file or entering the text submits the work for grading. In this case, only the student uploads the file or enters the text gets access to the later assignment.

      Conversely, if all students are required to click the submit button, then completion tracking works as expected and all students will be granted access to the later assignment.

      How to Reproduce the Problem:

      1. Make certain that completion tracking is enabled in your Moodle site
      2. Create a course with completion tracking enabled
      3. Create an assignment (Assignment 1) with the following settings:
      4. Group submission settings > Students submit in groups = Yes
      5. Submission settings > Require students click submit button = Yes
      6. Activity completion > "Show activity as complete when conditions are met" and "Student must submit to this activity to complete it"
      7. Create an assignment (Assignment 2) with the following settings:
      8. Restrict access > Add a restriction that Assignment 1 must be marked complete
      9. Enroll 2 students in the course (Student 1 and Student 2)
      10. Put the students into the same group
      11. Log in as Student 1
      12. Click on Assignment 1
      13. Upload a file
      14. Click on Submit to complete the assignment
      15. Return to the course overview
      16. Student 1 should now have access to work on Assignment 2
      17. Log out of Student 1
      18. Log in as Student 2
      19. Go to the course overview
      20. Student 2 will not have access to Assignment 2

      You can also change #5 from
      "Submission settings > Require students click submit button = Yes"
      to
      "Submission settings > Require students click submit button = No"
      and you will experience the same problem.

      If you want to see the behaviour expected in the scenarios above, simply create an "Assignment 1" with this setting:
      "Group submission settings > Require all group members submit = Yes"
      Then, when you click the Submit button on each student, there will be a record written to mdl_course_module_completion for each student as they click the Submit button and this will grant them access to "Assignment 2".

      The problem is specifically in the file lib/completionlib.php in the function update_state() and, I believe, the new code should come after line 578. I have tried creating a solution for this to submit for review and integration, especially since this will interfere with a good number of users. However, since a student can be assigned to multiple groups within a single course, which are only segregated by grouping for purposes of assignment completion, has made this a bit more complex than I expected.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              c.d.smith Clem Smith
              Participants:
              Component watchers:
              Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: