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

Allocated Marker and Marking Status not restored from backup

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create an assignment in a course with teachers and students enrolled + with marking workflow and marking allocation enabled
      2. Add a submission as a student
      3. Grade the student and change the marking workflow state, and the allocated marker
      4. Grant the student an extension
      5. Backup the assignment with user data
      6. Restore the assignment as a new assignment to the same course
      7. Compare the marking workflow states, the allocated marker and the extension due date - they should be the same as the original assignment.
      1. Restore the backup attached to this issue (with user data). Verify the restored user is not allowed to make changes to their submission.
      Show
      Create an assignment in a course with teachers and students enrolled + with marking workflow and marking allocation enabled Add a submission as a student Grade the student and change the marking workflow state, and the allocated marker Grant the student an extension Backup the assignment with user data Restore the assignment as a new assignment to the same course Compare the marking workflow states, the allocated marker and the extension due date - they should be the same as the original assignment. Restore the backup attached to this issue (with user data). Verify the restored user is not allowed to make changes to their submission.
    • Affected Branches:
      MOODLE_26_STABLE
    • Fixed Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-46017-master

      Description

      Allocated Marker and Marking Status are not restored into the new course when a backup containing that information is restored with user data.

      Steps to reproduce:

      1. Course with enrolled students and teachers exists.
      2. Create an assignment, set both Use Marking Workflow and Use Marking Allocation to Yes.
      3. (Optional) Submit the assignment as students in the course. (Same result is achieved whether there are actual submissions or not.)
      4. Open the assignment and go to View/Grade All Submissions.
      5. Assign a marking teacher for each student.
      6. Set the marking workflow to something (e.g., In Progress).
      7. Save changes.
      8. Make a backup of the entire course with user data.
      9. Restore the backup with user data to a new course.
      10. In the newly restored course, open the assignment and navigate to View/Grade All Submissions.
      11. Note that marking status and allocated marker are not set.

      Expected result: The marking status and allocated marker from the backup should be restored into the new course.

      Actual result: The marking status and allocated marker are not restored.

      I verified that the marking status and allocated are written into the backup file so the data is there. It's just not being restored into the new course for some reason.

        Attachments

          Activity

            People

            Assignee:
            damyon Damyon Wiese
            Reporter:
            cfollin Chris Follin
            Peer reviewer:
            Frédéric Massart
            Integrator:
            Dan Poltawski
            Tester:
            Dan Poltawski
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Sep/14