Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-938 SCORM player
  3. MOBILE-1342

Pre-fetch Web Services requests when the SCORM package is going to be downloaded

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8
    • Fix Version/s: 2.8
    • Component/s: SCORM add-on
    • Labels:
    • Testing Instructions:
      Hide
      1. Add a new account in the app (just to be sure you don't have any cached data).
      2. Click the prefetch button next to a SCORM and wait for the download to be finished.
      3. Go offline and access the SCORM entry page. Check that all the data is rendered.
      4. Go online and now download at least 1 SCORM using a section's download all button.
      5. Go offline and access one of the downloaded SCORMs entry page. Check that all the data is rendered.
      Show
      Add a new account in the app (just to be sure you don't have any cached data). Click the prefetch button next to a SCORM and wait for the download to be finished. Go offline and access the SCORM entry page. Check that all the data is rendered. Go online and now download at least 1 SCORM using a section's download all button. Go offline and access one of the downloaded SCORMs entry page. Check that all the data is rendered.
    • Affected Branches:
      MOODLE_28_STABLE
    • Fixed Branches:
      MOODLE_28_STABLE

      Description

      Every time the SCORM zip package is downloaded we need to pre-fetch some data. This is because we need this data to set-up the TOC and run-time API for the user.
      So basically what we need is:

      • First, call to get_scorm_attempt_count to obtain the last attempt (completed or not)
      • Call to get_scorm_user_data to obtain all the data for the attempt
      • Call get_scorm_scoes to obtain all the SCOes for all the organizations (one call for obtaining all the orgs and then one call per-organization)
      • Call get_scorm_sco_tracks for each SCO in all organizations (attempt = 0 - last attempt)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dpalou Dani Palou
              Reporter:
              jleyva Juan Leyva
              Peer reviewer:
              Juan Leyva Juan Leyva
              Integrator:
              Juan Leyva Juan Leyva
              Tester:
              Juan Leyva Juan Leyva
              Participants:
              Component watchers:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Fix Release Date:
                22/Jan/16