Closed Bug 812369 Opened 12 years ago Closed 12 years ago

[Apps] Check for sufficient storage before starting app download

Categories

(Firefox OS Graveyard :: Gaia::System, defect, P1)

Other
Gonk (Firefox OS)
defect

Tracking

(blocking-basecamp:+)

VERIFIED FIXED
B2G C2 (20nov-10dec)
blocking-basecamp +

People

(Reporter: jcarpenter, Assigned: julienw)

References

Details

(Keywords: feature, late-l10n)

Attachments

(1 file, 2 obsolete files)

AppInstall-020 As a user, once I confirm an app's installation, if that app requires a download in order to complete installation, I want the system to check that there is sufficient storage to download the necessary assets before initiating download, and warn me if there is not, so that I am informed of the failure to install, understand why, and know how to fix the problem. Enabled by: https://bugzilla.mozilla.org/show_bug.cgi?id=809948 This bug covers creating a prompt to notify user once the storage check fails. As per page 8 of the spec, here: https://www.dropbox.com/sh/b0kyykhzcfkpm8b/ReFTX_E72X
Blocks: app-install
Fernando, are you working on this?
Only on the Gecko side, so far.
blocking-basecamp: ? → +
Priority: -- → P1
Marking for C2, given this meets the criteria of known P1/P2 blocking-basecamp+ bugs at the end of C1.
Target Milestone: --- → B2G C2 (20nov-10dec)
in Bug 809948, it's said there is no need for a gaia patch. However, as I understand it, we should still display a notice to the user. Or are we already ? We'll receive a downloaderror event with an error "INSUFFICIENT_STORAGE". Ben, what do you think about this ?
(In reply to Julien Wajsberg [:julienw] [:everlong] from comment #4) > in Bug 809948, it's said there is no need for a gaia patch. I meant that there was no need for this patch -> https://bug809948.bugzilla.mozilla.org/attachment.cgi?id=681457 > However, as I understand it, we should still display a notice to the user. Indeed. We need to display the prompt that Josh mentions in comment 0
Assignee: ben → felash
Attached patch patch v1 (obsolete) (deleted) — Splinter Review
Attachment #685099 - Flags: review?(ben)
Comment on attachment 685099 [details] [diff] [review] patch v1 added stas for review as well because of locales changes
Attachment #685099 - Flags: review?(stas)
Attached patch patch v2 (obsolete) (deleted) — Splinter Review
sorry, fixed a very small gjslint issue
Attachment #685099 - Attachment is obsolete: true
Attachment #685099 - Flags: review?(stas)
Attachment #685099 - Flags: review?(ben)
Attachment #685142 - Flags: review?(ben)
Keywords: late-l10n
Comment on attachment 685142 [details] [diff] [review] patch v2 Review of attachment 685142 [details] [diff] [review]: ----------------------------------------------------------------- ::: apps/system/locales/system.en-US.properties @@ +76,5 @@ > stopDownloading=Stop downloading {{ app }}? > app-download-can-be-restarted=The download can be restarted later. > app-download-stop-button=Stop Download > +not-enough-space=Not enough space > +# this is not exactly like the design asked (they wanted two paragraph) nit: Please remove this comment ::: apps/system/test/unit/mock_modal_dialog.js @@ +5,5 @@ > + ], > + > + mPopulate: function mmd_mPopulate() { > + this.mMethods.forEach(function(methodName) { > + // we could probably put this method outside if we had a closure nit: please remove this comment
r+me with these nits We may need a follow up to handle other types of errors.
Attached patch patch v3 (deleted) — Splinter Review
follow-up to ben's review
Attachment #685142 - Attachment is obsolete: true
Attachment #685142 - Flags: review?(ben)
Attachment #685568 - Flags: review?(ben)
Attachment #685568 - Flags: review?(stas)
OS: Mac OS X → Gonk (Firefox OS)
Hardware: x86 → Other
Comment on attachment 685568 [details] [diff] [review] patch v3 r+me
Attachment #685568 - Flags: review?(ben) → review+
Comment on attachment 685568 [details] [diff] [review] patch v3 Review of attachment 685568 [details] [diff] [review]: ----------------------------------------------------------------- r=me, thanks.
Attachment #685568 - Flags: review?(stas) → review+
merged https://github.com/mozilla-b2g/gaia/pull/6660 (sorry Stas, I mispelled your first name...)
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
(In reply to Julien Wajsberg [:julienw] from comment #14) > (sorry Stas, I mispelled your first name...) No worries at all. Maybe I should implement a 'git stas' command ;) (Also, just to confuse everyone, staś is actually pronounced almost the same way as stash)
Whiteboard: [qa-]
Whiteboard: [qa-]
Keywords: verifyme
QA Contact: jsmith
Verified through today's smoke + P1 test case run for app install.
Status: RESOLVED → VERIFIED
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: