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

Add new column to mod_assign for grading due date

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Install a fresh site and confirm there is a 'gradingdate' field in the 'assign' table that has the same attributes as 'cutoffdate'.
      Test 2
      1. Upgrade an existing site and confirm there is a 'gradingdate' field in the 'assign' table that has the same attributes as 'cutoffdate'.
      Test 3
      1. Visit 'Site administration' > 'Plugins' > 'Activity modules' > 'Assignment'.
      2. Confirm the 'Grading date' setting is set to enabled and 2 weeks in the future.
      3. Change this to 4 weeks and save.
      4. In another tab visit a course.
      5. Add an assignment and check that the 'Grading date' is enabled and set to 4 weeks in the future.
      6. Change this to 5 weeks in the future.
      7. Save the assignment form with all the necessary fields.
      8. Re-edit the assignment and confirm that the date is set to 5 weeks in the future.
      9. Now set it for 6 weeks in the future.
      10. Save the form with all the necessary fields.
      11. Re-edit the assignment and confirm that the date is set to 6 weeks in the future.
      Test 4
      1. Create an assignment with a grading date set.
      2. Backup and restore this activity and confirm the restored assignment contains the date you set in the backup.
      Test 5
      1. Ensure unit tests are passing.
      Show
      Test 1 Install a fresh site and confirm there is a 'gradingdate' field in the 'assign' table that has the same attributes as 'cutoffdate'. Test 2 Upgrade an existing site and confirm there is a 'gradingdate' field in the 'assign' table that has the same attributes as 'cutoffdate'. Test 3 Visit 'Site administration' > 'Plugins' > 'Activity modules' > 'Assignment'. Confirm the 'Grading date' setting is set to enabled and 2 weeks in the future. Change this to 4 weeks and save. In another tab visit a course. Add an assignment and check that the 'Grading date' is enabled and set to 4 weeks in the future. Change this to 5 weeks in the future. Save the assignment form with all the necessary fields. Re-edit the assignment and confirm that the date is set to 5 weeks in the future. Now set it for 6 weeks in the future. Save the form with all the necessary fields. Re-edit the assignment and confirm that the date is set to 6 weeks in the future. Test 4 Create an assignment with a grading date set. Backup and restore this activity and confirm the restored assignment contains the date you set in the backup. Test 5 Ensure unit tests are passing.
    • Affected Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57938_master
    • Sprint:
      3.3 Project Team Sprint 2

      Description

      We need to add this column so that a teacher can specify what date they expect to be marking the assignment so we can add this to their my overview block instance.

      We need to remember to include this in backup/restore.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              markn Mark Nelson
              Peer reviewer:
              Simey Lameze
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: