Bug 494781

Summary: No progress on "tasks" section while downloading Flatpak runtimes
Product: [Applications] Discover Reporter: Justin Zobel <justin>
Component: Flatpak BackendAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: 4wy78uwh, aleixpol, jgrulich, kdedev, nate, travier
Priority: NOR    
Version: master   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In: 6.3.0
Sentry Crash Report:

Description Justin Zobel 2024-10-14 22:44:32 UTC
SUMMARY
When downloading a flatpak app, the dependencies are not taken into account on the progress bar. This shows no activity at all while dependencies e.g. runtimes are installed.


STEPS TO REPRODUCE
1. Have no flatpaks installed
2. Use Discover to install kalk

OBSERVED RESULT
Tasks view shows no activity, no progress, no download speed while dependency is downloading. See system monitor to confirm downloads are happening via network usage.

EXPECTED RESULT
Dependencies are included in progress, speed shown. Alternatively, just say downloading dependencies until a full solution can be implemented.

SOFTWARE/OS VERSIONS
Operating System: KDE Linux a3f76e06
KDE Plasma Version: 6.2.80
KDE Frameworks Version: 6.8.0
Qt Version: 6.7.3
Kernel Version: 6.11.3-arch1-1 (64-bit)
Graphics Platform: offscreen
Processors: 8 x Intel(R) Core(TM) i5-10210U CPU @ 1.60GHz
Memory: 7.5 GiB of RAM
Comment 1 Nate Graham 2024-10-15 22:55:29 UTC
Can reproduce with current git master.
Comment 2 Bug Janitor Service 2024-11-12 08:27:52 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/970
Comment 3 Harald Sitter 2024-11-15 13:36:42 UTC
Git commit cda3796c5420b20d5aaa9b3502b9417c0b6e5a84 by Harald Sitter.
Committed on 15/11/2024 at 13:30.
Pushed by sitter into branch 'master'.

flatpak: try to tie runtimes to an app ref

this should allow status reporting to work correctly even though we
otherwise ignore runtimes. essentially we try to establish a mapping
from runtime to app ref and then treat the runtime as part of the app
transaction.

M  +44   -9    libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.cpp
M  +6    -1    libdiscover/backends/FlatpakBackend/FlatpakTransactionThread.h

https://invent.kde.org/plasma/discover/-/commit/cda3796c5420b20d5aaa9b3502b9417c0b6e5a84