1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-19 20:10:55 +01:00
phorge-phorge/src/applications/search/controller
epriestley 58b889c5b0 Make the default ApplicationSearch query explicit, not just the first item in the list
Summary:
Ref T12956. Currently, when you visit `/maniphest/` (or any other ApplicationSearch application) we execute the first query in the list by default.

In T12956, I plan to make changes so that personal queries are always first, then global/builtin queries. Without changing the "default query" rule, this will make it harder to have, for example, some custom queries in Differential but still run a global query like "Active" by default. To make this work, you'd have to save a personal copy of the "Active" query, then put it at the top.

This feels a bit cumbersome and this rule is kind of implicit and a little weird anyway. To make this work a little better as we make changes here, add an explicit pinning action, like the one we have in Project ProfileMenus.

You can now explicitly choose a query to make default.

Test Plan:
  - Browsed without pinning anything, saw normal behavior.
  - Pinned queries, viewed `/maniphest/`, saw a non-initial query selected by default.
  - Pinned a query, deleted it, nothing exploded.

{F5098484}

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T12956

Differential Revision: https://secure.phabricator.com/D18422
2017-08-24 15:21:00 -07:00
..
PhabricatorApplicationSearchController.php Make the default ApplicationSearch query explicit, not just the first item in the list 2017-08-24 15:21:00 -07:00
PhabricatorSearchBaseController.php When all actions in a submenu are disabled, disable the submenu header 2016-06-30 10:57:33 -07:00
PhabricatorSearchController.php Remove "Search Preferences" 2016-05-26 06:21:47 -07:00
PhabricatorSearchDefaultController.php Make the default ApplicationSearch query explicit, not just the first item in the list 2017-08-24 15:21:00 -07:00
PhabricatorSearchDeleteController.php Update Search for handleRequest 2015-10-20 09:02:55 -07:00
PhabricatorSearchEditController.php Make the default ApplicationSearch query explicit, not just the first item in the list 2017-08-24 15:21:00 -07:00
PhabricatorSearchHovercardController.php Fix a bad parameter read in hovercard 2017-02-17 16:42:10 -08:00
PhabricatorSearchOrderController.php Update Search for handleRequest 2015-10-20 09:02:55 -07:00
PhabricatorSearchRelationshipController.php When using the "Close as Duplicate" relationship action, limit the UI to 1 task 2016-06-30 13:48:21 -07:00
PhabricatorSearchRelationshipSourceController.php Convert Maniphest merge operations to modern Relationship code 2016-06-30 08:35:45 -07:00