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

Reduce WS requests in the user dashboard

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6.0
    • 3.5.2
    • Others
    • Hide
      1. In a site with MDL-63523 applied, enable "courselistshortnames".
      2. Create a course with several sections and using topics format and set an image to the course.
      3. Inside a course, highlight a section.
      4. In the app, login with a user enrolled in a course.
      5. Go to My Overview if you aren't there already, open the developer tools and clear the Network tab.
      6. Perform a PTR in My Overview. Check that there is no request to core_course_get_courses_by_field. Check that you see the course image. Check that the course name contains both the fullname and shortname.
      7. Clear the network tab again and open the course. Check that the highlighted section is selected and that there is no request to core_course_get_courses_by_field.
      8. In a site 3.5 or lower, repeat the steps 5-7 without checking the Network tab (just verify that everything works).
      Show
      In a site with  MDL-63523 applied, enable "courselistshortnames". Create a course with several sections and using topics format and set an image to the course. Inside a course, highlight a section. In the app, login with a user enrolled in a course. Go to My Overview if you aren't there already, open the developer tools and clear the Network tab. Perform a PTR in My Overview. Check that there is no request to  core_course_get_courses_by_field . Check that you see the course image. Check that the course name contains both the fullname and shortname. Clear the network tab again and open the course. Check that the highlighted section is selected and that there is no request to  core_course_get_courses_by_field . In a site 3.5 or lower, repeat the steps 5-7 without checking the Network tab (just verify that everything works).
    • MOODLE_35_STABLE
    • MOODLE_36_STABLE
    • Moodle Mobile 3.6.0

      Thanks to MDL-63523 starting Moodle 3.6 we'll be able to reduce the WS requests:

      • To retrieve the completion status (completed or not) for courses (to be done MOBILE-2655)
      • To retrieve the display name for courses
      • To retrieve the course thumbnail without extra queries to courses_by_field
      • To retrieve the course marker

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

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.