Bug 454521

Summary: Installing Flatpaks, each dependency restarts the progressbar
Product: [Applications] Discover Reporter: Marcello Massaro <dev>
Component: Flatpak BackendAssignee: Dan Leinir Turthra Jensen <leinir>
Status: RESOLVED DUPLICATE    
Severity: normal CC: aleixpol, jgrulich, nate, silopolis, zilla
Priority: NOR Keywords: usability
Version: 5.24.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marcello Massaro 2022-05-28 08:28:14 UTC
SUMMARY
I'm not even too sure if this is the problem, but when installing a Flatpak, the progressbar in the "Install" button (and the one in the left sidebar under "Tasks") I think that each installed dependency is tracked independently, and "resets" the progress each time. It's a bit awkward.

STEPS TO REPRODUCE
1. Install any Flatpak

OBSERVED RESULT
The install progressbar goes from 0% to 100% multiple times.

EXPECTED RESULT
If the progressbar reaches 100%, I expect the package to be *fully* installed, not only one of its parts.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.24
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.13.0-44-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 15,6 GiB of RAM
Graphics Processor: NV134
Comment 1 Jonathan Wakely 2022-09-13 14:24:48 UTC
(In reply to Marcello Massaro from comment #0)
> EXPECTED RESULT
> If the progressbar reaches 100%, I expect the package to be *fully*
> installed, not only one of its parts.

Agreed. As a user, I have no idea there are multiple dependencies being installed here, I just see a single progress bar that keeps jumping back to 0%. It would be more helpful to either show something indicating which dependency the progress bar relates to (so you can see that it's not just restarting, but making actual progress on different packages) or divide 100% by the number of packages, and e.g. use 0-33% for the first one, then 34-66 for the second, and 67-100 for the last one, so it is only 100% complete when actually complete.

Possibly related, it seems that the flatpak backend will install multiple updates if there is more than one available. E.g. I had signal-desktop.deb 5.56.0 installed, and Discover told me there was a 5.57.0 update, but after it finishes (with multiple progress bar restarts) it appears to have installed both 5.57.0 and 5.58.0. In that case, it's not even restarting the progress bar for dependencies, it's an entirely separate update, isn't it?
Comment 2 Nate Graham 2022-09-23 19:44:11 UTC

*** This bug has been marked as a duplicate of bug 434948 ***