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

As a teacher, I want to be able to override the assignment due date for a student, so that I can adjust for their circumstances

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide

      Setup

      1. Log in as admin
      2. Turn on the "relative dates" experimental setting on your site
      3. Create 2 courses, one with relative dates mode turned on the other without. Set the start date for both courses to the first day of last month.
        • Note: it'll be easier if you set the start time to midnight for the day
      4. Create 4 users, enrol them in both courses as folows:
        • (student 1) 1 student with an enrolment start time the same as the course start time
        • (student 2) 1 student with an enrolment start time 10 days after the course start time
        • (student 3) 1 student with an enrolment start time the same as the course start time
        • (teacher) 1 teacher with an enrolment start time 1 day after the course start time
      5. Create an assignment activity on each of the two courses and set the due date to be 10 days after the course start date

      Form change and reset

      1. Log in as the teacher
      2. View the assignment activity in the relative dates course
      3. Go to the user overrides page (settings cog > user overrides)
      4. Click "Add override"
      5. Select student 1 from the user selector
      6. CONFIRM that you see a "User assignment defaults" section that shows the default values for this user
        • This user's start date is the course start date, so the values should just be the default assignment activity dates
      7. CONFIRM that the date values in the form are set to the same values in the "User assignment defaults" section
      8. Select student 2 from the user select
      9. CONFIRM that you see a "User assignment defaults" section that shows the default values for this user
        • This user's start date is 10 days after the course start date, so the values should be the default assignment activity dates plus 10 days
      10. CONFIRM that the date values in the form are set to the same values in the "User assignment defaults" section (these should have changed from when you selected student 1)
      11. Select student 1 from the user select
      12. CONFIRM that the form gets set back to the values for student 1
      13. Change one of the values in the form (e.g. the due date day)
      14. Select student 2 from the user select
      15. CONFIRM that the form's date values are set back to the defaults for student 2
      16. Click cancel to leave the form

      Enrol at start of course

      1. Log in as the teacher
      2. View the assignment activity in the relative dates course
      3. Go to the user overrides page (settings cog > user overrides)
      4. Click "Add override"
      5. Select student 1 from the user selector
      6. CONFIRM that you see a "User assignment defaults" section that shows the default values for this user
        • This user's start date is the course start date, so the values should just be the default assignment activity dates
      7. Set the due date to some value other than the one defined in the "user assignment defaults"
      8. Click the "Revert to assignment defaults" button
      9. CONFIRM the due date value gets set back to the default one
      10. Set the due date value to something else again (remember the value) and save the override
      11. Edit the override
      12. CONFIRM that the user is selected (with no option to change)
      13. CONFIRM the user assignment defaults are visible
      14. Click cancel (or navigate away)
      15. View the assignment activity
      16. Click "View all submissions"
      17. CONFIRM the due date for that student matches the override value
      18. Log in as student 1
      19. View the assignment activity
      20. CONFIRM the due date is the override value

      Enrol at start + 10 day

      1. Log in as the teacher
      2. View the assignment activity in the relative dates course
      3. Go to the user overrides page (settings cog > user overrides)
      4. Click "Add override"
      5. Select student 2 from the user selector
      6. CONFIRM that you see a "User assignment defaults" section that shows the default values for this user
        • This user's start date is 10 days after the course start date, so the values should be the default assignment activity dates plus 10 days
      7. Set the due date to some value other than the one defined in the "user assignment defaults"
      8. Click the "Revert to assignment defaults" button
      9. CONFIRM the due date value gets set back to the default one
      10. Set the due date value to something else again (remember the value) and save the override
      11. Edit the override
      12. CONFIRM that the user is selected (with no option to change)
      13. CONFIRM the user assignment defaults are visible
      14. Click cancel (or navigate away)
      15. View the assignment activity
      16. Click "View all submissions"
      17. CONFIRM the due date for that student is the override value
      18. Log in as the student
      19. View the assignment activity
      20. CONFIRM the due date is the override value

      Duplicate override

      1. Log in as the teacher
      2. View the assignment activity in the relative dates course
      3. Go to the user overrides page (settings cog > user overrides)
      4. Delete the override for student 1
      5. Click the "duplicate" button for the student 2 override
      6. CONFIRM the form is shown with the values from the student 2 override but without a user selected
      7. Select student 1
      8. CONFIRM the assignment defaults are shown for that user but the form values for the due dates etc remain the same
      9. Save the form
      10. Edit the newly created override
      11. CONFIRM the override values are what was saved in the previous step

      Regression

      1. Create a Moodle site without this patch applied and create a course on it that matches the non relative dates mode course from this test
      2. Repeat the tests above on both the non relative dates course and on the course in the site you just created
      3. Confirm that the behaviour is the same between the non relative dates course on the site with this patch applied the course on the site without this patch applied
        • Note: A non relative dates course won't show the "User assign defaults" section of the overrides form (since all users have the same default values)

      View submissions page

      1. Log in as the teacher
      2. View the assignment activity in the relative dates course
      3. View all the submissions for the activity
      4. Sort the table by the "due date" column
      5. CONFIRM the rows are sorted in ascending or descending order (depending on your sort selection)
      6. Add / change / remove some user overrides
      7. Repeat the tests on the submissions table to confirm that the sort order is correct
      Show
      Setup Log in as admin Turn on the "relative dates" experimental setting on your site Create 2 courses, one with relative dates mode turned on the other without. Set the start date for both courses to the first day of last month. Note: it'll be easier if you set the start time to midnight for the day Create 4 users, enrol them in both courses as folows: (student 1) 1 student with an enrolment start time the same as the course start time (student 2) 1 student with an enrolment start time 10 days after the course start time (student 3) 1 student with an enrolment start time the same as the course start time (teacher) 1 teacher with an enrolment start time 1 day after the course start time Create an assignment activity on each of the two courses and set the due date to be 10 days after the course start date Form change and reset Log in as the teacher View the assignment activity in the relative dates course Go to the user overrides page (settings cog > user overrides) Click "Add override" Select student 1 from the user selector CONFIRM that you see a "User assignment defaults" section that shows the default values for this user This user's start date is the course start date, so the values should just be the default assignment activity dates CONFIRM that the date values in the form are set to the same values in the "User assignment defaults" section Select student 2 from the user select CONFIRM that you see a "User assignment defaults" section that shows the default values for this user This user's start date is 10 days after the course start date, so the values should be the default assignment activity dates plus 10 days CONFIRM that the date values in the form are set to the same values in the "User assignment defaults" section (these should have changed from when you selected student 1) Select student 1 from the user select CONFIRM that the form gets set back to the values for student 1 Change one of the values in the form (e.g. the due date day) Select student 2 from the user select CONFIRM that the form's date values are set back to the defaults for student 2 Click cancel to leave the form Enrol at start of course Log in as the teacher View the assignment activity in the relative dates course Go to the user overrides page (settings cog > user overrides) Click "Add override" Select student 1 from the user selector CONFIRM that you see a "User assignment defaults" section that shows the default values for this user This user's start date is the course start date, so the values should just be the default assignment activity dates Set the due date to some value other than the one defined in the "user assignment defaults" Click the "Revert to assignment defaults" button CONFIRM the due date value gets set back to the default one Set the due date value to something else again (remember the value) and save the override Edit the override CONFIRM that the user is selected (with no option to change) CONFIRM the user assignment defaults are visible Click cancel (or navigate away) View the assignment activity Click "View all submissions" CONFIRM the due date for that student matches the override value Log in as student 1 View the assignment activity CONFIRM the due date is the override value Enrol at start + 10 day Log in as the teacher View the assignment activity in the relative dates course Go to the user overrides page (settings cog > user overrides) Click "Add override" Select student 2 from the user selector CONFIRM that you see a "User assignment defaults" section that shows the default values for this user This user's start date is 10 days after the course start date, so the values should be the default assignment activity dates plus 10 days Set the due date to some value other than the one defined in the "user assignment defaults" Click the "Revert to assignment defaults" button CONFIRM the due date value gets set back to the default one Set the due date value to something else again (remember the value) and save the override Edit the override CONFIRM that the user is selected (with no option to change) CONFIRM the user assignment defaults are visible Click cancel (or navigate away) View the assignment activity Click "View all submissions" CONFIRM the due date for that student is the override value Log in as the student View the assignment activity CONFIRM the due date is the override value Duplicate override Log in as the teacher View the assignment activity in the relative dates course Go to the user overrides page (settings cog > user overrides) Delete the override for student 1 Click the "duplicate" button for the student 2 override CONFIRM the form is shown with the values from the student 2 override but without a user selected Select student 1 CONFIRM the assignment defaults are shown for that user but the form values for the due dates etc remain the same Save the form Edit the newly created override CONFIRM the override values are what was saved in the previous step Regression Create a Moodle site without this patch applied and create a course on it that matches the non relative dates mode course from this test Repeat the tests above on both the non relative dates course and on the course in the site you just created Confirm that the behaviour is the same between the non relative dates course on the site with this patch applied the course on the site without this patch applied Note: A non relative dates course won't show the "User assign defaults" section of the overrides form (since all users have the same default values) View submissions page Log in as the teacher View the assignment activity in the relative dates course View all the submissions for the activity Sort the table by the "due date" column CONFIRM the rows are sorted in ascending or descending order (depending on your sort selection) Add / change / remove some user overrides Repeat the tests on the submissions table to confirm that the sort order is correct
    • Affected Branches:
      MOODLE_38_STABLE
    • Fixed Branches:
      MOODLE_38_STABLE
    • Pull Master Branch:
      MDL-66148-master
    • Story Points:
      1
    • Sprint:
      Sprint 3 - Investimerental, Sprint 4 - Road to Redemption

      Description

      A teacher should be able to override the assignment due date in a relative dates course for a student.

      Acceptance criteria:

      • The override should not affect any other students
      • The override date should appear on all grading/submission views for the teacher
      • The override table and form should show the relative date for that user
      • The 'reset to assignment defaults' button should reset due date to the current student's relative date.

        Attachments

        1. Screenshot_1.png
          Screenshot_1.png
          213 kB
        2. Screenshot_2.png
          Screenshot_2.png
          232 kB
        3. Screenshot_3.png
          Screenshot_3.png
          241 kB
        4. Screenshot_4.png
          Screenshot_4.png
          207 kB
        5. Screenshot_5.png
          Screenshot_5.png
          218 kB

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  11/Nov/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 days, 2 hours
                  4d 2h