1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-02-14 07:48:38 +01:00
phorge-phorge/src/applications/search/query
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
..
PhabricatorFulltextResultSet.php Show users how fulltext search queries are parsed and executed; don't query stopwords or short tokens 2017-04-12 19:07:54 -07:00
PhabricatorFulltextToken.php Search and Replace calls to setShade 2017-05-22 18:59:53 +00:00
PhabricatorNamedQueryConfigQuery.php Make the default ApplicationSearch query explicit, not just the first item in the list 2017-08-24 15:21:00 -07:00
PhabricatorNamedQueryQuery.php Lightly modernize NamedQueryQuery 2017-08-14 09:07:11 -07:00
PhabricatorProfileMenuItemConfigurationQuery.php Replace ProfileMenu bugs with different bugs 2017-01-31 11:22:01 -08:00
PhabricatorProfileMenuItemConfigurationTransactionQuery.php Rename "ProfilePanelConfiguration" to "ProfileMenuItemConfiguration" 2016-12-11 11:44:22 -08:00
PhabricatorSavedQueryQuery.php Make buildWhereClause() a method of AphrontCursorPagedPolicyAwareQuery 2015-04-20 10:06:09 -07:00
PhabricatorSearchApplicationSearchEngine.php Show users how fulltext search queries are parsed and executed; don't query stopwords or short tokens 2017-04-12 19:07:54 -07:00
PhabricatorSearchDocumentQuery.php Show users how fulltext search queries are parsed and executed; don't query stopwords or short tokens 2017-04-12 19:07:54 -07:00