Page MenuHomePhabricator

Replace "search scope" with selectable default behavior
ClosedPublic

Authored by epriestley on Feb 3 2014, 9:10 PM.
Tags
None
Referenced Files
F14376529: D8135.diff
Fri, Dec 20, 11:55 PM
Unknown Object (File)
Thu, Dec 19, 3:46 PM
Unknown Object (File)
Fri, Dec 6, 8:37 PM
Unknown Object (File)
Tue, Nov 26, 11:44 AM
Unknown Object (File)
Tue, Nov 26, 11:44 AM
Unknown Object (File)
Tue, Nov 26, 11:44 AM
Unknown Object (File)
Tue, Nov 26, 11:32 AM
Unknown Object (File)
Nov 20 2024, 10:46 PM
Subscribers

Details

Summary

Fixes T4365. See discussion in D8123.

This implements the most conservative solution of approaches discussed in D8123. Basically:

  • When you search in primary search, we overwrite "query" in your default (topmost) search filter, and execute that.

This doesn't implement any of the other "sticky" stuff, where the query sticks around. Maybe we'll do that eventually, but it gets messy and could be confusing. Practically, this addresses the major use case in the wild, which is to make the menu bar search mean "Open Tasks" by default.

This also removes the old, obsolete "search scope" stuff. A long time ago, searching from within Maniphest would search tasks, etc., but this was pretty weird and confusing and is no longer used, and no one complained when we got rid of it.

Test Plan

Dragged "Open Tasks" to my top search, searched for "asdf", got "asdf in open tasks" results.

Diff Detail

Repository
rP Phabricator
Branch
search1
Lint
Lint Passed
Unit
Tests Passed