← Back to team overview

touch-packages team mailing list archive

[Bug 1359177] [NEW] Showing results when available

 

You have been subscribed to a public bug:

Sometimes, the server doesn't return the results immediately. In some
cases, it even starts to send information, and keep producing it during
time (because to produce the desirable set of results imply hitting the
backend several times, which takes time).

For example, the results delivery times may be:

  Result 0 (2855 msec)
  Result 1 (3339 msec)
  Result 2 (3343 msec)
  ...
  Result 9 (6871 msec)

Currently, the client is waiting for everything to finish, and shows the
whole page at once (with empty images, though, and after 7seconds, it
starts to retrieve the images and show them).

The ideal result is that the first result appear at 2.8s, the second at
3.3s, etc (and that the images start to be retrieved at *that* time).

Pawel told in a mail that these results are handled by SmartScopesClient
proxy in scopes middleware, and unfortunately it waits for all results
before processing them and pushing them to the shell (via a "dummy"
local smart scope).

Marcus added that currently HttpClient is to request uri, and wait for
the response. He should change the way QNetworkAccessManager is used to
support this.

Thanks!

** Affects: unity-scopes-api (Ubuntu)
     Importance: High
     Assignee: Pawel Stolowski (stolowski)
         Status: Fix Committed


** Tags: rtm
-- 
Showing results when available
https://bugs.launchpad.net/bugs/1359177
You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to unity-scopes-api in Ubuntu.