Closed Bug 837193 Opened 13 years ago Closed 12 years ago

At update, after a downloaderror, we should check the downloadAvailable property

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:-, b2g18+ fixed)

RESOLVED FIXED
blocking-b2g -
Tracking Status
b2g18 + fixed

People

(Reporter: julienw, Assigned: julienw)

References

Details

Attachments

(1 file)

The Update Manager assumes that if there was a download available, and there is an error, then a download is still available. So we're not removing the notification and we're not even checking this property again. We should. Also, I've seen that the update manager merely checks for "installState === 'installed'", however an installed app can also have a state 'updating'. The actual test should be "installState !== 'pending'" instead. It would be nice that we fix this in the process. I'm nominating TEF because we saw in Bug 836909 that after some errors we don't have a downloadavailable any more, and so we should remove the app from the notification. So this is visible by the user.
Not clear that this should block, can QA confirm what workarounds exist here and what the risk is to the user regarding being offered downloads? If this is just a notification sticking around and doesn't prevent later offerings of downloads we won't block here.
Flags: needinfo?
Bug 836909 landed a gecko check so now there won't be any problem if the user tries to download it again. This is just a notification staying there until the phone is rebooted, and later updates will still be displayed. So I agree with not blocking on this. However, if this is fixed by a patch, it would be nice to have this uplifted.
Flags: needinfo?
In that case, I would suggest tracking this.
blocking-b2g: tef? → ---
tracking-b2g18: --- → ?
Blocks: 830051
blocking-b2g: --- → leo?
blocking-b2g: leo? → -
Assignee: nobody → felash
Depends on: 858833
Attached patch patch v1Splinter Review
see also https://github.com/mozilla-b2g/gaia/pull/9026 (note: the PR contains also the commit for Bug 858118). If downloadAvailable is false after an error, it means the error is unrecoverable and we don't want to bug the user until the next update check. --- apps/system/js/updatable.js | 6 +++++- apps/system/test/unit/mock_app.js | 1 - apps/system/test/unit/updatable_test.js | 12 ++++++++++++ 3 files changed, 17 insertions(+), 2 deletions(-)
Attachment #734126 - Flags: review?(etienne)
Comment on attachment 734126 [details] [diff] [review] patch v1 Review of attachment 734126 [details] [diff] [review]: ----------------------------------------------------------------- If possible let's land the PR re-enabling the system tests in travis before sending this one :)
Attachment #734126 - Flags: review?(etienne) → review+
master: 76516f9fe75640875a2a71607a83a59287fdd004
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment on attachment 734126 [details] [diff] [review] patch v1 NOTE: Please see https://wiki.mozilla.org/Release_Management/B2G_Landing to better understand the B2G approval process and landings. [Approval Request Comment] Bug caused by (feature/regressing bug #): - User impact if declined: When a unrecoverable errors happen, the update notification should be removed so that the user is not bugged anymore until the next update cycle. Without this patch the update notification would stay forever. Testing completed: yes Risk to taking this patch (and alternatives if risky): low, small change and this code is heavily unit tested. String or UUID changes made by this patch: none
Attachment #734126 - Flags: approval-gaia-v1?(21)
Flags: in-testsuite+
Keywords: verifyme
Attachment #734126 - Flags: approval-gaia-v1?(21) → approval-gaia-v1+
QA Contact: jsmith
Keywords: verifyme
Uplifted commit 76516f9fe75640875a2a71607a83a59287fdd004 as: v1-train: 3c402b7b14dfbd71498847bf5126fadc608f0eae
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: