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

Convert upcoming view to templates

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.4
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide
      Setup
      1. Log in as admin and go to Calendar.
      2. Add few events of different types (site, user, course, group) on different days in the future.
      3. On the footer of the calendar, click Manage subscription.
      4. On the form, give a name to calendar, select Calendar file (.ics), add the attached ics file to the file picker and click Add
      5. Go to site home and add Upcoming events block.
      6. On the bottom of the block, click Go to calendar link.
      Subscription events.
      1. On the upcoming view make sure events generated by subscription display the event source on the description. Something like: Event source: THE NAME YOU GIVE TO CALENDAR ON MANAGE SUBSCRIPTION.
      Delete
      1. On the events you have permission, click on delete icon. (Please remember module events cannot be removed)
      2. Make sure it displays the modal with the confirm message: Are you sure you want to delete the "event name" event?
        • The header should display Delete event.
      3. Click Delete event.
      4. Make sure the calendar region is refreshed and the event is deleted.
      5. Now click on the delete icon in one of those events created by subscription.
      6. It should display a different message, something like: The "Every 5 days, 100 times @ 4:30pm AEST" event is part of a series. Do you want to delete just this event, or all 99 events in the series?
      7. Also it should display two delete buttons: Delete this event and Delete all events.
      8. Click Delete this event and make sure just that event is deleted.
      9. Click in another event generated by subscription, but this time, click Delete all events.
      10. Make sure all events generated by subscription have been deleted.
      11. On the navigation drawer (side menu) select Calendar.
      12. REGRESSION TEST: Repeat this process with different events types and make it works same way as the upcoming view .
      Add events
      1. On the upcoming view, click New event button.
      2. Make sure the add event form modal is displayed.
      3. Fill the form and click Save button.
      4. Make sure it works as expected and the new event is created.
      5. The upcoming view region should refresh and the new event should be displayed.
      6. REGRESSION TEST: Go to calendar month view and repeat the steps above. It should works same way as the upcoming view.
      Edit events
      1. On the upcoming view, click on the cog icon to edit an event.
      2. Make sure the event form modal is filled with the information from the event you choose.
      3. Edit something on the event, for example name... and click Save button..
      4. Make sure the upcoming view refresh and the new data is displayed.
      5. REGRESSION TEST: Go to calendar month view and repeat the steps above. It should works same way as the upcoming view.
      Course filter
      1. On the upcoming view, please note the course selector on the calendar header (top left).
      2. It should display a label Upcoming events for: and a list of courses you are enrolled in.
        • If it does not display you may enrol your user in a few courses.
      3. Select a course, make sure all course events related to that course are displayed.
      4. All other course events should be hidden.
      5. Now click New event button
      6. Make sure the form pre-selected type of event Course and the course you selected on the upcoming view is selected.
      7. Close the event form modal and select All courses on the course filter.
      8. It should display all events from all courses.
      Events keys fake block
      1. On upcoming view, please note on the right side a fake block called events keys which display the event types.
      2. Click in one of the event types, let's say user.
      3. Make sure all user events have been hidden.
      4. Now, click another type lets say site.
      5. Now, user and site event should be hidden.
      6. Click on those event types again and now make sure all events from that type are visible now.
      General
      1. All events should have an icon.
      2. Events description backgroup colour should match the ones on the fake event key block
      3. Every event should display the time of that event, and events in different day should have a link to that day.
      4. That link should redirect you to the respective day view.
      Show
      Setup Log in as admin and go to Calendar. Add few events of different types (site, user, course, group) on different days in the future. On the footer of the calendar, click Manage subscription . On the form, give a name to calendar, select Calendar file (.ics) , add the attached ics file to the file picker and click Add Go to site home and add Upcoming events block. On the bottom of the block, click Go to calendar link. Subscription events. On the upcoming view make sure events generated by subscription display the event source on the description. Something like: Event source: THE NAME YOU GIVE TO CALENDAR ON MANAGE SUBSCRIPTION. Delete On the events you have permission, click on delete icon . (Please remember module events cannot be removed) Make sure it displays the modal with the confirm message: Are you sure you want to delete the "event name" event? The header should display Delete event . Click Delete event . Make sure the calendar region is refreshed and the event is deleted. Now click on the delete icon in one of those events created by subscription. It should display a different message, something like: The "Every 5 days, 100 times @ 4:30pm AEST" event is part of a series. Do you want to delete just this event, or all 99 events in the series? Also it should display two delete buttons: Delete this event and Delete all events . Click Delete this event and make sure just that event is deleted. Click in another event generated by subscription , but this time, click Delete all events . Make sure all events generated by subscription have been deleted. On the navigation drawer (side menu) select Calendar . REGRESSION TEST : Repeat this process with different events types and make it works same way as the upcoming view . Add events On the upcoming view, click New event button. Make sure the add event form modal is displayed. Fill the form and click Save button. Make sure it works as expected and the new event is created. The upcoming view region should refresh and the new event should be displayed. REGRESSION TEST : Go to calendar month view and repeat the steps above. It should works same way as the upcoming view. Edit events On the upcoming view, click on the cog icon to edit an event. Make sure the event form modal is filled with the information from the event you choose. Edit something on the event, for example name... and click Save button.. Make sure the upcoming view refresh and the new data is displayed. REGRESSION TEST : Go to calendar month view and repeat the steps above. It should works same way as the upcoming view. Course filter On the upcoming view, please note the course selector on the calendar header (top left). It should display a label Upcoming events for: and a list of courses you are enrolled in. If it does not display you may enrol your user in a few courses. Select a course, make sure all course events related to that course are displayed. All other course events should be hidden. Now click New event button Make sure the form pre-selected type of event Course and the course you selected on the upcoming view is selected. Close the event form modal and select All courses on the course filter. It should display all events from all courses. Events keys fake block On upcoming view, please note on the right side a fake block called events keys which display the event types. Click in one of the event types, let's say user. Make sure all user events have been hidden. Now, click another type lets say site. Now, user and site event should be hidden. Click on those event types again and now make sure all events from that type are visible now. General All events should have an icon. Events description backgroup colour should match the ones on the fake event key block Every event should display the time of that event, and events in different day should have a link to that day. That link should redirect you to the respective day view.
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-59751-master-v2

      Description

      The calendar upcoming view needs to be converted to template and exporters

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Nov/17