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

Detect if resources are no longer accessible when offline use is disabled

XMLWordPrintable

    • Hide

      This issue only needs to be tested in 1 device.

      1. As admin in web, create a course with one resource of each type: book, folder, imscp, page, resource (file), url. It's recommended to put them all in the same section.
      2. Disable "Offline use" in the site.
      3. In the app, login as a student and open the resources in online. Check they all load fine.
      4. Once opened, go back to the course.
      5. As admin/teacher in web, hide the whole section so the student can no longer access the resource.
      6. In the app, open the resources. Check that you always see an error saying that the module wasn't found.
      Show
      This issue only needs to be tested in 1 device. As admin in web, create a course with one resource of each type: book, folder, imscp, page, resource (file), url. It's recommended to put them all in the same section. Disable "Offline use" in the site. In the app, login as a student and open the resources in online. Check they all load fine. Once opened, go back to the course. As admin/teacher in web, hide the whole section so the student can no longer access the resource. In the app, open the resources. Check that you always see an error saying that the module wasn't found.
    • MOODLE_39_STABLE
    • MOODLE_400_STABLE
    • Moodle App 4.0

      Reported by Shamim:

      1. As admin in web, create a course with at least 1 resource (e.g. a page) and 1 activity (e.g. a choice).
      2. Disable "Offline use" in the site.
      3. In the app, login as a student and open the resource and the activity. Check they both load fine.
      4. Once opened, go back to the course.
      5. As admin/teacher, hide both modules so the student can no longer access them.
      6. In the app, click the resource. Check that it still opens fine (ideally it should display an error).
      7. Go back to the course and click the activity. Check that it displays an error.

      The reason is that we still allow downloading files even if offline use is disabled (to prevent refactor all resources), and WS calls are optional in resources so the app doesn't know that the resource is no longer accessible. IMO we shouldn't ignore WS calls errors if the error comes from Moodle.

        1. screenshot-5.png
          screenshot-5.png
          65 kB
        2. screenshot-4.png
          screenshot-4.png
          62 kB
        3. screenshot-3.png
          screenshot-3.png
          72 kB
        4. screenshot-2.png
          screenshot-2.png
          156 kB
        5. screenshot-1.png
          screenshot-1.png
          100 kB

            dpalou Dani Palou
            dpalou Dani Palou
            Noel De Martin Noel De Martin
            Noel De Martin Noel De Martin
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

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