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

Create the calendar action events required for the choice activity

    XMLWordPrintable

    Details

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

      Description

      Add or modify the existing events to match the required events

      Required events

      Student

      • If the "allow responses from" date is set then create an action event where the sort time is set to the value of "allow responses from". The action url should appear disabled until after the "allow responses from" time has past.
      • If the "allow responses until" date is set then create an action event where the sort time is set to the value of "allow responses until". The action url should appear enabled for the period up until the "allow responses until" time has past.
      • If both the "allow responses from" and "allow responses until" values are set then an action event should be created where the sort time is the "allow responses until". The action url should appear enabled during the period between the "allow responses from" and the "allow responses until" times.
      • Standard activity completion event required (if activity completion is specified) unless any of the other events are created.

      Teacher

      • No events required.

      Existing events (thanks Mark)

      Default.
      If you specify an ‘Allow responses from’ date an event is created on that day.
      If you specify an ‘Allow responses until’ 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:
                ryanwyllie Ryan Wyllie
                Peer reviewer:
                Simey Lameze
                Participants:
                Component watchers:
                Adrian Greeve, Mihail Geshoski, Peter Dias, Dan Marsden, Jake Dallimore, Jun Pataleta, Ryan Wyllie, Amaia Anabitarte, Bas Brands, Carlos Escobedo, 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: