Bug 423821

Summary: Discover always shows snaps last
Product: [Applications] Discover Reporter: Dylan McDougall <dylanmcdougall>
Component: discoverAssignee: Dan Leinir Turthra Jensen <leinir>
Status: CONFIRMED ---    
Severity: normal CC: aleixpol, nate
Priority: NOR    
Version First Reported In: 5.18.5   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Dylan McDougall 2020-07-03 03:29:35 UTC
SUMMARY
When searching in Applications, snap packages will always show up last even if the exact name of the snap was searched.

STEPS TO REPRODUCE
1. Search in Applications for the name of a snap such as 'oh my giraffe' or 'Notepad-Plus-Plus'

OBSERVED RESULT
The relevant snap application shows up at the very bottom of the returned results below several unrelated packages

EXPECTED RESULT
The relevant snap application shows up at or near the top of the list

SOFTWARE/OS VERSIONS
OS: KDE Neon 5.19
KDE Plasma Version: 1.19.2 
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2
Comment 1 Nate Graham 2020-07-03 14:30:31 UTC
If you search using `appstreamcli search 'oh my giraffe'` on the command line, is the same behavior observed?
Comment 2 Dylan McDougall 2020-07-03 15:12:36 UTC
Snap applications do not show up when searching with appsteamcli
Comment 3 Nate Graham 2020-07-03 17:33:38 UTC
Oh right, yeah. That's probably the problem.
Comment 4 Aleix Pol 2020-07-30 22:48:39 UTC
The reason is that snap takes a bit longer to answer, which surely isn't a satisfactory answer. Will need to investigate how to improve the situation. Thanks for reporting!