CancelUpdate should emit a Cancelled signal

Bug #1365991 reported by John Lenton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Invalid
Wishlist
Barry Warsaw

Bug Description

to implement a corner case of the system updates notifications spec (wiki.ubuntu.com/SoftwareUpdates#Prompting) we need to emit a signal from CancelUpdate. Thus, Cancelled.

The use case is this: when a system update notification comes in, if a user has selected automatic download of updates, no notification is presented to the user and instead the download is initiated. Once the download finishes, then the notification is presented.

If, while the first download is being waited for, a second notification comes in, the first download should be canceled, and the process waiting for that download terminated; not doing so could lead to a large number of proccesses hanging around waiting for completion, and a large number of notifications presented in a thundering herd once it completes.

Tags: client
Revision history for this message
Barry Warsaw (barry) wrote :

From IRC: We will still continue to emit UpdateFailed if a download is in progress, but Cancelled will always be emitted.

Changed in ubuntu-system-image:
status: New → Triaged
importance: Undecided → Wishlist
assignee: nobody → Barry Warsaw (barry)
milestone: none → 2.4
tags: added: client
John Lenton (chipaca)
description: updated
Revision history for this message
Barry Warsaw (barry) wrote :

When both signals are emitted, order is unimportant. TBD: specify and guarantee an order or leave it unspecified?

Revision history for this message
Barry Warsaw (barry) wrote :

After further discussion, it is agreed that this new API is not necessary to support the UX we want.

Changed in ubuntu-system-image:
status: Triaged → 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.