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

Use related cache to load course modules during event export

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4
    • 3.5
    • Calendar
    • MOODLE_34_STABLE
    • MOODLE_35_STABLE
    • MDL-60963-master
    • Hide

      Test

      1. Log in as admin
      2. Create a course (C1)
      3. Enrol a user (t1) as a teacher in C1
      4. Create an assignment activity with
        • A due date in the future (default is one week)
        • An allow submissions from date
        • A cut-off date
      5. Create a choice activity with
        • An allow responses from date (in availability)
        • An allow responses until date sometime after the from date (in availability)
      6. Log in as t1
      7. View the calendar
      8. CONFIRM that you can see the open and close events for the choice activity
      9. CONFIRM that you can drag the open event to any day before the close event
      10. CONFIRM that you can drag the close event to any day after open event
      11. CONFIRM that you can see the due date event for the assignment activity
      12. CONFIRM that you can drag the event to any date between the allow submissions from date and the cut-off date
      Show
      Test Log in as admin Create a course (C1) Enrol a user (t1) as a teacher in C1 Create an assignment activity with A due date in the future (default is one week) An allow submissions from date A cut-off date Create a choice activity with An allow responses from date (in availability) An allow responses until date sometime after the from date (in availability) Log in as t1 View the calendar CONFIRM that you can see the open and close events for the choice activity CONFIRM that you can drag the open event to any day before the close event CONFIRM that you can drag the close event to any day after open event CONFIRM that you can see the due date event for the assignment activity CONFIRM that you can drag the event to any date between the allow submissions from date and the cut-off date

    Description

      Use the events related cache to batch load and cache the course module instances for activity events. Each instance may have multiple events. It would be better to load all of the modules up front and provide each of them to the exporter as required rather than load each module instance (potentially multiple times) as each event is exported.

      Attachments

        Issue Links

          Activity

            People

              ryanwyllie Ryan Wyllie
              ryanwyllie Ryan Wyllie
              Ankit Agarwal Ankit Agarwal
              David Monllaó David Monllaó
              David Monllaó David Monllaó
              Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Stevani Andolo
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17/May/18