Additional errors message in system update ui

Bug #1215901 reported by Didier Roche-Tolomelli
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ubuntu-system-settings (Ubuntu)
Won't Fix
Medium
Unassigned

Bug Description

The update ui had to deliver additional update messages.

Attention from design will be needed as we had to add some additional labels in case of multiple errors:

* if we can't even check if an update is available (like no network connection), we show display the error message where "Checking for update…" was displayed with a "Retry" button.

    <https://wiki.ubuntu.com/SoftwareUpdates#presenting-mobile>: "* “Connect to the Internet to check for updates.”, automatically retrying a manual check if an Internet connection begins before leaving the screen; * “The update server is not responding. Try again later.” ... (There is no need for a “Retry” button, in the first case because the check will happen automatically when the problem is fixed, and in the others because the check will happen automatically when you return to the Updates screen and it’s probably a bad idea to try sooner.)"

* If we can't get any estimate for the download time from the message, the "About x seconds remaining" become: "No estimate for the download"

    <https://wiki.ubuntu.com/SoftwareUpdates#presenting-mobile>: "(Time remaining should not be shown, because it is too unpredictable on mobile connections.)"

* The following items are presented in the same spot than the "Download failed:" case:

** If we can't pause a download, the message is:
"Pause failed": as primary message and then the reason delivered by the daemon as a secondary message

    <https://wiki.ubuntu.com/SoftwareUpdates#presenting-mobile>: "“Pause” for a download (automatic or manual) or installation in progress, insensitive if it is no longer pauseable (and reporting a RecoverableError if it should have been)"

** If we can't install and reboot, the message is:
"Apply update failed:" as primary message and then the reason delivered by the daemon as a secondary message

    <https://wiki.ubuntu.com/SoftwareUpdates#phone-progress>: "If installation fails, an alert should appear, with title “Installation Failed”, text depending on the error, and an “OK” button that returns to the update listing."

** If we can't contact the daemon for any reason, those error messages become (depending on the case):
"Can't apply the current update (can't contact service)" when clicking on install & reboot

    <https://wiki.ubuntu.com/SoftwareUpdates#phone-progress>: "If installation fails, an alert should appear, with title “Installation Failed”, text depending on the error, and an “OK” button that returns to the update listing."

"Can't cancel current request (can't contact service)" when retrying from scratch an update

"Can't pause current request (can't contact service)" when pausing a download

    <https://wiki.ubuntu.com/SoftwareUpdates#presenting-mobile>: "“Pause” for a download (automatic or manual) or installation in progress, insensitive if it is no longer pauseable (and reporting a RecoverableError if it should have been)"

See also bug 1282499, about how these error messages are presented.

Tags: updates
Changed in ubuntu-system-settings:
assignee: nobody → Matthew Paul Thomas (mpt)
status: New → Confirmed
Iain Lane (laney)
Changed in ubuntu-system-settings (Ubuntu):
assignee: nobody → Matthew Paul Thomas (mpt)
status: New → Confirmed
no longer affects: ubuntu-system-settings
Changed in ubuntu-system-settings (Ubuntu):
status: Confirmed → In Progress
Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → Low
Revision history for this message
Sebastien Bacher (seb128) wrote :

it would also be good to specify the UI layout (if an update fails to be applied, should the user be sent back to the list of updates with a "retry" button?) where should the error message be displayed?

description: updated
Changed in ubuntu-system-settings (Ubuntu):
status: In Progress → Confirmed
Changed in ubuntu-system-settings (Ubuntu):
status: Confirmed → In Progress
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

Okay, I've now defined behavior for all these cases except "retrying from scratch an update", because I don't quite understand what that means, or why it should be shown differently from installing an update for the first time.

I've proposed the same behavior for "If we can't pause a download" as for "Can't pause current request", and the same behavior for "If we can't install and reboot" as for "If we can't contact the daemon for any reason". If you can think of a good reason to present either of those pairs differently, let me know that too.

Changed in ubuntu-system-settings (Ubuntu):
status: In Progress → Triaged
assignee: Matthew Paul Thomas (mpt) → nobody
Changed in ubuntu-system-settings (Ubuntu):
assignee: nobody → Diego Sarmentero (diegosarmentero)
tags: added: updates
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Currently if there is no network connection the Checking for updates spins continuously and never completes.

Changed in ubuntu-system-settings (Ubuntu):
importance: Low → Medium
Changed in ubuntu-system-settings (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Manuel de la Peña (mandel) wrote :

Taking over this bug since diego does not longer work on it.

Changed in ubuntu-system-settings (Ubuntu):
assignee: Diego Sarmentero (diegosarmentero) → Manuel de la Peña (mandel)
Changed in ubuntu-system-settings (Ubuntu):
status: In Progress → New
assignee: Manuel de la Peña (mandel) → nobody
Revision history for this message
Jonas G. Drange (jonas-drange) wrote :

The updates rewrite has tried implementing most error messages defined in the spec, but it's unclear whether the rewrite also addressed the “additional” (??) mentioned in this bug.

Please file a separate bug for each error message.

Changed in ubuntu-system-settings (Ubuntu):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.