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

Decrease network requests in section view

XMLWordPrintable

    • Hide
      1. In Moodle web, create a course with at least 1 wiki, 1 glossary and 1 forum (they can be empty). Add 1 empty folder too.
      2. In the app, go to the course and check that the empty folder shows the download icon.
      3. Go to a course section with wiki/glossary/forum. Open the network tools and perform a PTR. Check that the app doesn't do any request to mod_forum_get_forums_by_courses, mod_glossary_get_glossaries_by_courses or mod_wiki_get_wikis_by_courses.
      Show
      In Moodle web, create a course with at least 1 wiki, 1 glossary and 1 forum (they can be empty). Add 1 empty folder too. In the app, go to the course and check that the empty folder shows the download icon. Go to a course section with wiki/glossary/forum. Open the network tools and perform a PTR. Check that the app doesn't do any request to mod_forum_get_forums_by_courses , mod_glossary_get_glossaries_by_courses or mod_wiki_get_wikis_by_courses .
    • MOODLE_32_STABLE
    • MOODLE_32_STABLE
    • Moodle Mobile 3.2.1

      We detected 2 ways to decrease them:

      1. Mark resources as downloadable by default. Right now we load the module contents and check if the resource has contents. If we always treat them as downloadable we can spare 1 request per module. This means that empty folders will be shown as downloadable.
      2. If the user performs a PTR and we have the WebService to check for updates, there's no need to invalidate some data to calculate the activity status. These invalidates sometimes call a WS to get required data.

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

              Created:
              Updated:
              Resolved:

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