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

Add support for drag/drop of workshop activity action events

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4, 3.7
    • Fix Version/s: 3.7
    • Component/s: Calendar
    • 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 workshop activity
        • Set “Open for submissions from” to day 10 of the current month at 8am
        • Set “Submissions deadline” to day 15 of the current month at 8am
        • Set “Open for assessment from” to day 20 of the current month at 8am
        • Set “Deadline for assessment” to day 25 of the current month 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 open event for workshop's submission
      4. Confirm that you see the deadline event for workshop's submission
      5. Confirm that you see the open event for workshop's assessment
      6. Confirm that you see the deadline event for workshop's assessment
      7. Try the following steps twice. The first time with the open event and the deadline event of submission, and the second time with the open event and the deadline event of assessment.
        1. Try to drag the open event after the deadline event.
        2. Confirm the cell background colour change to RED once you drag the open event on a day after the deadline event including the deadline date itself (don't drop)
        3. Confirm that you get an error message when you try to drop the event on an invalid day (after the deadline event)
        4. Confirm that if you drop the event on a valid day, the calendar is updated correctly
        5. Go to that course you have created, click on Edit settings on the workshop activity.
        6. Confirm that the "open for submission/assessment from" date for the workshop is updated
      8. Redo the previous step again twice. But this time move the deadline event. The deadline event should not be able to move before the open event.
      9. Confirm that non of the submission events can be moved after either of the assessment events
      10. Confirm that non of the assessment events can be moved before either of the submission events
      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 workshop activity Set “Open for submissions from” to day 10 of the current month at 8am Set “Submissions deadline” to day 15 of the current month at 8am Set “Open for assessment from” to day 20 of the current month at 8am Set “Deadline for assessment” to day 25 of the current month 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 open event for workshop's submission Confirm that you see the deadline event for workshop's submission Confirm that you see the open event for workshop's assessment Confirm that you see the deadline event for workshop's assessment Try the following steps twice. The first time with the open event and the deadline event of submission, and the second time with the open event and the deadline event of assessment. Try to drag the open event after the deadline event. Confirm the cell background colour change to RED once you drag the open event on a day after the deadline event including the deadline date itself (don't drop) Confirm that you get an error message when you try to drop the event on an invalid day (after the deadline event) Confirm that if you drop the event on a valid day, the calendar is updated correctly Go to that course you have created, click on Edit settings on the workshop activity. Confirm  that the "open for submission/assessment from" date for the workshop is updated Redo the previous step again twice . But this time move the deadline event. The deadline event should not be able to move before the open event. Confirm that non of the submission events can be moved after either of the assessment events Confirm that non of the assessment events can be moved before either of the submission events
    • Affected Branches:
      MOODLE_34_STABLE, MOODLE_37_STABLE
    • Fixed Branches:
      MOODLE_37_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-60059-master

      Description

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

        Attachments

        1. MDL-60059_1.png
          MDL-60059_1.png
          202 kB
        2. MDL-60059_2.png
          MDL-60059_2.png
          140 kB
        3. MDL-60059_3.png
          MDL-60059_3.png
          124 kB
        4. MDL-60059_4.png
          MDL-60059_4.png
          184 kB
        5. MDL-60059_5.png
          MDL-60059_5.png
          61 kB

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  20/May/19

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 30 minutes
                  2h 30m