Snap search results not in the same order as command line

Bug #1798228 reported by Robert Ancell on 2018-10-17
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-software (Ubuntu)
Robert Ancell
Robert Ancell
Robert Ancell

Bug Description

When searching in GNOME Software, the Snap results are not returned in the same order as the command line. This is due to classic snaps being considered a lower quality than strict snaps.

[Test Case]
1. Open GNOME Software
2. Search for "sky"

Expected result:
Snaps matching "sky" are returned, with the same order as the command line (Skype is first)

Observed result:
While mostly in the same order, some snaps are not (Skype is the last snap in the list, in eighth position).

[Regression Potential]
The fix is to set the "match value" of each Snap GsApp to be the order the results are returned in. This field is checked before the "kudo" field which is populated based on the confinement used.

Related branches

Changed in gnome-software (Ubuntu Cosmic):
importance: Undecided → Medium
Changed in gnome-software (Ubuntu Bionic):
importance: Undecided → Medium
Changed in gnome-software (Ubuntu Xenial):
importance: Undecided → Medium
Changed in gnome-software (Ubuntu Cosmic):
status: New → Fix Committed
Changed in gnome-software (Ubuntu Bionic):
status: New → Fix Committed
Changed in gnome-software (Ubuntu Xenial):
status: New → Won't Fix
Changed in gnome-software (Ubuntu Bionic):
assignee: nobody → Robert Ancell (robert-ancell)
Changed in gnome-software (Ubuntu Cosmic):
assignee: nobody → Robert Ancell (robert-ancell)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-software - 3.30.2-0ubuntu5

gnome-software (3.30.2-0ubuntu5) cosmic; urgency=medium

  * debian/patches/0003-Sort-snaps-before-other-apps.patch:
    - Fix snap search result ordering (LP: #1798228)

 -- Robert Ancell <email address hidden> Wed, 17 Oct 2018 14:05:06 +1300

Changed in gnome-software (Ubuntu Cosmic):
status: Fix Committed → Fix Released

Hello Robert, or anyone else affected,

Accepted gnome-software into bionic-proposed. The package will build now and be available at in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-bionic to verification-done-bionic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-bionic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-bionic
Will Cooke (willcooke) wrote :

Running gnome-software from proposed:

 apt-cache policy gnome-software
  Installed: 3.28.1-0ubuntu4.18.04.5
  Candidate: 3.28.1-0ubuntu4.18.04.5
  Version table:
 *** 3.28.1-0ubuntu4.18.04.5 500
        500 bionic-proposed/main amd64 Packages
        100 /var/lib/dpkg/status
     3.28.1-0ubuntu4.18.04.4 500
        500 bionic-updates/main amd64 Packages
     3.28.1-0ubuntu4 500
        500 bionic/main amd64 Packages

Opened g-s, searched for "Sky", and Skype was the top result, as is expected.


tags: added: verification-done-bionic
removed: verification-needed-bionic
tags: added: verification-done
removed: verification-needed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers