Bug 397486 - Add sort by date installed, for the Installed software view
Summary: Add sort by date installed, for the Installed software view
Status: CONFIRMED
Alias: None
Product: Discover
Classification: Applications
Component: Installed page (show other bugs)
Version: unspecified
Platform: unspecified All
: NOR wishlist
Target Milestone: ---
Assignee: Aleix Pol
URL:
Keywords: usability
: 426325 462287 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-08-15 13:23 UTC by Omar
Modified: 2025-03-27 20:39 UTC (History)
9 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 Omar 2018-08-15 13:23:24 UTC
I would be really helpful if we could sort the installed software by the last installation date.
Sometime I go on installing many programs for a specific task -say a timer- to test them, and then install all of them keeping the one I want to settle for. If I am dong this from discover right now I would have to retain all the names, search for everyone, and remove. A list sorted with the installed date would be extremely helpful.
Comment 1 Nate Graham 2018-08-21 20:08:49 UTC
A great idea! In fact this should maybe even should be the default sort order for the Installed page.

This would require adding a new role for "date installed" to ResourcesProxyModel::m_roles (https://cgit.kde.org/discover.git/tree/libdiscover/resources/ResourcesProxyModel.cpp#n40)

...and then changing the sorting order in the QML file for the Installed page to use that (https://cgit.kde.org/discover.git/tree/discover/qml/InstalledPage.qml#n11).

Would you like to try your hand at this, Omar?
Comment 2 Omar 2018-08-22 17:41:57 UTC
Oh Wow, Yes I would definitely like to get my hand dirty. School is just starting, so I will see what can I do this weekend. 
I have a limited experience with C++ and a non existence one with QML, but I develop in other languages, and have a history of picking up things pretty quickly. So I will try my best :D 


PS: I just came here this week because of your blog posts, thanks.
Comment 3 Nate Graham 2018-08-22 17:47:57 UTC
(In reply to Omar from comment #2)
> Oh Wow, Yes I would definitely like to get my hand dirty. School is just
> starting, so I will see what can I do this weekend. 
> I have a limited experience with C++ and a non existence one with QML, but I
> develop in other languages, and have a history of picking up things pretty
> quickly. So I will try my best :D 
> 
> 
> PS: I just came here this week because of your blog posts, thanks.
Yay!

Don't worry about the QML, that part's trivial. The real work is in the C++ backend that implements the Resources model :the model simply needs to be taught about and then publicly expose the app installation dates, at which point telling the QML file to use that for the sort order is a one-line change.
Comment 4 Aleix Pol 2018-09-03 10:41:02 UTC
The real work is getting the installation date. I don't think we have the information easily available.
Comment 5 Omar 2018-09-04 07:52:15 UTC
(In reply to Nate Graham from comment #3)

Sorry, I don't think I would be able to tackle this soon. I am currently a senior in high school and very busy right now, especial because the learning curve would require a full dedicated weekend for me. You (or anyone) can go ahead and implement this for the benefit of everyone.
Comment 6 Omar 2018-09-04 07:55:15 UTC
(In reply to Aleix Pol from comment #4)
> The real work is getting the installation date. I don't think we have the
> information easily available.

It seems hacky, but we could at least start with newly installed software that was installed directly from discover.
Comment 7 Aleix Pol 2018-10-11 17:02:23 UTC
Let's stand on information we actually have.
Comment 8 Nate Graham 2018-10-11 22:33:32 UTC
Is the problem that PackageKit, Snap, and Flatpak can't provide this information?

Even if they can't, wouldn't we be able to have Discover store the information itself for apps installed using Discover?
Comment 9 Aleix Pol 2018-10-12 02:00:43 UTC
Neither of these provide this information, as far as I know.
I don't think it's worth adding a workaround.
Comment 10 Omar 2018-10-13 05:59:04 UTC
> start with newly installed software that was installed directly from discover

it will be just a matter of time (months/years) when everybody would install a new system and all user-installed software will be indexed.

or we could find a way to enable this only on newly installed systems
Comment 11 Nate Graham 2022-11-30 19:40:26 UTC
*** Bug 426325 has been marked as a duplicate of this bug. ***
Comment 12 Nate Graham 2022-11-30 19:40:29 UTC
*** Bug 462287 has been marked as a duplicate of this bug. ***
Comment 13 Nate Graham 2022-11-30 19:40:57 UTC
Re-opening as there seems to be substantial user demand.
Comment 14 Andy 2023-01-17 17:15:35 UTC
Just saw this thread while I was reporting this EXACT WISH. This new sort parameter would help me immensely. I lived in IT for 30 years - how can I help??
Comment 15 Sampath 2023-01-17 19:50:17 UTC
(In reply to Andy from comment #14)
> Just saw this thread while I was reporting this EXACT WISH. This new sort
> parameter would help me immensely. I lived in IT for 30 years - how can I
> help??

You could start with https://community.kde.org/Get_Involved and If you can do some coding then you can start https://community.kde.org/Get_Involved/development. If you are looking for a developer then this guy can help https://nicco.love/ He has youtube channel where he explains how to setup development environment and other technical videos