What seems to be occurring here:
1. GNOME Shell sends the search term to GNOME Software.
2. GNOME Software does a search for this by passing the search term to each 
plugin.
3. Both the appstream and the snap plugin return results.
4. The IDs are sent back to the Shell.
5. The shell asks for additional metadata on these IDs.
6. For some reason, we don't get data for the snaps, but we do for the 
appstream IDs.
7. Only some of the metadata is returned to the Shell.
8. The Shell ignores all the results because not all the metadata is there

js/ui/search.js:

  if (metas.length != metasNeeded.length) {
    log('Wrong number of result metas returned by search provider ' + 
this.provider.id +
        ': expected ' + metasNeeded.length + ' but got ' + metas.length);
    callback(false);
    return;
  }

So if we fix bug 1713929 this would probably not be an issue, but the
specific cause of this bug is the Shell.

** Package changed: gnome-software (Ubuntu) => gnome-shell (Ubuntu)

** Summary changed:

- snapd plugin blocks shell search provider to return results
+ Shell ignores all search results if not all metadata available

** Project changed: gnome-software => gnome-shell

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-software in Ubuntu.
https://bugs.launchpad.net/bugs/1713931

Title:
  Shell ignores all search results if not all metadata available

Status in GNOME Shell:
  Confirmed
Status in gnome-shell package in Ubuntu:
  New

Bug description:
  Using current artful, g-s 3.25.91 and snapd-glib 1.18, looking for
  "vlc" or "gimp" in the gnome-shell overview returns a "no result",
  after deleting the snapd plugin and restarting g-s it lists them fine

  bug #1713929 is about the fact that there are no snap listed, this bug
  about the fact that one plugin can/do block others from returning
  results

To manage notifications about this bug go to:
https://bugs.launchpad.net/gnome-shell/+bug/1713931/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to