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

Decrease network requests in section view

    XMLWordPrintable

    Details

    • Testing Instructions:
      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 .
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Sprint:
      Moodle Mobile 3.2.1

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              28/Feb/17