Page MenuHomePhabricator

Replace "search scope" with selectable default behavior
ClosedPublic

Authored by epriestley on Feb 3 2014, 9:10 PM.
Tags
None
Referenced Files
F15452033: D8135.diff
Sat, Mar 29, 1:19 AM
F15433749: D8135.diff
Tue, Mar 25, 12:29 AM
F15399333: D8135.id18409.diff
Mon, Mar 17, 4:02 AM
Unknown Object (File)
Feb 23 2025, 10:20 PM
Unknown Object (File)
Jan 26 2025, 8:16 AM
Unknown Object (File)
Jan 21 2025, 5:53 AM
Unknown Object (File)
Dec 21 2024, 3:23 AM
Unknown Object (File)
Dec 20 2024, 11:55 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

Lint
Lint Skipped
Unit
Tests Skipped