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

Add support for drag/drop of database 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 database activity
        • Set “Available from” to yesterday at 8am
        • Set “Available to” 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 database events

      Calendar as t1

      1. Log in as t1
      2. Navigate to the calendar
      3. Confirm that you see the database open event
      4. Confirm that you see the database close event
      5. Try to drag the open event after the close event.
      6. Confirm that the days after the database close day are greyed out (the day of the database 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 database activity.
      11. Confirm* that the "Available from" date for the database is updated
        • Note: Only the date for the database open should be updated, the time will not be changed.
      12. Start to drag the database close event
      13. Confirm that the days before the database open event are greyed out (invalid drop zones)
      14. In the database settings tab change the “Available to” time from 8am to 7:55am
      15. Go to the calendar tab and reload it
      16. Start to drag the database open event
      17. Confirm that the day of the “Available to” date is no longer a valid drop zone (because the “Available to” has a time of 7:55am so dropping the open event there would be later since the from date is set to 8am)
      18. Start to drag the database 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 "Available to" date for the database 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 database activity Set “Available from” to yesterday at 8am Set “Available to” 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 database events Calendar as t1 Log in as t1 Navigate to the calendar Confirm that you see the database open event Confirm that you see the database close event Try to drag the open event after the close event. Confirm that the days after the database close day are greyed out (the day of the database 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 database activity. Confirm* that the "Available from" date for the database is updated Note: Only the date for the database open should be updated, the time will not be changed. Start to drag the database close event Confirm that the days before the database open event are greyed out (invalid drop zones) In the database settings tab change the “Available to” time from 8am to 7:55am Go to the calendar tab and reload it Start to drag the database open event Confirm that the day of the “Available to” date is no longer a valid drop zone (because the “Available to” has a time of 7:55am so dropping the open event there would be later since the from date is set to 8am) Start to drag the database 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 "Available to" date for the database 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-60060-master

      Description

      Allow the action events created by the database 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