Canned queries don't work if they come from a scope that doesn't have a page in the dash

Bug #1329890 reported by Paweł Stołowski
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu UX
Fix Released
Undecided
Unassigned
unity-scopes-shell
Fix Released
High
Michal Hruby
unity-scopes-shell (Ubuntu)
Fix Released
Undecided
Unassigned
unity8 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

If scope has a temporary page in the dash and returns a canned query to execute, then the query doesn't work and unity8 prints the following error:

Got scope URI "scope://com%2Epete%2Dwoods%2Esoundcloud?q="
Scope instance 0xa6dfd5e8 doesn't have Scopes as a parent

Apparently the following cast fails in this case inside Scope::executeCannedQuery():
scopes_ng::Scopes* scopes = qobject_cast<scopes_ng::Scopes*>(parent());

Tags: scope-dev

Related branches

description: updated
Michal Hruby (mhr3)
Changed in unity-scopes-shell:
importance: Undecided → High
assignee: nobody → Michal Hruby (mhr3)
status: New → Triaged
Revision history for this message
Michal Hruby (mhr3) wrote :

What's the desired UX supposed to be? If a temp dash page is opened from a temp dash page, should these be kept in a stack? What if temp dash page tries to perform a query on a temp dash page for scope that was already opened lower in the stack?

Revision history for this message
Michał Sawicz (saviq) wrote :

I'd *think* we just drill down, only exception being the favourite scopes. Adding ubuntu-ux for guidance.

What if you execute a canned query for a favourite scope, in a temp dash page? Does the stack of temp scopes get destroyed?

Revision history for this message
Michal Hruby (mhr3) wrote :

The plugin just emits a signal when temp dash page is supposed to be opened, it's left to the shell to maintain a stack or replace the current temp page.

Michał Karnicki (karni)
tags: added: scope-dev
Michal Hruby (mhr3)
Changed in unity-scopes-shell:
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-scopes-shell - 0.5.0+14.10.20140710-0ubuntu1

---------------
unity-scopes-shell (0.5.0+14.10.20140710-0ubuntu1) utopic; urgency=low

  [ Pete Woods ]
  * Add settings support

  [ Michal Hruby ]
  * Expose expansion queries as defined in latest unity-api.
  * Emit openScope() and gotoScope() also from temp scopes. (LP:
    #1329890)
 -- Ubuntu daily release <email address hidden> Thu, 10 Jul 2014 07:51:49 +0000

Changed in unity-scopes-shell (Ubuntu):
status: New → Fix Released
Michal Hruby (mhr3)
Changed in unity-scopes-shell:
status: In Progress → Fix Released
Mike Nagle (mikenagle)
Changed in ubuntu-ux:
status: New → Fix Released
Michał Sawicz (saviq)
no longer affects: unity8
kevin gunn (kgunn72)
Changed in unity8 (Ubuntu):
status: New → Fix Released
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.