Plumb progress through DBus signals

Bug #1204618 reported by Barry Warsaw
14
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Ubuntu system image
Fix Released
Critical
Barry Warsaw
system-image (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The DBus API needs progress signals.

Tags: client
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: 0.9 → 1.0
Barry Warsaw (barry)
Changed in ubuntu-system-image:
milestone: 1.0 → none
Barry Warsaw (barry)
Changed in ubuntu-system-image:
importance: High → Critical
assignee: nobody → Barry Warsaw (barry)
milestone: none → 1.8
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: Triaged → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

As per spec, no progress will be sent while downloads are occurring which are only used to decide if an update is available. When the actual update files are being downloaded, progress from the u-d-m will be plumbed through (after conversion, see below) to UpdateProgress signals as per the s-i D-Bus spec. Also as per spec, we always start by sending an UpdateProgress(0, 0) signal, so you are guaranteed to at least get that. The rest is up to u-d-m.

Note that u-d-m gives us different progress values than the u/i wants from s-i. u-d-m gives us bytes-received and total-bytes. s-i gives percentage (as integer from 0 to 100) and eta. We cannot currently calculate an accurate eta, so again as per spec, we'll always send an eta of 0, although the percentage will be correct, floored to an integer. If the u/i wants an accurate (as possible) eta, let's open a separate bug on that.

Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: In Progress → Fix Committed
Barry Warsaw (barry)
Changed in ubuntu-system-image:
status: Fix Committed → Fix Released
Barry Warsaw (barry)
Changed in system-image (Ubuntu):
status: New → Fix Released
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.