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

Assign: new time-limited submissions not supported by backup&restore

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • MOODLE_400_STABLE
    • MDL-74088-master
    • Hide

      For this test you will need a course with at least a student enrolled.

      1. Log is as admin and go to Site administration > Plugins > Activity modules > Assignment settings
      2. Check Enable timed assignments assign | enabletimelimit setting and save changes.
      3. Go to the course, turn edit mode on and click to add a assignment.
      4. On the assignment form, fill the fields Activity instructions, Aditional files, check Only show files during submission, enable Time limit set a time limit for this assignment and save.
      5. Have a look for that created assignment in the assign table and take note of the id field.
      6. On the more menu, select Overrides.
      7. Add a user override to s1 setting a different time limit and save.
      8. Log in as s1 go to the course and make a submission to that assignment.
      9. As admin, make a backup of that assignment.
      10. Once the backup is done restore that same backup, preferable in same course.
      11. View the assignment settings.
      12. Make sure the values of the fields above (Activity instructions, aditional files...) are restored.
      13. Go to the overrides page.
      14. Make sure the user override is restored with the time limit field value.
      15. In the database, query the assign table for the assign that was backed up and the one restored (should be the next id)
      16. Make sure values for the fields 'preventsubmissionnotingroup', 'activity', 'activityformat', 'timelimit' and 'submissionattachments' have been restored.
      17. Now query the assign_submission table for those ids (assignment = X)
      18. Make sure the value for the 'timestarted' field have been restored.
      19. Now query the assign_overrides table for those ids (assignid = X)
      20. Make sure the value for the 'timelimit' field have been restored.

      Note: If you decide to restore the assignment in a different course, make sure the same user (s1) is enrolled on that course otherwise you won't get any submissions or overrides.

      Show
      For this test you will need a course with at least a student enrolled. Log is as admin and go to Site administration > Plugins > Activity modules > Assignment settings Check Enable timed assignments assign | enabletimelimit setting and save changes. Go to the course, turn edit mode on and click to add a assignment. On the assignment form, fill the fields Activity instructions , Aditional files , check Only show files during submission , enable Time limit set a time limit for this assignment and save. Have a look for that created assignment in the assign table and take note of the id field. On the more menu, select Overrides . Add a user override to s1 setting a different time limit and save. Log in as s1 go to the course and make a submission to that assignment. As admin, make a backup of that assignment. Once the backup is done restore that same backup, preferable in same course. View the assignment settings. Make sure the values of the fields above (Activity instructions, aditional files...) are restored. Go to the overrides page. Make sure the user override is restored with the time limit field value. In the database, query the assign table for the assign that was backed up and the one restored (should be the next id) Make sure values for the fields 'preventsubmissionnotingroup', 'activity', 'activityformat', 'timelimit' and 'submissionattachments' have been restored. Now query the assign_submission table for those ids (assignment = X) Make sure the value for the 'timestarted' field have been restored. Now query the assign_overrides table for those ids (assignid = X) Make sure the value for the 'timelimit' field have been restored. Note : If you decide to restore the assignment in a different course, make sure the same user (s1) is enrolled on that course otherwise you won't get any submissions or overrides.
    • 1
    • HQ Team International CIH2-220

    Description

      When duplicating an assignment some of the new fields such as the new "Activity information" are not restored.

      It seems some new fields were added to the database when implemented the new time-limited submissions but not to backup&restore

      Attachments

        Issue Links

          Activity

            People

              lameze Simey Lameze
              jleyva Juan Leyva
              Huong Nguyen Huong Nguyen
              Ilya Tregubov Ilya Tregubov
              Gladys Basiana Gladys Basiana
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                19/Apr/22

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 5 hours, 1 minute
                  5h 1m