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)
Tracking
(blocking-b2g:-, b2g18+ fixed)
RESOLVED
FIXED
blocking-b2g | - |
People
(Reporter: julienw, Assigned: julienw)
References
Details
Attachments
(1 file)
3.44 KB,
patch
|
etienne
:
review+
bajaj
:
approval-gaia-v1+
|
Details | Diff | Splinter Review |
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.
Updated•13 years ago
|
Blocks: b2g-app-updates
Comment 1•13 years ago
|
||
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?
Assignee | ||
Comment 2•13 years ago
|
||
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?
Comment 3•13 years ago
|
||
In that case, I would suggest tracking this.
blocking-b2g: tef? → ---
tracking-b2g18:
--- → ?
Updated•13 years ago
|
Assignee | ||
Updated•13 years ago
|
blocking-b2g: --- → leo?
Updated•13 years ago
|
blocking-b2g: leo? → -
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → felash
Assignee | ||
Comment 4•12 years ago
|
||
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 5•12 years ago
|
||
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+
Assignee | ||
Comment 6•12 years ago
|
||
master: 76516f9fe75640875a2a71607a83a59287fdd004
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•12 years ago
|
||
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)
Assignee | ||
Updated•12 years ago
|
Flags: in-testsuite+
Updated•12 years ago
|
status-b2g18:
--- → affected
Updated•12 years ago
|
Attachment #734126 -
Flags: approval-gaia-v1?(21) → approval-gaia-v1+
Updated•12 years ago
|
QA Contact: jsmith
Comment 8•12 years ago
|
||
Uplifted commit 76516f9fe75640875a2a71607a83a59287fdd004 as:
v1-train: 3c402b7b14dfbd71498847bf5126fadc608f0eae
You need to log in
before you can comment on or make changes to this bug.
Description
•