Bug 399571 - [KNS] Update button can take a long time to get enabled when any backends are slow to update
Summary: [KNS] Update button can take a long time to get enabled when any backends are...
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: KNewStuff Backend (show other bugs)
Version: 5.14.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords:
: 399869 402287 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-10-09 18:42 UTC by Antonio Rojas
Modified: 2019-01-10 19:53 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antonio Rojas 2018-10-09 18:42:28 UTC
SUMMARY
This is similar to bug 398746, but for the updates view. The "Update" button doesn't get enabled until all backends have finished checking for updates. If some kns provider has a bogus URL (like kalzium does), this can take up to one minute until it times out.

SOFTWARE VERSIONS
(available in About System)
KDE Plasma Version: 5.14
KDE Frameworks Version: 5.50
Qt Version: 5.12

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2018-10-10 17:17:31 UTC
Not sure it would make sense to do an update before all backends have finished updating. Instead maybe we should focus on the underlying problem and improve the situation when a KNS provider has a bad URL.
Comment 2 Aleix Pol 2018-10-11 23:00:22 UTC
https://phabricator.kde.org/D16146
Comment 3 Aleix Pol 2018-10-19 19:05:40 UTC
*** Bug 399869 has been marked as a duplicate of this bug. ***
Comment 4 Simone 2018-10-23 13:13:56 UTC
Same problem here.

Trivial workaround: Removing the kns file from the system (e.g., /etc/xdg/kalzium.knsrc on Arch) or moving it somewhere else.

What about making KNS updates optional? I mean, all the KNS providers could be listed in "settings" with a checkbox to enable/disable them, just like other sources (e.g. Flatpak). If a provider becomes unavailable, they could be easily disabled from the UI (without removing system files).
Comment 5 Aleix Pol 2018-12-19 17:00:07 UTC
*** Bug 402287 has been marked as a duplicate of this bug. ***
Comment 6 Aleix Pol 2019-01-09 18:06:07 UTC
This issue was fixed with:
https://phabricator.kde.org/D17593
https://phabricator.kde.org/D17594

If it resurfaces we can decide to start timeout-ing backends.