Showing results when available

Bug #1359177 reported by Facundo Batista
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-scopes-api (Ubuntu)
Fix Released
High
Paweł Stołowski
Utopic
Won't Fix
Undecided
Unassigned

Bug Description

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!

Tags: rtm

Related branches

Changed in unity-scopes-api:
status: New → Confirmed
Changed in unity-scopes-api:
assignee: nobody → Pawel Stolowski (stolowski)
importance: Undecided → High
status: Confirmed → In Progress
tags: added: rtm
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:unity-scopes-api/devel at revision 474, scheduled for release in unity-scopes-api, milestone Unknown

Changed in unity-scopes-api:
status: In Progress → Fix Committed
affects: unity-scopes-api → unity-scopes-api (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-scopes-api - 0.6.5+14.10.20140910.1-0ubuntu1

---------------
unity-scopes-api (0.6.5+14.10.20140910.1-0ubuntu1) utopic; urgency=medium

  [ Pawel Stolowski ]
  * Added support for expandable widgets.
  * Enhanced ActionMetadata with hints, similar to SearchMetadata. (LP: #1308585)
  * Push smart scopes online results immediately as they become available. (LP: #1359177)

  [ Michi Henning ]
  * Various fixes for race conditions and test stability.
    - This results in *safe* internal symbol changes.
  * Updates to scope tutorial and documentation.

  [ Ubuntu daily release ]
  * debian/libunity-scopes3.symbols: auto-update to released version
 -- Ubuntu daily release <email address hidden> Wed, 10 Sep 2014 08:49:56 +0000

Changed in unity-scopes-api (Ubuntu):
status: Fix Committed → Fix Released
Rolf Leggewie (r0lf)
Changed in unity-scopes-api (Ubuntu Utopic):
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.