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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1713931

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

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to