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

Invalidate prefetch WS calls when doing a pull-to-refresh in course contents

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course with a SCORM, an offline quiz and a wiki.
      2. Prefetch the SCORM in the app and, right after that, upload a different ZIP packages in that SCORM. Perform a PTR in the section or in the list of sections and check that now a refresh icon appears next to the SCORM.
      3. Prefetch the quiz in the app and, right after that, go to Moodle web and answer one question in that quiz (make sure to change page or leave the quiz to save it). Perform a PTR in the section or in the list of sections and check that now a refresh icon appears next to the quiz.
      4. Prefetch the wiki in the app and, right after that, go to Moodle web and edit/create a page. Perform a PTR in the section or in the list of sections and check that now a refresh icon appears next to the wiki.
      Show
      Create a course with a SCORM, an offline quiz and a wiki. Prefetch the SCORM in the app and, right after that, upload a different ZIP packages in that SCORM. Perform a PTR in the section or in the list of sections and check that now a refresh icon appears next to the SCORM. Prefetch the quiz in the app and, right after that, go to Moodle web and answer one question in that quiz (make sure to change page or leave the quiz to save it). Perform a PTR in the section or in the list of sections and check that now a refresh icon appears next to the quiz. Prefetch the wiki in the app and, right after that, go to Moodle web and edit/create a page. Perform a PTR in the section or in the list of sections and check that now a refresh icon appears next to the wiki.
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Sprint:
      Moodle Mobile 3.1.2

      Description

      To detect the status of some modules we need to perform WS calls (SCORM, Quiz, Wiki, ...). If one of these modules is updated, performing a Pull To Refresh won't update the status because the WS data will be retrieved from cache, the only way is to wait for the cache to expire or do a Pull To Refresh in the module's entry page.

      We should have an invalidate function in the prefetch delegate to invalidate this WS data. We should invalidate it when the user performs a Pull To Refresh in sections list or in a section. We should only invalidate the affected modules.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              27/Jul/16

                Time Tracking

                Estimated:
                Original Estimate - 1 day, 30 minutes
                1d 30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours Time Not Required
                2h