← Back to team overview

touch-packages team mailing list archive

[Bug 1337864] Re: Apps missing in some store categories

 

This is already possible via the search API:

{
  "_links": {
    "first": {
      "href": "https://search.apps.ubuntu.com/api/v1/search?q=department%3A%22games%22&page=1&size=2";
    },
    "last": {
      "href": "https://search.apps.ubuntu.com/api/v1/search?q=department%3A%22games%22&page=35&size=2";
    },
    "next": {
      "href": "https://search.apps.ubuntu.com/api/v1/search?q=department%3A%22games%22&page=2&size=2";
    },
    "self": {
      "href": "https://search.apps.ubuntu.com/api/v1/search?q=department%3A%22games%22&page=1&size=2";
    },
    "curies": [
      {
        "templated": true,
        "name": "clickindex",
        "href": "https://search.apps.ubuntu.com/docs/relations.html{#rel}";
      }
    ]
  },
  "_embedded": {
    "clickindex:recommendation": [],
    "clickindex:package": [
      {
        "price": 0,
        "icon_url": "https://myapps.developer.ubuntu.com/site_media/appmedia/2013/09/solitaire-games64.png";,
        "title": "Solitaire Games",
        "name": "com.ubuntu.developer.labsin.solitaire-games",
        "_links": {
          "self": {
            "href": "https://search.apps.ubuntu.com/api/v1/package/com.ubuntu.developer.labsin.solitaire-games";
          }
        },
        "publisher": "Sam Segers",
        "content": "application"
      },
      {
        "price": 0,
        "icon_url": "https://myapps.developer.ubuntu.com/site_media/appmedia/2014/06/rockpaperscissorslogo_256.png";,
        "title": "Rock Paper Scissors",
        "name": "com.ubuntu.developer.11ubuntucg.rockpaperscissors",
        "_links": {
          "self": {
            "href": "https://search.apps.ubuntu.com/api/v1/package/com.ubuntu.developer.11ubuntucg.rockpaperscissors";
          }
        },
        "publisher": "Brian Jaury",
        "content": "application"
      }
    ]
  }
}

However, I accept that this might not be optimal for a couple of
reasons:

 - It requires a separate call to the index
 - It requires pagination support on the client

The second point can be mitigated by adjusting the size parameter
accordingly to get things off the ground, but that's a temporary work-
around - ultimately, the scope is going to have to support pagination,
otherwise we'll be returning potentially thousands of results in a
single response.  It's not just the network usage that's a problem here,
but the memory and processing overhead on the client.

The first point can be addressed on the server side by embedding
clickindex:package resources in the department response.  This is, in
fact, the long-term plan.  There was an unfortunate mix-up in
terminology that led to "browsing search results by department" being
misinterpreted as "browsing for arbitrary packages by department" - the
former of which is not currently supported, the latter being expressly
permitted - and so this embedding was de-scoped for RTM.  I'm happy to
do the work to support it now, with the caveat that pagination support
will be added later.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to unity-scope-click in
Ubuntu.
https://bugs.launchpad.net/bugs/1337864

Title:
  Apps missing in some store categories

Status in “unity-scope-click” package in Ubuntu:
  Confirmed

Bug description:
  Since the recent introduction of departments in the Ubuntu Store,
  there are several applications missing. For instance the email client
  "Dekko" cannot be seen in the Internet->mail category. Flashback is
  another app that seems to be missing from the Sound & Video section.

  There are several departments shown which are empty and I suspect they
  are missing apps as well.

  By manual searching for these by app names, they are returned in the
  search results indicating they are present in the stores.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scope-click/+bug/1337864/+subscriptions