Files
phabricator/src/applications
epriestley 727a7de759 Sort project typeahead tokens by display name, not hashtag
Summary:
Fixes T8510. Results are internally ordered by "name", which is the full list of strings a user can type to match a result. On the balance, it is probably good/correct to order by this (particularly, it allows `function(x)` to sort near `x`).

However, the way projects were built put the tags first, so a project like "Discovery" could end up last if it had originally been created with a different name like "Search Team", so that its first slug is "search-team".

Instead, put the display name first in the ordering.

Test Plan:
{F1661775}

To reproduce in particular:

  - Create a project named "Zebra".
  - Create a lot of projects named "Armadillo-blahblahblah".
  - Rename "Zebra" to "Armadillo".

Before the patch, the new "Armadillo" project would still sort as though it were named "Zebra". After the patch, it sorts as expected normally.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T8510

Differential Revision: https://secure.phabricator.com/D15981
2016-05-26 10:47:09 -07:00
..
2016-05-19 15:01:25 -07:00
2016-04-13 20:44:43 -07:00
2016-04-02 13:20:55 -07:00
2016-04-03 15:07:52 -07:00
2016-01-28 08:48:45 -08:00
2016-04-05 07:26:31 -07:00
2016-04-06 15:33:15 -07:00
2016-03-26 11:59:45 -07:00
2016-04-06 15:33:15 -07:00
2016-05-18 14:53:57 -07:00
2016-04-09 13:40:47 -07:00
2016-04-14 13:26:30 -07:00
2016-04-06 15:33:15 -07:00
2016-03-28 09:18:55 -07:00
2016-04-06 15:33:15 -07:00
2016-04-05 13:52:59 -07:00
2016-04-02 14:24:40 +00:00
2016-04-05 13:16:10 -07:00
2015-05-22 21:16:39 +10:00
2016-05-26 06:21:47 -07:00
2016-04-06 15:33:15 -07:00
2016-05-18 09:53:39 -07:00
2016-04-02 13:22:24 -07:00
2016-04-04 08:40:49 -07:00