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

Improve external_util::validate_courses to prevent double course fetching

    XMLWordPrintable

    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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              fred Frédéric Massart
              Reporter:
              fred Frédéric Massart
              Peer reviewer:
              Juan Leyva
              Integrator:
              Dan Poltawski
              Tester:
              CiBoT
              Participants:
              Component watchers:
              Juan Leyva, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

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