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

Improve download size warnings

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor Minor
    • 3.7.0
    • 3.6.0, 3.6.1
    • Offline
    • Hide

      This should be tested on at least 1 iOS device and 1 Android device.  Ideally it should be tested on an Android device which uses a storage quota, and one without (see comments).  You will need a enough files to fill up the device's available storage. All devices should have access to WiFi and mobile data.

      • Create a course containing a resource with a small file (<10MB), a resource with a medium file (between 10 and 100MB), a resource with a large file (>100MB), and a resource with a very large file (> 300MB).
      • Open the app on the device and go to the course.
      • Ensure WiFi is turned off, but you are still online using mobile data.
      • Attempt to download the small file.
        • The file should download with no prompting
      • Attempt to download the medium file.
        • You should see a confirmation dialogue with the following message: "You are not currently connected to WiFi. You are about to download [size]. You currently have about [available] free space. Are you sure you want to continue?"
      • Confirm the download
        • The file should download
      • Attempt to download the large file.
        • You should see a confirmation dialogue with the following message: "You are not currently connected to WiFi. You are about to download [size]. You currently have about [available] free space. Are you sure you want to continue?"
      • Confirm the download
        • The file should download
      • Delete all downloaded files
      • Turn WiFi on
      • Attempt to download the small file.
        • The file should download with no prompting
      • Attempt to download the medium file.
        • The file should download with no prompting
      • Confirm the download
        • The file should download
      • Attempt to download the large file.
        • You should see a confirmation dialogue with the following message: "You are about to download [size]. You currently have about [available] free space. Are you sure you want to continue?"
      • Confirm the download
        • The file should download

      Android device without storage quota:

      • Fill up the device's storage so that the reported free space is less that 60MB.
      • Attempt to download the medium file
        • You should see an alert with the following message "You are trying to download [size]. This will leave your device with insufficent space to operate normally. Please clear some storage space first".
        • The file will not download.

      Android device with storage quota:

      • Fill up the device's storage to the quota limit (you can verify this because you will get a "remote write failed: Quota exceeded" error when trying to copy a file with `adb push`.)
      • Attempt to download the large file.
        • You should see a confirmation dialogue with the following message: "You are about to download [size]. You currently have about [available] free space. Are you sure you want to continue?"
      • Confirm the download
        • The file will start to download, then you will see the following error:  "Your device could not allocate space to save this download. It may be reserving space for app and system updates. Please clear some storage space first."

      iPhone:

      • Attempt to download the large file
        • You should see a confirmation dialogue with the following message: "You are about to download [size]. Are you sure you want to continue?"
      • Fill up the device's storage so that there is less than 600MB free.
      • Attempt to download the very large file.
        • You should see a confirmation dialogue with the following message: "You are about to download [size]. You currently have about [available] free space. Are you sure you want to continue?"
      • Fill up the device's storage so that there is less than 500MB free.
      • Attempt to download the large file
        • You should see a confirmation dialogue with the following message: "You are about to download [size]. You currently have about [available] free space. Are you sure you want to continue?"
      • Fill up the device's storage so that the reported free space is less that 60MB.
      • Attempt to download the medium file
        • You should see a confirmation dialogue with the following message: "You are about to download [size]. You currently have about [available] free space. Are you sure you want to continue?"
      Show
      This should be tested on at least 1 iOS device and 1 Android device.  Ideally it should be tested on an Android device which uses a storage quota, and one without (see comments).  You will need a enough files to fill up the device's available storage. All devices should have access to WiFi and mobile data. Create a course containing a resource with a small file (<10MB), a resource with a medium file (between 10 and 100MB), a resource with a large file (>100MB), and a resource with a very large file (> 300MB). Open the app on the device and go to the course. Ensure WiFi is turned off, but you are still online using mobile data. Attempt to download the small file. The file should download with no prompting Attempt to download the medium file. You should see a confirmation dialogue with the following message: "You are not currently connected to WiFi. You are about to download [size] . You currently have about  [available] free space. Are you sure you want to continue?" Confirm the download The file should download Attempt to download the large file. You should see a confirmation dialogue with the following message: "You are not currently connected to WiFi. You are about to download [size] . You currently have about  [available] free space. Are you sure you want to continue?" Confirm the download The file should download Delete all downloaded files Turn WiFi on Attempt to download the small file. The file should download with no prompting Attempt to download the medium file. The file should download with no prompting Confirm the download The file should download Attempt to download the large file. You should see a confirmation dialogue with the following message: "You are about to download [size] . You currently have about  [available] free space. Are you sure you want to continue?" Confirm the download The file should download Android device without storage quota: Fill up the device's storage so that the reported free space is less that 60MB. Attempt to download the medium file You should see an alert with the following message "You are trying to download [size] . This will leave your device with insufficent space to operate normally. Please clear some storage space first". The file will not download. Android device with storage quota: Fill up the device's storage to the quota limit (you can verify this because you will get a "remote write failed: Quota exceeded" error when trying to copy a file with `adb push`.) Attempt to download the large file. You should see a confirmation dialogue with the following message: "You are about to download [size] . You currently have about  [available] free space. Are you sure you want to continue?" Confirm the download The file will start to download, then you will see the following error:  "Your device could not allocate space to save this download. It may be reserving space for app and system updates. Please clear some storage space first." iPhone: Attempt to download the large file You should see a confirmation dialogue with the following message: "You are about to download [size] . Are you sure you want to continue?" Fill up the device's storage so that there is less than 600MB free. Attempt to download the very large file. You should see a confirmation dialogue with the following message: "You are about to download [size] . You currently have about [available] free space. Are you sure you want to continue?" Fill up the device's storage so that there is less than 500MB free. Attempt to download the large file You should see a confirmation dialogue with the following message: "You are about to download [size] . You currently have about [available] free space. Are you sure you want to continue?" Fill up the device's storage so that the reported free space is less that 60MB. Attempt to download the medium file You should see a confirmation dialogue with the following message: "You are about to download [size] . You currently have about [available] free space. Are you sure you want to continue?"
    • MOODLE_36_STABLE
    • MOODLE_37_STABLE
    •  MOBILE-2939_integration
    • Moodle App 3.7.0

      We would like to make the file size warnings when a user selects a download.  Ideally we would like the following:

      • If a user is on WiFi and tries to download a large file, a warning is displayed including the file size and their available storage. If the file size is greater than the available storage, they are not able to continue.
      • If the user is not on Wifi and tries to download a large file, a warning is displayed containing the file size, their available storage, and indicating that they are not on WiFi.

            marxjohnson Mark Johnson
            marxjohnson Mark Johnson
            Dani Palou Dani Palou
            Juan Leyva Juan Leyva
            Dani Palou Dani Palou
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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