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

Use related cache to load course modules during event export

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5
    • Component/s: Calendar
    • Labels:
    • Testing Instructions:
      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
    • Affected Branches:
      MOODLE_34_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Pull Master Branch:
      MDL-60963-master

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  17/May/18