Bug 482534

Summary: Discover installs oldest version of plasma widgets
Product: [Applications] Discover Reporter: Luis Bocanegra <luisbocanegra17b>
Component: KNewStuff BackendAssignee: Plasma Bugs List <plasma-bugs-null>
Status: ASSIGNED ---    
Severity: normal CC: aleixpol, dashonwwIII, leinir, luisbocanegra17b, nate
Priority: NOR Keywords: qt6
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Luis Bocanegra 2024-03-06 11:52:07 UTC
SUMMARY
Installing plasma widgets that have multiple files doesn't let the user choose which one and installs the oldest version instead of latest one

STEPS TO REPRODUCE
1. Go to discover > Plasma Addons > Plasma Widgets > 
2. Search for "Panel Spacer Extended" (url is https://store.kde.org/p/2128047)
3. Install the widget
4. Check which version of the widget was installed by adding the widget from the panel or inspecting the files

OBSERVED RESULT
The downloaded version is the oldest version available instead of latest one

EXPECTED RESULT
Latest version should be installed, not sure if discover should also allow choosing an option to install like from the panel?

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.0.80
KDE Frameworks Version: 6.0.0
Qt Version: 6.7.0
Graphics Platform: Wayland
Comment 1 Nate Graham 2024-03-06 19:35:01 UTC
The problem is that the KNS API has no concept of versioning. It's a significant omission IMO.

That said I guess we could work around this by grabbing the most recently uploaded/modified file instead of the oldest one.
Comment 2 Bug Janitor Service 2024-05-13 13:06:33 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/841