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

    • 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.
    • MOODLE_31_STABLE
    • MOODLE_31_STABLE
    • Moodle Mobile 3.1.2

      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.

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

              Created:
              Updated:
              Resolved:

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

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