Bug 454521 - Installing Flatpaks, each dependency restarts the progressbar
Summary: Installing Flatpaks, each dependency restarts the progressbar
Status: RESOLVED DUPLICATE of bug 434948
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (show other bugs)
Version: 5.24.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2022-05-28 08:28 UTC by Marcello Massaro
Modified: 2022-09-23 19:44 UTC (History)
5 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 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 ***