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

Create an external function to get myoverview events for the timeline sort by dates view

    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. Run the unit tests in calendar/tests/externallib_test.php and ensure all pass
      2. Create some students in your moodle instance
      3. Create a course
      4. Create an assignment activity in the course
      5. Download the attached create_events.php script and edit it and set the $courseid variable to the id of the course you created and set the $assignid variable to the id of the assignment you created
        • Get the course id by viewing the course in moodle and get the id from the url
        • Get the assignment id by viewing the assignment activity in moodle and get the id from the url
      6. Move the create_events.php script into the root directory of your moodle install and then run it
      7. Log in as a student
      8. Add the myoverview block to your dashboard (if it isn't there already)
        • view the dashboard, click "customise this page" button and then click the "add block" link in the nav drawer
      9. After the page load you should see 20 events (Event 0 ... Event 19) in the Timeline -> sort by dates view
      10. Click the view more button and confirm more events are loaded and that none are duplicated. You should be able to load up to event 49.
      Show
      Run the unit tests in calendar/tests/externallib_test.php and ensure all pass Create some students in your moodle instance Create a course Create an assignment activity in the course Download the attached create_events.php script and edit it and set the $courseid variable to the id of the course you created and set the $assignid variable to the id of the assignment you created Get the course id by viewing the course in moodle and get the id from the url Get the assignment id by viewing the assignment activity in moodle and get the id from the url Move the create_events.php script into the root directory of your moodle install and then run it Log in as a student Add the myoverview block to your dashboard (if it isn't there already) view the dashboard, click "customise this page" button and then click the "add block" link in the nav drawer After the page load you should see 20 events (Event 0 ... Event 19) in the Timeline -> sort by dates view Click the view more button and confirm more events are loaded and that none are duplicated. You should be able to load up to event 49.
    • Affected Branches:
      MOODLE_33_STABLE
    • Pull Master Branch:
      MDL-57502-master-3
    • Sprint:
      3.3 Project Team Sprint 1, 3.3 Project Team Sprint 2

      Description

      Create an external function that return the calendar events for the timeline sort by dates view (other external functions will be addressed in separate issues). The external function will likely use the API added in MDL-57496.

      The function is primarily for the sort by dates view however is not limited to that. A generic function would be nice.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: