Bug 454713 - Displaying updates is slow
Summary: Displaying updates is slow
Status: RESOLVED WORKSFORME
Alias: None
Product: Discover
Classification: Applications
Component: discover (show other bugs)
Version: 5.24.4
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dan Leinir Turthra Jensen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-01 20:28 UTC by P Fudd
Modified: 2022-07-02 04:36 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description P Fudd 2022-06-01 20:28:07 UTC
SUMMARY
As a user, when I see the "Security Updates Available" icon come on, I want to click on the icon, see what they are, and install them.  As it is now, when I click on the icon, the Discover app pauses for a couple of minutes to fetch updates before I can see what they are.

STEPS TO REPRODUCE
1. Click on the "Security Updates Available" icon.

OBSERVED RESULT
* The "Updates -- Discover" window pops up and shows "Fetching Updates..." with a progress bar that seems to instantly jump to 96.32% and stay there for minutes at a time before eventually showing the available update(s).

EXPECTED RESULT
* Since the system already knows there are updates available, it should be able to display them without having to wait for another update.
* If the "Security Updates Available" icon has been on for a while (days?), it could refresh the list of updates in the background.
* Progress bars should show progress.  Ideally they should move constantly and smoothly, and finally reach 100% when user input is needed.  They're even better if they are displayed with an estimated time of completion, so the user could decide if they had enough time to grab a coffee or similar.  
* If a progress bar freezes for any significant length of time, it's taken as a sign that the program has crashed and needs to be restarted.  

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Linux 35
KDE Plasma Version: 5.24.4
KDE Frameworks Version: ?
Qt Version: ?

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-06-02 17:05:28 UTC
What's probably happening is that one of the backends is hanging. In the past it's been Flatpak; see Bug 443555.

You can check to see if it's the Flatpak backend by running `plasma-discover --backends flatpak-backend` in a terminal window. If it hangs, then the Flatpak backend is the culprit. In this case, can you tell me what version of the AppStream library you have?

If it's not the Flatpak backend that's hanging, please also try the other ones, one by one:

plasma-discover --backends packagekit-backend
plasma-discover --backends fwupd-backend
plasma-discover --backends kns-backend
plasma-discover --backends snap-backend

Let me know which one is hanging.
Comment 2 Bug Janitor Service 2022-06-17 04:35:28 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Bug Janitor Service 2022-07-02 04:36:57 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!