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

Improve external_util::validate_courses to prevent double course fetching

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.2
    • Fix Version/s: 3.1
    • Component/s: Web Services
    • Labels:

      Description

      There are external functions in which we retrieve the list of courses a user has access to, and the we call validate_courses which fetches the course again. We should pass an array of prefetched courses to validate_courses to prevent unnecessary double fetching.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Fix Release Date:
                    23/May/16