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

Create the calendar action events required for the database activity

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Labels:
    • Testing Instructions:
      Hide
      Test 1
      1. Create a database activity with 'Available from' checked and set to sometime in the future.
      2. Log in as a student and check your dashboard.
      3. Confirm there is a database event with that date.
      Test 2
      1. Create a database activity with 'Available to' checked and set to sometime in the future.
      2. Log in as a student and check your dashboard.
      3. Confirm there is a database event with that date.
      Test 3
      1. Create a database activity with 'Available from' and 'Available to' checked and set to sometime in the future - with ''Available to' set to further in the future than ''Available from'.
      2. Log in as a student and check your dashboard.
      3. Confirm there is a database event with the ''Available to' date set.
      Test 4
      1. Ensure unit tests are passing.
      Show
      Test 1 Create a database activity with 'Available from' checked and set to sometime in the future. Log in as a student and check your dashboard. Confirm there is a database event with that date. Test 2 Create a database activity with 'Available to' checked and set to sometime in the future. Log in as a student and check your dashboard. Confirm there is a database event with that date. Test 3 Create a database activity with 'Available from' and 'Available to' checked and set to sometime in the future - with ''Available to' set to further in the future than ''Available from'. Log in as a student and check your dashboard. Confirm there is a database event with the ''Available to' date set. Test 4 Ensure unit tests are passing.
    • Affected Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57877_master
    • Sprint:
      3.3 Project Team Sprint 3

      Description

      Required events
      Student
      1. If you specify an ‘Available from’ date an event is created on that day. The action url should appear disabled until after the 'Available from' time has passed.
      2. If you specify an ‘Available to’ date an event is created on that day. The action url should appear enabled for the period up until the 'Available to' time has passed.
      3. If both the 'Available from' and ‘Available to’ values are set then an action event should be created where the sort time is the 'Available to' time. The action url should appear enabled during the period between the 'Available from' and the 'Available to' times.
      4. Standard activity completion event required (if activity completion is specified) unless any of the other events are created.
      Teacher
      1. If the setting 'Approval required' is enabled then the teacher needs to have an action event when an entry is created. The action item count should be the number of entries that need approval.
      Existing events
      Default

      If you specify an ‘Available from’ date an event is created on that day.
      If you specify an ‘Available to’ date an event is created on that day.

      User override

      Not an option.

      Group override

      Not an option.

        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:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: