Bug 383473 - Discover lacks a progress indicator for package updates
Summary: Discover lacks a progress indicator for package updates
Status: RESOLVED UPSTREAM
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.9.4
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
: 380043 (view as bug list)
Depends on:
Blocks:
 
Reported: 2017-08-14 03:03 UTC by Nate Graham
Modified: 2017-10-20 03:31 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nate Graham 2017-08-14 03:03:45 UTC
When you use Discover (version 5.9.4, in Kubuntu 17.04) to install package updates, there is no overall progress indicator. There should be one.
Comment 1 Nate Graham 2017-08-14 19:41:11 UTC
I'll mention that there is a thing that says "Tasks (0%)", but it's very small, textual instead of visual (should be a progress bar or something) and the "0%" text never updates until the overall task is finished.
Comment 2 Nate Graham 2017-08-19 05:01:20 UTC
Works in 5.10.x: that UI element correctly updates, with a moving progress bar and a percentage that changes as the package updates are applied.
Comment 3 Nate Graham 2017-08-19 14:27:10 UTC
It doesn't always work quite right, but that's being actively worked on.
Comment 4 Nate Graham 2017-09-02 13:45:41 UTC
We've had reports of this still being broken in Neon.
Comment 5 Aleix Pol 2017-09-04 15:18:08 UTC
Would it be possible to get a video of the brokenness? It would be helpful to understand the problem and find a solution.
Comment 6 Nate Graham 2017-09-04 16:30:53 UTC
Here's a video taken using Neon dev (stable branches). No overall progress bar appears: https://webmshare.com/m8Z8q

Using an unstable branch Neon, an overall progress bar does appears but is not accurate: It starts at 0%, goes up to 5%, then down again, and finally disappears once the update is finished without ever reaching 100%. I'll see if I can get a video of that.
Comment 7 Aleix Pol 2017-09-05 14:40:36 UTC
Went back into looking at the issue, it's tracked here:
https://github.com/hughsie/PackageKit/issues/159
Comment 8 Nate Graham 2017-09-05 15:20:27 UTC
Looks like it, thanks.
Comment 9 Aleix Pol 2017-09-06 15:14:34 UTC
Git commit b092b3b60b6c3175bb0901130b6493c0166c8cd5 by Aleix Pol.
Committed on 06/09/2017 at 15:13.
Pushed by apol into branch 'master'.

Improve progress bar in some cases

Updates consist on first downloading then installing. This patch will make
sure the progress doesn't jump back to 0 when it finishes downloading and
starts updating.

M  +24   -4    libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp
M  +1    -1    libdiscover/backends/PackageKitBackend/PackageKitUpdater.h

https://commits.kde.org/discover/b092b3b60b6c3175bb0901130b6493c0166c8cd5
Comment 10 Nate Graham 2017-10-20 03:31:59 UTC
*** Bug 380043 has been marked as a duplicate of this bug. ***