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

    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_35_STABLE
    • Fixed Branches:
      MOODLE_35_STABLE
    • Sprint:
      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

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Pau Ferrer
            Integrator:
            Juan Leyva
            Tester:
            Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              10/Sep/18