Should provide an API to query the timestamp of the most recent CheckForUpdates

Bug #1280169 reported by Sebastien Bacher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu system image
Fix Released
Medium
Barry Warsaw

Bug Description

The design on https://wiki.ubuntu.com/SoftwareUpdates specify

"If push notification of updates has not been implemented, and you visit the “Updates” screen when at least 30 minutes has passed since the last check for updates, a new check should be triggered"

To implement that we need to know when the most recent check happened though. The caching would better be done by the service because the check can be called by different clients.

Tags: client

Related branches

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

Note that this will require a D-Bus API change.

tags: added: client
Changed in ubuntu-system-image:
status: New → Triaged
importance: Undecided → Wishlist
Barry Warsaw (barry)
summary: - Should provide an API to query the timpestamp of the most recent
+ Should provide an API to query the timestamp of the most recent
CheckForUpdates
Barry Warsaw (barry)
Changed in ubuntu-system-image:
importance: Wishlist → Medium
Barry Warsaw (barry)
Changed in ubuntu-system-image:
assignee: nobody → Barry Warsaw (barry)
milestone: none → 2.3
status: Triaged → In Progress
Revision history for this message
Barry Warsaw (barry) wrote :

Here's what I'm planning to implement. For backward compatibility, I will add a new method to the D-Bus API. There will be no changes to existing methods. The new method will be called Information() and will return a dictionary mapping strings to strings. From https://wiki.ubuntu.com/ImageBasedUpgrades/Client

Information()
Like Info(), but returns extended information that includes the last time a CheckForUpdate() was performed. Returns a dictionary of strings-to-strings, where the following keys are currently defined:

current_build_number - The current build number, as a string.
device_name - The device name.
channel_name - The device's current channel.
last_update_date - ISO 8601 UTC format string, with second resolution, e.g. "YYYY-MM-DDTHH:MM:SS"
version_details - comma-separated key-value pairs providing additional version details, e.g. ubuntu=123,mako=456,custom=789
last_check_date - ISO 8601 UTC format string, with second resolution, e.g. "YYYY-MM-DDTHH:MM:SS"

Note that `last_check_date` is the new bit of information that closes this bug. Also note that the version_details value is different than in the Info() method. The client calling Information() must split the returned value itself.

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

Technically, `last_check_date` will be set when an UpdateAvailableStatus signal is sent, but they are logically equivalent.

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