Page MenuHomePhabricator

Replace "search scope" with selectable default behavior
ClosedPublic

Authored by epriestley on Feb 3 2014, 9:10 PM.
Tags
None
Referenced Files
F19507063: D8135.id18409.diff
Fri, Jan 9, 5:11 PM
F19506509: D8135.id18407.diff
Fri, Jan 9, 4:47 PM
F19130973: D8135.diff
Dec 10 2025, 5:44 AM
F19053052: D8135.diff
Nov 28 2025, 7:04 AM
F19034216: D8135.diff
Nov 25 2025, 1:32 PM
F19015114: D8135.diff
Nov 22 2025, 11:11 PM
F18992876: D8135.diff
Nov 19 2025, 4:29 AM
F18923374: D8135.id18409.diff
Nov 9 2025, 4:32 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