← Back to team overview

touch-packages team mailing list archive

[Bug 1335761] Re: [Dash] Activating a preview with a scope URI for the current scope doesn't send you back to the results view

 

I've just checked vivid and it's still the case. Note, the original
steps to reproduce no longer apply because youtube scope doesn't seem to
be producing previews for channels with 'Search' button. I'm not sure
which of the existing scopes exhibit it offhand.

I've reproduced it again with slightly modifed mediascanner-video scope
(added a 'Search' button to its preview). After some more tests I can
conclude the following about preview buttons which have uris set to
canned queries (should execute search):

* it works, when it points to a different scope than the one displaying the preview.
* it doesn't work when it points to the same scope. In such case the search is executed in the background, but preview is not dismissed. After exiting the preview manually one can see new search results proving the query was in fact executed.

Here is the change I applied to mediascanner scope for reproducing;
change uri to "scope://mediascanner-music?q=" to see it working as
expected because different scope needs to be opened).

=== modified file 'src/myvideos/video-scope.cpp'
--- src/myvideos/video-scope.cpp        2015-04-15 15:58:52 +0000
+++ src/myvideos/video-scope.cpp        2015-04-17 09:58:29 +0000
@@ -281,6 +281,12 @@
                 {"uri", Variant(uri)},
                 {"label", Variant(_("Play"))}
             });
+       builder.add_tuple({
+                {"id", Variant("sr")},
+                {"uri", Variant("scope://mediascanner-video?q=foo")},
+                {"label", Variant(_("Search"))}
+            });
+
         actions.add_attribute_value("actions", builder.end());
     }

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

Title:
  [Dash] Activating a preview with a scope URI for the current scope
  doesn't send you back to the results view

Status in unity-scopes-shell package in Ubuntu:
  Confirmed
Status in unity8 package in Ubuntu:
  Confirmed
Status in unity8 package in Ubuntu RTM:
  Confirmed

Bug description:
  You'll have to compile (prototype) the Youtube scope from source
  (https://launchpad.net/unity-scope-youtube/), as it's not in distro
  yet.

  Basically the workflow is:
  1) Search for something that has a result with a scope URI for the current scope. In the case of Youtube, search for "queenofficial" to get Queen's music channel.
  2) Preview the first item (the channel itself), and click the search button.
  3) This runs a new query for the current scope, but doesn't switch away from the preview view).
  4) You will see a preview of the first video in the new results list.

  Like when searching other scopes, the view should be returned to the
  results list, instead of saying in the preview "view".

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-scopes-shell/+bug/1335761/+subscriptions