Bug 482534 - Discover installs oldest version of plasma widgets
Summary: Discover installs oldest version of plasma widgets
Status: ASSIGNED
Alias: None
Product: Discover
Classification: Applications
Component: KNewStuff Backend (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2024-03-06 11:52 UTC by Luis Bocanegra
Modified: 2024-05-13 13:06 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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