Scope search queries don't persist departments

Bug #1471914 reported by Kyle Fazzari
32
This bug affects 4 people
Affects Status Importance Assigned to Milestone
unity-scope-click (Ubuntu)
Invalid
Undecided
Unassigned
unity-scope-snappy (Ubuntu)
Invalid
Undecided
Unassigned
unity-scopes-shell (Ubuntu)
Fix Released
High
Paweł Stołowski

Bug Description

I have a scope with departments A and B. A is the root department (id: ""), and B has id: "b".

Scenario:

1) Initially surface scope, A is the current department.
2) Switch to the B department.
3) Run search query, typing very slowing so as to cause multiple searches to be run while the query is being typed.

Expected results:

Search results from each search during the typing of the search query should be limited to department B.

Actual results:

Only the results from the very first search is from department B. As soon as the second (and subsequent) searches occur while typing, the search results are from the root department (A).

Suspected reason:

Adding debug prints to the scope shows that the department for the search query is only passed along for the first search. If the search is modified or being typed slowly enough so as to cause multiple searches to occur, subsequent queries don't include the department at all, thus the scope defaults to the root department.

Kyle Fazzari (kyrofa)
summary: - Scope search queries don't persist departments beyond the first search
+ Scope search queries don't persist departments
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity-scope-click (Ubuntu):
status: New → Confirmed
Changed in unity-scopes-shell (Ubuntu):
status: New → Confirmed
Kyle Fazzari (kyrofa)
Changed in unity-scope-snappy (Ubuntu):
status: New → Confirmed
Revision history for this message
Paweł Stołowski (stolowski) wrote :

This is "by design" (whenever user types search query, the search is global). This is going to be changed with the support for filters, which is currently in the works.

Changed in unity-scopes-shell (Ubuntu):
importance: Undecided → High
assignee: nobody → Pawel Stolowski (stolowski)
status: Confirmed → In Progress
Changed in unity-scope-snappy (Ubuntu):
status: Confirmed → Invalid
Changed in unity-scope-click (Ubuntu):
status: Confirmed → Invalid
Revision history for this message
Paweł Stołowski (stolowski) wrote :

This has been fixed with OTA10, closing.

Changed in unity-scopes-shell (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Kyle Fazzari (kyrofa) wrote :

Thanks Pawel :) .

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.