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

Add support for drag/drop of lesson activity action events

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide

      Setup

      1. Log in as admin
      2. Create a course
      3. Enrol a student in the course (s1)
      4. Enrol a teacher in the course (t1)
      5. Create a lesson activity
        • Set “Available” to yesterday at 8am
        • Set “Deadline” to two days from now at 8am

      Calendar as student

      1. Log in as s1
      2. Navigate to the calendar
      3. Confirm that you can’t drag either of the lesson events

      Calendar as t1

      1. Log in as t1
      2. Navigate to the calendar
      3. Confirm that you see the lesson open event
      4. Confirm that you see the lesson close event
      5. Try to drag the open event after the close event.
      6. Confirm that the days after the lesson close day are greyed out (the day of the lesson close is still acceptable because setting the open date to the close date is valid, according to the mfrom validation)
      7. Confirm the cell background colour change to RED once you drag the open event on the day after the close event (don't drop)
      8. Confirm that you get an error message when you try to drop the event on an invalid day (after the close event)
      9. Confirm that if you drop the event on a valid day that the calendar is updated correctly
      10. Go to that course you have created, click on Edit settings on the lesson activity.
      11. Confirm* that the "Available" date for the lesson is updated
        • Note: Only the date for the lesson open should be updated, the time will not be changed.
      12. Start to drag the lesson close event
      13. Confirm that the days before the lesson open event are greyed out (invalid drop zones)
      14. In the lesson settings tab change the “Deadline” time from 8am to 7:55am
      15. Go to the calendar tab and reload it
      16. Start to drag the lesson open event
      17. Confirm that the day of the “Deadline” date is no longer a valid drop zone (because the “Deadline” has a time of 7:55am so dropping the "Available from" event which has a time of 8am will make the new "Available from" event after the "Deadline" event, which is invalid)
      18. Start to drag the lesson close event
      19. Confirm that the day for the open event is not a valid drop zone (because 7:55am is earlier than the 8am cutoff from the open event).
      20. Confirm that if you drop the event on a valid day that the calendar is updated correctly
      21. Confirm that the "Deadline" date for the lesson is updated (you can open to activity settings in another tab to see that the date has changed)
      Show
      Setup Log in as admin Create a course Enrol a student in the course (s1) Enrol a teacher in the course (t1) Create a lesson activity Set “Available” to yesterday at 8am Set “Deadline” to two days from now at 8am Calendar as student Log in as s1 Navigate to the calendar Confirm that you can’t drag either of the lesson events Calendar as t1 Log in as t1 Navigate to the calendar Confirm that you see the lesson open event Confirm that you see the lesson close event Try to drag the open event after the close event. Confirm that the days after the lesson close day are greyed out (the day of the lesson close is still acceptable because setting the open date to the close date is valid, according to the mfrom validation) Confirm the cell background colour change to RED once you drag the open event on the day after the close event (don't drop) Confirm that you get an error message when you try to drop the event on an invalid day (after the close event) Confirm that if you drop the event on a valid day that the calendar is updated correctly Go to that course you have created, click on Edit settings on the lesson activity. Confirm* that the "Available" date for the lesson is updated Note: Only the date for the lesson open should be updated, the time will not be changed. Start to drag the lesson close event Confirm that the days before the lesson open event are greyed out (invalid drop zones) In the lesson settings tab change the “Deadline” time from 8am to 7:55am Go to the calendar tab and reload it Start to drag the lesson open event Confirm that the day of the “Deadline” date is no longer a valid drop zone (because the “Deadline” has a time of 7:55am so dropping the "Available from" event which has a time of 8am will make the new "Available from" event after the "Deadline" event, which is invalid) Start to drag the lesson close event Confirm that the day for the open event is not a valid drop zone (because 7:55am is earlier than the 8am cutoff from the open event). Confirm that if you drop the event on a valid day that the calendar is updated correctly Confirm that the "Deadline" date for the lesson is updated (you can open to activity settings in another tab to see that the date has changed)
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60057-master

      Description

      Allow the action events created by the lesson activity to be dragged and dropped in the calendar UI.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18