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

As a teacher, I want to be able to create an assignment activity with a 'due date' relative to the student course start date, so that the student can complete the full course

XMLWordPrintable

    • MOODLE_38_STABLE
    • MOODLE_38_STABLE
    • MDL-66147-master
    • Hide

      Test set up:

      1. A series of users, all in the same timezone. If you use 'mdk run users' then this should already be the case.
      2. Enable course relative dates on your site, via the site admin (enablecourserelativedates).
      3. Create a course, setting the following:
        • Relative dates mode to enabled.
        • Course start date to 7 days ago, midnight. Remember this date.
        • Course end date disabled.
      4. Enable the self enrolment method on this course.
      5. Login as student 2 (s2).
      6. Self enrol in the course.

      Testing the submission and grading views.

      1. Login as the admin
      2. Enrol t1 in the course as a teacher.
      3. Enrol s1, s2 and s3 in the course as students. You will now have 2 enrolments for s2 and this is expected.
      4. Edit the enrolment for t1 and set the start date to 6 days ago, midnight (day after the course start date).
      5. Edit the enrolment for s1 and set the start date to 7 days ago, midnight (on the course start date).
      6. Edit the manual enrolment for s2 (check that it's the manual enrolement!) and set the start date to 8 days ago, midnight (before the course start date).
      7. Edit the enrolment for s3 and set the start date to 2 days ago, midnight (5 days after course start).
      8. Log out
      9. Log in as the teacher.
      10. Create an assignment in the course with a due date of 3 days ago, midnight (students will have 4 days to complete this assignment from when they start the course). Make sure the cut-off date is disabled and that the allow submissions from date is set to the course start date.
      11. Click the assignment to view it.
      12. Verify the grading summary view contains the following changes:
        • Due date reads '4d 0h 0m after course start'.
        • Time remaining reads 'Calculated for each student'.
      13. Click 'View all submissions'
      14. Verify the folowing:
        • That you see an 'Assignment is overdue' message in the status column of the s1 and s2 rows.
        • That you don't see the 'Assignment is overdue' message in the status column of the s3 row.
        • That you see the 'due date', 'cut-off date' and 'allow submissions from date' columns in the table
        • That the due date for s3 is listed as 2 days from now (they started 2 days ago and have 2 more days to complete the assignment)
        • That the due date for s1 and s2 are listed as 4 days after the course start date.
      15. Log out
      16. Log in as s1
      17. Go to the assignment
      18. Verify you see a due date 4 days after the start of the course (3 days ago), midnight.
      19. Verify time remaining reads "Assignment is overdue by 3 days xx hours"
      20. Submit something and wait on the post-submission screen
      21. Verify you see "Assignment was submitted 3 days xxx hours late"
      22. Verify the due date is listed as 4 days after the start of the course (3 days ago), midnight.
      23. Log out
      24. Log in as s2
      25. Go to the assignment
      26. Verify you see a due date 4 days after the start of the course (3 days ago), midnight.
      27. Verify time remaining reads "Assignment is overdue by 3 days xx hours"
      28. Don't submit anything.
      29. Log out.
      30. Log in as s3
      31. Go to the assignment
      32. Verify you see a due date 2 days from now, midnight.
      33. Verify time remaining reads "1 days xx hours"
      34. Add a submission and wait on the post-submission screen
      35. Verify you see "Submitted for grading"
      36. Verify time remaining reads "1 days xx hours"
      37. Verify the due date is listed as 2 days from now, midnight.
      38. Log out.
      39. Log in as the teacher
      40. Go to the course and view the assignment
      41. Click 'View all submissions'
      42. Verify the following:
        • That s3 is listed with status 'Submitted for grading'
        • That s1 is listed with status 'Submitted for grading' with a red info box containing "3 days xx hours late"
        • That s2 is listed with status 'No submission' with red text reading "Assignment is overdueby: 3 days xx hours"
      43. Click the due date column to sort by that column.
      44. Verify this works. Try it a few times for different sort directions and confirm both work.
      45. Click 'Grade' for s3
      46. Verify the following:
        • Due date in the central header is listed as 2 days from today, midnight.
        • Under submission details, on the right, you see '1 day xx hours remaining'
      47. Change user (using the next/prev controls in the top right) to s1
      48. Verify the following:
        • Due date in the central header is listed as 4 days after the start of the course (3 days ago), midnight.
        • Under submission details, on the right, you see 'Assignment was submitted 3 days xx hours late'
      49. Change user (using the next/prev controls in the top right) to s2
      50. Verify the following:
        • Due date in the central header is listed as 4 days after the start of the course (3 days ago), midnight.
        • Under submission details, on the right, you see 'Assignment is overdue by: 3 days xx hours'

      Regression test for non-relative dates assignments/courses

      1. Create a course with relative dates mode set to disabled.
      2. Set the course start date to 7 days ago
      3. Create an assignment with a due date set to 3 days ago
      4. Enrol 3 students, and edit their enrolment start dates to:
        • s1: 7 days ago, midnight
        • s2: 8 days ago, midnight
        • s3: 6 days ago, midnight
      5. Enrol a teacher and edit their enrolment start date to:
        • t1: 7 days ago, midnight
      6. Log out
      7. Log in as the teacher
      8. View the assignment
      9. Verify that the due date is a specific date
      10. Verify that the time remaining is a specific time
      11. Click 'View all submissions'
      12. Verify the following:
        • The due date column is not shown, nor is the cutoffdate or allowsubmissions from
      13. Go back to the assignment main page
      14. Create a user override (from the cog menu) for a single user (any one)
      15. Now, go back to the 'view all submissions' page
      16. Verify the following:
        • The due date, cutoffdate and allowsubmissions cols are present
        • The due date for all users is the same.
      Show
      Test set up: A series of users, all in the same timezone. If you use 'mdk run users' then this should already be the case. Enable course relative dates on your site, via the site admin (enablecourserelativedates). Create a course, setting the following: Relative dates mode to enabled. Course start date to 7 days ago, midnight. Remember this date. Course end date disabled. Enable the self enrolment method on this course. Login as student 2 (s2). Self enrol in the course. Testing the submission and grading views. Login as the admin Enrol t1 in the course as a teacher. Enrol s1, s2 and s3 in the course as students. You will now have 2 enrolments for s2 and this is expected. Edit the enrolment for t1 and set the start date to 6 days ago, midnight (day after the course start date). Edit the enrolment for s1 and set the start date to 7 days ago, midnight (on the course start date). Edit the manual enrolment for s2 (check that it's the manual enrolement!) and set the start date to 8 days ago, midnight (before the course start date). Edit the enrolment for s3 and set the start date to 2 days ago, midnight (5 days after course start). Log out Log in as the teacher. Create an assignment in the course with a due date of 3 days ago, midnight (students will have 4 days to complete this assignment from when they start the course). Make sure the cut-off date is disabled and that the allow submissions from date is set to the course start date. Click the assignment to view it. Verify the grading summary view contains the following changes: Due date reads '4d 0h 0m after course start'. Time remaining reads 'Calculated for each student'. Click 'View all submissions' Verify the folowing: That you see an 'Assignment is overdue' message in the status column of the s1 and s2 rows. That you don't see the 'Assignment is overdue' message in the status column of the s3 row. That you see the 'due date', 'cut-off date' and 'allow submissions from date' columns in the table That the due date for s3 is listed as 2 days from now (they started 2 days ago and have 2 more days to complete the assignment) That the due date for s1 and s2 are listed as 4 days after the course start date. Log out Log in as s1 Go to the assignment Verify you see a due date 4 days after the start of the course (3 days ago), midnight. Verify time remaining reads "Assignment is overdue by 3 days xx hours" Submit something and wait on the post-submission screen Verify you see "Assignment was submitted 3 days xxx hours late" Verify the due date is listed as 4 days after the start of the course (3 days ago), midnight. Log out Log in as s2 Go to the assignment Verify you see a due date 4 days after the start of the course (3 days ago), midnight. Verify time remaining reads "Assignment is overdue by 3 days xx hours" Don't submit anything. Log out. Log in as s3 Go to the assignment Verify you see a due date 2 days from now, midnight. Verify time remaining reads "1 days xx hours" Add a submission and wait on the post-submission screen Verify you see "Submitted for grading" Verify time remaining reads "1 days xx hours" Verify the due date is listed as 2 days from now, midnight. Log out. Log in as the teacher Go to the course and view the assignment Click 'View all submissions' Verify the following: That s3 is listed with status 'Submitted for grading' That s1 is listed with status 'Submitted for grading' with a red info box containing "3 days xx hours late" That s2 is listed with status 'No submission' with red text reading "Assignment is overdueby: 3 days xx hours" Click the due date column to sort by that column. Verify this works. Try it a few times for different sort directions and confirm both work. Click 'Grade' for s3 Verify the following: Due date in the central header is listed as 2 days from today, midnight. Under submission details, on the right, you see '1 day xx hours remaining' Change user (using the next/prev controls in the top right) to s1 Verify the following: Due date in the central header is listed as 4 days after the start of the course (3 days ago), midnight. Under submission details, on the right, you see 'Assignment was submitted 3 days xx hours late' Change user (using the next/prev controls in the top right) to s2 Verify the following: Due date in the central header is listed as 4 days after the start of the course (3 days ago), midnight. Under submission details, on the right, you see 'Assignment is overdue by: 3 days xx hours' Regression test for non-relative dates assignments/courses Create a course with relative dates mode set to disabled. Set the course start date to 7 days ago Create an assignment with a due date set to 3 days ago Enrol 3 students, and edit their enrolment start dates to: s1: 7 days ago, midnight s2: 8 days ago, midnight s3: 6 days ago, midnight Enrol a teacher and edit their enrolment start date to: t1: 7 days ago, midnight Log out Log in as the teacher View the assignment Verify that the due date is a specific date Verify that the time remaining is a specific time Click 'View all submissions' Verify the following: The due date column is not shown, nor is the cutoffdate or allowsubmissions from Go back to the assignment main page Create a user override (from the cog menu) for a single user (any one) Now, go back to the 'view all submissions' page Verify the following: The due date, cutoffdate and allowsubmissions cols are present The due date for all users is the same.
    • 1
    • Sprint 3 - Investimerental, Sprint 4 - Road to Redemption

      A teacher should be able to create an assignment activity with a relative due date. The due date should be relative to when the student begins the course.

      Acceptance criteria:

      • Due date is only relative when the activity is in a course set to relative dates
      • Student sees a relative date on submission page
      • Teacher sees the student's relative due date when grading
      • Teacher sees the student's relative due date when viewing submissions
      • Does not include handling overrides in this issue
      • Does not include handling extensions in this issue
      • Does not include showing calendar events for the student int his issue
      • Does not include access restrictions based on date.
      • Sort by due date/status in view all submissions table should be disabled
      • Web services should be updated

        1. Screenshot_1.png
          Screenshot_1.png
          246 kB
        2. Screenshot_2.png
          Screenshot_2.png
          246 kB
        3. Screenshot_3.png
          Screenshot_3.png
          177 kB

            jaked Jake Dallimore
            ryanwyllie Ryan Wyllie
            Ryan Wyllie Ryan Wyllie
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 1 day, 7 hours, 1 minute
                1w 1d 7h 1m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.