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

Create the calendar action events for the assignment activity

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Assignment, Blocks, Libraries
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Log in as an admin.
      2. Create a course and enrol a student.
      3. Create an assignment with a due date and a grading date set to 5 days in the future.
      4. Check your dashboard and confirm there is an event listed for when you have to grade.
      5. Log in as the student and visit your dashboard.
      6. Check your dashboard and confirm there is an event listed for when you have to submit an assignment.
      7. Submit an assignment.
      8. Log back in as a teacher and visit your dashboard
      9. Confirm there is the number '1' listed next to the action to grade submissions.
      Test 2
      1. Run unit tests.
      Show
      Test 1 Log in as an admin. Create a course and enrol a student. Create an assignment with a due date and a grading date set to 5 days in the future. Check your dashboard and confirm there is an event listed for when you have to grade. Log in as the student and visit your dashboard. Check your dashboard and confirm there is an event listed for when you have to submit an assignment. Submit an assignment. Log back in as a teacher and visit your dashboard Confirm there is the number '1' listed next to the action to grade submissions. Test 2 Run unit tests.
    • Affected Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57730_master
    • Sprint:
      3.3 Project Team Sprint 2

      Description

      Events required:

      Student

      • Create an action event if the "due date" is set. The time sort value should be based on the due date however the availability of the "add submission" link in the my overview block should be based on the "allow submissions from" value, if one is set. e.g. if an assignment is created with a due date 15 days in the future but only allows submissions from 10 days in the future then the event will appear in the list on the myoverview block with a disabled "add submission" link until the 10 days has passed.
      • Standard activity completion event required (if activity completion is specified) unless any of the other events are created.
      • Create an action event that when the user received a "user override" with the same rules as above
      • Create an action event that when the user received a "group override" with the same rules as above

      Teacher

      • Add a new date option in the "availability" section when creating the activity that allows the teacher to specify the expected "grade by" date which can be enabled by default and use the default values specified in the admin settings. The default value will be the admin setting + the latest date between the "due date" and the "cut-off date" (if it's specified).
      • Create a calendar event if the "grade by" date is set for assignment where the time sort value will be the specified "grade by" and the availability of the action will be based on the latest date between the "due date" and "cut-off date" (if it's specified). The action item count should be equal to the number of submissions waiting to be graded.

      Existing event behaviour (thanks Mark):

      Default.
      If you specify a ‘Due date’ an event is created on that day.

      User override.
      If you specify an ‘Allow submissions from’ date AND a ‘Due date’ date an event is created that spans that length of time (assuming its length is less than or equal to ASSIGN_MAX_EVENT_LENGTH), if it exceeds this it will create two separate events.
      If you specify an ‘Available from’ date an event is created on that day.
      If you specify a ‘Deadline’ date an event is created on that day.

      Group override.
      If you specify an ‘Allow submissions from’ date AND a ‘Due date’ date an event is created that spans that length of time (assuming its length is less than or equal to ASSIGN_MAX_EVENT_LENGTH), if it exceeds this it will create two separate events.
      If you specify an ‘Available from’ date an event is created on that day.
      If you specify a ‘Deadline’ date an event is created on that day.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              markn Mark Nelson
              Reporter:
              ryanwyllie Ryan Wyllie
              Peer reviewer:
              cameron1729
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: