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

Optimise how course fillters configuration is retrieved

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Tested
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7.2
    • Fix Version/s: None
    • Component/s: Others
    • Labels:
    • Testing Instructions:
      Hide

      This issue only needs to be tested in 1 device.

      1. Install the app in the device.
      2. Open the inspector/DevTools and go to the Network tab.
      3. Login in master site. Check that you see a request to core_filters_get_available_in_context with all the courses ids instead of a request per course. Please notice that you can see a single request with contextlevel=course and instanceid=1, this one is done to check which filters are enabled on the site.
      4. Now open the MM Dev Testing course. Check that you see a request to core_filters_get_available_in_context with all the blocks ids instead of a request per block.
      Show
      This issue only needs to be tested in 1 device. Install the app in the device. Open the inspector/DevTools and go to the Network tab. Login in master site. Check that you see a request to core_filters_get_available_in_context with all the courses ids instead of a request per course. Please notice that you can see a single request with contextlevel=course and instanceid=1, this one is done to check which filters are enabled on the site. Now open the MM Dev Testing course. Check that you see a request to core_filters_get_available_in_context with all the blocks ids instead of a request per block.
    • Affected Branches:
      MOODLE_37_STABLE
    • Sprint:
      Moodle App 3.8.0

      Description

      We should retrieve all the courses filter configuration in just one single request after retrieving all the courses the user is enrolled in.

      Right now, when you log-in into a site and go to the dashboard, there is one request per course to obtain the course filtesrs configuration. We should group all the requests into a single one (the WS supports handling multiple contexts) as it is done for activities within a course.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: