Bug 459207 - While a slow backend is still loading, allow packages to be "installed"; queue them up and install them once the backend has loaded
Summary: While a slow backend is still loading, allow packages to be "installed"; queu...
Status: CONFIRMED
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
: 458462 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-16 09:51 UTC by fw.smit01
Modified: 2023-04-03 15:55 UTC (History)
4 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 fw.smit01 2022-09-16 09:51:11 UTC
SUMMARY
When opening discover after not having used it for couple hours or more, it starts with fetching updates. Because I have quite a few repositories enabled this takes a while. While it's fetching updates, discover is less usable.


STEPS TO REPRODUCE
1. Open discover

OBSERVED RESULT
The install buttons of non-flatpak applications say "Loading". You cannot click them yet. When searching for an application the flatpak and non-flatpak applications are not always grouped correctly. 

EXPECTED RESULT
The experience should not be worse while fetching updates. It should even be possible to click the install button, even if it waits for the fetching to finish.

SUGGESTION
A way to avoid this issue is do the update fetching in the background. This way you don't notice it as a user. Currently discover does search for updates in the background, but when clicking that icon, it still needs to "fetch updates". 

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 36
(available in About System)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.97.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION

Below you can see the enabled remotes/repositories. These are all enabled in discover.
friso@student-laptop ~> flatpak remotes
Name    Options
fedora  system,oci
flathub system
friso@student-laptop ~> dnf repolist
repo id                                                                                                      repo name
fedora                                                                                                       Fedora 36 - x86_64
fedora-cisco-openh264                                                                                        Fedora 36 openh264 (From Cisco) - x86_64
fedora-modular                                                                                               Fedora Modular 36 - x86_64
rpmfusion-free                                                                                               RPM Fusion for Fedora 36 - Free
rpmfusion-free-updates                                                                                       RPM Fusion for Fedora 36 - Free - Updates
rpmfusion-nonfree                                                                                            RPM Fusion for Fedora 36 - Nonfree
rpmfusion-nonfree-updates                                                                                    RPM Fusion for Fedora 36 - Nonfree - Updates
updates                                                                                                      Fedora 36 - x86_64 - Updates
updates-modular                                                                                              Fedora Modular 36 - x86_64 - Updates
Comment 1 Nate Graham 2022-09-19 20:05:09 UTC
*** Bug 458462 has been marked as a duplicate of this bug. ***
Comment 2 Aleix Pol 2023-03-31 17:18:18 UTC
It should work fine, maybe it's a better thing to fix. What do you mean exactly by "less usable"?

Can you maybe check if it's flatpak or dnf slowing it down?

 You can do it by running "plasma-discover --backends packagekit" and "plasma-discover --backends flatpak" respectively.
Comment 3 fw.smit01 2023-04-01 12:32:12 UTC
(In reply to Aleix Pol from comment #2)
> It should work fine, maybe it's a better thing to fix. What do you mean
> exactly by "less usable"?

You cannot install applications while the dnf backend in loading. I would like it if you could click install and it would install after the backend has loaded. It seems that it has become faster since posting this bug, so it's less of a problem.

> Can you maybe check if it's flatpak or dnf slowing it down?
> 
>  You can do it by running "plasma-discover --backends packagekit" and
> "plasma-discover --backends flatpak" respectively.

It only happens with the packagekit backend. That makes sense, since only the dnf packages are "loading".