Bug 398746

Summary: "Manage application" takes a long time to open the application in Discover
Product: [Applications] Discover Reporter: Antonio Rojas <arojas>
Component: discoverAssignee: Aleix Pol <aleixpol>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.13.90   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Antonio Rojas 2018-09-17 06:46:36 UTC
When clicking "Magage application" from kicker context menu, discover takes a really long time (1 minute here) to display the application. It seems that it doesn't do it until it's done checking for updates, which can take a long time.
Comment 1 Nate Graham 2018-09-18 01:57:46 UTC
Cannot reproduce with git master on Neon or 5.12.6 on Kubuntu 18.04. It's near-instant for me on these systems.
Comment 2 Antonio Rojas 2018-09-19 08:27:41 UTC
It depends on which backends and providers you have installed (in my case, the offending one is the knsrc from kalzium). The issue is not how long it takes, but the fact that nothing is displayed until the check for updates is finished for all backends (which may potentially take a long time).
Comment 3 Aleix Pol 2018-09-20 11:01:56 UTC
Git commit fb9320ae8b37182fae91bf31757fada44329b529 by Aleix Pol.
Committed on 20/09/2018 at 11:00.
Pushed by apol into branch 'Plasma/5.14'.

Don't wait for all backends to be initialized to trigger a query

Backends should be smart enough to take the query regardless of their
state.

M  +3    -3    discover/DiscoverObject.cpp

https://commits.kde.org/discover/fb9320ae8b37182fae91bf31757fada44329b529