Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2556

Decrease number of core_course_get_courses_by_field WS calls

    XMLWordPrintable

Details

    • Hide
      1. Install the app in a device and open the Network tab in Developer tools.
      2. Open the user dashboard and check that a WS call is made to get_courses_by_field with all course IDs.
      3. Now open a course and check that no WS call is made to get_courses_by_field.
      4. Perform a PTR in a course. Check that a WS call is made to get_courses_by_field with all course IDs.
      Show
      Install the app in a device and open the Network tab in Developer tools. Open the user dashboard and check that a WS call is made to get_courses_by_field with all course IDs. Now open a course and check that no WS call is made to get_courses_by_field. Perform a PTR in a course. Check that a WS call is made to get_courses_by_field with all course IDs.
    • MOODLE_35_STABLE
    • MOODLE_35_STABLE
    • Moodle Mobile 3.5.2

    Description

      Right now, when accessing a course we call core_course_get_courses_by_field with the course ID. We should try to detect if the user is enrolled in that course and, if so, use the whole list of courseIds since we should have cached that call.

      Attachments

        Activity

          People

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              10/Sep/18