After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 709121 - Update software updates logic
Update software updates logic
Status: RESOLVED FIXED
Product: gnome-software
Classification: Applications
Component: General
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2013-09-30 17:56 UTC by Allan Day
Modified: 2013-11-02 04:22 UTC
See Also:
GNOME target: ---
GNOME version: 3.9/3.10


Attachments
logic diagram (101.80 KB, image/png)
2013-09-30 17:56 UTC, Allan Day
  Details
incomplete patch (11.01 KB, patch)
2013-10-26 23:28 UTC, Matthias Clasen
none Details | Review
complete patch (16.87 KB, patch)
2013-10-27 03:49 UTC, Matthias Clasen
none Details | Review
Download updates (23.02 KB, patch)
2013-10-29 04:00 UTC, Matthias Clasen
committed Details | Review

Description Allan Day 2013-09-30 17:56:53 UTC
Created attachment 256126 [details]
logic diagram

Now that we are using offline updates for real, we need to change the way that software updates (and their associated notifications) are scheduled. This includes:

Since we are preparing updates before notifying the user about them, it makes sense to remind each day after the updates are downloaded about them being ready, for example (rather than waiting a week between updates, as we do now).

The attached diagram shows some ideas for how it could work.
Comment 1 Matthias Clasen 2013-10-02 15:01:41 UTC
We have the basics covered in 3.10:

- no double notifications
- security updates get notified without delay

Richard said that he wants to avoid more drastic changes to the notification / update downloading logic in 3.10. Moving off the 3.10.1 list
Comment 2 Matthias Clasen 2013-10-26 23:28:52 UTC
Created attachment 258193 [details] [review]
incomplete patch
Comment 3 Matthias Clasen 2013-10-27 03:49:04 UTC
Created attachment 258201 [details] [review]
complete patch
Comment 4 Richard Hughes 2013-10-28 17:07:11 UTC
Looks good in general. The only thing I'm concerned about is we would be downloading updates on mobile broadband and potentially costing the user a lot of cash. In PkControl we network status enum that we probably should use.
Comment 5 Matthias Clasen 2013-10-28 17:22:26 UTC
I didn't notice the code dealing with that in the updates plugin. I'll look again and add it when I get back to this. Thanks for the review !
Comment 6 Matthias Clasen 2013-10-29 04:00:21 UTC
Created attachment 258392 [details] [review]
Download updates

This moves more functionality from the gsd updates plugin
here:

* Notify about successful or unsuccessful offline updates
  15 seconds after start.
* Monitor for available offline updates and notify about
  them, once per hour.
* Refresh the cache once per day, after 6am.
* If important updates are available, or updates have not
  been installed for at least 7 days, download all
  available updates. We rely on PackageKit to prepare
  an offline update when updates have been downloaded.
* Avoid mobile networks for cache refresh and downloads.
Comment 7 Richard Hughes 2013-10-29 13:26:33 UTC
Review of attachment 258392 [details] [review]:

I think i'd rather the PackageKit proxy-setting bits split off into another file; it's logically different functionality from the update monitor. After that, it looks good to push, thanks.
Comment 8 Matthias Clasen 2013-11-02 04:22:48 UTC
Attachment 258392 [details] pushed as 774a67b - Download updates