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

Create an external function to get myoverview events for a user grouped by courses

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3
    • Fix Version/s: None
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      Hide
      1. Create 3 (or more) courses and enrol a user as a student
      2. Create calendar events in all courses except one (to test empty case)
        • If the events callbacks have been implemented by any modules then create an instance of the module and set values to create the events according to the module
        • Otherwise you can use the attached create_events.php script to generate a bunch of junk events in the DB. You'll need to have an assignment module created in each course. Edit the create_events.php script and change the $courseid and $assignid to match your course and assignment instance ids respectively. The script will create 50 events spanning each of the categories
      3. Log in as the student and go to your dashboard
      4. Add the "myoverview" block, if it isn't already there
      5. Confirm the events you create above are showing in the timeline -> sort by dates view
      6. Click the "view more" button at the bottom and confirm that more events are loaded (and they aren't duplicates).
      7. Click the "sort by courses" button
      8. Confirm events are loaded in each of the courses blocks that you created events for
      9. Confirm that the course you didn't create events for has no events displayed in it
      10. Confirm that the "view more" button loads more events for only that course (assuming there are more events to load).
      11. Confirm that the "view more" button is disabled once all events for that course have been loaded
      Show
      Create 3 (or more) courses and enrol a user as a student Create calendar events in all courses except one (to test empty case) If the events callbacks have been implemented by any modules then create an instance of the module and set values to create the events according to the module Otherwise you can use the attached create_events.php script to generate a bunch of junk events in the DB. You'll need to have an assignment module created in each course. Edit the create_events.php script and change the $courseid and $assignid to match your course and assignment instance ids respectively. The script will create 50 events spanning each of the categories Log in as the student and go to your dashboard Add the "myoverview" block, if it isn't already there Confirm the events you create above are showing in the timeline -> sort by dates view Click the "view more" button at the bottom and confirm that more events are loaded (and they aren't duplicates). Click the "sort by courses" button Confirm events are loaded in each of the courses blocks that you created events for Confirm that the course you didn't create events for has no events displayed in it Confirm that the "view more" button loads more events for only that course (assuming there are more events to load). Confirm that the "view more" button is disabled once all events for that course have been loaded
    • Affected Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-57503-master
    • Sprint:
      3.3 Project Team Sprint 3

      Description

      As the summary says.

        Attachments

          Activity

            People

            Assignee:
            ryanwyllie Ryan Wyllie
            Reporter:
            fred Frédéric Massart
            Peer reviewer:
            Simey Lameze
            Participants:
            Component watchers:
            Andrew Nicols, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: