[sdk] improve download progress bar percentage

Bug #1365060 reported by Giorgio Venturi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu UI Toolkit
Invalid
Medium
Tim Peeters
Ubuntu UX
Invalid
Medium
Matthew Paul Thomas
ubuntu-system-settings (Ubuntu)
Invalid
Medium
Matthew Paul Thomas

Bug Description

When a progress bar is used to display download progress, there seems to be no progress when the downloading starts, and it quickly completes in the last few seconds. In addition, when the progress bar indicates it is completed the process seems to be still pending .

This seems to be related to bug #1227777
https://bugs.launchpad.net/webbrowser-app/+bug/1227777

***Proposed Solution***
When achieving the intent requires more than just downloading, but also waiting for server response and installing the package, make sure the progress bar reflects the overall progress.

Note: In most cases (e.g. downloading an app), a percentage should not be displayed to indicate progress, especially when the progress bar is only an estimation/approximation.

Tags: ota-2
no longer affects: webbrowser-app
Changed in ubuntu-ux:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Giorgio Venturi (giorgio-venturi)
description: updated
description: updated
tags: added: rtm-14
John Lea (johnlea)
Changed in ubuntu-ux:
status: Confirmed → Triaged
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

This bug is filed under both the toolkit and System Settings, but needs very different design work for each.

An engineer fixing this for the toolkit will want to know: How should the toolkit determine whether a particular progress bar is "in most cases" or not? (I suggest: Never show a percentage, or any other text, inside a progress bar. Text against a moving background would be hard to read even if it wasn't a quickly-changing number in dark grey on orange.)

An engineer implementing this for software updates in particular will want to know:

1. Should updates that have already downloaded, before you choose to install them, have their progress bar partially pre-filled?

2. How much of the progress bar should be allocated to the DNS lookup, how much to the HTTP request, how much to waiting for the server to respond, how much to the download, and how much to the installation?

3. Since waiting for the server is an indeterminate task, how should that portion of the progress bar fill? Linearly over 5 seconds? 10? Asymptotically?

Changed in ubuntu-system-settings:
assignee: nobody → Matthew Paul Thomas (mpt)
status: New → Confirmed
Revision history for this message
Victor Tuson Palau (vtuson) wrote :

not an rtm blocker

tags: removed: rtm-14
tags: added: ota-2
Zsombor Egri (zsombi)
Changed in ubuntu-ui-toolkit:
importance: Undecided → Medium
assignee: nobody → Tim Peeters (tpeeters)
status: New → Triaged
Revision history for this message
Tim Peeters (tpeeters) wrote :

This is not a UITK bug. The ProgressBar requires the app to set the "value" (between minimumValue and maximumValue), and how this value is computed is up to the app only.

Changed in ubuntu-ui-toolkit:
status: Triaged → Invalid
Revision history for this message
Tim Peeters (tpeeters) wrote :

^so the bug needs to be fixed in system-settings app.

Changed in ubuntu-system-settings:
importance: Undecided → Medium
affects: ubuntu-system-settings → ubuntu-system-settings (Ubuntu)
Changed in ubuntu-ux:
assignee: Giorgio Venturi (giorgio-venturi) → nobody
assignee: nobody → Jouni Helminen (jounihelminen)
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

This is a UITK bug, because a software update is just one of many examples where it is not accurate for a progress bar to display a percentage. Another common example is downloading a Web page: the browser hardly ever knows ahead of time the total size of the resources in the page, so it's smoothest if it compensates for probable late discovery of new load tasks by using an accelerating curve, for which a percentage would be meaningless. Another example is syncing an Imap account: a mail client doesn't know how many messages it will need to download, or whether any of them contain huge attachments, until long after the sync has started. Even when a percentage is accurate, it's both redundant and hard to read; but often it isn't even accurate.

Changed in ubuntu-ux:
assignee: Jouni Helminen (jounihelminen) → nobody
assignee: nobody → Jamie Young (jamiedawsonyoung)
Changed in ubuntu-ux:
assignee: Jamie Young (jamiedawsonyoung) → Matthew Paul Thomas (mpt)
Femma (femma)
Changed in ubuntu-ux:
assignee: Matthew Paul Thomas (mpt) → Femma (femma)
status: Triaged → In Progress
Revision history for this message
Matthew Paul Thomas (mpt) wrote :

This bug report was confused from the beginning. As Tim said, how a progress bar's value is calculated is up to the app. Some progress bars are used for downloads, and some aren't, and the toolkit does not know -- and has no reason to know -- which is which.

If particular download progress bars are inaccurate, they should be reported individually, for example bug 1227777, bug 1429022, and bug 1450144. Percentages in progress bars is a separate issue that I've added to the toolkit specification.

Changed in ubuntu-system-settings (Ubuntu):
status: Confirmed → Invalid
Femma (femma)
Changed in ubuntu-ux:
assignee: Femma (femma) → Matthew Paul Thomas (mpt)
Changed in ubuntu-ux:
status: In Progress → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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